[ { "id": "arcwise-sql:1471", "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:\nratio of customers who pay in EUR against customers who pay in CZK = count(Currency = 'EUR') / count(Currency = 'CZK').\n\nQuestion:\nWhat is the ratio of customers who pay in EUR against customers who pay in CZK?", "question": "What is the ratio of customers who pay in EUR against customers who pay in CZK?", "evidence": "ratio of customers who pay in EUR against customers who pay in CZK = count(Currency = 'EUR') / count(Currency = 'CZK').", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "gold_sql": "SELECT CAST(SUM(IIF(Currency = 'EUR', 1, 0)) AS FLOAT) / SUM(IIF(Currency = 'CZK', 1, 0)) AS ratio FROM customers", "source_gold_sql": "SELECT CAST(SUM(IIF(Currency = 'EUR', 1, 0)) AS FLOAT) / SUM(IIF(Currency = 'CZK', 1, 0)) AS ratio FROM customers", "source_gold_sql_sha256": "c96b18b24eec0210b437176421432354f1cbd3ab913e4d23403f51273e67f6f6", "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:1472", "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:\nYear 2012 can be presented as Between 201201 And 201212; The first 4 strings of the Date values in the yearmonth table can represent year.\n\nQuestion:\nIn 2012, who had the least consumption in LAM?", "question": "In 2012, who had the least consumption in LAM?", "evidence": "Year 2012 can be presented as Between 201201 And 201212; The first 4 strings of the Date values in the yearmonth table can represent year.", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "gold_sql": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM' AND SUBSTR(T2.Date, 1, 4) = '2012' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1", "source_gold_sql": "SELECT T1.CustomerID FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM' AND SUBSTR(T2.Date, 1, 4) = '2012' GROUP BY T1.CustomerID ORDER BY SUM(T2.Consumption) ASC LIMIT 1", "source_gold_sql_sha256": "800a5f5ada5d137d263ac75d44d16c7e24838d2a9778b938ae9d62ae24e2dc12", "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:1473", "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 Monthly consumption = AVG(SUM(Consumption) by CustomerID) / 12; Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year.\n\nQuestion:\nWhat was the average monthly consumption of customers in SME for the year 2013?", "question": "What was the average monthly consumption of customers in SME for the year 2013?", "evidence": "Average Monthly consumption = AVG(SUM(Consumption) by CustomerID) / 12; Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year.", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "gold_sql": "SELECT AVG(TotalConsumption) / 12 FROM (SELECT SUM(T2.Consumption) AS TotalConsumption FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2013' AND T1.Segment = 'SME' GROUP BY T1.CustomerID)", "source_gold_sql": "SELECT AVG(TotalConsumption) / 12 FROM (SELECT SUM(T2.Consumption) AS TotalConsumption FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2013' AND T1.Segment = 'SME' GROUP BY T1.CustomerID)", "source_gold_sql_sha256": "582f8dbfdfde6216666e8a533c4e6f7f1eda3c19ce855ac30f8b6d75410e7ccb", "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:1476", "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:\nYear 2012 can be presented as Between 201201 And 201212; The first 4 strings of the Date values in the yearmonth table can represent year; Difference in Consumption = CZK customers consumption in 2012 - EUR customers consumption in 2012\n\nQuestion:\nWhat was the difference in gas consumption between CZK-paying customers and EUR-paying customers in 2012?", "question": "What was the difference in gas consumption between CZK-paying customers and EUR-paying customers in 2012?", "evidence": "Year 2012 can be presented as Between 201201 And 201212; The first 4 strings of the Date values in the yearmonth table can represent year; Difference in Consumption = CZK customers consumption in 2012 - EUR customers consumption in 2012", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "gold_sql": "SELECT SUM(IIF(T1.Currency = 'CZK', T2.Consumption, 0)) - SUM(IIF(T1.Currency = 'EUR', T2.Consumption, 0)) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2012'", "source_gold_sql": "SELECT SUM(IIF(T1.Currency = 'CZK', T2.Consumption, 0)) - SUM(IIF(T1.Currency = 'EUR', T2.Consumption, 0)) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2012'", "source_gold_sql_sha256": "e2ecf538ed97bd63785c2c02da0d333671283cec84ef9afb665b9da59394d0bc", "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:1479", "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.\n\nQuestion:\nWhich year recorded the most consumption of gas paid in CZK?", "question": "Which year recorded the most consumption of gas paid in CZK?", "evidence": "The first 4 strings of the Date values in the yearmonth table can represent year.", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "gold_sql": "SELECT SUBSTR(T2.Date, 1, 4) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'CZK' GROUP BY SUBSTR(T2.Date, 1, 4) ORDER BY SUM(T2.Consumption) DESC LIMIT 1", "source_gold_sql": "SELECT SUBSTR(T2.Date, 1, 4) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'CZK' GROUP BY SUBSTR(T2.Date, 1, 4) ORDER BY SUM(T2.Consumption) DESC LIMIT 1", "source_gold_sql_sha256": "354dc6da858bfd2938025ab7eb0da172d4eec638f24e0f9fad66ab2a528f1517", "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:1480", "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:\nYear 2013 can be presented as Between 201301 And 201312; 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:\nWhat was the gas consumption peak month for SME customers in 2013?", "question": "What was the gas consumption peak month for SME customers in 2013?", "evidence": "Year 2013 can be presented as Between 201301 And 201312; 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 SUBSTR(T2.Date, 5, 2) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2013' AND T1.Segment = 'SME' GROUP BY SUBSTR(T2.Date, 5, 2) ORDER BY SUM(T2.Consumption) DESC LIMIT 1", "source_gold_sql": "SELECT SUBSTR(T2.Date, 5, 2) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE SUBSTR(T2.Date, 1, 4) = '2013' AND T1.Segment = 'SME' GROUP BY SUBSTR(T2.Date, 5, 2) ORDER BY SUM(T2.Consumption) DESC LIMIT 1", "source_gold_sql_sha256": "e0b1571fca84f5117f3a0892b6a05f9c91ec544931e9f9850224f12628bd84a9", "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:1481", "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:\nannual average consumption of customer with the lowest consumption in each segment = total consumption per year / the number of customer with lowest consumption in each segment; Difference in annual average = SME's annual average - LAM's annual average; Difference in annual average = LAM's annual average - KAM's annual average; Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year.\n\nQuestion:\nWhat is the difference in the annual average consumption of the customers with the least amount of consumption paid in CZK for 2013 between SME and LAM, LAM and KAM, and KAM and SME?", "question": "What is the difference in the annual average consumption of the customers with the least amount of consumption paid in CZK for 2013 between SME and LAM, LAM and KAM, and KAM and SME?", "evidence": "annual average consumption of customer with the lowest consumption in each segment = total consumption per year / the number of customer with lowest consumption in each segment; Difference in annual average = SME's annual average - LAM's annual average; Difference in annual average = LAM's annual average - KAM's annual average; Year 2013 can be presented as Between 201301 And 201312; The first 4 strings of the Date values in the yearmonth table can represent year.", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "gold_sql": "WITH customer_consumption AS (SELECT c.Segment, c.CustomerID, SUM(ym.Consumption) AS TotalConsumption, COUNT(DISTINCT ym.CustomerID) AS CustomerCount FROM customers AS c JOIN yearmonth AS ym ON c.CustomerID = ym.CustomerID WHERE ym.Date BETWEEN '201301' AND '201312' AND c.Currency = 'CZK' GROUP BY c.Segment, c.CustomerID), customer_average_consumption AS (SELECT Segment, TotalConsumption, CAST(TotalConsumption AS REAL) / CustomerCount AS AnnualAverageConsumption FROM customer_consumption), segment_min_consumption AS (SELECT Segment, MIN(TotalConsumption) LeastConsumptionCustomer FROM customer_average_consumption GROUP BY Segment), segment_min_consumption_avg AS (SELECT T1.Segment, T2.AnnualAverageConsumption FROM segment_min_consumption T1 JOIN customer_average_consumption T2 ON T1.Segment = T2.Segment AND T1.LeastConsumptionCustomer = T2.TotalConsumption) SELECT SUM(IIF(Segment = 'SME', AnnualAverageConsumption, 0)) - SUM(IIF(Segment = 'LAM', AnnualAverageConsumption, 0)), SUM(IIF(Segment = 'LAM', AnnualAverageConsumption, 0)) - SUM(IIF(Segment = 'KAM', AnnualAverageConsumption, 0)), SUM(IIF(Segment = 'KAM', AnnualAverageConsumption, 0)) - SUM(IIF(Segment = 'SME', AnnualAverageConsumption, 0)) FROM segment_min_consumption_avg", "source_gold_sql": "WITH customer_consumption AS (SELECT c.Segment, c.CustomerID, SUM(ym.Consumption) AS TotalConsumption, COUNT(DISTINCT ym.CustomerID) AS CustomerCount FROM customers AS c JOIN yearmonth AS ym ON c.CustomerID = ym.CustomerID WHERE ym.Date BETWEEN '201301' AND '201312' AND c.Currency = 'CZK' GROUP BY c.Segment, c.CustomerID), customer_average_consumption AS (SELECT Segment, TotalConsumption, CAST(TotalConsumption AS REAL) / CustomerCount AS AnnualAverageConsumption FROM customer_consumption), segment_min_consumption AS (SELECT Segment, MIN(TotalConsumption) LeastConsumptionCustomer FROM customer_average_consumption GROUP BY Segment), segment_min_consumption_avg AS (SELECT T1.Segment, T2.AnnualAverageConsumption FROM segment_min_consumption T1 JOIN customer_average_consumption T2 ON T1.Segment = T2.Segment AND T1.LeastConsumptionCustomer = T2.TotalConsumption) SELECT SUM(IIF(Segment = 'SME', AnnualAverageConsumption, 0)) - SUM(IIF(Segment = 'LAM', AnnualAverageConsumption, 0)), SUM(IIF(Segment = 'LAM', AnnualAverageConsumption, 0)) - SUM(IIF(Segment = 'KAM', AnnualAverageConsumption, 0)), SUM(IIF(Segment = 'KAM', AnnualAverageConsumption, 0)) - SUM(IIF(Segment = 'SME', AnnualAverageConsumption, 0)) FROM segment_min_consumption_avg", "source_gold_sql_sha256": "f3d1ea1c3ace670e4727e64a674af32dc9b52b42bfd63309e5c17253aa7b7318", "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:1482", "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:\nIncrease or Decrease = consumption for 2013 - consumption for 2012; Percentage of Increase = (Increase or Decrease / consumption for 2012) * 100%; The first 4 strings of the Date values in the yearmonth table can represent year\n\nQuestion:\nProvide the percentage increase or decrease in consumption paid in EUR between 2012 and 2013 for SME, LAM, and KAM respectively.", "question": "Provide the percentage increase or decrease in consumption paid in EUR between 2012 and 2013 for SME, LAM, and KAM respectively.", "evidence": "Increase or Decrease = consumption for 2013 - consumption for 2012; Percentage of Increase = (Increase or Decrease / consumption for 2012) * 100%; The first 4 strings of the Date values in the yearmonth table can represent year", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "gold_sql": "SELECT CAST((SUM(IIF(T1.Segment = 'SME' AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment = 'SME' AND T2.Date LIKE '2012%', T2.Consumption, 0))) AS FLOAT) * 100 / SUM(IIF(T1.Segment = 'SME' AND T2.Date LIKE '2012%', T2.Consumption, 0)), CAST(SUM(IIF(T1.Segment = 'LAM' AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment = 'LAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) AS FLOAT) * 100 / SUM(IIF(T1.Segment = 'LAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)), CAST(SUM(IIF(T1.Segment = 'KAM' AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment = 'KAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) AS FLOAT) * 100 / SUM(IIF(T1.Segment = 'KAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'EUR'", "source_gold_sql": "SELECT CAST((SUM(IIF(T1.Segment = 'SME' AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment = 'SME' AND T2.Date LIKE '2012%', T2.Consumption, 0))) AS FLOAT) * 100 / SUM(IIF(T1.Segment = 'SME' AND T2.Date LIKE '2012%', T2.Consumption, 0)), CAST(SUM(IIF(T1.Segment = 'LAM' AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment = 'LAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) AS FLOAT) * 100 / SUM(IIF(T1.Segment = 'LAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)), CAST(SUM(IIF(T1.Segment = 'KAM' AND T2.Date LIKE '2013%', T2.Consumption, 0)) - SUM(IIF(T1.Segment = 'KAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) AS FLOAT) * 100 / SUM(IIF(T1.Segment = 'KAM' AND T2.Date LIKE '2012%', T2.Consumption, 0)) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Currency = 'EUR'", "source_gold_sql_sha256": "678d427eb620393cbd7c67b07423f2ad54597225de533b1d7f8e159949f278dd", "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:1483", "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:\nBetween August And November 2013 refers to Between 201308 And 201311; 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:\nHow much did customer 6 consume in total between August and November 2013?", "question": "How much did customer 6 consume in total between August and November 2013?", "evidence": "Between August And November 2013 refers to Between 201308 And 201311; 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 CustomerID = 6 AND Date BETWEEN '201308' AND '201311'", "source_gold_sql": "SELECT SUM(Consumption) FROM yearmonth WHERE CustomerID = 6 AND Date BETWEEN '201308' AND '201311'", "source_gold_sql_sha256": "c59600dc9abc9655780e676918cd3013706569df777014302db223b72b28b259", "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:1484", "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 gasstations table is 'CZE'; Slovakia can be represented as the Country value in the gasstations table is 'SVK'; Computation of more \"discount\" gas stations= Total no. of discount gas stations in Czech Republic - Total no. of discount gas stations in Slovakia\n\nQuestion:\nHow many more \"discount\" gas stations does the Czech Republic have compared to Slovakia?", "question": "How many more \"discount\" gas stations does the Czech Republic have compared to Slovakia?", "evidence": "Czech Republic can be represented as the Country value in gasstations table is 'CZE'; Slovakia can be represented as the Country value in the gasstations table is 'SVK'; Computation of more \"discount\" gas stations= Total no. of discount gas stations in Czech Republic - Total no. of discount gas stations in Slovakia", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "gold_sql": "SELECT SUM(IIF(Country = 'CZE', 1, 0)) - SUM(IIF(Country = 'SVK', 1, 0)) FROM gasstations WHERE Segment = 'Discount'", "source_gold_sql": "SELECT SUM(IIF(Country = 'CZE', 1, 0)) - SUM(IIF(Country = 'SVK', 1, 0)) FROM gasstations WHERE Segment = 'Discount'", "source_gold_sql_sha256": "f72674eb65d1a66311d466039f59bd405df2904c650dbb5cd89de4435371d9ec", "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:1486", "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:\nAmount of more SMEs = Total of SMEs pay using Currency CZK - Total of SMEs pay using Currency EUR\n\nQuestion:\nIs it true that more SMEs pay in Czech koruna than in euros? If so, how many more?", "question": "Is it true that more SMEs pay in Czech koruna than in euros? If so, how many more?", "evidence": "Amount of more SMEs = Total of SMEs pay using Currency CZK - Total of SMEs pay using Currency EUR", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "gold_sql": "SELECT SUM(Currency = 'CZK') - SUM(Currency = 'EUR') FROM customers WHERE Segment = 'SME'", "source_gold_sql": "SELECT SUM(Currency = 'CZK') - SUM(Currency = 'EUR') FROM customers WHERE Segment = 'SME'", "source_gold_sql_sha256": "8410230a0d3a11a5a93f7f5bdbbc39b53624d178ee7ca893ce91295fecb70933", "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:1490", "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:\nPercentage of LAM customer consumed more than 46.73 = (Total no. of LAM customers who consumed more than 46.73 / Total no. of LAM customers) * 100.\n\nQuestion:\nHow many percent of LAM customer consumed more than 46.73?", "question": "How many percent of LAM customer consumed more than 46.73?", "evidence": "Percentage of LAM customer consumed more than 46.73 = (Total no. of LAM customers who consumed more than 46.73 / Total no. of LAM customers) * 100.", "db_id": "debit_card_specializing", "database_path": "databases/debit_card_specializing.sqlite", "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": "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" } ]