db_id
stringlengths 4
28
| schema
listlengths 2
65
| description
listlengths 2
65
|
---|---|---|
video_games | [
{
"create_sql": "CREATE TABLE genre\n(\n id INTEGER not null\n primary key,\n genre_name TEXT default NULL\n);",
"table": "genre"
},
{
"create_sql": "CREATE TABLE game\n(\n id INTEGER not null\n primary key,\n genre_id INTEGER default NULL,\n game_name TEXT default NULL,\n foreign key (genre_id) references genre(id)\n);",
"table": "game"
},
{
"create_sql": "CREATE TABLE platform\n(\n id INTEGER not null\n primary key,\n platform_name TEXT default NULL\n);",
"table": "platform"
},
{
"create_sql": "CREATE TABLE publisher\n(\n id INTEGER not null\n primary key,\n publisher_name TEXT default NULL\n);",
"table": "publisher"
},
{
"create_sql": "CREATE TABLE game_publisher\n(\n id INTEGER not null\n primary key,\n game_id INTEGER default NULL,\n publisher_id INTEGER default NULL,\n foreign key (game_id) references game(id),\n foreign key (publisher_id) references publisher(id)\n);",
"table": "game_publisher"
},
{
"create_sql": "CREATE TABLE game_platform\n(\n id INTEGER not null\n primary key,\n game_publisher_id INTEGER default NULL,\n platform_id INTEGER default NULL,\n release_year INTEGER default NULL,\n foreign key (game_publisher_id) references game_publisher(id),\n foreign key (platform_id) references platform(id)\n);",
"table": "game_platform"
},
{
"create_sql": "CREATE TABLE region\n(\n id INTEGER not null\n primary key,\n region_name TEXT default NULL\n);",
"table": "region"
},
{
"create_sql": "CREATE TABLE region_sales\n(\n region_id INTEGER default NULL,\n game_platform_id INTEGER default NULL,\n num_sales REAL default NULL,\n foreign key (game_platform_id) references game_platform(id),\n foreign key (region_id) references region(id)\n);",
"table": "region_sales"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the game genre,integer,\ngenre_name,,the game genre,text,\"commonsense evidence:\nThe game genre can have a significant effect on the game. The genre refers to the category or type of game, such as action, adventure, strategy, or role-playing. The genre can determine the general style and gameplay of the game, as well as the expectations of the players. The genre can also affect the audience for the game, as different genres may appeal to different groups of players.\"",
"table": "genre"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the record,integer,\ngame_publisher_id,game publisher id,the id of the game publisher,integer,\nplatform_id,platform id,the id of the platform,integer,\nrelease_year,release year,the release year of the game,integer,",
"table": "game_platform"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the game publisher,integer,\npublisher_name,,the name of the publisher,text,\"commonsense evidence:\nThe publisher is the company or organization that finances, produces, and distributes the game. The publisher can influence the development of the game by providing resources, guidance, and support to the game's development team. The publisher can also affect the marketing and distribution of the game, as they are responsible for promoting the game and making it available to players. \"",
"table": "publisher"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the game platform,integer,\nplatform_name,,the name of the platform,text,\"commonsense evidence:\nThe game platform, or the platform on which a game is played, can have a significant effect on the game. The platform can determine what hardware and software the game can run on, as well as the technical capabilities of the game. The platform can also affect the audience for the game, as different platforms may attract different groups of players.\"",
"table": "platform"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the game,integer,\ngenre_id,genre id,the id of the game genre,integer,\"commonsense evidence:\nIf game A and game B have the same genre, the user who likes game A may also like game B. \"\ngame_name,game name,the name of the game,text,",
"table": "game"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nregion_id,,the id of the region,integer,\ngame_platform_id,game platform id,the id of the game platform,integer,\nnum_sales,number sales,the number of sales in this region,real,\"commonsense evidence:\nThe number of games sold in the region = num_sales * 100000.\nThe game platform with higher num_sales is more popular in the region. \"",
"table": "region_sales"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the game publisher,integer,\ngame_id,game id,the id of the game,integer,\npublisher_id,publisher id,the id of the publisher,integer,\"commonsense evidence:\nIf game A and game B were published by the same publisher, the user who likes game A may also like game B if the user is a fan of the publisher company.\"",
"table": "game_publisher"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the region,integer,\nregion_name,,the region name,text,",
"table": "region"
}
] |
ice_hockey_draft | [
{
"create_sql": "CREATE TABLE height_info\n(\n height_id INTEGER\n primary key,\n height_in_cm INTEGER,\n height_in_inch TEXT\n);",
"table": "height_info"
},
{
"create_sql": "CREATE TABLE weight_info\n(\n weight_id INTEGER\n primary key,\n weight_in_kg INTEGER,\n weight_in_lbs INTEGER\n);",
"table": "weight_info"
},
{
"create_sql": "CREATE TABLE PlayerInfo\n(\n ELITEID INTEGER\n primary key,\n PlayerName TEXT,\n birthdate TEXT,\n birthyear DATE,\n birthmonth INTEGER,\n birthday INTEGER,\n birthplace TEXT,\n nation TEXT,\n height INTEGER,\n weight INTEGER,\n position_info TEXT,\n shoots TEXT,\n draftyear INTEGER,\n draftround INTEGER,\n overall INTEGER,\n overallby TEXT,\n CSS_rank INTEGER,\n sum_7yr_GP INTEGER,\n sum_7yr_TOI INTEGER,\n GP_greater_than_0 TEXT,\n foreign key (height) references height_info(height_id),\n foreign key (weight) references weight_info(weight_id)\n);",
"table": "PlayerInfo"
},
{
"create_sql": "CREATE TABLE SeasonStatus\n(\n ELITEID INTEGER,\n SEASON TEXT,\n TEAM TEXT,\n LEAGUE TEXT,\n GAMETYPE TEXT,\n GP INTEGER,\n G INTEGER,\n A INTEGER,\n P INTEGER,\n PIM INTEGER,\n PLUSMINUS INTEGER,\n foreign key (ELITEID) references PlayerInfo(ELITEID)\n);",
"table": "SeasonStatus"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nheight_id,height id,the unique height id,integer,\nheight_in_cm,height in cm,height in cm,integer,e.g. 180 --> the height is 180 cm\nheight_in_inch,height in inch,height in inch,text,",
"table": "height_info"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nweight_id,weight id,the unique weight id,integer,\nweight_in_kg,weight in kg,weight in kg,integer,e.g. 70: -->70 kg\nweight_in_lbs,weight in lbs,weight in lbs,integer,",
"table": "weight_info"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nELITEID,ELITE ID,the unique number identifying the players who attended the draft,integer,\nPlayerName,Player Name,the name of the player,text,\nbirthdate,,the birthdate of the player,text,\nbirthyear,,the birth year of the player,date,\nbirthmonth,,the birth month of the player,integer,\nbirthday,,the birthday of the player,integer,\nbirthplace,,the player of the birthplace,text,\nnation,,the nation of the player,text,\"commonsense evidence: can ask questions about their corresponding continents. or group nations with their continents. You can refer to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent\ne.g.: Slovakia --> Europe\"\nheight,,the id number identifying heights,integer,\nweight,,the id number identifying weights,integer,\nposition_info,position information,position information of the player,text,\"commonsense evidence: There are six different positions in hockey: \nleft wing, \nright wing, \ncenter, \nleft defenseman, \nright defenseman \ngoalie. \nLeft wings, right wings, and centers are all considered forwards, while left and right defensemen are considered the defense.\"\nshoots,,,text,\"commonsense evidence: \n L: Left-shooted \n R: Right-shooted \n '-': no preference\"\ndraftyear,draft year,draft year,integer,\ndraftround,draft round,draft round,integer,\noverall,,overall orders of draft picks,integer,\noverallby,,drafted by which team,text,\nCSS_rank,Central Scouting Service ranking,Central Scouting Service ranking,integer,commonsense evidence: higher rank refers to higher prospects for the draft\nsum_7yr_GP,sum 7-year game plays,Total NHL games played in players first 7 years of NHL career,integer,commonsense evidence: higher --> more attendance in the first 7 years\nsum_7yr_TOI,sum 7-year time on ice,Total NHL Time on Ice in players first 7 years of NHL career,integer,commonsense evidence: higher --> more playing time in the first 7 years of career\nGP_greater_than_0,game play greater than 0,Played a game or not in players first 7 years of NHL career,text,\" yes \n no\"",
"table": "PlayerInfo"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nELITEID,ELITE ID,the id number of the players,integer,\nSEASON,,season when players are playing,text,\nTEAM,,which team the player belong to,text,\nLEAGUE,,league,text,\nGAMETYPE,GAME TYPE ,type of games,text, Regular season playoffs (post season)\nGP,Game Plays,number of games,integer,\nG,,Goals in Draft Year,integer,\nA,,Assists in Draft Year,integer,\nP,,Points in Draft Year,integer,commonsense evidence: higher --> more valuable\nPIM,Penalty Minutes,Penalty Minutes in Draft Year,integer,commonsense evidence: higher --> This player has committed more rule violations.\nPLUSMINUS,Plus Minutes,Goal Differential in Draft Year,integer,Goal Differential",
"table": "SeasonStatus"
}
] |
shipping | [
{
"create_sql": "CREATE TABLE city\n(\n city_id INTEGER\n primary key,\n city_name TEXT,\n state TEXT,\n population INTEGER,\n area REAL\n);",
"table": "city"
},
{
"create_sql": "CREATE TABLE customer\n(\n cust_id INTEGER\n primary key,\n cust_name TEXT,\n annual_revenue INTEGER,\n cust_type TEXT,\n address TEXT,\n city TEXT,\n state TEXT,\n zip REAL,\n phone TEXT\n);",
"table": "customer"
},
{
"create_sql": "CREATE TABLE driver\n(\n driver_id INTEGER\n primary key,\n first_name TEXT,\n last_name TEXT,\n address TEXT,\n city TEXT,\n state TEXT,\n zip_code INTEGER,\n phone TEXT\n);",
"table": "driver"
},
{
"create_sql": "CREATE TABLE truck\n(\n truck_id INTEGER\n primary key,\n make TEXT,\n model_year INTEGER\n);",
"table": "truck"
},
{
"create_sql": "CREATE TABLE shipment\n(\n ship_id INTEGER\n primary key,\n cust_id INTEGER,\n weight REAL,\n truck_id INTEGER,\n driver_id INTEGER,\n city_id INTEGER,\n ship_date TEXT,\n foreign key (cust_id) references customer(cust_id),\n foreign key (city_id) references city(city_id),\n foreign key (driver_id) references driver(driver_id),\n foreign key (truck_id) references truck(truck_id)\n);",
"table": "shipment"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndriver_id,driver id,Unique identifier for the driver,integer,\nfirst_name,first name,First given name of the driver,text,\nlast_name,last name ,Family name of the driver,text,commonsense evidence: full name = first_name + last_name\naddress,,Street address of the driver's home,text,\ncity,,City the driver lives in,text,\nstate,,State the driver lives in,text,\"commonsense evidence: \nplease mention its full name in the question, by referring to \nhttps://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971 \ne.g., NY --> New York\"\nzip_code,zip code,postal code of the driver's address,integer,\nphone,,telephone number of the driver,text,",
"table": "driver"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncust_id,customer id ,Unique identifier for the customer,integer,\ncust_name,customer name,Business name of the customer,text,\nannual_revenue,annual revenue,Annual revenue of the customer,integer,\ncust_type,customer type,Whether the customer is a manufacturer or a wholes,text,\naddress,,Physical street address of the customer,text,\ncity,,City of the customer's address,text,\nstate,,State of the customer's address,text,\"commonsense evidence: \nplease mention its full name in the question, by referring to \nhttps://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971\ne.g., NY --> New York\"\nzip,,Postal code of the customer's address,real,\nphone,,Telephone number to reach the customer,text,",
"table": "customer"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nship_id,ship id,Unique identifier of the shipment,integer,\ncust_id,customer id ,A reference to the customer table that indicates which customer the shipment is for,integer,\nweight,,The number of pounds being transported on the shipment,real,\ntruck_id,truck id,A reference to the truck table that indicates which truck is used in the shipment,integer,\ndriver_id,driver id,A reference to the driver table that indicates which driver transported the goods in the shipment,integer,\ncity_id,city id,A reference to the city table that indicates the destination of the shipment,integer,\nship_date,ship date,the date the items were received by the driver,text,yyyy-mm-dd",
"table": "shipment"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncity_id,city id,unique identifier for the city,integer,\ncity_name,city name,name of the city,text,\nstate,,state in which the city is,text,\npopulation ,,population of the city,integer,\narea,,square miles the city covers,real,\"commonsense evidence: \npopulation density (land area per capita) = area / population \"",
"table": "city"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ntruck_id,truck id,Unique identifier of the truck table,integer,\nmake,,The brand of the truck,text,\"commonsense evidence: \n Peterbilt headquarter: Texas (TX) \n Mack headquarter: North Carolina (NC) \n Kenworth headquarter: Washington (WA) \ncan ask question about headquarters of the truck\"\nmodel_year,model year,The year the truck was manufactured,integer,commonsense evidence: The truck with earlier model year means this truck is newer.",
"table": "truck"
}
] |
world_development_indicators | [
{
"create_sql": "CREATE TABLE \"Country\"\n(\n CountryCode TEXT not null\n primary key,\n ShortName TEXT,\n TableName TEXT,\n LongName TEXT,\n Alpha2Code TEXT,\n CurrencyUnit TEXT,\n SpecialNotes TEXT,\n Region TEXT,\n IncomeGroup TEXT,\n Wb2Code TEXT,\n NationalAccountsBaseYear TEXT,\n NationalAccountsReferenceYear TEXT,\n SnaPriceValuation TEXT,\n LendingCategory TEXT,\n OtherGroups TEXT,\n SystemOfNationalAccounts TEXT,\n AlternativeConversionFactor TEXT,\n PppSurveyYear TEXT,\n BalanceOfPaymentsManualInUse TEXT,\n ExternalDebtReportingStatus TEXT,\n SystemOfTrade TEXT,\n GovernmentAccountingConcept TEXT,\n ImfDataDisseminationStandard TEXT,\n LatestPopulationCensus TEXT,\n LatestHouseholdSurvey TEXT,\n SourceOfMostRecentIncomeAndExpenditureData TEXT,\n VitalRegistrationComplete TEXT,\n LatestAgriculturalCensus TEXT,\n LatestIndustrialData INTEGER,\n LatestTradeData INTEGER,\n LatestWaterWithdrawalData INTEGER\n);",
"table": "Country"
},
{
"create_sql": "CREATE TABLE \"Series\"\n(\n SeriesCode TEXT not null\n primary key,\n Topic TEXT,\n IndicatorName TEXT,\n ShortDefinition TEXT,\n LongDefinition TEXT,\n UnitOfMeasure TEXT,\n Periodicity TEXT,\n BasePeriod TEXT,\n OtherNotes INTEGER,\n AggregationMethod TEXT,\n LimitationsAndExceptions TEXT,\n NotesFromOriginalSource TEXT,\n GeneralComments TEXT,\n Source TEXT,\n StatisticalConceptAndMethodology TEXT,\n DevelopmentRelevance TEXT,\n RelatedSourceLinks TEXT,\n OtherWebLinks INTEGER,\n RelatedIndicators INTEGER,\n LicenseType TEXT\n);",
"table": "Series"
},
{
"create_sql": "CREATE TABLE CountryNotes\n(\n Countrycode TEXT NOT NULL ,\n Seriescode TEXT NOT NULL ,\n Description TEXT,\n primary key (Countrycode, Seriescode),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);",
"table": "CountryNotes"
},
{
"create_sql": "CREATE TABLE Footnotes\n(\n Countrycode TEXT NOT NULL ,\n Seriescode TEXT NOT NULL ,\n Year TEXT,\n Description TEXT,\n primary key (Countrycode, Seriescode, Year),\n FOREIGN KEY (Seriescode) REFERENCES Series(SeriesCode),\n FOREIGN KEY (Countrycode) REFERENCES Country(CountryCode)\n);",
"table": "Footnotes"
},
{
"create_sql": "CREATE TABLE Indicators\n(\n CountryName TEXT,\n CountryCode TEXT NOT NULL ,\n IndicatorName TEXT,\n IndicatorCode TEXT NOT NULL ,\n Year INTEGER NOT NULL ,\n Value INTEGER,\n primary key (CountryCode, IndicatorCode, Year),\n FOREIGN KEY (CountryCode) REFERENCES Country(CountryCode)\n);",
"table": "Indicators"
},
{
"create_sql": "CREATE TABLE SeriesNotes\n(\n Seriescode TEXT not null ,\n Year TEXT not null ,\n Description TEXT,\n primary key (Seriescode, Year),\n foreign key (Seriescode) references Series(SeriesCode)\n);",
"table": "SeriesNotes"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountrycode,Country code,code identifying unique countries,text,\nSeriescode,Series code,Series code of countries,text,\nYear,,Year,text,\nDescription,,Description of country footnotes,text,",
"table": "FootNotes"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSeriescode,Series code,code identifying the series,text,\nYear,,year,text,\nDescription,,Description of series,text,",
"table": "SeriesNotes"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountryCode,Country Code,unique code identifying countries,text,\nShortName,Short Name,Short names of countries ,text,\nTableName,Table Name,table names of countries,text,\nLongName,Long Name,long or full name of countries,text,\nAlpha2Code,Alpha to Code,2 digit code of countries ,text,\nCurrencyUnit,Currency Unit,Currency Unit used in this country,text,\nSpecialNotes,Special Notes,Special Notes,text,\nRegion,Region,region that country belongs to ,text,\nIncomeGroup,Income Group,income level of countries ,text,\nWb2Code,world bank to code,world bank to code,text,\nNationalAccountsBaseYear,National Accounts Base Year,the year used as the base period for constant price calculations in the country's national accounts,text,\nNationalAccountsReferenceYear,National Accounts Reference Year,National Accounts Reference Year,text,\nSnaPriceValuation,SNA Price Valuation,SNA Price Valuation,text,\nLendingCategory,Lending Category,Lending category,text,\"• IDA: International Development Associations: (IDA) is the part of the World Bank that helps the world's poorest countries.\n• IBRD: The International Bank for Reconstruction and Development (IBRD) is a global development cooperative owned by 189 member countries.\n• Blend: Blend is the cloud banking infrastructure powering billions of dollars in financial transactions every day.\"\nOtherGroups,Other groups,other groups,text,\"• HIPC: Heavily Indebted Poor Countries\n• Euro Area: The euro area consists of those Member States of the European Union that have adopted the euro as their currency.\"\nSystemOfNationalAccounts,System Of National Accounts,System Of National Accounts,text,\nAlternativeConversionFactor,Alternative Conversion Factor,Alternative conversion factor is the underlying annual exchange rate used for the World Bank Atlas method,text,\nPppSurveyYear,purchasing power parity survey year,purchasing power parity survey year,text,\nBalanceOfPaymentsManualInUse,Balance Of Payments Manual In Use,Balance Of Payments Manual In Use,text,\nExternalDebtReportingStatus,External Debt Reporting Status,External Debt Reporting Status,text,\"• Actual\n• Preliminary\n• Estimate\ncommonsense reasoning:\nIf ExternalDebtReportingStatus='Actual', it means this external debt reporting is real and actual, and finished\nif 'Estimate', it means external debt reporting is finished by estimation.\nif 'preliminary', it means this external debt reporting is not finished\"\nSystemOfTrade,System Of Trade,System Of Trade,text,\nGovernmentAccountingConcept,Government Accounting Concept,Government Accounting Concept,text,\nImfDataDisseminationStandard,International Monetory Fund Data Dissemination Standard,IMF Standards for Data Dissemination,text,\nLatestPopulationCensus,Latest Population Census,Latest Population Census,text,\nLatestHouseholdSurvey,Latest Household Survey,,text,\nSourceOfMostRecentIncomeAndExpenditureData,Source Of Most Recent Income And Expenditure Data,Source Of Most Recent Income And Expenditure Data,text,\nVitalRegistrationComplete,Vital Registration Complete,Vital Registration Complete,text,\nLatestAgriculturalCensus,Latest Agricultural Census,Latest Agricultural Census,text,\nLatestIndustrialData,Latest Industrial Data,Latest Industrial Data,integer,\nLatestTradeData,Latest Trade Data,Latest Trade Data,integer,\nLatestWaterWithdrawalData,Latest Water Withdrawal Data,Latest Water Withdrawal Data,integer,",
"table": "Country"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountrycode,Country code,code identifying unique countries,text,\nSeriescode,Series code,Series code of countries,text,\nDescription,,description,text,",
"table": "CountryNotes"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountryName,Country code,code identifying unique countries,text,\nCountryCode,Series code,Series code of countries,text,\nIndicatorName,Indicator Name,indicator name,text,\nIndicatorCode,Indicator Code,indicator code,text,\nYear,,year,integer,\nValue,,value,integer,",
"table": "Indicators"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSeriesCode,Series Code,unique code identifying series,text,\nTopic,,topic of series,text,\nIndicatorName,Indicator Name,Indicator Name,text,\nShortDefinition,Short Definition,Short Definition of series,text,\nLongDefinition,Long Definition,Long Definition of series ,text,\nUnitOfMeasure,Unit Of Measure,Unit Of Measure,text,\nPeriodicity,Periodicity,Periodicity,text,\nBasePeriod,Base Period,\"a period of business or economic activity used as a basis or reference point especially for indexing, calculating, estimating, or adjudicating prices, taxes, compensation, income, and production\",text,\nOtherNotes,Other Notes,Other Notes,integer,\nAggregationMethod,Aggregation Method,Aggregation Method,text,\nLimitationsAndExceptions,Limitations And Exceptions,Limitations And Exceptions,text,\nNotesFromOriginalSource,Notes From Original Source,Notes From Original Source,text,\nGeneralComments,General Comments,General Comments,text,\nSource,Source,source of this data,text,\nStatisticalConceptAndMethodology,Statistical Concept And Methodology,Statistical Concept And Methodology,text,\nDevelopmentRelevance,Development Relevance,Development Relevance,text,\nRelatedSourceLinks,Related Source Links,Related Source Links,text,\nOtherWebLinks,Other Web Links,Other Web Links,integer,\nRelatedIndicators,Related Indicators,Related Indicators,integer,\nLicenseType,License Type,License Type,text,",
"table": "Series"
}
] |
books | [
{
"create_sql": "CREATE TABLE address_status\n(\n status_id INTEGER\n primary key,\n address_status TEXT\n);",
"table": "address_status"
},
{
"create_sql": "CREATE TABLE author\n(\n author_id INTEGER\n primary key,\n author_name TEXT\n);",
"table": "author"
},
{
"create_sql": "CREATE TABLE book_language\n(\n language_id INTEGER\n primary key,\n language_code TEXT,\n language_name TEXT\n);",
"table": "book_language"
},
{
"create_sql": "CREATE TABLE country\n(\n country_id INTEGER\n primary key,\n country_name TEXT\n);",
"table": "country"
},
{
"create_sql": "CREATE TABLE address\n(\n address_id INTEGER\n primary key,\n street_number TEXT,\n street_name TEXT,\n city TEXT,\n country_id INTEGER,\n foreign key (country_id) references country(country_id)\n);",
"table": "address"
},
{
"create_sql": "CREATE TABLE customer\n(\n customer_id INTEGER\n primary key,\n first_name TEXT,\n last_name TEXT,\n email TEXT\n);",
"table": "customer"
},
{
"create_sql": "CREATE TABLE customer_address\n(\n customer_id INTEGER,\n address_id INTEGER,\n status_id INTEGER,\n primary key (customer_id, address_id),\n foreign key (address_id) references address(address_id),\n foreign key (customer_id) references customer(customer_id)\n);",
"table": "customer_address"
},
{
"create_sql": "CREATE TABLE order_status\n(\n status_id INTEGER\n primary key,\n status_value TEXT\n);",
"table": "order_status"
},
{
"create_sql": "CREATE TABLE publisher\n(\n publisher_id INTEGER\n primary key,\n publisher_name TEXT\n);",
"table": "publisher"
},
{
"create_sql": "CREATE TABLE book\n(\n book_id INTEGER\n primary key,\n title TEXT,\n isbn13 TEXT,\n language_id INTEGER,\n num_pages INTEGER,\n publication_date DATE,\n publisher_id INTEGER,\n foreign key (language_id) references book_language(language_id),\n foreign key (publisher_id) references publisher(publisher_id)\n);",
"table": "book"
},
{
"create_sql": "CREATE TABLE book_author\n(\n book_id INTEGER,\n author_id INTEGER,\n primary key (book_id, author_id),\n foreign key (author_id) references author(author_id),\n foreign key (book_id) references book(book_id)\n);",
"table": "book_author"
},
{
"create_sql": "CREATE TABLE shipping_method\n(\n method_id INTEGER\n primary key,\n method_name TEXT,\n cost REAL\n);",
"table": "shipping_method"
},
{
"create_sql": "CREATE TABLE \"cust_order\"\n(\n order_id INTEGER\n primary key autoincrement,\n order_date DATETIME,\n customer_id INTEGER\n references customer,\n shipping_method_id INTEGER\n references shipping_method,\n dest_address_id INTEGER\n references address\n);",
"table": "cust_order"
},
{
"create_sql": "CREATE TABLE \"order_history\"\n(\n history_id INTEGER\n primary key autoincrement,\n order_id INTEGER\n references cust_order,\n status_id INTEGER\n references order_status,\n status_date DATETIME\n);",
"table": "order_history"
},
{
"create_sql": "CREATE TABLE \"order_line\"\n(\n line_id INTEGER\n primary key autoincrement,\n order_id INTEGER\n references cust_order,\n book_id INTEGER\n references book,\n price REAL\n);",
"table": "order_line"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncustomer_id,customer id,the unique identifier of the customer,integer,\nfirst_name,first name,the first name of the customer,text,\nlast_name,last name,the last name of the customer,text,\"commonsense evidence:\nA person's full name is the first name, middle name (if applicable), and last name. \"\nemail,,the email of the customer,text,",
"table": "customer"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbook_id,book id ,the unique identifier of the book,integer,\ntitle,,the title of the book ,text,\nisbn13,,the International Standard Book Number of the book,text,\"commonsense evidence:\nAn ISBN is a unique 13-digit number assigned to each book to identify it internationally. The ISBN13 of a book is the specific version of the ISBN that uses 13 digits. It is typically displayed on the back cover of a book, along with the barcode and other information.\"\nlanguage_id,language id,\"the id of the book language\nMaps to book_language (language_id)\",integer,\nnum_pages,number pages,the number of the pages,integer,\npublication_date,publication date,the publication date of the book,date,\"commonsense evidence:\nThe publication date of a book can provide information about when the book was released to the public. This can be useful for understanding the context in which the book was written, as well as for determining how current or outdated the information in the book might be. Additionally, the publication date can provide insight into the age of the book and its potential value as a collectible.\"\npublisher_id,,\"the id of the publisher\nMaps to publisher (publisher_id)\",integer,",
"table": "book"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nauthor_id,author id,the unique identifier of the author,integer,\nauthor_name,author name,the name of the author,text,",
"table": "author"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npublisher_id,publisher id,the unique identifier of the publisher,integer,\npublisher_name,publisher name,the name of the publisher,text,",
"table": "publisher"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nhistory_id,history id,the unique identifier of the order history,integer ,\norder_id,order_id,\"the id of the order\nMaps to cust_order(order_id)\",integer,\nstatus_id,status id ,\"the id of the order\nMaps to order_status(status_id)\",integer,\"commonsense evidence:\nThe order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned.\"\nstatus_date,status date,the date of the status updated ,datetime,",
"table": "order_history"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstatus_id,status id ,the unique identifier of the order status,integer,\nstatus_value,status value,the status value,text,\"commonsense evidence:\nThe order statuses include order received, pending delivery, delivery in progress, delivered, canceled, and returned. \"",
"table": "order_status"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\naddress_id,address id ,the unique identifier of the address,integer,\nstreet_number,street number,the street number of the address,text,\"commonsense evidence:\nThe street number is typically used to identify a specific building or residence on a street, with higher numbers generally indicating a location further down the street from the starting point. For example, if a street starts at number 1 and goes up to number 100, a building with the number 50 would be closer to the starting point than a building with the number 75.\"\nstreet_name,street name,the street name,text,\ncity,,the city where the address belongs,text,\ncountry_id,country id,the id of the country where the address belongs ,integer,\"commonsense evidence:\nMaps to the country (country id). The full address of the customer is 'No.street_number street_name, city, country'\"",
"table": "address"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbook_id,book id,\"the id of the book\nMaps to book(book_id)\",integer,\nauthor_id,author id,\"the id of the author\nMaps to author(author_id)\",integer,\"commonsense evidence:\nBooks with the same author id are written by the same author. \"",
"table": "book_author"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstatus_id,status id,the unique identifier of the status,integer,\naddress_status,address status,the status of the address,text,\"commonsense evidence:\n\tactive: the address is still in use\n\tinactive: the address is not in use anymore\"",
"table": "address_status"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nlanguage_id,language id ,the unique identifier of the language ,integer,\nlanguage_code,language code,the language code,text,\"commonsense evidence:\nA language code is a unique identifier for a specific language. It is typically used to identify a language in computing and other technical contexts. Some common language codes include \"\"en\"\" for English, \"\"fr\"\" for French, and \"\"es\"\" for Spanish. The specific codes used for each language can vary depending on the context and the system in which they are being used.\"\nlanguage_name,language name,the language name,text,",
"table": "book_language"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nline_id,line id,the unique identifier of the order line,integer ,\norder_id,order id ,\"the id of the order\nMaps to cust_order(order_id)\",integer,\nbook_id,book id,\"the id of the book\nMaps to book(book_id)\",integer,\nprice,,the price of the order,real,\"commonsense evidence:\nEven though the customer ordered the book with the same book id, the price could be different. The price of the order may be influenced by the shipping method, seasonal discount, and the number of books the customer ordered. \"",
"table": "order_line"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\norder_id,order id,the unique identifier of the customer order,integer ,\norder_date,order date,the date of the order,datetime,\ncustomer_id,customer id ,\"the id of the customer\nMaps to customer(customer_Id)\",integer,\"commonsense evidence:\nThe number of orders ordered by the customer = the show-up times of the relative customer id in the table\"\nshipping_method_id,shipping method id,\"the id of the shipping method\nMaps to shipping_method(method_id)\",integer,\ndest_address_id,destination address id ,\"the id of the destination address\nMaps to address(address_id)\",integer,",
"table": "cust_order"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncustomer_id,customer id,\"the id of the customer\nMaps to customer(customer_id)\",integer,\naddress_id,address id,\"the id of the address\nMaps to address(address_id)\",integer,\nstatus_id,status id ,the id of the address status,integer,\"commonsense evidence:\nA customer may have several addresses. If a customer has several addresses, the address that the status_id = 1 is the customer's current address that is in use. The other addresses with 2 as status_id is abandoned addresses. \"",
"table": "customer_address"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncountry_id,country id,the unique identifier of the country,integer,\ncountry_name,country name,the country name,text,",
"table": "country"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmethod_id,method id,the unique identifier of the method,integer,\nmethod_name,method name,the method name,text,\ncost,,the cost of the shipping method,real,\"commonsense evidence:\nThe main difference between the various shipping methods, such as standard, priority, express, and international, is the speed at which the item is delivered. Standard shipping is the slowest and least expensive option, while express and priority shipping are faster and more expensive. International shipping is for items that are being shipped to a destination outside of the country where they originated.\"",
"table": "shipping_method"
}
] |
simpson_episodes | [
{
"create_sql": "CREATE TABLE \"Episode\"\n(\n episode_id TEXT\n constraint Episode_pk\n primary key,\n season INTEGER,\n episode INTEGER,\n number_in_series INTEGER,\n title TEXT,\n summary TEXT,\n air_date TEXT,\n episode_image TEXT,\n rating REAL,\n votes INTEGER\n);",
"table": "Episode"
},
{
"create_sql": "CREATE TABLE Person\n(\n name TEXT\n constraint Person_pk\n primary key,\n birthdate TEXT,\n birth_name TEXT,\n birth_place TEXT,\n birth_region TEXT,\n birth_country TEXT,\n height_meters REAL,\n nickname TEXT\n);",
"table": "Person"
},
{
"create_sql": "CREATE TABLE Award\n(\n award_id INTEGER\n primary key,\n organization TEXT,\n year INTEGER,\n award_category TEXT,\n award TEXT,\n person TEXT,\n role TEXT,\n episode_id TEXT,\n season TEXT,\n song TEXT,\n result TEXT,\n foreign key (person) references Person(name),\n foreign key (episode_id) references Episode(episode_id)\n);",
"table": "Award"
},
{
"create_sql": "CREATE TABLE Character_Award\n(\n award_id INTEGER,\n character TEXT,\n foreign key (award_id) references Award(award_id)\n);",
"table": "Character_Award"
},
{
"create_sql": "CREATE TABLE Credit\n(\n episode_id TEXT,\n category TEXT,\n person TEXT,\n role TEXT,\n credited TEXT,\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person) references Person(name)\n);",
"table": "Credit"
},
{
"create_sql": "CREATE TABLE Keyword\n(\n episode_id TEXT,\n keyword TEXT,\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);",
"table": "Keyword"
},
{
"create_sql": "CREATE TABLE Vote\n(\n episode_id TEXT,\n stars INTEGER,\n votes INTEGER,\n percent REAL,\n foreign key (episode_id) references Episode(episode_id)\n);",
"table": "Vote"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\naward_id,award id,A unique identifier for the award,integer,\ncharacter,,the name of the awarded character,text,",
"table": "Character_Award"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,the name of the crew,text,\nbirthdate,birth date,the birth date of the crew,text,YYYY-MM-DD\nbirth_name,birth name,the birth name of the crew,text,\nbirth_place,birth place,the birth place of the crew,text,\nbirth_region,birth region,the birth region of the crew,text,\nbirth_country,birth country,the birth country of the crew,text,\nheight_meters,height meters,the height of the crew,real,the unit is meter\nnickname,,the nickname of the crew,text,",
"table": "Person"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nepisode_id,episode id,A unique identifier for episodes,text,\nstars,,the star score of the episode,integer,\"1-10\ncommonsense evidence:\nStar classification is a type of rating scale. The lowest star is 1 which means the worst, and the highest star is 10 which means the best. \"\nvotes,,the number of votes of the star score,integer,\npercent,,the percent of the vote number of the star score,real,\"commonsense evidence:\npercent = the number of votes for the star / the total amount of votes for all stars \"",
"table": "Vote"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nepisode_id,episode id,A unique identifier for episodes,text,\nkeyword,,the keywords of episode,text,",
"table": "Keyword"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nepisode_id,episode id,A unique identifier for episodes,text,\ncategory,,the category of the credit,text,\nperson,,the name of cast and crew members,text,\nrole,,the role of the person,text,\ncredited ,,whether the person is credited ,text,\"true/ false\ncommonsense evidence:\n true: The person is included in the credit list\n false: The person isn't included in the credit list\"",
"table": "Credit"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nepisode_id,episode id,A unique identifier for episodes,text,\nseason,,the season of the episode,integer,\nepisode,,the episode number of the episode,integer,\nnumber_in_series,number in series,the number in series,integer,\ntitle,,the title of the episode,text,\nsummary,,the summary of the episode,text,\nair_date,air date,the air date of the episode,text,YYYY-MM-DD\nepisode_image,episode image,the image of episode,text,\nrating,,the rating of episode,real,\"0.0 - 10.0\ncommonsense evidence:\nHigher ratings mean higher quality and better response.\n excellent: 7.0 < rating <= 10.0\n average: 5.0 < rating <= 7.0 \n bad: 0.0 < rating <= 5.0\nnot bad: average, excellent\"\nvotes,,the votes of episode,integer,\"commonsense evidence:\nHigher votes mean more audience supports (or popular).\"",
"table": "Episode"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\naward_id,award id,the unique id for the award,integer,\norganization,,the organization that holds the award,text,\nyear,,year of award,integer,\naward_category,,the category of the award,text,\naward,,the name of the award,text,\nperson,,the person who gets the award,text,\nrole,,the role of the honoree,text,\nepisode_id,episode id,S stands for 'Season' and E stands for 'Episode',text,\nseason,,the season of the awarded work,text,\nsong,,the theme song of the awarded work,text,\nresult,,the final award result,text,\"commonsense evidence:\n Nominee: the prospective recipient of the award. The nominee are people who were nominated but didn't win the award. \n Winner: the people who finally won the award\"",
"table": "Award"
}
] |
retail_complains | [
{
"create_sql": "CREATE TABLE state\n(\n StateCode TEXT\n constraint state_pk\n primary key,\n State TEXT,\n Region TEXT\n);",
"table": "state"
},
{
"create_sql": "CREATE TABLE callcenterlogs\n(\n \"Date received\" DATE,\n \"Complaint ID\" TEXT,\n \"rand client\" TEXT,\n phonefinal TEXT,\n \"vru+line\" TEXT,\n call_id INTEGER,\n priority INTEGER,\n type TEXT,\n outcome TEXT,\n server TEXT,\n ser_start TEXT,\n ser_exit TEXT,\n ser_time TEXT,\n primary key (\"Complaint ID\"),\n foreign key (\"rand client\") references client(client_id)\n);",
"table": "callcenterlogs"
},
{
"create_sql": "CREATE TABLE client\n(\n client_id TEXT\n primary key,\n sex TEXT,\n day INTEGER,\n month INTEGER,\n year INTEGER,\n age INTEGER,\n social TEXT,\n first TEXT,\n middle TEXT,\n last TEXT,\n phone TEXT,\n email TEXT,\n address_1 TEXT,\n address_2 TEXT,\n city TEXT,\n state TEXT,\n zipcode INTEGER,\n district_id INTEGER,\n foreign key (district_id) references district(district_id)\n);",
"table": "client"
},
{
"create_sql": "CREATE TABLE district\n(\n district_id INTEGER\n primary key,\n city TEXT,\n state_abbrev TEXT,\n division TEXT,\n foreign key (state_abbrev) references state(StateCode)\n);",
"table": "district"
},
{
"create_sql": "CREATE TABLE events\n(\n \"Date received\" DATE,\n Product TEXT,\n \"Sub-product\" TEXT,\n Issue TEXT,\n \"Sub-issue\" TEXT,\n \"Consumer complaint narrative\" TEXT,\n Tags TEXT,\n \"Consumer consent provided?\" TEXT,\n \"Submitted via\" TEXT,\n \"Date sent to company\" TEXT,\n \"Company response to consumer\" TEXT,\n \"Timely response?\" TEXT,\n \"Consumer disputed?\" TEXT,\n \"Complaint ID\" TEXT,\n Client_ID TEXT,\n primary key (\"Complaint ID\", Client_ID),\n foreign key (\"Complaint ID\") references callcenterlogs(\"Complaint ID\"),\n foreign key (Client_ID) references client(client_id)\n);",
"table": "events"
},
{
"create_sql": "CREATE TABLE reviews\n(\n \"Date\" DATE\n primary key,\n Stars INTEGER,\n Reviews TEXT,\n Product TEXT,\n district_id INTEGER,\n foreign key (district_id) references district(district_id)\n);",
"table": "reviews"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDate,,,date,\nStars,,,integer,\nReviews,,,text,\nProduct,,,text,\ndistrict_id,,,integer,",
"table": "reviews"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDate received,,complaint date,date,\nComplaint ID,,unique id number representing each complaint,text,\nrand client,,client id,text,\nphonefinal,phone final,final phone number,text,\nvru+line,voice response unit line,voice response unit line,text,\ncall_id,call id,id number identifying the call,integer,\npriority,,priority of the complaint,integer,\"0, 1, 2, \nnull: not available,\nhigher: -> higher priority,\n-> more serious/urgent complaint\"\ntype,,type of complaint,text,\noutcome,,the outcome of processing of complaints,text,\nserver,,server,text,\nser_start,server start,server start time,text,HH:MM:SS\nser_exit,server exit,server exit time,text,\nser_time,server time,server time,text,\"commonsense evidence:\nlonger server time referring to more verbose/longer complaint\"",
"table": "callcenterlogs"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndistrict_id,district id,unique id number representing district,integer,\ncity,,city ,text,\nstate_abbrev,,state abbreviated code,text,\ndivision,,division,text,",
"table": "district"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nclient_id,client id,unique id client number,text,\nsex,,sex of client,text,\nday,,day of the birthday,integer,\nmonth,,month of the birthday,integer,\nyear,,year when is born,integer,\nage,,age ,integer,\"teenager: 13-19\nadult: 19-65\nelder: > 65\"\nsocial,,social number,text,ssn: us id number for each person\nfirst,,first name,text,\nmiddle,,middle name,text,\nlast,,last name,text,\nphone,,phone number,text,\nemail,,email,text,\"commonsense evidence:\ngoogle email / account: @gamil.com\nmicrosoft email / account: [email protected]\"\naddress_1,,address 1,text,\naddress_2,,address 2,text,\"entire address = (address_1, address_2)\"\ncity,,city ,text,\nstate,,state code,text,\nzipcode,,zipcode,integer,\ndistrict_id,district id,district id number,integer,",
"table": "client"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDate received,,Date received,date,\nProduct,,complaining about which product ,text,\nSub-product,,sub product if exists,text,\"commonsense evidence:\ndetailed product\"\nIssue,,problems leading to this complaints,text,\nSub-issue,,sub problems leading to this complaints if exists,text,\"commonsense evidence:\nmore detailed issue\"\nConsumer complaint narrative,,Consumer complaint narrative,text,\nTags,,tags of client,text,\nConsumer consent provided?,Tags Consumer consent provided?,whether the tags labeled under permission of the clients,text,\"commonsense evidence:\n null, 'N/A' or empty value: indicating that the company didn't get the permission of consent.\n if the value is not empty: customers provide the consent for this tag.\"\nSubmitted via,,Submitted via,text,\nDate sent to company,,Date sent to company,text,\"commonsense evidence:\ndelay of the complaints = 'Date sent to company'\"\nCompany response to consumer,,Company response to consumer,text,\nTimely response?,,whether the response of the company is timely,text,\nConsumer disputed?,,whether the consumer dispute about the response from the company.,text,\nComplaint ID,,id number indicating which complaint,text,\nClient_ID,Client ID,id number indicating which client,text,",
"table": "events"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nStateCode,,,text,\nState,,,text,\nRegion,,,text,",
"table": "state"
}
] |
professional_basketball | [
{
"create_sql": "CREATE TABLE awards_players\n(\n playerID TEXT not null,\n award TEXT not null,\n year INTEGER not null,\n lgID TEXT null,\n note TEXT null,\n pos TEXT null,\n primary key (playerID, year, award),\n foreign key (playerID) references players (playerID)\n on update cascade on delete cascade\n);",
"table": "awards_players"
},
{
"create_sql": "CREATE TABLE coaches\n(\n coachID TEXT not null,\n year INTEGER not null,\n tmID TEXT not null,\n lgID TEXT null,\n stint INTEGER not null,\n won INTEGER null,\n lost INTEGER null,\n post_wins INTEGER null,\n post_losses INTEGER null,\n primary key (coachID, year, tmID, stint),\n foreign key (tmID, year) references teams (tmID, year)\n on update cascade on delete cascade\n);",
"table": "coaches"
},
{
"create_sql": "CREATE TABLE draft\n(\n id INTEGER default 0 not null\n primary key,\n draftYear INTEGER null,\n draftRound INTEGER null,\n draftSelection INTEGER null,\n draftOverall INTEGER null,\n tmID TEXT null,\n firstName TEXT null,\n lastName TEXT null,\n suffixName TEXT null,\n playerID TEXT null,\n draftFrom TEXT null,\n lgID TEXT null,\n foreign key (tmID, draftYear) references teams (tmID, year)\n on update cascade on delete cascade\n);",
"table": "draft"
},
{
"create_sql": "CREATE TABLE player_allstar\n(\n playerID TEXT not null,\n last_name TEXT null,\n first_name TEXT null,\n season_id INTEGER not null,\n conference TEXT null,\n league_id TEXT null,\n games_played INTEGER null,\n minutes INTEGER null,\n points INTEGER null,\n o_rebounds INTEGER null,\n d_rebounds INTEGER null,\n rebounds INTEGER null,\n assists INTEGER null,\n steals INTEGER null,\n blocks INTEGER null,\n turnovers INTEGER null,\n personal_fouls INTEGER null,\n fg_attempted INTEGER null,\n fg_made INTEGER null,\n ft_attempted INTEGER null,\n ft_made INTEGER null,\n three_attempted INTEGER null,\n three_made INTEGER null,\n primary key (playerID, season_id),\n foreign key (playerID) references players (playerID)\n on update cascade on delete cascade\n);",
"table": "player_allstar"
},
{
"create_sql": "CREATE TABLE players\n(\n playerID TEXT not null\n primary key,\n useFirst TEXT null,\n firstName TEXT null,\n middleName TEXT null,\n lastName TEXT null,\n nameGiven TEXT null,\n fullGivenName TEXT null,\n nameSuffix TEXT null,\n nameNick TEXT null,\n pos TEXT null,\n firstseason INTEGER null,\n lastseason INTEGER null,\n height REAL null,\n weight INTEGER null,\n college TEXT null,\n collegeOther TEXT null,\n birthDate DATE null,\n birthCity TEXT null,\n birthState TEXT null,\n birthCountry TEXT null,\n highSchool TEXT null,\n hsCity TEXT null,\n hsState TEXT null,\n hsCountry TEXT null,\n deathDate DATE null,\n race TEXT null\n);",
"table": "players"
},
{
"create_sql": "CREATE TABLE teams\n(\n year INTEGER not null,\n lgID TEXT null,\n tmID TEXT not null,\n franchID TEXT null,\n confID TEXT null,\n divID TEXT null,\n `rank` INTEGER null,\n confRank INTEGER null,\n playoff TEXT null,\n name TEXT null,\n o_fgm INTEGER null,\n-- o_fga int null,\n o_ftm INTEGER null,\n-- o_fta int null,\n-- o_3pm int null,\n-- o_3pa int null,\n-- o_oreb int null,\n-- o_dreb int null,\n-- o_reb int null,\n-- o_asts int null,\n-- o_pf int null,\n-- o_stl int null,\n-- o_to int null,\n-- o_blk int null,\n o_pts INTEGER null,\n-- d_fgm int null,\n-- d_fga int null,\n-- d_ftm int null,\n-- d_fta int null,\n-- d_3pm int null,\n-- d_3pa int null,\n-- d_oreb int null,\n-- d_dreb int null,\n-- d_reb int null,\n-- d_asts int null,\n-- d_pf int null,\n-- d_stl int null,\n-- d_to int null,\n-- d_blk int null,\n d_pts INTEGER null,\n-- o_tmRebound int null,\n-- d_tmRebound int null,\n homeWon INTEGER null,\n homeLost INTEGER null,\n awayWon INTEGER null,\n awayLost INTEGER null,\n-- neutWon int null,\n-- neutLoss int null,\n-- confWon int null,\n-- confLoss int null,\n-- divWon int null,\n-- divLoss int null,\n-- pace int null,\n won INTEGER null,\n lost INTEGER null,\n games INTEGER null,\n-- min int null,\n arena TEXT null,\n-- attendance int null,\n-- bbtmID varchar(255) null,\n primary key (year, tmID)\n);",
"table": "teams"
},
{
"create_sql": "CREATE TABLE \"awards_coaches\"\n(\n id INTEGER\n primary key autoincrement,\n year INTEGER,\n coachID TEXT,\n award TEXT,\n lgID TEXT,\n note TEXT,\n foreign key (coachID, year) references coaches (coachID, year)\n on update cascade on delete cascade\n);",
"table": "awards_coaches"
},
{
"create_sql": "CREATE TABLE \"players_teams\"\n(\n id INTEGER\n primary key autoincrement,\n playerID TEXT not null\n references players\n on update cascade on delete cascade,\n year INTEGER,\n stint INTEGER,\n tmID TEXT,\n lgID TEXT,\n GP INTEGER,\n GS INTEGER,\n minutes INTEGER,\n points INTEGER,\n oRebounds INTEGER,\n dRebounds INTEGER,\n rebounds INTEGER,\n assists INTEGER,\n steals INTEGER,\n blocks INTEGER,\n turnovers INTEGER,\n PF INTEGER,\n fgAttempted INTEGER,\n fgMade INTEGER,\n ftAttempted INTEGER,\n ftMade INTEGER,\n threeAttempted INTEGER,\n threeMade INTEGER,\n PostGP INTEGER,\n PostGS INTEGER,\n PostMinutes INTEGER,\n PostPoints INTEGER,\n PostoRebounds INTEGER,\n PostdRebounds INTEGER,\n PostRebounds INTEGER,\n PostAssists INTEGER,\n PostSteals INTEGER,\n PostBlocks INTEGER,\n PostTurnovers INTEGER,\n PostPF INTEGER,\n PostfgAttempted INTEGER,\n PostfgMade INTEGER,\n PostftAttempted INTEGER,\n PostftMade INTEGER,\n PostthreeAttempted INTEGER,\n PostthreeMade INTEGER,\n note TEXT,\n foreign key (tmID, year) references teams (tmID, year)\n on update cascade on delete cascade\n);",
"table": "players_teams"
},
{
"create_sql": "CREATE TABLE \"series_post\"\n(\n id INTEGER\n primary key autoincrement,\n year INTEGER,\n round TEXT,\n series TEXT,\n tmIDWinner TEXT,\n lgIDWinner TEXT,\n tmIDLoser TEXT,\n lgIDLoser TEXT,\n W INTEGER,\n L INTEGER,\n foreign key (tmIDWinner, year) references teams (tmID, year)\n on update cascade on delete cascade,\n foreign key (tmIDLoser, year) references teams (tmID, year)\n on update cascade on delete cascade\n);",
"table": "series_post"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique number to determine one row of the data,integer,\ndraftYear,,which year does this draft happens,integer,\ndraftRound,,the Round number of this draft,integer,\"If the value is 0, it means that there is no draft in this year\n\n1 refers that this player was picked in the first round\"\ndraftSelection,league ID,the position that the player was picked,integer,\"0:This signifies that it doesn't contain the draft information of this player\n\n7:this player was selected in the 7th position in this round\n\ncommonsense evidence:\n\ndraftRound: 1; \ndraftSelection: 7 \nrepresents: this player was selected in the round 1, 7th position.\"\ndraftOverall,draft overall rank,The player's overall draft position for the year,integer,this is the overall draft rank of the player.\ntmID,team ID,team name,text,abbreviated name\nfirstName,,the first name of the player,text,\nlastName,,the last name of the player,text,\nsuffixName,,the suffix name of the player,text,\nplayerID,,ID number identifying the unique number of the player,text,\ndraftFrom,,the university that the drafted players come from,text,the name of the university\nlgID,league ID,the league name,text,\"mainly categories: \"\"NBA\"\" & \"\"ABA\"\"\"",
"table": "draft"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,,ID number identifying the unique number of the player,text,\nfirst_name,,the first name of the player,text,\nlast_name,,the last name of the player,text,\nseason_id,,the id number of the season,integer,\nconference,,which conference that players belong to,text,two categories: west; east\nleague_id,league ID,the league name,text,two categories: NBA; ABA\ngames_played,,how many all star games that this player played in this season,integer,mostly it's 1\nminutes,,minutes of attendance,integer,18:played in 18 minutes\npoints,,points,integer,\"19: get 19 points;\n\nnull --> doesn't get points\"\no_rebounds,offense rebounds,offense rebounds,integer,\"empty or null refers to none offense rebounds,\n\n1: one offense rebound\"\nd_rebounds,defense rebounds,defense rebounds,integer,\"empty or null refers to none defense rebounds,\n\n1: one defense rebound\"\nrebounds,,total rebounds,integer,\"empty or null refers to none total rebounds,\n\n3: totally gets 3 rebounds including offence and defense rebounds\n\ncommensense evidence:\n\ntotal rebounds = offense rebounds + defense rebounds\"\nassists,assistants,assistants,integer,\"null or empty refers to none\n\n2: 2 assistants\"\nsteals,,steals,integer,\"null or empty refers to none\n\n2: 2 steals\"\nblocks,,blocks,integer,\"null or empty refers to none\n\n2: 2 blocks\"\nturnovers,,turnovers,integer,\"null or empty refers to none\n\n2: 2 turnovers\"\npersonal_fouls,,personal fouls,integer,\"null or empty refers to none\n\n2: 2 personal fouls\"\nfg_attempted,field goal attempted,field goal attempted,integer,\"null or empty refers to none\n\n2: 2 field goal attempts\"\nfg_made,field goal made,field goal made,integer,\"null or empty refers to none\n\n2: 2 field goal made\"\nft_attempted,free throw attempted,free throw attempted,integer,\"null or empty refers to none\n\n2: 2 free throw attempts\"\nft_made,free throw made,free throw made,integer,\"null or empty refers to none\n\n2: 2 free throw made\"\nthree_attempted,three point attempted,three point attempted,integer,\"null or empty refers to none\n\n2: 2 three point attempts\"\nthree_made,three point made,three point made ,integer,\"null or empty refers to none\n\n2: 2 three point made\"",
"table": "player_allstar"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,,ID number identifying the unique number of the player,text,\nuseFirst,use first name,,text,not useful\nfirstName,,the first name of the player,text,\nmiddleName,,the middle name of the player,text,\nlastName,,the last name of the player,text,\nnameGiven,,,text,not useful\nfullGivenName,,,text,not useful\nnameSuffix,,the suffix name of the player,text,\nnameNick,nick name,,text,\npos,position,the position of the player,text,\"C: Center\n\nF: Forward\n\nG: Guard \n\ncommonsense evidence:\nsome player can have two positions simultaneously\"\nfirstseason,,,integer,nothing special\nlastseason,,,integer,nothing special\nheight,,inch,real,inch\nweight,,lb,integer,null or empty means it doesn't have this information\ncollege,,college,text,\"null or empty means it doesn't have this information\n\nwhich colledge does this player graduate from\"\ncollegeOther,,the college that transferred from ,text,\"commonsense evidence:\n\nsome players may have the record of transferring from other colleges\"\nbirthDate,,birthdate,date,\nbirthCity,,birthcity,text,null / empty refers to not recorded\nbirthState,,birth state,text,\nbirthCountry,,birth country,text,\nhighSchool,,high school,text,null / empty refers to not recorded\nhsCity,high school city,high school city,text,null / empty refers to not recorded\nhsState,high school state,high school state,text,null / empty refers to not recorded\nhsCountry,high school country,high school country,text,null / empty refers to not recorded\ndeathDate,,deathdate,date,\"0000-00-00 means this player is still alive\n\nwithin clear date:\n2011-11-10, which means this guy was died on \"\"2011-11-10\"\"\"\nrace,,,text,\"B:black,\nW: white\n\nnull or empty: nothing\"",
"table": "players"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year,integer,\nlgID,league ID,league name,text,\"main categories:\nNBA, ABA\"\ntmID,team ID,team id,text,abbreviated name\nfranchID,,,text,not useful\nconfID,,,text,not useful\ndivID,division ID,division ID,text,\nrank,,rank,integer,less is better\nconfRank,,,,not useful\nplayoff,,another name: post season,text,\"for brevity, if the value is not null or empty, it means this team attends the playoffs, otherwise, means not attend\"\nname,,full name of the team,text,\no_fgm,offense field goal made,how many offense field goal made by this team in this season,integer,\no_ftm,offense free throw made,how many offense free throw made by this team in this season,integer,\no_pts,offense points,offense points,integer,\nd_pts,defense points,defense points,integer,\nhomeWon,home wins,wins in the home,integer,\nhomeLost,home loses,loses in the home,integer,\nawayWon,away wins,wins in the away,integer,\nawayLost,away loses,loses in the away,integer,\nwon,,,integer,total wins of this team in this year.\nlost,,,integer,total losts of this team in this year.\ngames,,,integer,total number of games that this team played in this year (season)\narena,,arena,text,\"null or empty refers to the fact that this team doesn't have individual arenas, otherwise, it has individual arenas\"",
"table": "teams"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,id of this row of data,integer,\nyear,,which year did the coach receive the honor?,integer,\ncoachID,,id number of the coaches,text,\naward,,the award names,text,\"mainly categories: \"\"NBA\"\" & \"\"ABA\"\"\"\nlgID,league ID,the name of the league,text,\"mainly categories: \"\"NBA\"\" & \"\"ABA\"\"\"\nnote,,special notification,text,\"”null“ refers to that no special things\n”tie“ represents that coaches are tied for some awards\"",
"table": "awards_coaches"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,unique number of this record,integer,\nyear,,year,integer,\nround,,round,text,\"known abbreviations:\n\nF:final \nSF: semi-final \n\nQF:quater-final 1/4\n\nDF:division-final \n\nDSF:division semi-final\"\nseries,,,text,not useful\ntmIDWinner,team id winner,team id winner,text,\nlgIDWinner,league id winner,league id winner,text,\ntmIDLoser,team id loser,team id loser,text,\nlgIDLoser,league id loser,league id loser,text,\nW,wins,wins,integer,\nL,loses,loses,integer,",
"table": "series_post"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique number to identify this record,integer,\nplayerID,,ID number identifying the unique number of the player,text,\nyear,,year,integer,\nstint,,the period of the time player spent played for this team,integer,\ntmID,team ID,team name,text,abbreviated name\nlgID,,,,\nGP,game presentatons,game presentatons (attendance),integer,\"min: 0, max: 82\n\ncommonsense evidence:\n\nif this number is equal to 82, means full attendance\"\nGS,game starting,game starting,,\"min: 0, max: 82,\n\ncommonsense evidence:\n\nwhen GP = GS, it means that this player plays as the stating lineup fully. \"\nminutes,,minutes,integer,\npoints,,points,integer,\noRebounds,offense rebounds,offense rebounds,integer,\"empty or null refers to none offense rebounds,\n\n1: one offense rebound\"\ndRebounds,defense rebounds,defense rebounds,integer,\"empty or null refers to none defense rebounds,\n\n1: one defense rebound\"\nrebounds,,total rebounds,integer,\"empty or null refers to none total rebounds,\n\n3: totally gets 3 rebounds including offense and defense rebounds\n\ncommensense evidence:\n\ntotal rebounds = offense rebounds + defense rebounds\"\nassists,assistants,assistants,integer,\"null or empty refers to none\n\n2: 2 assistants\"\nsteals,,steals,integer,\"null or empty refers to none\n\n2: 2 steals\"\nblocks,,blocks,integer,\"null or empty refers to none\n\n2: 2 blocks\"\nturnovers,,turnovers,integer,\"null or empty refers to none\n\n2: 2 turnovers\"\nPF,personal fouls,personal fouls,integer,\"null or empty refers to none\n\n2: 2 personal fouls\"\nfgAttempted,field goal attempted,field goal attempted,integer,\"null or empty refers to none\n\n2: 2 field goal attempts\"\nfgMade,field goal made,field goal made,integer,\"null or empty refers to none\n\n2: 2 field goal made\"\nftAttempted,free throw attempted,free throw attempted,integer,\"null or empty refers to none\n\n2: 2 free throw attempts\"\nftMade,free throw made,free throw made,integer,\"null or empty refers to none\n\n2: 2 free throw made\"\nthreeAttempted,three point attempted,three point attempted,integer,\"null or empty refers to none\n\n2: 2 three point attempts\"\nthreeMade,three point made,three point made,integer,\"null or empty refers to none\n\n2: 2 three point made\"\nPostGP,post season game presentations,post season game presentations,integer,0: this player doesn't present in the post season (playoffs)\nPostGS,post season game starting,post season game starting,integer,\nPostMinutes,post season minutes,post season minutes,integer,\nPostPoints,post season points,post season points,integer,\nPostoRebounds,post season offense rebounds,post season offense rebounds,integer,\"null or empty refers to none\n\n1: 1 offense rebounds in the post season\"\nPostdRebounds,post season defense rebounds,post season defense rebounds,integer,\"null or empty refers to none\n\n1: 1 defense rebounds in the post season\"\nPostRebounds,post season defense rebounds,post season defense rebounds,integer,\"null or empty refers to none\n\n3: 3 rebounds in the post season totally\"\nPostAssists,post season assistants,,integer,\"null or empty refers to none\n\n1: 1 assistance in the post season\"\nPostSteals,post season steals,,integer,\"null or empty refers to none\n\n1: 1 offense steals in the post season\"\nPostBlocks,post season blocks,,integer,\"null or empty refers to none\n\n1: 1 block in the post season\"\nPostTurnovers,post season turnovers,,integer,\"null or empty refers to none\n\n1: 1 turnover in the post season\"\nPostPF,post season personal fouls,,integer,\"null or empty refers to none\n\n1: 2 personal fouls in the post season\"\nPostfgAttempted,post season field goal attempted,,integer,\"null or empty refers to none\n\n1: 1 field goal attempts in the post season\"\nPostfgMade,post season field goal made,,integer,\"null or empty refers to none\n\n1: 1 field goal made in the post season\"\nPostftAttempted,post season field free throw attempted,,integer,\"null or empty refers to none\n\n1: 1 free throw attempts in the post season\"\nPostftMade,post season free throw made,,integer,\"null or empty refers to none\n\n1: 1 free throw made in the post season\"\nPostthreeAttempted,post season three point attempted,,integer,\"null or empty refers to none\n\n1: 1 three point attempts in the post season\"\nPostthreeMade,post season three point made,,integer,\"null or empty refers to none\n\n1: 1 three point made in the post season\"\nnote,,,,",
"table": "players_teams"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,,ID number identifying the unique number of the player,text,\naward,,the name of the award,text,\nyear,,the time of this award,integer,\nlgID,league ID,the name of the league,text,\"mainly categories: \"\"NBA\"\" & \"\"ABA\"\"\"\nnote,,notification,text,\"”null“ refers to that no special things\n”tie“ represents that coaches are tied for some awards\"\npos,position,the position of the player,text,\"C: Center\nF: Forward\nG: Guard \"",
"table": "awards_players"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncoachID,,ID number identifying the unique number of the coach,text,\nyear,,,integer,\ntmID,team ID,team name,text,abbreviated name\nlgID,league ID,league name,text,\"mainly categories: \"\"NBA\"\" & \"\"ABA\"\"\"\nstint,,the period of the time coaching this team,integer,\nwon,,the number of won games,integer,0: no wins\nlost,,the number of lost games,integer,0: win all the games\npost_wins,post season wins,the number of games won in the post-season (playoffs) games,integer,\"0: no wins\n\ncommonsense evidence:\n\nIf the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\"\npost_losses,post season losses,the number of games lost in the post-season (playoffs) games,integer,\"0: win all the games\n\ncommonsense evidence:\n\nIf the team's post-season wins and losses are all zero, it implies that the team did not participate in the post-season (playoffs) that year.\"",
"table": "coaches"
}
] |
public_review_platform | [
{
"create_sql": "CREATE TABLE Attributes\n(\n attribute_id INTEGER\n constraint Attributes_pk\n primary key,\n attribute_name TEXT\n);",
"table": "Attributes"
},
{
"create_sql": "CREATE TABLE Categories\n(\n category_id INTEGER\n constraint Categories_pk\n primary key,\n category_name TEXT\n);",
"table": "Categories"
},
{
"create_sql": "CREATE TABLE Compliments\n(\n compliment_id INTEGER\n constraint Compliments_pk\n primary key,\n compliment_type TEXT\n);",
"table": "Compliments"
},
{
"create_sql": "CREATE TABLE Days\n(\n day_id INTEGER\n constraint Days_pk\n primary key,\n day_of_week TEXT\n);",
"table": "Days"
},
{
"create_sql": "CREATE TABLE Years\n(\n year_id INTEGER\n constraint Years_pk\n primary key,\n actual_year INTEGER\n);",
"table": "Years"
},
{
"create_sql": "CREATE TABLE \"Business_Attributes\"\n(\n attribute_id INTEGER\n constraint Business_Attributes_Attributes_attribute_id_fk\n references Attributes,\n business_id INTEGER\n constraint Business_Attributes_Business_business_id_fk\n references Business,\n attribute_value TEXT,\n constraint Business_Attributes_pk\n primary key (attribute_id, business_id)\n);",
"table": "Business_Attributes"
},
{
"create_sql": "CREATE TABLE \"Business_Categories\"\n(\n business_id INTEGER\n constraint Business_Categories_Business_business_id_fk\n references Business,\n category_id INTEGER\n constraint Business_Categories_Categories_category_id_fk\n references Categories,\n constraint Business_Categories_pk\n primary key (business_id, category_id)\n);",
"table": "Business_Categories"
},
{
"create_sql": "CREATE TABLE \"Business_Hours\"\n(\n business_id INTEGER\n constraint Business_Hours_Business_business_id_fk\n references Business,\n day_id INTEGER\n constraint Business_Hours_Days_day_id_fk\n references Days,\n opening_time TEXT,\n closing_time TEXT,\n constraint Business_Hours_pk\n primary key (business_id, day_id)\n);",
"table": "Business_Hours"
},
{
"create_sql": "CREATE TABLE \"Checkins\"\n(\n business_id INTEGER\n constraint Checkins_Business_business_id_fk\n references Business,\n day_id INTEGER\n constraint Checkins_Days_day_id_fk\n references Days,\n label_time_0 TEXT,\n label_time_1 TEXT,\n label_time_2 TEXT,\n label_time_3 TEXT,\n label_time_4 TEXT,\n label_time_5 TEXT,\n label_time_6 TEXT,\n label_time_7 TEXT,\n label_time_8 TEXT,\n label_time_9 TEXT,\n label_time_10 TEXT,\n label_time_11 TEXT,\n label_time_12 TEXT,\n label_time_13 TEXT,\n label_time_14 TEXT,\n label_time_15 TEXT,\n label_time_16 TEXT,\n label_time_17 TEXT,\n label_time_18 TEXT,\n label_time_19 TEXT,\n label_time_20 TEXT,\n label_time_21 TEXT,\n label_time_22 TEXT,\n label_time_23 TEXT,\n constraint Checkins_pk\n primary key (business_id, day_id)\n);",
"table": "Checkins"
},
{
"create_sql": "CREATE TABLE \"Elite\"\n(\n user_id INTEGER\n constraint Elite_Users_user_id_fk\n references Users,\n year_id INTEGER\n constraint Elite_Years_year_id_fk\n references Years,\n constraint Elite_pk\n primary key (user_id, year_id)\n);",
"table": "Elite"
},
{
"create_sql": "CREATE TABLE \"Reviews\"\n(\n business_id INTEGER\n constraint Reviews_Business_business_id_fk\n references Business,\n user_id INTEGER\n constraint Reviews_Users_user_id_fk\n references Users,\n review_stars INTEGER,\n review_votes_funny TEXT,\n review_votes_useful TEXT,\n review_votes_cool TEXT,\n review_length TEXT,\n constraint Reviews_pk\n primary key (business_id, user_id)\n);",
"table": "Reviews"
},
{
"create_sql": "CREATE TABLE \"Tips\"\n(\n business_id INTEGER\n constraint Tips_Business_business_id_fk\n references Business,\n user_id INTEGER\n constraint Tips_Users_user_id_fk\n references Users,\n likes INTEGER,\n tip_length TEXT,\n constraint Tips_pk\n primary key (business_id, user_id)\n);",
"table": "Tips"
},
{
"create_sql": "CREATE TABLE \"Users_Compliments\"\n(\n compliment_id INTEGER\n constraint Users_Compliments_Compliments_compliment_id_fk\n references Compliments,\n user_id INTEGER\n constraint Users_Compliments_Users_user_id_fk\n references Users,\n number_of_compliments TEXT,\n constraint Users_Compliments_pk\n primary key (compliment_id, user_id)\n);",
"table": "Users_Compliments"
},
{
"create_sql": "CREATE TABLE \"Business\"\n(\n business_id INTEGER\n constraint Business_pk\n primary key,\n active TEXT,\n city TEXT,\n state TEXT,\n stars REAL,\n review_count TEXT\n);",
"table": "Business"
},
{
"create_sql": "CREATE TABLE \"Users\"\n(\n user_id INTEGER\n constraint Users_pk\n primary key,\n user_yelping_since_year INTEGER,\n user_average_stars TEXT,\n user_votes_funny TEXT,\n user_votes_useful TEXT,\n user_votes_cool TEXT,\n user_review_count TEXT,\n user_fans TEXT\n);",
"table": "Users"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncompliment_id,compliment id,,integer,\ncompliment_type,compliment type,,text,",
"table": "Compliments"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nuser_id,user id,id number identifying the users,integer,\nyear_id,year id,id number identifying the year,integer,",
"table": "Elite"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbusiness_id,business id,the number identifying the business,integer,\nuser_id,user id,the number identifying the user who comments on this business,integer,\nreview_stars,review stars,review on this business,integer,\"5 – Great experience \n4 – Good experience \n3 – Average experience \n2 – Bad experience \n1 - Terrible experience\"\nreview_votes_funny,review votes funny,the amount of funny votes that the user received for the review,text,\"commonsense evidence: If the reviews receive an “Uber” number of votes for funny, they will also receive an “Uber”, “High” or “Medium” number of votes for “useful” and “cool”.\"\nreview_votes_useful,review votes useful,how many useful votes that the user received for the review,text,\nreview_votes_cool,review votes cool,how many cool votes that the user received for the review,text,\nreview_length,review length,The length of the review written by the user,text,",
"table": "Reviews"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nattribute_id,attribute id,unique number identifying the attribute,integer,\nattribute_name,attribute name,the name of the attribute,text,",
"table": "Attributes"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nuser_id,user id,the unique id number identifying which user,integer,\nuser_yelping_since_year,user yelping since year,the time when the user join Yelp,integer,\nuser_average_stars,user average stars,the average ratings of all review,real,\nuser_votes_funny,user votes funny,total number of funny votes sent by the user,text,\nuser_votes_useful,user votes useful,how many useful votes created by the user,text,\nuser_votes_cool,user votes cool,how many cool votes created by the user,text,\nuser_review_count,user review count,total number of reviews the user has written,text,\nuser_fans,user fans,total number of fans / followers the user has,text,\"commonsense evidence: Users with “Uber” number of fans indicate that they have sent an “Uber” number of ‘cool’, ‘useful’ and ‘funny” votes.\"",
"table": "Users"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nday_id,day id,the unique id identifying the day of the week,integer,\nday_of_week,day of week,indicate the day of the week,text,",
"table": "Days"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbusiness_id,business id, unique number identifying the business,integer,\nactive,,whether the business is still actively running until now,text,\"commonsense reasoning:\n� \"\"True\"\": the business is still running \n� \"\"False\"\": the business is closed or not running now\"\ncity,,The city where the business is located,text,\nstate,,The state where the business is located,text,\nstars,,ratings of the business,real,\"5 � Great experience \n4 � Good experience \n3 � Average experience \n2 � Bad experience \n1 - Terrible experience \ncommonsense evidence: \n� the rating of >3 stars referring to \"\"wonderful experience\"\" or positive comments and vice versa\"\nreview_count,review count,the total number of reviews the users have written for a business,text,\"commonsense evidence: \n� If a business has a low total review count and a high star rating of >3, it means there is a low veracity of reviews. \n� higher review count and with high star rating of > 3 means this business is more popular or more appealing to users.\"",
"table": "Business"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbusiness_id,business id,id number identifying the business,integer,\nday_id,day id,id number identifying each day of the week,integer,\nopening_time,opening time,opening time of the business,text,\nclosing_time,closing time,closing time of the business,text,\"commonsense evidence: \nhow much time does this business open: closing_time - opening_time\"",
"table": "Business_Hours"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear_id,year id,the unique number identifying the year,integer,\nactual_year,actual year,actual year,integer,",
"table": "Years"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncompliment_id,compliment id,the id number indicating the compliment,integer,\nuser_id,user id,the id number indicating the user,integer,\nnumber_of_compliments,number of compliments,how many compliments a user has received from other users,text,commonsense evidence: more number_of_compliments indicates this user is more welcome or he / she is high-quality user",
"table": "Users_Compliments"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbusiness_id,business id,id number identifying the business,integer,\ncategory_id,category id,id number identifying the categories,integer,",
"table": "Business_Categories"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nattribute_id,attribute id,id number identifying the attribute,integer,\nbusiness_id,business id,id number identifying the business,integer,\nattribute_value,attribute value,sort of the attributes for each business,text,\"commonsense evidence: \n“None”, “No” or “FALSE” means the business does not have the attribute.\"",
"table": "Business_Attributes"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbusiness_id,business id,the number identifying the business,integer,\nuser_id,user id,the number identifying the user who comments on this business,integer,\nlikes,Likes,how many likes of this tips,integer,commonsense evidence: more likes mean this tip is more valuable\ntip_length,tip length,length of the tip,text,",
"table": "Tips"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncategory_id,category id,,integer,\ncategory_name,category name,,text,",
"table": "Categories"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbusiness_id,business id,id number identifying the business,integer,\nday_id,day id,id number identifying each day of the week,integer,\nlabel_time_0,,indicates times of checkins on a business,text,\"label_time_0: 12:00 a.m. \nlabel_time_23: 23:00 p.m. \ncommonsense evidence: If the label_time recorded \"\"None\"\" for check-in on one day, then it means the business is closed on that day.\"\nlabel_time_1,,,,\nlabel_time_2,,,,\nlabel_time_3,,,,\nlabel_time_4,,,,\nlabel_time_5,,,,\nlabel_time_6,,,,\nlabel_time_7,,,,\nlabel_time_8,,,,\nlabel_time_9,,,,\nlabel_time_10,,,,\nlabel_time_11,,,,\nlabel_time_12,,,,\nlabel_time_13,,,,\nlabel_time_14,,,,\nlabel_time_15,,,,\nlabel_time_16,,,,\nlabel_time_17,,,,\nlabel_time_18,,,,\nlabel_time_19,,,,\nlabel_time_20,,,,\nlabel_time_21,,,,\nlabel_time_22,,,,\nlabel_time_23,,,,",
"table": "Checkins"
}
] |
synthea | [
{
"create_sql": "CREATE TABLE all_prevalences\n(\n ITEM TEXT\n primary key,\n \"POPULATION TYPE\" TEXT,\n OCCURRENCES INTEGER,\n \"POPULATION COUNT\" INTEGER,\n \"PREVALENCE RATE\" REAL,\n \"PREVALENCE PERCENTAGE\" REAL\n);",
"table": "all_prevalences"
},
{
"create_sql": "CREATE TABLE patients\n(\n patient TEXT\n primary key,\n birthdate DATE,\n deathdate DATE,\n ssn TEXT,\n drivers TEXT,\n passport TEXT,\n prefix TEXT,\n first TEXT,\n last TEXT,\n suffix TEXT,\n maiden TEXT,\n marital TEXT,\n race TEXT,\n ethnicity TEXT,\n gender TEXT,\n birthplace TEXT,\n address TEXT\n);",
"table": "patients"
},
{
"create_sql": "CREATE TABLE encounters\n(\n ID TEXT\n primary key,\n DATE DATE,\n PATIENT TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n REASONCODE INTEGER,\n REASONDESCRIPTION TEXT,\n foreign key (PATIENT) references patients(patient)\n);",
"table": "encounters"
},
{
"create_sql": "CREATE TABLE allergies\n(\n START TEXT,\n STOP TEXT,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n primary key (PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);",
"table": "allergies"
},
{
"create_sql": "CREATE TABLE careplans\n(\n ID TEXT,\n START DATE,\n STOP DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE REAL,\n DESCRIPTION TEXT,\n REASONCODE INTEGER,\n REASONDESCRIPTION TEXT,\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);",
"table": "careplans"
},
{
"create_sql": "CREATE TABLE conditions\n(\n START DATE,\n STOP DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient),\n foreign key (DESCRIPTION) references all_prevalences(ITEM)\n);",
"table": "conditions"
},
{
"create_sql": "CREATE TABLE immunizations\n(\n DATE DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n primary key (DATE, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);",
"table": "immunizations"
},
{
"create_sql": "CREATE TABLE medications\n(\n START DATE,\n STOP DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n REASONCODE INTEGER,\n REASONDESCRIPTION TEXT,\n primary key (START, PATIENT, ENCOUNTER, CODE),\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);",
"table": "medications"
},
{
"create_sql": "CREATE TABLE observations\n(\n DATE DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE TEXT,\n DESCRIPTION TEXT,\n VALUE REAL,\n UNITS TEXT,\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);",
"table": "observations"
},
{
"create_sql": "CREATE TABLE procedures\n(\n DATE DATE,\n PATIENT TEXT,\n ENCOUNTER TEXT,\n CODE INTEGER,\n DESCRIPTION TEXT,\n REASONCODE INTEGER,\n REASONDESCRIPTION TEXT,\n foreign key (ENCOUNTER) references encounters(ID),\n foreign key (PATIENT) references patients(patient)\n);",
"table": "procedures"
},
{
"create_sql": "CREATE TABLE \"claims\"\n(\n ID TEXT\n primary key,\n PATIENT TEXT\n references patients,\n BILLABLEPERIOD DATE,\n ORGANIZATION TEXT,\n ENCOUNTER TEXT\n references encounters,\n DIAGNOSIS TEXT,\n TOTAL INTEGER\n);",
"table": "claims"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nID,,the unique id of the encounter,text,\nDATE,,the date of the encounter,date,yyyy-mm-dd\nPATIENT,,the patient id,text,\nCODE,,the code of the care plan ,integer,\nDESCRIPTION,,the description of the care plan,text,\nREASONCODE,,the reason code,integer,\nREASONDESCRIPTION,reason description,the description of the reason why the patient needs the care plan,text,",
"table": "encounters"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npatient,,the unique id for the patient,text,\nbirthdate,birth date,the birth date of the patient,date,\ndeathdate,death date,the death date of the patient,date,\"commonsense evidence: \n the age of the patient = death year - birth year \n if null, it means this patient is still alive\"\nssn,social security number,the social security number of the patient,text,\ndrivers,,the driver number of the patient,text,\"commonsense evidence: if not, this patient doesn't have driving license\"\npassport,,the passport number,text,\"commonsense evidence: if not, this patient cannot go abroad, vice versa\"\nprefix,,the prefix,text,\nfirst,,the first name,text,\nlast,,the last name,text,commonsense evidence: full name = first + last\nsuffix,,the suffix of the patient,text,\"commonsense evidence: if suffix = PhD, JD, MD, it means this patient has doctoral degree. Otherwise, this patient is not.\"\nmaiden,,the maiden name of the patient,text,commonsense evidence: Only married women have the maiden name\nmarital,,the marital status of the patient,text,\"commonsense evidence: \n M: married \n S: single\"\nrace,,the race of the patient,text,\nethnicity,,the ethnicity of the patient,text,\ngender,,the gender of the patient,text,\nbirthplace,birth place,the birth place,text,\naddress,,the specific address,text,",
"table": "patients"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nID,,the unique id of the care plan,text,\nSTART,,the start date of the care plan,date,yyyy-mm-dd\nSTOP,,the stop date of the care plan,date,\"yyyy-mm-dd\ncommonsense evidence: care plan period:\nstop - start\"\nPATIENT,,the patient id,text,\nENCOUNTER,,the medical encounter id,text,\nCODE,,the code of the care plan ,real,\nDESCRIPTION,,the description of the care plan,text,\nREASONCODE,,the reason code,integer,\nREASONDESCRIPTION,reason description,the description of the reason why the patient needs the care plan,text,",
"table": "careplans"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nID,,the unique id of the claim,text,\nPATIENT,,the patient id,text,\nBILLABLEPERIOD,billable period,the start date of the billable,date,yyyy-mm-dd\nORGANIZATION,,the claim organization,text,\nENCOUNTER,,the medical encounter id,text,\nDIAGNOSIS,,the diagnosis,text,\nTOTAL,,the length of the billable period,integer,",
"table": "claims"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSTART,,the start date of the allergy ,date,mm/dd/yy\nSTOP,,the stop date of the allergy,date,mm/dd/yy\nPATIENT,,the patient id,text,\nENCOUNTER,,the medical encounter id,text,\nCODE,,the code of the condition ,integer,\nDESCRIPTION,,the description of the patient condition,text,",
"table": "conditions"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSTART,,the start date of the care plan,date,yyyy-mm-dd\nSTOP,,the stop date of the care plan,date,\"yyyy-mm-dd\ncommonsense evidence: Time of taking medicine\"\nPATIENT,,the patient id,text,\nENCOUNTER,,the medical encounter id,text,\nCODE,,the code of the medication,integer,\nDESCRIPTION,,the description of the medication,text,\nREASONCODE,,the reason code,integer,\nREASONDESCRIPTION,reason description,the description of the reason why the patient take the medication,text,",
"table": "medications"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nITEM,,the prevalent disease,text,\nPOPULATION TYPE,population type,the population type - LIVING,text,\nOCCURRENCES,,the number of occurrences,integer,\nPOPULATION COUNT,population count,the number of the counted populations ,integer,\nPREVALENCE RATE,prevalence rate,the prevalence rate,real,commonsense evidence: prevalence rate = occurrences / population_count\nPREVALENCE PERCENTAGE,prevalence percentage,the prevalence percentage,real,commonsense evidence: prevalence rate = occurrences / population_count * 100",
"table": "all_prevalences"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDATE,,the date of the observation,date,yyyy-mm-dd\nPATIENT,,the patient id,text,\nENCOUNTER,,the medical encounter id,text,\nCODE,,the code of the observation type,text,\nDESCRIPTION,,the description of the observation,text,\nVALUE,,the observation value,real,\nUNITS,,the units of the observation value,text,\"commonsense evidence: DESCRIPTION + VALUE + UNITS could be a fact:\ne.g.: body height of patient xxx is 166.03 cm:\nbody height is in DESCRIPTION \n166.03 is in VALUE \ncm is in UNITS\"",
"table": "observations"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDATE,,the date of the immunization,date,yyyy-mm-dd\nPATIENT,,the patient id,text,\nENCOUNTER,,the medical encounter id,text,\nCODE,,the code of the immunization ,integer,\nDESCRIPTION,,the description of the immunization,text,",
"table": "immunizations"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSTART,,the start date of the allergy ,text,mm/dd/yy\nSTOP,,the stop date of the allergy,text,\"mm/dd/yy\ncommonsense evidence: allergy period = stop - start\"\nPATIENT,,the patient id,text,\nENCOUNTER,,the medical encounter id,text,\nCODE,,the code of the allergy ,integer,\nDESCRIPTION,,the description of the allergy ,text,",
"table": "allergies"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDATE,,the date of the procedure,date,yyyy-mm-dd\nPATIENT,,the patient id,text,\nENCOUNTER,,the medical encounter id,text,\nCODE,,the code of the procedure,integer,\nDESCRIPTION,,the description of the procedure,text,\nREASONCODE,reason code,the code of the reason,integer,\nREASONDESCRIPTION,reason description,the description of the reason why the patient take the procedure,text,",
"table": "procedures"
}
] |
mondial_geo | [
{
"create_sql": "CREATE TABLE \"borders\"\n(\n Country1 TEXT default '' not null\n constraint borders_ibfk_1\n references country,\n Country2 TEXT default '' not null\n constraint borders_ibfk_2\n references country,\n Length REAL,\n primary key (Country1, Country2)\n);",
"table": "borders"
},
{
"create_sql": "CREATE TABLE \"city\"\n(\n Name TEXT default '' not null,\n Country TEXT default '' not null\n constraint city_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n Population INTEGER,\n Longitude REAL,\n Latitude REAL,\n primary key (Name, Province),\n constraint city_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "city"
},
{
"create_sql": "CREATE TABLE \"continent\"\n(\n Name TEXT default '' not null\n primary key,\n Area REAL\n);",
"table": "continent"
},
{
"create_sql": "CREATE TABLE \"country\"\n(\n Name TEXT not null\n constraint ix_county_Name\n unique,\n Code TEXT default '' not null\n primary key,\n Capital TEXT,\n Province TEXT,\n Area REAL,\n Population INTEGER\n);",
"table": "country"
},
{
"create_sql": "CREATE TABLE \"desert\"\n(\n Name TEXT default '' not null\n primary key,\n Area REAL,\n Longitude REAL,\n Latitude REAL\n);",
"table": "desert"
},
{
"create_sql": "CREATE TABLE \"economy\"\n(\n Country TEXT default '' not null\n primary key\n constraint economy_ibfk_1\n references country\n on update cascade on delete cascade,\n GDP REAL,\n Agriculture REAL,\n Service REAL,\n Industry REAL,\n Inflation REAL\n);",
"table": "economy"
},
{
"create_sql": "CREATE TABLE \"encompasses\"\n(\n Country TEXT not null\n constraint encompasses_ibfk_1\n references country\n on update cascade on delete cascade,\n Continent TEXT not null\n constraint encompasses_ibfk_2\n references continent\n on update cascade on delete cascade,\n Percentage REAL,\n primary key (Country, Continent)\n);",
"table": "encompasses"
},
{
"create_sql": "CREATE TABLE \"ethnicGroup\"\n(\n Country TEXT default '' not null\n constraint ethnicGroup_ibfk_1\n references country\n on update cascade on delete cascade,\n Name TEXT default '' not null,\n Percentage REAL,\n primary key (Name, Country)\n);",
"table": "ethnicGroup"
},
{
"create_sql": "CREATE TABLE \"geo_desert\"\n(\n Desert TEXT default '' not null\n constraint geo_desert_ibfk_3\n references desert\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_desert_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Desert),\n constraint geo_desert_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "geo_desert"
},
{
"create_sql": "CREATE TABLE \"geo_estuary\"\n(\n River TEXT default '' not null\n constraint geo_estuary_ibfk_3\n references river\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_estuary_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, River),\n constraint geo_estuary_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "geo_estuary"
},
{
"create_sql": "CREATE TABLE \"geo_island\"\n(\n Island TEXT default '' not null\n constraint geo_island_ibfk_3\n references island\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_island_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Island),\n constraint geo_island_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "geo_island"
},
{
"create_sql": "CREATE TABLE \"geo_lake\"\n(\n Lake TEXT default '' not null\n constraint geo_lake_ibfk_3\n references lake\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_lake_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Lake),\n constraint geo_lake_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "geo_lake"
},
{
"create_sql": "CREATE TABLE \"geo_mountain\"\n(\n Mountain TEXT default '' not null\n constraint geo_mountain_ibfk_3\n references mountain\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_mountain_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Mountain),\n constraint geo_mountain_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "geo_mountain"
},
{
"create_sql": "CREATE TABLE \"geo_river\"\n(\n River TEXT default '' not null\n constraint geo_river_ibfk_3\n references river\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_river_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, River),\n constraint geo_river_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "geo_river"
},
{
"create_sql": "CREATE TABLE \"geo_sea\"\n(\n Sea TEXT default '' not null\n constraint geo_sea_ibfk_3\n references sea\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_sea_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, Sea),\n constraint geo_sea_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "geo_sea"
},
{
"create_sql": "CREATE TABLE \"geo_source\"\n(\n River TEXT default '' not null\n constraint geo_source_ibfk_3\n references river\n on update cascade on delete cascade,\n Country TEXT default '' not null\n constraint geo_source_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT default '' not null,\n primary key (Province, Country, River),\n constraint geo_source_ibfk_2\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "geo_source"
},
{
"create_sql": "CREATE TABLE \"island\"\n(\n Name TEXT default '' not null\n primary key,\n Islands TEXT,\n Area REAL,\n Height REAL,\n Type TEXT,\n Longitude REAL,\n Latitude REAL\n);",
"table": "island"
},
{
"create_sql": "CREATE TABLE \"islandIn\"\n(\n Island TEXT\n constraint islandIn_ibfk_4\n references island\n on update cascade on delete cascade,\n Sea TEXT\n constraint islandIn_ibfk_3\n references sea\n on update cascade on delete cascade,\n Lake TEXT\n constraint islandIn_ibfk_1\n references lake\n on update cascade on delete cascade,\n River TEXT\n constraint islandIn_ibfk_2\n references river\n on update cascade on delete cascade\n);",
"table": "islandIn"
},
{
"create_sql": "CREATE TABLE \"isMember\"\n(\n Country TEXT default '' not null\n constraint isMember_ibfk_1\n references country\n on update cascade on delete cascade,\n Organization TEXT default '' not null\n constraint isMember_ibfk_2\n references organization\n on update cascade on delete cascade,\n Type TEXT default 'member',\n primary key (Country, Organization)\n);",
"table": "isMember"
},
{
"create_sql": "CREATE TABLE \"lake\"\n(\n Name TEXT default '' not null\n primary key,\n Area REAL,\n Depth REAL,\n Altitude REAL,\n Type TEXT,\n River TEXT,\n Longitude REAL,\n Latitude REAL\n);",
"table": "lake"
},
{
"create_sql": "CREATE TABLE \"language\"\n(\n Country TEXT default '' not null\n constraint language_ibfk_1\n references country\n on update cascade on delete cascade,\n Name TEXT default '' not null,\n Percentage REAL,\n primary key (Name, Country)\n);",
"table": "language"
},
{
"create_sql": "CREATE TABLE \"located\"\n(\n City TEXT,\n Province TEXT,\n Country TEXT\n constraint located_ibfk_1\n references country\n on update cascade on delete cascade,\n River TEXT\n constraint located_ibfk_3\n references river\n on update cascade on delete cascade,\n Lake TEXT\n constraint located_ibfk_4\n references lake\n on update cascade on delete cascade,\n Sea TEXT\n constraint located_ibfk_5\n references sea\n on update cascade on delete cascade,\n constraint located_ibfk_2\n foreign key (City, Province) references city\n on update cascade on delete cascade,\n constraint located_ibfk_6\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "located"
},
{
"create_sql": "CREATE TABLE \"locatedOn\"\n(\n City TEXT default '' not null,\n Province TEXT default '' not null,\n Country TEXT default '' not null\n constraint locatedOn_ibfk_1\n references country\n on update cascade on delete cascade,\n Island TEXT default '' not null\n constraint locatedOn_ibfk_2\n references island\n on update cascade on delete cascade,\n primary key (City, Province, Country, Island),\n constraint locatedOn_ibfk_3\n foreign key (City, Province) references city\n on update cascade on delete cascade,\n constraint locatedOn_ibfk_4\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "locatedOn"
},
{
"create_sql": "CREATE TABLE \"mergesWith\"\n(\n Sea1 TEXT default '' not null\n constraint mergesWith_ibfk_1\n references sea\n on update cascade on delete cascade,\n Sea2 TEXT default '' not null\n constraint mergesWith_ibfk_2\n references sea\n on update cascade on delete cascade,\n primary key (Sea1, Sea2)\n);",
"table": "mergesWith"
},
{
"create_sql": "CREATE TABLE \"mountain\"\n(\n Name TEXT default '' not null\n primary key,\n Mountains TEXT,\n Height REAL,\n Type TEXT,\n Longitude REAL,\n Latitude REAL\n);",
"table": "mountain"
},
{
"create_sql": "CREATE TABLE \"mountainOnIsland\"\n(\n Mountain TEXT default '' not null\n constraint mountainOnIsland_ibfk_2\n references mountain\n on update cascade on delete cascade,\n Island TEXT default '' not null\n constraint mountainOnIsland_ibfk_1\n references island\n on update cascade on delete cascade,\n primary key (Mountain, Island)\n);",
"table": "mountainOnIsland"
},
{
"create_sql": "CREATE TABLE \"organization\"\n(\n Abbreviation TEXT not null\n primary key,\n Name TEXT not null\n constraint ix_organization_OrgNameUnique\n unique,\n City TEXT,\n Country TEXT\n constraint organization_ibfk_1\n references country\n on update cascade on delete cascade,\n Province TEXT,\n Established DATE,\n constraint organization_ibfk_2\n foreign key (City, Province) references city\n on update cascade on delete cascade,\n constraint organization_ibfk_3\n foreign key (Province, Country) references province\n on update cascade on delete cascade\n);",
"table": "organization"
},
{
"create_sql": "CREATE TABLE \"politics\"\n(\n Country TEXT default '' not null\n primary key\n constraint politics_ibfk_1\n references country\n on update cascade on delete cascade,\n Independence DATE,\n Dependent TEXT\n constraint politics_ibfk_2\n references country\n on update cascade on delete cascade,\n Government TEXT\n);",
"table": "politics"
},
{
"create_sql": "CREATE TABLE \"population\"\n(\n Country TEXT default '' not null\n primary key\n constraint population_ibfk_1\n references country\n on update cascade on delete cascade,\n Population_Growth REAL,\n Infant_Mortality REAL\n);",
"table": "population"
},
{
"create_sql": "CREATE TABLE \"province\"\n(\n Name TEXT not null,\n Country TEXT not null\n constraint province_ibfk_1\n references country\n on update cascade on delete cascade,\n Population INTEGER,\n Area REAL,\n Capital TEXT,\n CapProv TEXT,\n primary key (Name, Country)\n);",
"table": "province"
},
{
"create_sql": "CREATE TABLE \"religion\"\n(\n Country TEXT default '' not null\n constraint religion_ibfk_1\n references country\n on update cascade on delete cascade,\n Name TEXT default '' not null,\n Percentage REAL,\n primary key (Name, Country)\n);",
"table": "religion"
},
{
"create_sql": "CREATE TABLE \"river\"\n(\n Name TEXT default '' not null\n primary key,\n River TEXT,\n Lake TEXT\n constraint river_ibfk_1\n references lake\n on update cascade on delete cascade,\n Sea TEXT,\n Length REAL,\n SourceLongitude REAL,\n SourceLatitude REAL,\n Mountains TEXT,\n SourceAltitude REAL,\n EstuaryLongitude REAL,\n EstuaryLatitude REAL\n);",
"table": "river"
},
{
"create_sql": "CREATE TABLE \"sea\"\n(\n Name TEXT default '' not null\n primary key,\n Depth REAL\n);",
"table": "sea"
},
{
"create_sql": "CREATE TABLE \"target\"\n(\n Country TEXT not null\n primary key\n constraint target_Country_fkey\n references country\n on update cascade on delete cascade,\n Target TEXT\n);",
"table": "target"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCity,,the name of the city,text,\nProvince,, the province where the city belongs to,text,\nCountry,,the country code where the city belongs to,text,\nIsland,, the island it is (maybe only partially) located on,text,",
"table": "locatedOn"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,the name of the administrative division,text,\nCountry,, the country code where it belongs to,text,\nArea,,\"the total area of the province,\",integer,\nPopulation,,the population of the province,real,\nCapital,,the name of the capital,text,\"if null, doesn't have capital\"\nCapProv,capital province,the name of the province where the capital belongs to,text,\"commonsense evidence:\n\nnote that capprov is not necessarily equal to name\"",
"table": "province"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSea,,the name of the sea,text,\nCountry,,the country code where it is located,text,\nProvince,,the province of this country,text,",
"table": "geo_sea"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry,,the country code,text,\nName,,name of the language,text,\nPercentage,,percentage of the language in this country,real,%",
"table": "language"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nIsland,,,text,\nSea,,,text,\nLake,,,text,\nRiver,,,text,",
"table": "islandIn"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,the name of the mountain,text,\nMountains,,the mountains where it belongs to,text,\nHeight,, the maximal elevation of the summit of the mountain,real,\nType,, the sea where it finally flows to,text,\"(note that at most one out of {river,lake,sea} can be non-null\"\nLongitude,,the length of the river,real,\nLatitude,,the longitude of its source,real,",
"table": "mountain"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry,,the country code,text,\nPopulation_Growth,population growth,population growth rate,real,per annum\nInfant_Mortality,infant mortality, infant mortality,real,per thousand",
"table": "population"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCity,,the name of the city,text,\nCountry,,the country code where the city belongs to,text,\nProvince,,the province where the city belongs to,text,\nRiver,, the river where it is located at,text,\nLake,,the lake where it is located at,text,\nSea,,the sea where it is located at,text,\"Note that for a given city, there can be several lakes/seas/rivers where it is located at.\"",
"table": "located"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry,,the country code,text,\nName,,name of the language,text,\nPercentage,,percentage of the language in this country.,real,%",
"table": "ethnicGroup"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry,,,text,\nOrganization,,,text,\nType,,,text,",
"table": "isMember"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry,,the country code,text,\nName,,name of the religion,text,\nPercentage,,percentage of the language in this country,real,%",
"table": "religion"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry,,a country code,text,\nContinent,,the continent name.,text,\nPercentage,,how much of the area of a country belongs to the continent,real,%",
"table": "encompasses"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,name of city,text,\nCountry,,the code of the country where it belongs to,text,\nProvince,,the name of the province where it belongs to,text,\nPopulation,,population of the city,integer,\nLongitude,,geographic longitude,real,\nLatitude,,geographic latitude,real,",
"table": "city"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,the name of the island,text,\nIslands,,the group of islands where it belongs to,text,\nArea,,the area of the island,real,\nHeight,,the maximal elevation of the island,real,\nType,, the type of the island,text,\nLongitude,,Longitude,real,\nLatitude,,Latitude,real,",
"table": "island"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nIsland,,the name of the island,text,\nCountry,,the country code where it is located,text,\nProvince,,the province of this country,text,",
"table": "geo_island"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMountain,,the name of the mountain,text,\nIsland,,the name of the island,text,",
"table": "mountainonisland"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nRiver,,the name of the river,text,\nCountry,,the country code where it is located,text,\nProvince,,the province of this country,text,",
"table": "geo_source"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSea1,,the name of the mountain,text,\nSea2,,the country code where it is located,text,",
"table": "mergeswith"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry,,the country code,text,\nGDP,gross domestic product,gross domestic product,real,\nAgriculture,,percentage of agriculture of the GDP,real,\nService,,\"percentage of services of the GDP,\",real,\nIndustry,,percentage of industry of the GDP,real,\nInflation,,\"inflation rate (per annum),\",real,",
"table": "economy"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry,,,text,\nTarget,,,real,",
"table": "target"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,the name of the river,text,\nRiver,,the river where it finally flows to,text,\nLake,,the lake where it finally flows to,text,\nSea,, the sea where it finally flows to,text,\"(note that at most one out of {river,lake,sea} can be non-null\"\nLength,,the length of the river,real,\nSourceLongitude,,the longitude of its source,real,\nSourceLatitude,,the latitude of its source,real,\nMountains,,the mountains where its source is located,text,\nSourceAltitude,, the elevation (above sea level) of its source,real,\nEstuaryLongitude,,the coordinates of its estuary,real,\nEstuaryLatitude,,the latitude of its estuary,real,",
"table": "river"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nRiver,,the name of the river,text,\nCountry,,the country code where it is located,text,\nProvince,,the province of this country,text,",
"table": "geo_river"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,the name of the lake,text,\nArea,,the total area of the lake,real,\nDepth,, the depth of the lake,real,\nAltitude,,the altitude (above sea level) of the lake,real,\nRiver,,the river that flows out of the lake,text,\nType,,the type of the lake,text,\nLongitude,,longitude of lake ,real,\nLatitude,,latitude of lake ,real,",
"table": "lake"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,the name of the desert,text,\nArea,,the total area of the desert,real,\nLongitude,,Longitude,real,\nLatitude,,Latitude,real,\"commonsense evidence:\n\ncoordinate: (Longitude, Latitude)\"",
"table": "desert"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,the name of the sea,text,\nDepth,,the maximal depth of the sea,real,",
"table": "sea"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nRiver,,the name of the river,text,\nCountry,,the country code where it is located,text,\nProvince,,the province of this country,text,",
"table": "geo_estuary"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,name of the continent,text,\nArea,,total area of the continent.,real,",
"table": "continent"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nLake,,the name of the lake,text,\nCountry,,the country code where it is located,text,\nProvince,,the province of this country,text,",
"table": "geo_lake"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nName,,the country name,text,\nCode,,country code,text,\nCapital,,\"the name of the capital,\",text,\nProvince,,\"the province where the capital belongs to,\",text,\nArea,,\"the total area,\",real,\nPopulation,,the population number.,integer,",
"table": "country"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry,,the country code,text,\nIndependence,,date of independence,date,\"Commonsense evidence:\n\nif the value is null or empty, it means this country is not independent\"\nDependent,, the country code where the area belongs to,text,\nGovernment,,type of government,text,",
"table": "politics"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDesert,,the name of the desert,text,\nCountry,,the country code where it is located,text,\nProvince,,the province of this country,text,",
"table": "geo_desert"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nAbbreviation,, its abbreviation,text,\nName,,the full name of the organization,text,\nCity,,the city where the headquarters are located,text,\nCountry,, the code of the country where the headquarters are located,text,\nProvince,,\"the name of the province where the headquarters are located,\",text,\nEstablished,,date of establishment,date,",
"table": "organization"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMountain,,the name of the mountain,text,\nCountry,,the country code where it is located,text,\nProvince,,the province of this country,text,",
"table": "geo_mountain"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry1,,a country code,text,\nCountry2,,a country code,text,\nLength,,length of the border between country1 and country2,real,",
"table": "borders"
}
] |
european_football_1 | [
{
"create_sql": "CREATE TABLE divisions\n(\n division TEXT not null\n primary key,\n name TEXT,\n country TEXT\n);",
"table": "divisions"
},
{
"create_sql": "CREATE TABLE matchs\n(\n Div TEXT,\n Date DATE,\n HomeTeam TEXT,\n AwayTeam TEXT,\n FTHG INTEGER,\n FTAG INTEGER,\n FTR TEXT,\n season INTEGER,\n foreign key (Div) references divisions(division)\n);",
"table": "matchs"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndivision,,division id,text,\nname,,name of the division,text,\ncountry,,country of the division,text,",
"table": "divisions"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDiv,Division,Division Id,text,\nDate,,Match Date,date,YYYY-MM-DD\nHomeTeam,,Name of Home Team,text,\nAwayTeam,,Name of Away Team,text,\nFTHG,Final-time Home-team Goals,Final-time Home-team Goals,integer,\nFTAG,Final-time Away-team Goals,Final-time Away-team Goals,integer,\nFTR,Final-time Results,Final-time Results,text,\"commonsense evidence:\nH stands for home victory, which means FTHG is higher than FTAG\n\nA stands for away victory, which means FTAG is higher than FTHG\n\nD stands for draft, which means FTHG equals to FTAG\"\nseason,,season of the match,integer,",
"table": "matchs"
}
] |
trains | [
{
"create_sql": "CREATE TABLE `cars` (\n `id` INTEGER NOT NULL,\n `train_id` INTEGER DEFAULT NULL,\n `position` INTEGER DEFAULT NULL,\n `shape` TEXT DEFAULT NULL,\n `len`TEXT DEFAULT NULL,\n `sides` TEXT DEFAULT NULL,\n `roof` TEXT DEFAULT NULL,\n `wheels` INTEGER DEFAULT NULL,\n `load_shape` TEXT DEFAULT NULL,\n `load_num` INTEGER DEFAULT NULL,\n PRIMARY KEY (`id`),\n FOREIGN KEY (`train_id`) REFERENCES `trains` (`id`) ON DELETE CASCADE ON UPDATE CASCADE\n);",
"table": "cars"
},
{
"create_sql": "CREATE TABLE `trains` (\n `id` INTEGER NOT NULL,\n `direction` TEXT DEFAULT NULL,\n PRIMARY KEY (`id`)\n);",
"table": "trains"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique id number representing the cars,integer,\ntrain_id,train id,the counterpart id for trains that the cars belong to,integer,\nposition,,postion id of cars in the trains,integer,\"1-4:\ncommonsense evidence:\n1: head car\n4: tail car\"\nshape,,shape of the cars,text,\"⢠rectangle\n⢠bucket\n⢠u_shaped\n⢠hexagon\n⢠elipse\ncommonsense evidence:\nregular shape: \nrectangle, u_shaped, hexagon\"\nlen,length,length of the cars,text,\"⢠short \n⢠long\"\nsides,,sides of the cars,text,\"⢠not_double\n⢠double\"\nroof,,roof of the cars,text,\"commonsense evidence:\n⢠none: the roof is open\n⢠peaked\n⢠flat\n⢠arc\n⢠jagged\"\nwheels,,wheels of the cars,integer,\"⢠2:\n⢠3: \"\nload_shape,,load shape,text,\"⢠circle\n⢠hexagon\n⢠triangle\n⢠rectangle \n⢠diamond\"\nload_num,load number,load number,integer,\"0-3:\ncommonsense evidence:\n⢠0: empty load\n⢠3: full load\"",
"table": "cars"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique id representing the trains,integer,\ndirection,,the direction of trains that are running ,text,\"⢠east;\n⢠west;\"",
"table": "trains"
}
] |
language_corpus | [
{
"create_sql": "CREATE TABLE langs(lid INTEGER PRIMARY KEY AUTOINCREMENT,\n lang TEXT UNIQUE,\n locale TEXT UNIQUE,\n pages INTEGER DEFAULT 0, -- total pages in this language\n words INTEGER DEFAULT 0);",
"table": "langs"
},
{
"create_sql": "CREATE TABLE pages(pid INTEGER PRIMARY KEY AUTOINCREMENT,\n lid INTEGER REFERENCES langs(lid) ON UPDATE CASCADE ON DELETE CASCADE,\n page INTEGER DEFAULT NULL, -- wikipedia page id\n revision INTEGER DEFAULT NULL, -- wikipedia revision page id\n title TEXT,\n words INTEGER DEFAULT 0, -- number of different words in this page\n UNIQUE(lid,page,title));",
"table": "pages"
},
{
"create_sql": "CREATE TABLE words(wid INTEGER PRIMARY KEY AUTOINCREMENT,\n word TEXT UNIQUE,\n occurrences INTEGER DEFAULT 0);",
"table": "words"
},
{
"create_sql": "CREATE TABLE langs_words(lid INTEGER REFERENCES langs(lid) ON UPDATE CASCADE ON DELETE CASCADE,\n wid INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE,\n occurrences INTEGER, -- repetitions of this word in this language\n PRIMARY KEY(lid,wid))\n WITHOUT ROWID;",
"table": "langs_words"
},
{
"create_sql": "CREATE TABLE pages_words(pid INTEGER REFERENCES pages(pid) ON UPDATE CASCADE ON DELETE CASCADE,\n wid INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE,\n occurrences INTEGER DEFAULT 0, -- times this word appears into this page\n PRIMARY KEY(pid,wid))\n WITHOUT ROWID;",
"table": "pages_words"
},
{
"create_sql": "CREATE TABLE biwords(lid INTEGER REFERENCES langs(lid) ON UPDATE CASCADE ON DELETE CASCADE,\n w1st INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE,\n w2nd INTEGER REFERENCES words(wid) ON UPDATE CASCADE ON DELETE CASCADE,\n occurrences INTEGER DEFAULT 0, -- times this pair appears in this language/page\n PRIMARY KEY(lid,w1st,w2nd))\n WITHOUT ROWID;",
"table": "biwords"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npid,page id,page id of Wikipedia about Catalan language,integer,\nlid,language id,language id ,integer,\"commonsense evidence: \nlid=1 means it's Catalan language\"\npage,,wikipedia page id,integer,\nrevision,,wikipedia revision page id,integer,\ntitle,,The title of this Catalan language Wikipedia page,text,\nwords,,number of different words in this page,integer,",
"table": "pages"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nwid,word id,The word id of the Catalan language,integer,The value is unique.\nword,,The word itself,text,\noccurrences,,The occurrences of the specific word,integer,",
"table": "words"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npid,page id,page id of Wikipedia about Catalan language,integer,\nwid,word id,The word id of the Catalan language,integer,The value is unique.\noccurrences,,times of this word appears into this page,integer,",
"table": "pages_words"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nlid,language id,language id ,integer,\"commonsense evidence: \nlid=1 means it's Catalan language.\"\nwid,word id,The word id of the Catalan language,integer,\noccurrences,,repetitions of this word in this language,integer,it's INTEGER and DEFAULT is 0.",
"table": "langs_words"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nlid,language id,language id ,integer,\"commonsense evidence: \nlid=1 means it's the Catalan language.\n\"\nlang,language,language name ,text,\"commonsense evidence:\n ca means Catalan language.\"\nlocale,,The locale of the language,text,\npages,,total pages of Wikipedia in this language,integer,\nwords,,total number of words in this pages,integer,",
"table": "langs"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nlid,language id,language id ,integer,\"commonsense evidence: \nlid=1 means it's Catalan language.\n\"\nw1st,word id of the first word,The word id of the first word of the biwords pair. ,integer,The value is unique.\nw2nd,word id of the second word,The word id of the second word of the biwords pair. ,integer,The value is unique.\noccurrences,,times of this pair appears in this language/page,integer,",
"table": "biwords"
}
] |
software_company | [
{
"create_sql": "CREATE TABLE Demog\n(\n GEOID INTEGER\n constraint Demog_pk\n primary key,\n INHABITANTS_K REAL,\n INCOME_K REAL,\n A_VAR1 REAL,\n A_VAR2 REAL,\n A_VAR3 REAL,\n A_VAR4 REAL,\n A_VAR5 REAL,\n A_VAR6 REAL,\n A_VAR7 REAL,\n A_VAR8 REAL,\n A_VAR9 REAL,\n A_VAR10 REAL,\n A_VAR11 REAL,\n A_VAR12 REAL,\n A_VAR13 REAL,\n A_VAR14 REAL,\n A_VAR15 REAL,\n A_VAR16 REAL,\n A_VAR17 REAL,\n A_VAR18 REAL\n);",
"table": "Demog"
},
{
"create_sql": "CREATE TABLE mailings3\n(\n REFID INTEGER\n constraint mailings3_pk\n primary key,\n REF_DATE DATETIME,\n RESPONSE TEXT\n);",
"table": "mailings3"
},
{
"create_sql": "CREATE TABLE \"Customers\"\n(\n ID INTEGER\n constraint Customers_pk\n primary key,\n SEX TEXT,\n MARITAL_STATUS TEXT,\n GEOID INTEGER\n constraint Customers_Demog_GEOID_fk\n references Demog,\n EDUCATIONNUM INTEGER,\n OCCUPATION TEXT,\n age INTEGER\n);",
"table": "Customers"
},
{
"create_sql": "CREATE TABLE \"Mailings1_2\"\n(\n REFID INTEGER\n constraint Mailings1_2_pk\n primary key\n constraint Mailings1_2_Customers_ID_fk\n references Customers,\n REF_DATE DATETIME,\n RESPONSE TEXT\n);",
"table": "Mailings1_2"
},
{
"create_sql": "CREATE TABLE \"Sales\"\n(\n EVENTID INTEGER\n constraint Sales_pk\n primary key,\n REFID INTEGER\n references Customers,\n EVENT_DATE DATETIME,\n AMOUNT REAL\n);",
"table": "Sales"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nREFID,REFERENCE ID,unique id number identifying the customer,integer,\nREF_DATE,REFERENCE DATE,indicating the date when the mailing was sent,datetime,\nRESPONSE,,Actual response to the marketing incentive email ,text,\"• True\n• False \ncommonsense evidence: \n1. any person who has not responded to a mailing within two months is considered to have responded negatively.\n2. true respond to the mailing, otherwise, no\"",
"table": "mailings3"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nGEOID,GEOGRAPHIC ID,unique geographic identifier,integer,\nINHABITANTS_K,INHABITANTS (THOUSANDS),number of inhabitants,real,the unit is K (thousands)\nINCOME_K,INCOME (THOUSANDS),average income per inhabitant per month,real,\"the unit is dollar, it indicates the average income per inhabitant per month.\ncommonsense evidence:\nsome computation like: total income per year = INHABITANTS_K x INCOME_K x 12\"\nA_VAR1,,,,\nA_VAR2,,,,\nA_VAR3,,,,\nA_VAR4,,,,\nA_VAR5,,,,\nA_VAR6,,,,\nA_VAR7,,,,\nA_VAR8,,,,\nA_VAR9,,,,\nA_VAR10,,,,\nA_VAR11,,,,\nA_VAR12,,,,\nA_VAR13,,,,\nA_VAR14,,,,\nA_VAR15,,,,\nA_VAR16,,,,\nA_VAR17,,,,\nA_VAR18,,,,",
"table": "Demog"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nEVENTID,EVENT ID,unique id of event (sales),integer,\nREFID,REFERENCE ID,Reference to customer ID,integer,\nEVENT_DATE,EVENT DATE,date of sales,datetime,\nAMOUNT,AMOUNT,amount of sales,real,",
"table": "Sales"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nID,,the unique number identifying the customer,integer,\nSEX,,the sex of the customer,text,\nMARITAL_STATUS,MARITAL STATUS,,text,\"� Never-married\n� Married-civ-spouse\n� Divorced\n� Widowed\n� Other\ncommonsense evidence: \"\"Married-civ-spouse\"\", \"\"Divorced\"\", \"\"Widowed\"\" mean customer has been married.\n\"\nGEOID,GEOGRAPHIC ID,geographic identifier,integer,\nEDUCATIONNUM,EDUCATION NUMBER,the level of education,integer,commonsense evidence: higher education number refers to higher education\nOCCUPATION,,occupation of customers,text,\nage,,age of customers,integer,\"commonsense evidence: � teenager: 13-19 years old.\n� elder: people aged over 65\"",
"table": "Customers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nREFID,REFERENCE ID,unique id number identifying the customer,integer,\nREF_DATE,REFERENCE DATE,indicating the date when the mailing was sent,datetime,\nRESPONSE,,Response to the incentive mailing that marketing department sent,text,\"• True\n• False \ncommonsense evidence: \n1. any person who has not responded to a mailing within two months is considered to have responded negatively.\n2. true respond to the mailing, otherwise, no\"",
"table": "Mailings1_2"
}
] |
movie_platform | [
{
"create_sql": "CREATE TABLE \"lists\"\n(\n user_id INTEGER\n references lists_users (user_id),\n list_id INTEGER not null\n primary key,\n list_title TEXT,\n list_movie_number INTEGER,\n list_update_timestamp_utc TEXT,\n list_creation_timestamp_utc TEXT,\n list_followers INTEGER,\n list_url TEXT,\n list_comments INTEGER,\n list_description TEXT,\n list_cover_image_url TEXT,\n list_first_image_url TEXT,\n list_second_image_url TEXT,\n list_third_image_url TEXT\n);",
"table": "lists"
},
{
"create_sql": "CREATE TABLE \"movies\"\n(\n movie_id INTEGER not null\n primary key,\n movie_title TEXT,\n movie_release_year INTEGER,\n movie_url TEXT,\n movie_title_language TEXT,\n movie_popularity INTEGER,\n movie_image_url TEXT,\n director_id TEXT,\n director_name TEXT,\n director_url TEXT\n);",
"table": "movies"
},
{
"create_sql": "CREATE TABLE \"ratings_users\"\n(\n user_id INTEGER\n references lists_users (user_id),\n rating_date_utc TEXT,\n user_trialist INTEGER,\n user_subscriber INTEGER,\n user_avatar_image_url TEXT,\n user_cover_image_url TEXT,\n user_eligible_for_trial INTEGER,\n user_has_payment_method INTEGER\n);",
"table": "ratings_users"
},
{
"create_sql": "CREATE TABLE lists_users\n(\n user_id INTEGER not null ,\n list_id INTEGER not null ,\n list_update_date_utc TEXT,\n list_creation_date_utc TEXT,\n user_trialist INTEGER,\n user_subscriber INTEGER,\n user_avatar_image_url TEXT,\n user_cover_image_url TEXT,\n user_eligible_for_trial TEXT,\n user_has_payment_method TEXT,\n primary key (user_id, list_id),\n foreign key (list_id) references lists(list_id),\n foreign key (user_id) references lists(user_id)\n);",
"table": "lists_users"
},
{
"create_sql": "CREATE TABLE ratings\n(\n movie_id INTEGER,\n rating_id INTEGER,\n rating_url TEXT,\n rating_score INTEGER,\n rating_timestamp_utc TEXT,\n critic TEXT,\n critic_likes INTEGER,\n critic_comments INTEGER,\n user_id INTEGER,\n user_trialist INTEGER,\n user_subscriber INTEGER,\n user_eligible_for_trial INTEGER,\n user_has_payment_method INTEGER,\n foreign key (movie_id) references movies(movie_id),\n foreign key (user_id) references lists_users(user_id),\n foreign key (rating_id) references ratings(rating_id),\n foreign key (user_id) references ratings_users(user_id)\n);",
"table": "ratings"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,,Movie ID related to the rating,integer,\nrating_id,,Rating ID on Mubi,integer,\nrating_url,,URL to the rating on Mubi,text,\nrating_score,,Rating score ranging from 1 (lowest) to 5 (highest),integer,\"commonsense evidence:\nThe score is proportional to the user's liking.\nThe higher the score is, the more the user likes the movie\"\nrating_timestamp_utc ,,Timestamp for the movie rating made by the user on Mubi,text,\ncritic,,Critic made by the user rating the movie. ,text,\"If value = \"\"None\"\", the user did not write a critic when rating the movie.\"\ncritic_likes,,Number of likes related to the critic made by the user rating the movie,integer,\ncritic_comments,,Number of comments related to the critic made by the user rating the movie,integer,\nuser_id,,ID related to the user rating the movie,integer,\nuser_trialist ,,whether user was a tralist when he rated the movie,integer,\"1 = the user was a trialist when he rated the movie \n0 = the user was not a trialist when he rated the movie\"\nuser_subscriber,,,integer,\nuser_eligible_for_trial,,,integer,\nuser_has_payment_method,,,integer,",
"table": "ratings"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nuser_id,,ID related to the user who created the list.,integer,\nlist_id,,ID of the list on Mubi,integer,\nlist_title,,Name of the list,text,\nlist_movie_number,,Number of movies added to the list,integer,\nlist_update_timestamp_utc,,Last update timestamp for the list,text,\nlist_creation_timestamp_utc,,Creation timestamp for the list,text,\nlist_followers,,Number of followers on the list,integer,\nlist_url,,URL to the list page on Mubi,text,\nlist_comments,,Number of comments on the list,integer,\nlist_description,,List description made by the user,text,\nlist_cover_image_url,,,,\nlist_first_image_url,,,,\nlist_second_image_url,,,,\nlist_third_image_url,,,,",
"table": "lists"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nuser_id,,ID related to the user rating the movie,integer,\nrating_date_utc,,Rating date for the movie rating.,text,YYYY-MM-DD\nuser_trialist,,whether the user was a trialist when he rated the movie,integer,\"1 = the user was a trialist when he rated the movie\n 0 = the user was not a trialist when he rated the movie\"\nuser_subscriber,,whether the user was a subscriber when he rated the movie,integer,\"1 = the user was a subscriber when he rated the movie \n0 = the user was not a subscriber when he rated the movie\"\nuser_avatar_image_url,,URL to the user profile image on Mubi,text,\nuser_cover_image_url,,URL to the user profile cover image on Mubi,text,\nuser_eligible_for_trial,,whether the user was eligible for trial when he rated the movie,integer,\"1 = the user was eligible for trial when he rated the movie\n 0 = the user was not eligible for trial when he rated the movie\"\nuser_has_payment_method ,,whether the user was a paying subscriber when he rated the movie,integer,\"1 = the user was a paying subscriber when he rated the movie \n0 = the user was not a paying subscriber when he rated\"",
"table": "ratings_users"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,,ID related to the movie on Mubi,integer,\nmovie_title,,Name of the movie,text,\nmovie_release_year,,Release year of the movie,integer,\nmovie_url,,URL to the movie page on Mubi,text,\nmovie_title_language,,\"By default, the title is in English.\",text,Only contains one value which is 'en'\nmovie_popularity,,Number of Mubi users who love this movie,integer,\nmovie_image_url,,Image URL to the movie on Mubi,text,\ndirector_id,,ID related to the movie director on Mubi,text,\ndirector_name,,Full Name of the movie director,text,\ndirector_url ,,URL to the movie director page on Mubi,text,",
"table": "movies"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nuser_id,,ID related to the user who created the list.,integer,\nlist_id,,ID of the list on Mubi,integer,\nlist_update_date_utc,,Last update date for the list,text,YYYY-MM-DD\nlist_creation_date_utc,,Creation date for the list,text,YYYY-MM-DD\nuser_trialist,,whether the user was a tralist when he created the list ,integer,\"1 = the user was a trialist when he created the list\n 0 = the user was not a trialist when he created the list\"\nuser_subscriber,,whether the user was a subscriber when he created the list ,integer,\"1 = the user was a subscriber when he created the list \n0 = the user was not a subscriber when he created the list\"\nuser_avatar_image_url,,User profile image URL on Mubi,text,\nuser_cover_image_url,,User profile cover image URL on Mubi,text,\nuser_eligible_for_trial,,whether the user was eligible for trial when he created the list ,text,\"1 = the user was eligible for trial when he created the list \n0 = the user was not eligible for trial when he created the list\"\nuser_has_payment_method ,,whether the user was a paying subscriber when he created the list ,text,\"1 = the user was a paying subscriber when he created the list \n0 = the user was not a paying subscriber when he created the list \"",
"table": "lists_users"
}
] |
movies_4 | [
{
"create_sql": "CREATE TABLE country\n(\n country_id INTEGER not null\n primary key,\n country_iso_code TEXT default NULL,\n country_name TEXT default NULL\n);",
"table": "country"
},
{
"create_sql": "CREATE TABLE department\n(\n department_id INTEGER not null\n primary key,\n department_name TEXT default NULL\n);",
"table": "department"
},
{
"create_sql": "CREATE TABLE gender\n(\n gender_id INTEGER not null\n primary key,\n gender TEXT default NULL\n);",
"table": "gender"
},
{
"create_sql": "CREATE TABLE genre\n(\n genre_id INTEGER not null\n primary key,\n genre_name TEXT default NULL\n);",
"table": "genre"
},
{
"create_sql": "CREATE TABLE keyword\n(\n keyword_id INTEGER not null\n primary key,\n keyword_name TEXT default NULL\n);",
"table": "keyword"
},
{
"create_sql": "CREATE TABLE language\n(\n language_id INTEGER not null\n primary key,\n language_code TEXT default NULL,\n language_name TEXT default NULL\n);",
"table": "language"
},
{
"create_sql": "CREATE TABLE language_role\n(\n role_id INTEGER not null\n primary key,\n language_role TEXT default NULL\n);",
"table": "language_role"
},
{
"create_sql": "CREATE TABLE movie\n(\n movie_id INTEGER not null\n primary key,\n title TEXT default NULL,\n budget INTEGER default NULL,\n homepage TEXT default NULL,\n overview TEXT default NULL,\n popularity REAL default NULL,\n release_date DATE default NULL,\n revenue INTEGER default NULL,\n runtime INTEGER default NULL,\n movie_status TEXT default NULL,\n tagline TEXT default NULL,\n vote_average REAL default NULL,\n vote_count INTEGER default NULL\n);",
"table": "movie"
},
{
"create_sql": "CREATE TABLE movie_genres\n(\n movie_id INTEGER default NULL,\n genre_id INTEGER default NULL,\n foreign key (genre_id) references genre(genre_id),\n foreign key (movie_id) references movie(movie_id)\n);",
"table": "movie_genres"
},
{
"create_sql": "CREATE TABLE movie_languages\n(\n movie_id INTEGER default NULL,\n language_id INTEGER default NULL,\n language_role_id INTEGER default NULL,\n foreign key (language_id) references language(language_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (language_role_id) references language_role(role_id)\n);",
"table": "movie_languages"
},
{
"create_sql": "CREATE TABLE person\n(\n person_id INTEGER not null\n primary key,\n person_name TEXT default NULL\n);",
"table": "person"
},
{
"create_sql": "CREATE TABLE movie_crew\n(\n movie_id INTEGER default NULL,\n person_id INTEGER default NULL,\n department_id INTEGER default NULL,\n job TEXT default NULL,\n foreign key (department_id) references department(department_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (person_id) references person(person_id)\n);",
"table": "movie_crew"
},
{
"create_sql": "CREATE TABLE production_company\n(\n company_id INTEGER not null\n primary key,\n company_name TEXT default NULL\n);",
"table": "production_company"
},
{
"create_sql": "CREATE TABLE production_country\n(\n movie_id INTEGER default NULL,\n country_id INTEGER default NULL,\n foreign key (country_id) references country(country_id),\n foreign key (movie_id) references movie(movie_id)\n);",
"table": "production_country"
},
{
"create_sql": "CREATE TABLE movie_cast\n(\n movie_id INTEGER default NULL,\n person_id INTEGER default NULL,\n character_name TEXT default NULL,\n gender_id INTEGER default NULL,\n cast_order INTEGER default NULL,\n foreign key (gender_id) references gender(gender_id),\n foreign key (movie_id) references movie(movie_id),\n foreign key (person_id) references person(person_id)\n);",
"table": "movie_cast"
},
{
"create_sql": "CREATE TABLE \"movie_keywords\"\n(\n movie_id INTEGER default NULL\n references movie,\n keyword_id INTEGER default NULL\n references keyword\n);",
"table": "movie_keywords"
},
{
"create_sql": "CREATE TABLE \"movie_company\"\n(\n movie_id INTEGER default NULL\n references movie,\n company_id INTEGER default NULL\n references production_company\n);",
"table": "movie_company"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,movie id,\"the id of the movie\nMaps to movie(movie_id)\",integer,\nperson_id,person id,\"the id of the person\nMaps to person(person_id)\",integer,\ncharacter_name,character name,the character name,text,\ngender_id,gender id,\"the id of the cast's gender\nMaps to gender(gender_id)\",integer,\ncast_order,cast order,the cast order of the cast,integer,\"commonsense evidence:\nThe cast order of a movie or television show refers to the sequence in which the actors and actresses are listed in the credits. This order is typically determined by the relative importance of each actor's role in the production, with the main actors and actresses appearing first, followed by the supporting cast and extras. \"",
"table": "movie_cast"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nlanguage_id,language id,the unique identifier of the language,integer,\nlanguage_code,language code,the code of the language,text,\"commonsense evidence:\nHere we use ISO 639 codes to identify the language. \"\nlanguage_name,language name,the language name,text,",
"table": "language"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ngenre_id,genre id,the unique identifier of the genre,integer,\ngenre_name,,the genre,text,",
"table": "genre"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndepartment_id,department id,the unique identifier of the department,integer,\ndepartment_name,department name,the name of the department,,",
"table": "department"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,mivie id,the unique identifier of the movie,integer,\ncountry_id,country id,the id of the country,integer,",
"table": "production_country"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,movie id,\"the id of the movie \nMaps to movie(movie_id)\",integer,\nlanguage_id,language id,\"the id of the movie language\nMaps to language(language_id)\",integer,\nlanguage_role_id,language role id,the id of the role's language,integer,",
"table": "movie_languages"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ngender_id,gender id,the unique identifier of the gender,integer,\ngender,,the gender,text,\"commonsense evidence:\nfemale/ male/ unspecified \"",
"table": "gender"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,movie id,\"the id of the movie \nMaps to movie(movie_id)\",integer,\ncompany_id,company id,\"the id of the company that produced the movie\nMaps to production_company(company_id)\",integer,\"commonsense evidence:\nIf movies with different movie_id have the same company_id, it means these movies were made by the same company. \"",
"table": "movie_company"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nkeyword_id,keyword id,the unique identifier of the keyword,integer,\nkeyword_name, keyword name,the keyword,text,",
"table": "keyword"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,movie id,\"the id of the movie that the crew worked for\nMaps to movie(movie_id)\",integer,\nperson_id,person id,\"the id of the crew\nMaps to person(person_id)\",integer,\ndepartment_id,department id,\"the id of the crew's department\nMaps to department(department_id)\",integer,\njob,,the job of the crew,text,\"commonsense evidence:\nA movie may involve several crews with the same job title. \"",
"table": "movie_crew"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,movie id,\"the id of the movie \nMaps to movie(movie_id)\",integer,\ngenre_id,genre id,\"the id of the movie genre\nMaps to genre(genre_id)\",integer,",
"table": "movie_genres"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,movie id,\"the id of the movie \nMaps to movie(movie_id)\",integer,\nkeyword_id,keyword id,\"the id of the movie keyword\nMaps to keyword(keyword_id)\",integer,\"commonsense evidence:\nA movie may have many keywords. Audience could get the genre of the movie according to the movie keywords. \"",
"table": "movie_keywords"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_id,movie id,the unique identifier of the movie,integer,\ntitle,,the title of the movie,text,\nbudget,,the budget for the movie,integer,\"commonsense evidence:\nIf a movie has higher popularity, it means that it is well-liked by a large number of people. This can be determined by looking at the movie's ratings and reviews, as well as the box office performance and overall buzz surrounding the film. Higher popularity often translates to more success for the movie, both financially and critically.\"\nhomepage,,the homepage of the movie,text,\noverview,,the overview of the movie,text,\npopularity,,the popularity of the movie,real,\"commonsense evidence:\nIf a movie has higher popularity, it means that it is well-liked by a large number of people. This can be determined by looking at the movie's ratings and reviews, as well as the box office performance and overall buzz surrounding the film. Higher popularity often translates to more success for the movie, both financially and critically.\"\nrelease_date,release date,the release date of the movie,date,\nrevenue,,the revenue of the movie,integer,\"commonsense evidence:\nA higher vote average indicates that a greater proportion of people who have seen the movie have given it positive ratings.\"\nruntime,,the runtime of the movie,integer,\nmovie_status,,\"the status of the movie\nThe only value of this column is 'Released'. \",text,\ntagline,,the tagline of the movie,text,\nvote_average,vote average,the average vote for the movie,real,\"commonsense evidence:\nA higher vote average indicates that a greater proportion of people who have seen the movie have given it positive ratings.\"\nvote_count,vote count ,the vote count for the movie,integer,\"commonsense evidence:\nIf a movie has a higher vote average and vote count, it means that it has been well-received by audiences and critics. A higher vote count means that more people have rated the movie, which can indicate a greater level of interest in the film.\"",
"table": "movie"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncountry_id,country id,the unique identifier of the country,integer,\ncountry_iso_code,country iso code,the ISO code,text,\"commonsense evidence:\nISO codes are typically used to identify countries and their subdivisions, and there are different types of ISO codes depending on the specific application. Here we use ISO 3166 code to identify countries. \"\ncountry_name,country name,the name of the country,text,",
"table": "country"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncompany_id,company id,the unique identifier of the company,integer,\ncompany_name,company name,the name of the company,text,",
"table": "production_company"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nperson_id,person id,the unique identifier of the person,integer,\nperson_name,person name,the name of the person,text,",
"table": "person"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nrole_id,role id,the unique identifier of the language id,integer,\nlanguage_role,language role,the language role,text,\"commonsense evidence:\nIn the context of language roles in a movie or other audio-visual production, \"\"original\"\" and \"\"spoken\"\" refer to the languages in which the movie was originally produced, and the languages spoken by the characters in the movie, respectively.\"",
"table": "language_role"
}
] |
legislator | [
{
"create_sql": "CREATE TABLE current\n(\n ballotpedia_id TEXT,\n bioguide_id TEXT,\n birthday_bio DATE,\n cspan_id REAL,\n fec_id TEXT,\n first_name TEXT,\n gender_bio TEXT,\n google_entity_id_id TEXT,\n govtrack_id INTEGER,\n house_history_id REAL,\n icpsr_id REAL,\n last_name TEXT,\n lis_id TEXT,\n maplight_id REAL,\n middle_name TEXT,\n nickname_name TEXT,\n official_full_name TEXT,\n opensecrets_id TEXT,\n religion_bio TEXT,\n suffix_name TEXT,\n thomas_id INTEGER,\n votesmart_id REAL,\n wikidata_id TEXT,\n wikipedia_id TEXT,\n primary key (bioguide_id, cspan_id)\n);",
"table": "current"
},
{
"create_sql": "CREATE TABLE \"current-terms\"\n(\n address TEXT,\n bioguide TEXT,\n caucus TEXT,\n chamber TEXT,\n class REAL,\n contact_form TEXT,\n district REAL,\n end TEXT,\n fax TEXT,\n last TEXT,\n name TEXT,\n office TEXT,\n party TEXT,\n party_affiliations TEXT,\n phone TEXT,\n relation TEXT,\n rss_url TEXT,\n start TEXT,\n state TEXT,\n state_rank TEXT,\n title TEXT,\n type TEXT,\n url TEXT,\n primary key (bioguide, end),\n foreign key (bioguide) references current(bioguide_id)\n);",
"table": "current-terms"
},
{
"create_sql": "CREATE TABLE historical\n(\n ballotpedia_id TEXT,\n bioguide_id TEXT\n primary key,\n bioguide_previous_id TEXT,\n birthday_bio TEXT,\n cspan_id TEXT,\n fec_id TEXT,\n first_name TEXT,\n gender_bio TEXT,\n google_entity_id_id TEXT,\n govtrack_id INTEGER,\n house_history_alternate_id TEXT,\n house_history_id REAL,\n icpsr_id REAL,\n last_name TEXT,\n lis_id TEXT,\n maplight_id TEXT,\n middle_name TEXT,\n nickname_name TEXT,\n official_full_name TEXT,\n opensecrets_id TEXT,\n religion_bio TEXT,\n suffix_name TEXT,\n thomas_id TEXT,\n votesmart_id TEXT,\n wikidata_id TEXT,\n wikipedia_id TEXT\n);",
"table": "historical"
},
{
"create_sql": "CREATE TABLE \"historical-terms\"\n(\n address TEXT,\n bioguide TEXT\n primary key,\n chamber TEXT,\n class REAL,\n contact_form TEXT,\n district REAL,\n end TEXT,\n fax TEXT,\n last TEXT,\n middle TEXT,\n name TEXT,\n office TEXT,\n party TEXT,\n party_affiliations TEXT,\n phone TEXT,\n relation TEXT,\n rss_url TEXT,\n start TEXT,\n state TEXT,\n state_rank TEXT,\n title TEXT,\n type TEXT,\n url TEXT,\n foreign key (bioguide) references historical(bioguide_id)\n);",
"table": "historical-terms"
},
{
"create_sql": "CREATE TABLE \"social-media\"\n(\n bioguide TEXT\n primary key,\n facebook TEXT,\n facebook_id REAL,\n govtrack REAL,\n instagram TEXT,\n instagram_id REAL,\n thomas INTEGER,\n twitter TEXT,\n twitter_id REAL,\n youtube TEXT,\n youtube_id TEXT,\n foreign key (bioguide) references current(bioguide_id)\n);",
"table": "social-media"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\naddress,,the address of this legislator,text,\nbioguide,bioguide id,The alphanumeric ID for this legislator ,text,\ncaucus,,caucus,text,\"For independents, the party that the legislator caucuses with, using the same values as the party field. Omitted if the legislator caucuses with the party indicated in the party field. When in doubt about the difference between the party and caucus fields, the party field is what displays after the legislator's name (i.e. \"\"(D)\"\") but the caucus field is what normally determines committee seniority. This field was added starting with terms for the 113th Congress.\"\nchamber,,chamber,text,\"⢠senate\n⢠house\"\nclass,,class,real,\"For senators, their election class (1, 2, or 3). \ncommonsense evidence:\nonly senator has class, if the value is null or empty, it means this legislator is not senator.\"\ncontact_form,,The website URL of the contact page on the legislator's official website,text,\ndistrict,,district,real,\"For representatives, the district number they are serving from. \ncommonsense evidence:\nif null or empty, they are not representatives.\"\nend,,the end of the term,text,\"end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\"\nfax,,\"The fax number of the legislator's Washington, D.C. office\",text,only valid if the term is current\nlast,,the last known number,text,\nname,,,text,not useful\noffice,,office ,text,\"only valid if the term is current, otherwise the last known office\"\nparty,,The political party of the legislator.,text,\"commonsense evidence:\nIf the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"\"Democrat\"\", \"\"Independent\"\", or \"\"Republican\"\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"\"Democratic Farmer Labor\"\" we will use the national party name (\"\"Democrat\"\") instead to keep the values of this field normalized.\"\nparty_affiliations,party affiliations,This field is present if the legislator changed party or caucus affiliation during the term.,text,\"The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\"\nphone,,\"The phone number of the legislator's Washington, D.C. office\",text,\"only valid if the term is current, otherwise the last known number\"\nrelation,,,text,not useful\nrss_url,Really Simple Syndication URL,The URL to the official website's RSS feed,text,\nstart,,\"The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. \",text,\"Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.) \"\nstate,,state code,text,\"commonsense evidence:\nAK: Alaska \nAL: Alabama \nAR: Arkansas \nAZ: Arizona \nCA: California \nCO: Colorado \nCT: Connecticut \nDE: Delaware \nFL: Florida \nGA: Georgia \nHI: Hawaii \nIA: Iowa \nID: Idaho \nIL: Illinois \nIN: Indiana \nKS: Kansas \nKY: Kentucky \nLA: Louisiana \nMA: Massachusetts \nMD: Maryland \nME: Maine \nMI: Michigan \nMN: Minnesota \nMO: Missouri \nMS: Mississippi \nMT: Montana \nNC: North Carolina \nND: North Dakota \nNE: Nebraska \nNH: New Hampshire \nNJ: New Jersey\n9 divisions of states in us: (please mention)\nhttps://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf\"\nstate_rank,,\"whether they are the \"\"junior\"\" or \"\"senior\"\" senator\",text,\"only valid if the term is current, otherwise the senator's rank at the time the term ended\ncommonsense evidence:\nonly senator has this value\"\ntitle,,title of the legislator,text,\ntype,,The type of the term.,text,\"Either \"\"sen\"\" for senators or \"\"rep\"\" for representatives and delegates to the House\"\nurl,,The official website URL of the legislator ,text,only valid if the term is current",
"table": "current-terms"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbioguide,,The unique alphanumeric ID for this legislator ,text,\nfacebook,,The username of the current official Facebook presence of the legislator.,text,\nfacebook_id,,The numeric ID of the current official Facebook presence of the legislator.,real,\ngovtrack,,The numeric ID for this legislator on GovTrack.us,real,\ninstagram,,The current official Instagram handle of the legislator.,text,\ninstagram_id,,The numeric ID of the current official Instagram handle of the legislator.,real,\nthomas,,The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. ,integer,\ntwitter,,The current official Twitter handle of the legislator.,text,\ntwitter_id,,The numeric ID of the current official twitter handle of the legislator.,real,\nyoutube,,The current official YouTube username of the legislator.,text,\nyoutube_id,,The current official YouTube channel ID of the legislator.,text,",
"table": "social-media"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nballotpedia_id,ballotpedia id,\"The ballotpedia.org page name for the person (spaces are given as spaces, not underscores).\",text,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on ballotpedia.org\"\nbioguide_id,bioguide id,The alphanumeric ID for this legislator ,text,\nbirthday_bio,birthday bio,\"The legislator's birthday,\",date,in YYYY-MM-DD format.\ncspan_id,cspan id,\"The numeric ID for this legislator on C-SPAN's video website,\",real,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website\"\nfec_id,fec id, A list of IDs for this legislator in Federal Election Commission data.,text,\"commonsense evidence:\nif this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\"\nfirst_name,first name,first name of the legislator,text,\ngender_bio,gender bio,gender of the legislator,text,\ngoogle_entity_id_id,google entity id,google entity id,text,\"commonsense evidence:\nif this value is null or empty, it means this legislator are not google entities\"\ngovtrack_id,govtrack id,The numeric ID for this legislator on GovTrack.us,integer,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on GovTrack.us\"\nhouse_history_id,house history id,The numeric ID for this legislator on http://history.house.gov/People/Search/,real,\"commonsense evidence:\nThe ID is present only for members who have served in the U.S. House.\"\nicpsr_id,interuniversity consortium for political and social research id,\"The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer).\",real,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on VoteView.com \"\nlast_name,last name,last name of the legislator,text,\nlis_id,legislator id,The alphanumeric ID for this legislator found in Senate roll call votes,text,\"commonsense evidence:\nThe ID is present only for members who attended in Senate roll call votes\"\nmaplight_id,maplight id,The numeric ID for this legislator on maplight.org,real,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on maplight.org\"\nmiddle_name,middle name ,the middle name of the legislator,text,\nnickname_name,nickname,nickname of the legislator,text,\nofficial_full_name,official full name,official full name,text,\nopensecrets_id,opensecrets id,The alphanumeric ID for this legislator on OpenSecrets.org.,text,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\"\nreligion_bio,religion bio,The legislator's religion.,text,\nsuffix_name,suffix name,suffix name,text,\nthomas_id,thomas id,The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. ,integer,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\"\nvotesmart_id,votesmart id,The numeric ID for this legislator on VoteSmart.org,real,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on VoteSmart.org\"\nwikidata_id,wikidata id,the id for wikidata,text,\nwikipedia_id,wikipedia id, The Wikipedia page name for the person,text,\"commonsense evidence:\nif a legislator has wikipedia id, it means he or she is famous or impact\"",
"table": "current"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbioguide,bioguide id,The alphanumeric ID for this legislator ,text,\naddress,,the address of this legislator,text,\ncaucus,,caucus,text,\"For independents, the party that the legislator caucuses with, using the same values as the party field. Omitted if the legislator caucuses with the party indicated in the party field. When in doubt about the difference between the party and caucus fields, the party field is what displays after the legislator's name (i.e. \"\"(D)\"\") but the caucus field is what normally determines committee seniority. This field was added starting with terms for the 113th Congress.\"\nchamber,,chamber,text,\"⢠senate\n⢠house\"\nclass,,class,real,\"For senators, their election class (1, 2, or 3). \ncommonsense evidence:\nonly senator has class, if the value is null or empty, it means this legislator is not senator.\"\ncontact_form,,The website URL of the contact page on the legislator's official website,text,\ndistrict,,district,real,\"For representatives, the district number they are serving from. \ncommonsense evidence:\nif null or empty, they are not representatives.\"\nend,,the end of the term,text,\"end: The date the term ended (because the Congress ended or the legislator died or resigned, etc.). End dates follow the Constitutional end of a term. Since 1935, terms begin and end on January 3 at noon in odd-numbered years, and thus a term end date may also be a term start date. Prior to 1935, terms began on March 4 and ended either on March 3 or March 4. The end date is the last date on which the legislator served this term. Unlike the start date, whether Congress was in session or not does not affect the value of this field.\"\nfax,,\"The fax number of the legislator's Washington, D.C. office\",text,only valid if the term is current\nlast,,the last known number,text,\nmiddle,,,text,\nname,,,text,not useful\noffice,,office ,text,\"only valid if the term is current, otherwise the last known office\"\nparty,,The political party of the legislator.,text,\"commonsense evidence:\nIf the legislator changed parties, this is the most recent party held during the term and party_affiliations will be set. Values are typically \"\"Democrat\"\", \"\"Independent\"\", or \"\"Republican\"\". The value typically matches the political party of the legislator on the ballot in his or her last election, although for state affiliate parties such as \"\"Democratic Farmer Labor\"\" we will use the national party name (\"\"Democrat\"\") instead to keep the values of this field normalized.\"\nparty_affiliations,party affiliations,This field is present if the legislator changed party or caucus affiliation during the term.,text,\"The value is a list of time periods, with start and end dates, each of which has a party field and a caucus field if applicable, with the same meanings as the main party and caucus fields. The time periods cover the entire term, so the first start will match the term start, the last end will match the term end, and the last party (and caucus if present) will match the term party (and caucus).\"\nphone,,\"The phone number of the legislator's Washington, D.C. office\",text,\"only valid if the term is current, otherwise the last known number\"\nrelation,,,text,not useful\nrss_url,Really Simple Syndication URL,The URL to the official website's RSS feed,text,\nstart,,\"The date legislative service began: the date the legislator was sworn in, if known, or else the beginning of the legislator's term. \",text,\"Since 1935 regularly elected terms begin on January 3 at noon on odd-numbered years, but when Congress does not first meet on January 3, term start dates might reflect that swearing-in occurred on a later date. (Prior to 1935, terms began on March 4 of odd-numbered years, see here.) \"\nstate,,state code,text,\"commonsense evidence:\nAK: Alaska \nAL: Alabama \nAR: Arkansas \nAZ: Arizona \nCA: California \nCO: Colorado \nCT: Connecticut \nDE: Delaware \nFL: Florida \nGA: Georgia \nHI: Hawaii \nIA: Iowa \nID: Idaho \nIL: Illinois \nIN: Indiana \nKS: Kansas \nKY: Kentucky \nLA: Louisiana \nMA: Massachusetts \nMD: Maryland \nME: Maine \nMI: Michigan \nMN: Minnesota \nMO: Missouri \nMS: Mississippi \nMT: Montana \nNC: North Carolina \nND: North Dakota \nNE: Nebraska \nNH: New Hampshire \nNJ: New Jersey\n9 divisions of states in us: (please mention)\nhttps://www2.census.gov/geo/pdfs/maps-data/maps/reference/us_regdiv.pdf\"\nstate_rank,,\"whether they are the \"\"junior\"\" or \"\"senior\"\" senator\",text,\"only valid if the term is current, otherwise the senator's rank at the time the term ended\ncommonsense evidence:\nonly senator has this value\"\ntitle,,title of the legislator,text,\ntype,,The type of the term.,text,\"Either \"\"sen\"\" for senators or \"\"rep\"\" for representatives and delegates to the House\"\nurl,,The official website URL of the legislator ,text,only valid if the term is current",
"table": "historical-terms"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nballotpedia_id,ballotpedia id,\"The ballotpedia.org page name for the person (spaces are given as spaces, not underscores).\",text,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on ballotpedia.org\"\nbioguide_previous_id,bioguide previous id,The previous alphanumeric ID for this legislator ,text,\nbioguide_id,bioguide id,The alphanumeric ID for this legislator ,text,\nbirthday_bio,birthday bio,\"The legislator's birthday,\",text,in YYYY-MM-DD format.\ncspan_id,cspan id,\"The numeric ID for this legislator on C-SPAN's video website,\",text,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on C-SPAN's video website\"\nfec_id,fec id, A list of IDs for this legislator in Federal Election Commission data.,text,\"commonsense evidence:\nif this value is null or empty, it means this legislator hasn't not been registered in Federal Election Commission data.\"\nfirst_name,first name,first name of the legislator,text,\ngender_bio,gender bio,gender of the legislator,text,\ngoogle_entity_id_id,google entity id,google entity id,text,\"commonsense evidence:\nif this value is null or empty, it means this legislator are not google entities\"\ngovtrack_id,govtrack id,The numeric ID for this legislator on GovTrack.us,integer,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on GovTrack.us\"\nhouse_history_alternate_id,house history alternate id,The alternative numeric ID for this legislator,text,\nhouse_history_id,house history id,The numeric ID for this legislator on http://history.house.gov/People/Search/,real,\"commonsense evidence:\nThe ID is present only for members who have served in the U.S. House.\"\nicpsr_id,interuniversity consortium for political and social research id,\"The numeric ID for this legislator in Keith Poole's VoteView.com website, originally based on an ID system by the Interuniversity Consortium for Political and Social Research (stored as an integer).\",real,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on VoteView.com \"\nlast_name,last name,last name of the legislator,text,\nlis_id,legislator id,The alphanumeric ID for this legislator found in Senate roll call votes,text,\"commonsense evidence:\nThe ID is present only for members who attended in Senate roll call votes\"\nmaplight_id,maplight id,The numeric ID for this legislator on maplight.org,text,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on maplight.org\"\nmiddle_name,middle name ,the middle name of the legislator,text,\nnickname_name,nickname,nickname of the legislator,text,\nofficial_full_name,official full name,official full name,text,\nopensecrets_id,opensecrets id,The alphanumeric ID for this legislator on OpenSecrets.org.,text,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on OpenSecrets.org.\"\nreligion_bio,religion bio,The legislator's religion.,text,\nsuffix_name,suffix name,suffix name,text,\nthomas_id,thomas id,The numeric ID for this legislator on http://thomas.gov and http://beta.congress.gov. ,text,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on both http://thomas.gov and http://beta.congress.gov.\"\nvotesmart_id,votesmart id,The numeric ID for this legislator on VoteSmart.org,text,\"commonsense evidence:\nif this value is null or empty, it means this legislator doesn't have account on VoteSmart.org\"\nwikidata_id,wikidata id,the id for wikidata,text,\nwikipedia_id,wikipedia id, The Wikipedia page name for the person,text,\"commonsense evidence:\nif a legislator has wikipedia id, it means he or she is famous or impact\"",
"table": "historical"
}
] |
works_cycles | [
{
"create_sql": "CREATE TABLE CountryRegion\n(\n CountryRegionCode TEXT not null\n primary key,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "CountryRegion"
},
{
"create_sql": "CREATE TABLE Culture\n(\n CultureID TEXT not null\n primary key,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "Culture"
},
{
"create_sql": "CREATE TABLE Currency\n(\n CurrencyCode TEXT not null\n primary key,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "Currency"
},
{
"create_sql": "CREATE TABLE CountryRegionCurrency\n(\n CountryRegionCode TEXT not null,\n CurrencyCode TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (CountryRegionCode, CurrencyCode),\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode),\n foreign key (CurrencyCode) references Currency(CurrencyCode)\n);",
"table": "CountryRegionCurrency"
},
{
"create_sql": "CREATE TABLE Person\n(\n BusinessEntityID INTEGER not null\n primary key,\n PersonType TEXT not null,\n NameStyle INTEGER default 0 not null,\n Title TEXT,\n FirstName TEXT not null,\n MiddleName TEXT,\n LastName TEXT not null,\n Suffix TEXT,\n EmailPromotion INTEGER default 0 not null,\n AdditionalContactInfo TEXT,\n Demographics TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);",
"table": "Person"
},
{
"create_sql": "CREATE TABLE BusinessEntityContact\n(\n BusinessEntityID INTEGER not null,\n PersonID INTEGER not null,\n ContactTypeID INTEGER not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, PersonID, ContactTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (ContactTypeID) references ContactType(ContactTypeID),\n foreign key (PersonID) references Person(BusinessEntityID)\n);",
"table": "BusinessEntityContact"
},
{
"create_sql": "CREATE TABLE EmailAddress\n(\n BusinessEntityID INTEGER not null,\n EmailAddressID INTEGER,\n EmailAddress TEXT,\n rowguid TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (EmailAddressID, BusinessEntityID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);",
"table": "EmailAddress"
},
{
"create_sql": "CREATE TABLE Employee\n(\n BusinessEntityID INTEGER not null\n primary key,\n NationalIDNumber TEXT not null\n unique,\n LoginID TEXT not null\n unique,\n OrganizationNode TEXT,\n OrganizationLevel INTEGER,\n JobTitle TEXT not null,\n BirthDate DATE not null,\n MaritalStatus TEXT not null,\n Gender TEXT not null,\n HireDate DATE not null,\n SalariedFlag INTEGER default 1 not null,\n VacationHours INTEGER default 0 not null,\n SickLeaveHours INTEGER default 0 not null,\n CurrentFlag INTEGER default 1 not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);",
"table": "Employee"
},
{
"create_sql": "CREATE TABLE Password\n(\n BusinessEntityID INTEGER not null\n primary key,\n PasswordHash TEXT not null,\n PasswordSalt TEXT not null,\n rowguid TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null,\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);",
"table": "Password"
},
{
"create_sql": "CREATE TABLE PersonCreditCard\n(\n BusinessEntityID INTEGER not null,\n CreditCardID INTEGER not null,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, CreditCardID),\n foreign key (CreditCardID) references CreditCard(CreditCardID),\n foreign key (BusinessEntityID) references Person(BusinessEntityID)\n);",
"table": "PersonCreditCard"
},
{
"create_sql": "CREATE TABLE ProductCategory\n(\n ProductCategoryID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "ProductCategory"
},
{
"create_sql": "CREATE TABLE ProductDescription\n(\n ProductDescriptionID INTEGER\n primary key autoincrement,\n Description TEXT not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "ProductDescription"
},
{
"create_sql": "CREATE TABLE ProductModel\n(\n ProductModelID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n CatalogDescription TEXT,\n Instructions TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "ProductModel"
},
{
"create_sql": "CREATE TABLE ProductModelProductDescriptionCulture\n(\n ProductModelID INTEGER not null,\n ProductDescriptionID INTEGER not null,\n CultureID TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductModelID, ProductDescriptionID, CultureID),\n foreign key (ProductModelID) references ProductModel(ProductModelID),\n foreign key (ProductDescriptionID) references ProductDescription(ProductDescriptionID),\n foreign key (CultureID) references Culture(CultureID)\n);",
"table": "ProductModelProductDescriptionCulture"
},
{
"create_sql": "CREATE TABLE ProductPhoto\n(\n ProductPhotoID INTEGER\n primary key autoincrement,\n ThumbNailPhoto BLOB,\n ThumbnailPhotoFileName TEXT,\n LargePhoto BLOB,\n LargePhotoFileName TEXT,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "ProductPhoto"
},
{
"create_sql": "CREATE TABLE ProductSubcategory\n(\n ProductSubcategoryID INTEGER\n primary key autoincrement,\n ProductCategoryID INTEGER not null,\n Name TEXT not null\n unique,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductCategoryID) references ProductCategory(ProductCategoryID)\n);",
"table": "ProductSubcategory"
},
{
"create_sql": "CREATE TABLE SalesReason\n(\n SalesReasonID INTEGER\n primary key autoincrement,\n Name TEXT not null,\n ReasonType TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "SalesReason"
},
{
"create_sql": "CREATE TABLE SalesTerritory\n(\n TerritoryID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n CountryRegionCode TEXT not null,\n \"Group\" TEXT not null,\n SalesYTD REAL default 0.0000 not null,\n SalesLastYear REAL default 0.0000 not null,\n CostYTD REAL default 0.0000 not null,\n CostLastYear REAL default 0.0000 not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (CountryRegionCode) references CountryRegion(CountryRegionCode)\n);",
"table": "SalesTerritory"
},
{
"create_sql": "CREATE TABLE SalesPerson\n(\n BusinessEntityID INTEGER not null\n primary key,\n TerritoryID INTEGER,\n SalesQuota REAL,\n Bonus REAL default 0.0000 not null,\n CommissionPct REAL default 0.0000 not null,\n SalesYTD REAL default 0.0000 not null,\n SalesLastYear REAL default 0.0000 not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (BusinessEntityID) references Employee(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);",
"table": "SalesPerson"
},
{
"create_sql": "CREATE TABLE SalesPersonQuotaHistory\n(\n BusinessEntityID INTEGER not null,\n QuotaDate DATETIME not null,\n SalesQuota REAL not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (BusinessEntityID, QuotaDate),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID)\n);",
"table": "SalesPersonQuotaHistory"
},
{
"create_sql": "CREATE TABLE SalesTerritoryHistory\n(\n BusinessEntityID INTEGER not null,\n TerritoryID INTEGER not null,\n StartDate DATETIME not null,\n EndDate DATETIME,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (BusinessEntityID, StartDate, TerritoryID),\n foreign key (BusinessEntityID) references SalesPerson(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID)\n);",
"table": "SalesTerritoryHistory"
},
{
"create_sql": "CREATE TABLE ScrapReason\n(\n ScrapReasonID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "ScrapReason"
},
{
"create_sql": "CREATE TABLE Shift\n(\n ShiftID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n StartTime TEXT not null,\n EndTime TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n unique (StartTime, EndTime)\n);",
"table": "Shift"
},
{
"create_sql": "CREATE TABLE ShipMethod\n(\n ShipMethodID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n ShipBase REAL default 0.0000 not null,\n ShipRate REAL default 0.0000 not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "ShipMethod"
},
{
"create_sql": "CREATE TABLE SpecialOffer\n(\n SpecialOfferID INTEGER\n primary key autoincrement,\n Description TEXT not null,\n DiscountPct REAL default 0.0000 not null,\n Type TEXT not null,\n Category TEXT not null,\n StartDate DATETIME not null,\n EndDate DATETIME not null,\n MinQty INTEGER default 0 not null,\n MaxQty INTEGER,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "SpecialOffer"
},
{
"create_sql": "CREATE TABLE BusinessEntityAddress\n(\n BusinessEntityID INTEGER not null,\n AddressID INTEGER not null,\n AddressTypeID INTEGER not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, AddressID, AddressTypeID),\n foreign key (AddressID) references Address(AddressID),\n foreign key (AddressTypeID) references AddressType(AddressTypeID),\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);",
"table": "BusinessEntityAddress"
},
{
"create_sql": "CREATE TABLE SalesTaxRate\n(\n SalesTaxRateID INTEGER\n primary key autoincrement,\n StateProvinceID INTEGER not null,\n TaxType INTEGER not null,\n TaxRate REAL default 0.0000 not null,\n Name TEXT not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n unique (StateProvinceID, TaxType),\n foreign key (StateProvinceID) references StateProvince(StateProvinceID)\n);",
"table": "SalesTaxRate"
},
{
"create_sql": "CREATE TABLE Store\n(\n BusinessEntityID INTEGER not null\n primary key,\n Name TEXT not null,\n SalesPersonID INTEGER,\n Demographics TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID),\n foreign key (SalesPersonID) references SalesPerson(BusinessEntityID)\n);",
"table": "Store"
},
{
"create_sql": "CREATE TABLE SalesOrderHeaderSalesReason\n(\n SalesOrderID INTEGER not null,\n SalesReasonID INTEGER not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (SalesOrderID, SalesReasonID),\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SalesReasonID) references SalesReason(SalesReasonID)\n);",
"table": "SalesOrderHeaderSalesReason"
},
{
"create_sql": "CREATE TABLE TransactionHistoryArchive\n(\n TransactionID INTEGER not null\n primary key,\n ProductID INTEGER not null,\n ReferenceOrderID INTEGER not null,\n ReferenceOrderLineID INTEGER default 0 not null,\n TransactionDate DATETIME default CURRENT_TIMESTAMP not null,\n TransactionType TEXT not null,\n Quantity INTEGER not null,\n ActualCost REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "TransactionHistoryArchive"
},
{
"create_sql": "CREATE TABLE UnitMeasure\n(\n UnitMeasureCode TEXT not null\n primary key,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "UnitMeasure"
},
{
"create_sql": "CREATE TABLE ProductCostHistory\n(\n ProductID INTEGER not null,\n StartDate DATE not null,\n EndDate DATE,\n StandardCost REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);",
"table": "ProductCostHistory"
},
{
"create_sql": "CREATE TABLE ProductDocument\n(\n ProductID INTEGER not null,\n DocumentNode TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, DocumentNode),\n foreign key (ProductID) references Product(ProductID),\n foreign key (DocumentNode) references Document(DocumentNode)\n);",
"table": "ProductDocument"
},
{
"create_sql": "CREATE TABLE ProductInventory\n(\n ProductID INTEGER not null,\n LocationID INTEGER not null,\n Shelf TEXT not null,\n Bin INTEGER not null,\n Quantity INTEGER default 0 not null,\n rowguid TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, LocationID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (LocationID) references Location(LocationID)\n);",
"table": "ProductInventory"
},
{
"create_sql": "CREATE TABLE ProductProductPhoto\n(\n ProductID INTEGER not null,\n ProductPhotoID INTEGER not null,\n \"Primary\" INTEGER default 0 not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, ProductPhotoID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (ProductPhotoID) references ProductPhoto(ProductPhotoID)\n);",
"table": "ProductProductPhoto"
},
{
"create_sql": "CREATE TABLE ProductReview\n(\n ProductReviewID INTEGER\n primary key autoincrement,\n ProductID INTEGER not null,\n ReviewerName TEXT not null,\n ReviewDate DATETIME default CURRENT_TIMESTAMP not null,\n EmailAddress TEXT not null,\n Rating INTEGER not null,\n Comments TEXT,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductID) references Product(ProductID)\n);",
"table": "ProductReview"
},
{
"create_sql": "CREATE TABLE ShoppingCartItem\n(\n ShoppingCartItemID INTEGER\n primary key autoincrement,\n ShoppingCartID TEXT not null,\n Quantity INTEGER default 1 not null,\n ProductID INTEGER not null,\n DateCreated DATETIME default CURRENT_TIMESTAMP not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductID) references Product(ProductID)\n);",
"table": "ShoppingCartItem"
},
{
"create_sql": "CREATE TABLE SpecialOfferProduct\n(\n SpecialOfferID INTEGER not null,\n ProductID INTEGER not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (SpecialOfferID, ProductID),\n foreign key (SpecialOfferID) references SpecialOffer(SpecialOfferID),\n foreign key (ProductID) references Product(ProductID)\n);",
"table": "SpecialOfferProduct"
},
{
"create_sql": "CREATE TABLE SalesOrderDetail\n(\n SalesOrderID INTEGER not null,\n SalesOrderDetailID INTEGER\n primary key autoincrement,\n CarrierTrackingNumber TEXT,\n OrderQty INTEGER not null,\n ProductID INTEGER not null,\n SpecialOfferID INTEGER not null,\n UnitPrice REAL not null,\n UnitPriceDiscount REAL default 0.0000 not null,\n LineTotal REAL not null,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (SalesOrderID) references SalesOrderHeader(SalesOrderID),\n foreign key (SpecialOfferID, ProductID) references SpecialOfferProduct(SpecialOfferID, ProductID)\n);",
"table": "SalesOrderDetail"
},
{
"create_sql": "CREATE TABLE TransactionHistory\n(\n TransactionID INTEGER\n primary key autoincrement,\n ProductID INTEGER not null,\n ReferenceOrderID INTEGER not null,\n ReferenceOrderLineID INTEGER default 0 not null,\n TransactionDate DATETIME default CURRENT_TIMESTAMP not null,\n TransactionType TEXT not null,\n Quantity INTEGER not null,\n ActualCost REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductID) references Product(ProductID)\n);",
"table": "TransactionHistory"
},
{
"create_sql": "CREATE TABLE Vendor\n(\n BusinessEntityID INTEGER not null\n primary key,\n AccountNumber TEXT not null\n unique,\n Name TEXT not null,\n CreditRating INTEGER not null,\n PreferredVendorStatus INTEGER default 1 not null,\n ActiveFlag INTEGER default 1 not null,\n PurchasingWebServiceURL TEXT,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (BusinessEntityID) references BusinessEntity(BusinessEntityID)\n);",
"table": "Vendor"
},
{
"create_sql": "CREATE TABLE ProductVendor\n(\n ProductID INTEGER not null,\n BusinessEntityID INTEGER not null,\n AverageLeadTime INTEGER not null,\n StandardPrice REAL not null,\n LastReceiptCost REAL,\n LastReceiptDate DATETIME,\n MinOrderQty INTEGER not null,\n MaxOrderQty INTEGER not null,\n OnOrderQty INTEGER,\n UnitMeasureCode TEXT not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, BusinessEntityID),\n foreign key (ProductID) references Product(ProductID),\n foreign key (BusinessEntityID) references Vendor(BusinessEntityID),\n foreign key (UnitMeasureCode) references UnitMeasure(UnitMeasureCode)\n);",
"table": "ProductVendor"
},
{
"create_sql": "CREATE TABLE PurchaseOrderHeader\n(\n PurchaseOrderID INTEGER\n primary key autoincrement,\n RevisionNumber INTEGER default 0 not null,\n Status INTEGER default 1 not null,\n EmployeeID INTEGER not null,\n VendorID INTEGER not null,\n ShipMethodID INTEGER not null,\n OrderDate DATETIME default CURRENT_TIMESTAMP not null,\n ShipDate DATETIME,\n SubTotal REAL default 0.0000 not null,\n TaxAmt REAL default 0.0000 not null,\n Freight REAL default 0.0000 not null,\n TotalDue REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (EmployeeID) references Employee(BusinessEntityID),\n foreign key (VendorID) references Vendor(BusinessEntityID),\n foreign key (ShipMethodID) references ShipMethod(ShipMethodID)\n);",
"table": "PurchaseOrderHeader"
},
{
"create_sql": "CREATE TABLE PurchaseOrderDetail\n(\n PurchaseOrderID INTEGER not null,\n PurchaseOrderDetailID INTEGER\n primary key autoincrement,\n DueDate DATETIME not null,\n OrderQty INTEGER not null,\n ProductID INTEGER not null,\n UnitPrice REAL not null,\n LineTotal REAL not null,\n ReceivedQty REAL not null,\n RejectedQty REAL not null,\n StockedQty REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (PurchaseOrderID) references PurchaseOrderHeader(PurchaseOrderID),\n foreign key (ProductID) references Product(ProductID)\n);",
"table": "PurchaseOrderDetail"
},
{
"create_sql": "CREATE TABLE WorkOrder\n(\n WorkOrderID INTEGER\n primary key autoincrement,\n ProductID INTEGER not null,\n OrderQty INTEGER not null,\n StockedQty INTEGER not null,\n ScrappedQty INTEGER not null,\n StartDate DATETIME not null,\n EndDate DATETIME,\n DueDate DATETIME not null,\n ScrapReasonID INTEGER,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n foreign key (ProductID) references Product(ProductID),\n foreign key (ScrapReasonID) references ScrapReason(ScrapReasonID)\n);",
"table": "WorkOrder"
},
{
"create_sql": "CREATE TABLE WorkOrderRouting\n(\n WorkOrderID INTEGER not null,\n ProductID INTEGER not null,\n OperationSequence INTEGER not null,\n LocationID INTEGER not null,\n ScheduledStartDate DATETIME not null,\n ScheduledEndDate DATETIME not null,\n ActualStartDate DATETIME,\n ActualEndDate DATETIME,\n ActualResourceHrs REAL,\n PlannedCost REAL not null,\n ActualCost REAL,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (WorkOrderID, ProductID, OperationSequence),\n foreign key (WorkOrderID) references WorkOrder(WorkOrderID),\n foreign key (LocationID) references Location(LocationID)\n);",
"table": "WorkOrderRouting"
},
{
"create_sql": "CREATE TABLE Customer\n(\n CustomerID INTEGER\n primary key,\n PersonID INTEGER,\n StoreID INTEGER,\n TerritoryID INTEGER,\n AccountNumber TEXT not null\n unique,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n foreign key (PersonID) references Person(BusinessEntityID),\n foreign key (TerritoryID) references SalesTerritory(TerritoryID),\n foreign key (StoreID) references Store(BusinessEntityID)\n);",
"table": "Customer"
},
{
"create_sql": "CREATE TABLE ProductListPriceHistory\n(\n ProductID INTEGER not null,\n StartDate DATE not null,\n EndDate DATE,\n ListPrice REAL not null,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n primary key (ProductID, StartDate),\n foreign key (ProductID) references Product(ProductID)\n);",
"table": "ProductListPriceHistory"
},
{
"create_sql": "CREATE TABLE \"Address\"\n(\n AddressID INTEGER\n primary key autoincrement,\n AddressLine1 TEXT not null,\n AddressLine2 TEXT,\n City TEXT not null,\n StateProvinceID INTEGER not null\n references StateProvince,\n PostalCode TEXT not null,\n SpatialLocation TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n unique (AddressLine1, AddressLine2, City, StateProvinceID, PostalCode)\n);",
"table": "Address"
},
{
"create_sql": "CREATE TABLE \"AddressType\"\n(\n AddressTypeID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "AddressType"
},
{
"create_sql": "CREATE TABLE \"BillOfMaterials\"\n(\n BillOfMaterialsID INTEGER\n primary key autoincrement,\n ProductAssemblyID INTEGER\n references Product,\n ComponentID INTEGER not null\n references Product,\n StartDate DATETIME default current_timestamp not null,\n EndDate DATETIME,\n UnitMeasureCode TEXT not null\n references UnitMeasure,\n BOMLevel INTEGER not null,\n PerAssemblyQty REAL default 1.00 not null,\n ModifiedDate DATETIME default current_timestamp not null,\n unique (ProductAssemblyID, ComponentID, StartDate)\n);",
"table": "BillOfMaterials"
},
{
"create_sql": "CREATE TABLE \"BusinessEntity\"\n(\n BusinessEntityID INTEGER\n primary key autoincrement,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "BusinessEntity"
},
{
"create_sql": "CREATE TABLE \"ContactType\"\n(\n ContactTypeID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "ContactType"
},
{
"create_sql": "CREATE TABLE \"CurrencyRate\"\n(\n CurrencyRateID INTEGER\n primary key autoincrement,\n CurrencyRateDate DATETIME not null,\n FromCurrencyCode TEXT not null\n references Currency,\n ToCurrencyCode TEXT not null\n references Currency,\n AverageRate REAL not null,\n EndOfDayRate REAL not null,\n ModifiedDate DATETIME default current_timestamp not null,\n unique (CurrencyRateDate, FromCurrencyCode, ToCurrencyCode)\n);",
"table": "CurrencyRate"
},
{
"create_sql": "CREATE TABLE \"Department\"\n(\n DepartmentID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n GroupName TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "Department"
},
{
"create_sql": "CREATE TABLE \"EmployeeDepartmentHistory\"\n(\n BusinessEntityID INTEGER not null\n references Employee,\n DepartmentID INTEGER not null\n references Department,\n ShiftID INTEGER not null\n references Shift,\n StartDate DATE not null,\n EndDate DATE,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, StartDate, DepartmentID, ShiftID)\n);",
"table": "EmployeeDepartmentHistory"
},
{
"create_sql": "CREATE TABLE \"EmployeePayHistory\"\n(\n BusinessEntityID INTEGER not null\n references Employee,\n RateChangeDate DATETIME not null,\n Rate REAL not null,\n PayFrequency INTEGER not null,\n ModifiedDate DATETIME default current_timestamp not null,\n primary key (BusinessEntityID, RateChangeDate)\n);",
"table": "EmployeePayHistory"
},
{
"create_sql": "CREATE TABLE \"JobCandidate\"\n(\n JobCandidateID INTEGER\n primary key autoincrement,\n BusinessEntityID INTEGER\n references Employee,\n Resume TEXT,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "JobCandidate"
},
{
"create_sql": "CREATE TABLE \"Location\"\n(\n LocationID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n CostRate REAL default 0.0000 not null,\n Availability REAL default 0.00 not null,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "Location"
},
{
"create_sql": "CREATE TABLE \"PhoneNumberType\"\n(\n PhoneNumberTypeID INTEGER\n primary key autoincrement,\n Name TEXT not null,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "PhoneNumberType"
},
{
"create_sql": "CREATE TABLE \"Product\"\n(\n ProductID INTEGER\n primary key autoincrement,\n Name TEXT not null\n unique,\n ProductNumber TEXT not null\n unique,\n MakeFlag INTEGER default 1 not null,\n FinishedGoodsFlag INTEGER default 1 not null,\n Color TEXT,\n SafetyStockLevel INTEGER not null,\n ReorderPoint INTEGER not null,\n StandardCost REAL not null,\n ListPrice REAL not null,\n Size TEXT,\n SizeUnitMeasureCode TEXT\n references UnitMeasure,\n WeightUnitMeasureCode TEXT\n references UnitMeasure,\n Weight REAL,\n DaysToManufacture INTEGER not null,\n ProductLine TEXT,\n Class TEXT,\n Style TEXT,\n ProductSubcategoryID INTEGER\n references ProductSubcategory,\n ProductModelID INTEGER\n references ProductModel,\n SellStartDate DATETIME not null,\n SellEndDate DATETIME,\n DiscontinuedDate DATETIME,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "Product"
},
{
"create_sql": "CREATE TABLE \"Document\"\n(\n DocumentNode TEXT not null\n primary key,\n DocumentLevel INTEGER,\n Title TEXT not null,\n Owner INTEGER not null\n references Employee,\n FolderFlag INTEGER default 0 not null,\n FileName TEXT not null,\n FileExtension TEXT not null,\n Revision TEXT not null,\n ChangeNumber INTEGER default 0 not null,\n Status INTEGER not null,\n DocumentSummary TEXT,\n Document BLOB,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default current_timestamp not null,\n unique (DocumentLevel, DocumentNode)\n);",
"table": "Document"
},
{
"create_sql": "CREATE TABLE \"StateProvince\"\n(\n StateProvinceID INTEGER\n primary key autoincrement,\n StateProvinceCode TEXT not null,\n CountryRegionCode TEXT not null\n references CountryRegion,\n IsOnlyStateProvinceFlag INTEGER default 1 not null,\n Name TEXT not null\n unique,\n TerritoryID INTEGER not null\n references SalesTerritory,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null,\n unique (StateProvinceCode, CountryRegionCode)\n);",
"table": "StateProvince"
},
{
"create_sql": "CREATE TABLE \"CreditCard\"\n(\n CreditCardID INTEGER\n primary key autoincrement,\n CardType TEXT not null,\n CardNumber TEXT not null\n unique,\n ExpMonth INTEGER not null,\n ExpYear INTEGER not null,\n ModifiedDate DATETIME default current_timestamp not null\n);",
"table": "CreditCard"
},
{
"create_sql": "CREATE TABLE \"SalesOrderHeader\"\n(\n SalesOrderID INTEGER\n primary key autoincrement,\n RevisionNumber INTEGER default 0 not null,\n OrderDate DATETIME default CURRENT_TIMESTAMP not null,\n DueDate DATETIME not null,\n ShipDate DATETIME,\n Status INTEGER default 1 not null,\n OnlineOrderFlag INTEGER default 1 not null,\n SalesOrderNumber TEXT not null\n unique,\n PurchaseOrderNumber TEXT,\n AccountNumber TEXT,\n CustomerID INTEGER not null\n references Customer,\n SalesPersonID INTEGER\n references SalesPerson,\n TerritoryID INTEGER\n references SalesTerritory,\n BillToAddressID INTEGER not null\n references Address,\n ShipToAddressID INTEGER not null\n references Address,\n ShipMethodID INTEGER not null\n references Address,\n CreditCardID INTEGER\n references CreditCard,\n CreditCardApprovalCode TEXT,\n CurrencyRateID INTEGER\n references CurrencyRate,\n SubTotal REAL default 0.0000 not null,\n TaxAmt REAL default 0.0000 not null,\n Freight REAL default 0.0000 not null,\n TotalDue REAL not null,\n Comment TEXT,\n rowguid TEXT not null\n unique,\n ModifiedDate DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "SalesOrderHeader"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,Product ID,The unique id number identifying the product.,integer,\nName,,Name of the product.,text,\nProductNumber,Product Number,The unique product identification number.,text,\nMakeFlag,Make Flag,The source of product make.,integer,\"0 = Product is purchased, 1 = Product is manufactured in-house. Default: 1\"\nFinishedGoodsFlag,Finished Goods Flag,Whether the product is salable or not.,integer,0 = Product is not a salable item. 1 = Product is salable. Default: 1\nColor,,Color,text,Product color.\nSafetyStockLevel,Safety Stock Level,The minimum inventory quantity.,integer,\nReorderPoint,Reorder Point,Inventory level that triggers a purchase order or work order.,integer,\nStandardCost,Standard Cost,Standard cost of the product.,real,\nListPrice,List Price,Selling price,real,\"commonsense evidence: \nprofit = ListPrice - StandardCost\"\nSize,,Product size,text,\nSizeUnitMeasureCode,Size Unit Measure Code,Unit of measure for Size column.,text,\nWeightUnitMeasureCode,Weight Unit Measure Code,Unit of measure for Weight column.,text,\nWeight,,Product weight,real,\nDaysToManufacture,Days To Manufacture,Number of days required to manufacture the product.,integer,\nProductLine,Product Line,Product Routine,text,\"R = Road, M = Mountain, T = Touring, S = Standard\"\nClass,,Product quality class,text,\"H = High, M = Medium, L = Low\"\nStyle,,Style,text,\"W = Womens, M = Mens, U = Universal\"\nProductSubcategoryID,Product Subcategory ID,Product is a member of this product subcategory.,integer,\nProductModelID,Product Model ID,Product is a member of this product model.,integer,\nSellStartDate,Sell Start Date,Date the product was available for sale.,datetime,\nSellEndDate,Sell End Date,Date the product was no longer available for sale.,datetime,\nDiscontinuedDate,Discontinued Date,Date the product was discontinued.,datetime,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Product"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nLocationID,Location ID,The unique id number identifying the job candidates.,integer,\nName,,Location description.,text,\nCostRate,Cost Rate,Standard hourly cost of the manufacturing location.,real,Default: 0.00\nAvailability,,Work capacity (in hours) of the manufacturing location.,real,Default: 0.00\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Location"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductPhotoID,Product Photo ID,unique id number identifying the products,integer,\nThumbNailPhoto,Thumb Nail Photo,Small image of the product.,blob,\"The size of small images.\ncommonsense evidence:\n\"\"80x49 GIF image 3.07 kB\"\". \"\"3.07\"\" represents the size of images, \"\"GIF\"\" refers to type of images like JPEG, GIF, etc. \"\nThumbnailPhotoFileName,Thumbnail Photo File Name,Small image file name,text,\nLargePhoto,large photo,Large image of the product.,blob,\nLargePhotoFileName,Large Photo File Name,Large image file name.,text,\"commonsense evidence:\nsimilar to ThumbNailPhoto\"\nModifiedDate,Modified Date,Date and time the record was last updated.,datetime,",
"table": "ProductPhoto"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nWorkOrderID,Work Order ID,The unique id number identifying work order.,integer,\nProductID,Product ID,Product identification number.,integer,\nOrderQty,Order Quantity,Product quantity to build.,integer,\nStockedQty,Stocked Quantity,Quantity built and put in inventory.,integer,\" Computed: isnull([OrderQty]-[ScrappedQty],(0))\"\nScrappedQty,Scrapped Quantity,Quantity that failed inspection.,integer,\nStartDate,Start Date,Work order start date.,datetime,\nEndDate,End Date,Work order end date.,datetime,\nDueDate,Due Date,Work order due date.,datetime,\nScrapReasonID,Scrap Reason ID,Reason for inspection failure.,integer,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "WorkOrder"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,The id number identifying the person associated with this email address.,integer,\nEmailAddressID,Email Address ID,The ID of this email address.,integer,\nEmailAddress,Email Address,The E-mail address for the person.,text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "EmailAddress"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSalesReasonID,,The unique number identifying SalesReason records.,integer,\nName,,Sales reason description,text,\nReasonType,,Category the sales reason belongs to.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SalesReason"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductModelID,Product Model ID,The unique id number identifying the product model.,integer,\nName,,Product model description.,text,\nCatalogDescription,Catalog Description,Detailed product catalog information in xml format.,text,\nInstructions,,Manufacturing instructions in xml format.,text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductModel"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBillOfMaterialsID,bill of materials id,The unique number identifying bill of materials.,integer,Primary key for BillOfMaterials records. Identity / Auto increment column.\nProductAssemblyID,product assembly id,Parent product identification number.,integer,\nComponentID,component ID,Component identification number.,integer,\nStartDate,start date,Date the component started being used in the assembly item.,datetime,\nEndDate,end date,Date the component stopped being used in the assembly item.,datetime,\"commonsense evidence:\n1. assembly item duration = (EndDate - StartDate) \n2. if EndDate is null, it means the assembly item doesn't finish (still going on).\"\nUnitMeasureCode,unit measure code,Standard code identifying the unit of measure for the quantity.,text,\nBOMLevel,bill of materials level,Indicates the depth the component is from its parent (column2)(AssemblyID).,integer,\nPerAssemblyQty,per assembly quantity,Quantity of the component needed to create the assembly.,real,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "BillOfMaterials"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountryRegionCode,Country Region Code,The unique id number identifying Country Region ISO standard code for countries and regions.,text,\nName,,Country or region name.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "CountryRegion"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nAddressTypeID,address type id,Unique numbers identifying address type records.,integer,Primary key for AddressType records. Identity / Auto increment column.\nName,,Address type description. ,text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "AddressType"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCurrencyCode,Currency Code,The unique id string identifying the currency.,text,\nName,,Currency name.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Currency"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,The id number identifying the employee.,integer,\nNationalIDNumber,National ID Number,The national identification number such as a social security number.,text,\nLoginID,Login ID,Network login.,text,\nOrganizationNode,Organization Node,Where the employee is located in corporate hierarchy.,text,Default: newid()\nOrganizationLevel,Organization Level,The depth of the employee in the corporate hierarchy.,integer,Computed: [OrganizationNode].[GetLevel]()\nJobTitle,Job Title,Work title such as Buyer or Sales Representative.,text,\nBirthDate,Birth Date,Date of birth.,date,\nMaritalStatus,Marital Status,Whether this employee is married or not.,text,\"M = Married, S = Single\"\nGender,Gender,The gender of this employee.,text,\"M = Male, F = Female\"\nHireDate,Hire Date,The employee was hired on this date.,date,\nSalariedFlag,Salaried Flag,Job classification.,integer,\"0 = Hourly, not exempt from collective bargaining. 1 = Salaried, exempt from collective bargaining.\"\nVacationHours,Vacation Hours,The number of available vacation hours.,integer,\nSickLeaveHours,Sick Leave Hours,The number of available sick leave hours.,integer,\nCurrentFlag,Current Flag,Whether this employee is active or not,integer,\"0 = Inactive, 1 = Active\"\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Employee"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nContactTypeID,Contact Type ID,The unique id number identifying the contact type ID.,integer,\nName,,Contact type description.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ContactType"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,Product ID,The id number identifying the product.,integer,\nStartDate,Start Date,Product cost start date,date,\nEndDate,End Date,Product cost end date,date,\nStandardCost,Standard Cost,Standard cost of the product.,real,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductCostHistory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nUnitMeasureCode,Unit Measure Code,The unique identifying numbers for measure.,text,\nName,Name,Unit of measure description.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "UnitMeasure"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nPurchaseOrderID,Purchase Order ID,Purchase order number.,integer,\nPurchaseOrderDetailID,Purchase Orde rDetail ID,Unique purchase detail order.,integer,\nDueDate,Due Date,Date the product is expected to be received.,datetime,\nOrderQty,Order Quantity,Quantity ordered.,integer,\nProductID,Product ID,The id number identifying products.,integer,\nUnitPrice,Unit Price,Vendor's selling price of a single product.,real,\nLineTotal,Line Total,Per product subtotal,real,\"Computed as OrderQty * UnitPrice. Computed: isnull([OrderQty]*[UnitPrice],(0.00))\"\nReceivedQty,ReceivedQty,Quantity actually received from the vendor.,real,\nRejectedQty,,,,\nStockedQty,,,,\nModifiedDate,,,,",
"table": "PurchaseOrderDetail"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nPhoneNumberTypeID,Phone Number Type ID,The id number identifying the telephone number type records.,integer,\nName,Phone Number,Name of the telephone number type.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "PhoneNumberType"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nTransactionID,Transaction ID,The unique id number identifying TransactionHistory records.,integer,\nProductID,Product ID,Product identification number.,integer,\nReferenceOrderID,Reference Order ID,\"Purchase order, sales order, or work order identification number.\",integer,\nReferenceOrderLineID,Reference Order Line ID,\"Line number associated with the purchase order, sales order, or work order.\",integer,\nTransactionDate,Transaction Date,Date and time of the transaction.,datetime,\nTransactionType,Transaction Type,Type of transaction records.,text,\"commonsense evidence:\nW = WorkOrder, S = SalesOrder, P = PurchaseOrder\"\nQuantity,,Product quantity.,integer,\nActualCost,Actual Cost,Product cost.,real,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "TransactionHistory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSpecialOfferID,Special Offer ID,The unique id number identifying the special offer.,integer,\nDescription,,Discount description.,text,\nDiscountPct,Discount precentage,Discount percentage.,real,\nType,,Discount type category.,text,\nCategory,,Group the discount applies to such as Reseller or Customer.,text,\nStartDate,Start Date,Discount start date.,datetime,\nEndDate,End Date,Discount end date.,datetime,\"commonsense evidence:\npromotion date = EndDate - StartDate\"\nMinQty,Min Quality,Minimum discount percent allowed.,integer,\nMaxQty,Max Quality,Maximum discount percent allowed.,integer,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SpecialOffer"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description,\nSalesOrderID,,,integer,,\nSalesOrderDetailID,,,integer,,\nCarrierTrackingNumber,,,text,,\nOrderQty,,,integer,,\nProductID,,,integer,,\nSpecialOfferID,,,integer,,\nUnitPrice,,,real,,\nUnitPriceDiscount,,,real,,\nLineTotal,,,real,,\nrowguid,,,text,,\nModifiedDate,ModifiedDate,modified date,datetime,Date and time the record was last updated. ,Default: getdate()",
"table": "SalesOrderDetail"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nStateProvinceID,State Province ID,The unique number for StateProvince records.,integer,\nStateProvinceCode,State Province Code,ISO standard state or province code.,text,\nCountryRegionCode,Country Region Code,ISO standard country or region code.,text,\nIsOnlyStateProvinceFlag,Is Only State Province Flag,,integer,\"0 = StateProvinceCode exists. \n1 = StateProvinceCode unavailable, using CountryRegionCode. \nDefault: 1. \ncommonsense evidence:\nTo ask whether the StateProvinceCode exists or not.\"\nName,,State or province description.,text,\nTerritoryID,Territory ID,ID of the territory in which the state or province is located.,integer,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "StateProvince"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,Product ID,The id number identifying the product.,integer,\nDocumentNode,Document Node,The hierarchy id number identifying the Document node.,text,Document identification number\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductDocument"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,The sales representative.,integer,\nTerritoryID,Territory ID,Territory identification number.,integer,\nStartDate,Start Date,Date the sales representive started work in the territory.,datetime,\nEndDate,End Date,Date the sales representative left work in the territory.,datetime,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SalesTerritoryHistory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,The unique id number identifying the person.,integer,\nPersonType,Person Type,The type of person.,text,\"Primary type of person: SC = Store Contact, IN = Individual (retail) customer, SP = Sales person, EM = Employee (non-sales), VC = Vendor contact, GC = General contact\"\nNameStyle,Name Style,Name Style.,integer,\"0 = The data in FirstName and LastName are stored in western style (first name, last name) order. 1 = Eastern style (last name, first name) order. Default: 0\"\nTitle,,A courtesy title.,text,\nFirstName,First Name,First name of the person.,text,Default: getdate()\nMiddleName,Middle Name,Middle name or middle initial of the person.,text,\nLastName,Last Name,Last name of the person.,text,\nSuffix,,Surname suffix.,text,\nEmailPromotion,Email Promotion,Email Promotion.,integer,\"0 = Contact does not wish to receive e-mail promotions, 1 = Contact does wish to receive e-mail promotions from AdventureWorks, 2 = Contact does wish to receive e-mail promotions from AdventureWorks and selected partners. Default: 0\"\nAdditionalContactInfo,Additional Contact Info,Additional contact information about the person stored in xml format.,text,\nDemographics,,\"Personal information such as hobbies, and income collected from online shoppers. Used for sales analysis.\",text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Person"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nShiftID,ShiftID,The unique number identifying the shift.,integer,\nName,,Shift description.,text,\nStartTime,Start Time,Shift start time.,text,\nEndTime,End Time,Shift end time.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Shift"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCurrencyRateID,Currency Rate ID,The unique id number identifying the currency rate record.,integer,\nCurrencyRateDate,Currency Rate Date,Date and time the exchange rate was obtained.,datetime,\nFromCurrencyCode,From Currency Code,Exchange rate was converted from this currency code.,text,\nToCurrencyCode,ToCurrencyCode,Exchange rate was converted to this currency code.,text,\nAverageRate,Average Rate ,Average exchange rate for the day.,real,\nEndOfDayRate,End Of Day Rate,Final exchange rate for the day.,real,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "CurrencyRate"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,The unique id number identifying the business entity.,integer,\nTerritoryID,Territory ID,Territory currently assigned to.,integer,\nSalesQuota,Sales Quota,Projected yearly sales,real,\nBonus,Bonus,Bonus due if quota is met.,real,\"commonsense evidence:\nif bonus is equal to 0, it means this salesperson doesn't meet quota. vice versa.\"\nCommissionPct,Commission percentage,,real,Commission percent received per sale\nSalesYTD,sales year to date,Sales total year to date,real,\nSalesLastYear,Sales Last Year,Sales total of previous year.,real,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SalesPerson"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nJobCandidateID,Job Candidate ID,The unique id number identifying the job candidates.,integer,\nBusinessEntityID,Business Entity ID,Employee identification number if applicant was hired.,integer,\nResume,,Résumé in XML format.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "JobCandidate"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,The id number identifying the person.,integer,\nCreditCardID,Credit Card ID,Credit card identification number.,integer,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "PersonCreditCard"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductCategoryID,Product Category ID,The unique id number identifying the product category.,integer,\nName,,Category description,text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductCategory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,Product ID,Product identification number.,integer,\nStartDate,Start Date,List price start date.,date,\nEndDate,End Date,List price end date.,date,\nListPrice,,Product list price.,real,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductListPriceHistory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,Employee identification number.,integer,\nRateChangeDate,Rate Change Date,Date the change in pay is effective.,datetime,\nRate,,Salary hourly rate.,real,\nPayFrequency,Pay Frequency,Pay Frequency.,integer,\"1 = Salary received monthly, 2 = Salary received biweekly\"\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "EmployeePayHistory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,The unique number identifying business entity.,integer,\nName,,Name of the store.,text,\nSalesPersonID,Sales Person ID,ID of the sales person assigned to the customer.,integer,\nDemographics,,\"Demographic information about the store such as the number of employees, annual sales and store type.\",text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Store"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductDescriptionID,Product Description ID,The unique id number identifying the product description.,integer,\nDescription,,Description of the product.,text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductDescription"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCultureID,Culture ID,The unique id string identifying the language in which AdventrueWorks data is stored.,text,\nName,,Name of the language.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Culture"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCustomerID,Customer ID,The unique id number identifying the customer.,integer,\nPersonID,Person ID,The id number identifying the person.,integer,\nStoreID,Store ID,The id number identifying the store / bussiness entity.,integer,\nTerritoryID,Territory ID,ID of the territory in which the customer is located.,integer,\nAccountNumber,Account Number,Unique number identifying the customer assigned by the accounting system.,text,\"Computed: isnull('AW'+[ufnLeadingZeros]([CustomerID]),'')\"\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Customer"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,Product ID,Product identification number.,integer,\nLocationID,Location ID,Inventory location identification number.,integer,Document identification number\nShelf,,Storage compartment within an inventory location.,text,\nBin,,Storage container on a shelf in an inventory location.,integer,\nQuantity,,Quantity of products in the inventory location.,integer,Default: 0\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductInventory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductModelID,Product Model ID,The id number identifying the product model.,integer,\nProductDescriptionID,Product Description ID,Product description identification number.,integer,\nCultureID,Culture ID,Culture identification number.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductModelProductDescriptionCulture"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSalesTaxRateID,Sales Tax Rate ID,Unique id number identifying sales tax records.,integer,\nStateProvinceID,State Province ID,id number identifying state province.,integer,\nTaxType,Tax Type,Tax Type,integer,\"1 = Tax applied to retail transactions, 2 = Tax applied to wholesale transactions, 3 = Tax applied to all sales (retail and wholesale) transactions\"\nTaxRate,Tax Rate,Tax rate amount,real,\nName,,Tax rate description,text,\"commonsense evidence:\nif there's \"\"+\"\" in the value, it means this sales are charged by multiple types of tax.\n\"\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SalesTaxRate"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,Number identifying the business entity.,integer ,\nAddressID,Address ID,Number identifying the address.,integer,\nAddressTypeID,Address Type ID,Number identifying the address type.,integer,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "BusinessEntityAddress"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,Product ID,Product identification number.,integer,\nProductPhotoID,Product Photo ID,Product photo identification number.,integer,\nPrimary,,Whether this photo is the principal image or not.,integer,\"0 = Photo is not the principal image. \n1 = Photo is the principal image. \ncommonsense evidence:\nstaff can mention \"\"principal\"\" in the question in order to make the question more realistic.\"\nModifiedDate,Modified Date,,datetime,",
"table": "ProductProductPhoto"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nAddressID,address id,Unique id number identifying the address.,integer,Primary key for Address records. Identity / Auto increment column.\nAddressLine1,address line 1,First street address line.,text,\nAddressLine2,address line 2,Second street address line.,text,\"commonsense evidence:\n1. total address = (AddressLine1+AddressLine2) \n2. if AddressLine2 is not null, it means the address is too long\"\nCity,,Name of the city.,text,\nStateProvinceID,state province id,Identification number for the state or province. ,integer,\nPostalCode,postal code,Postal code for the street address.,text,\nSpatialLocation,spatial location,Latitude and longitude of this address.,text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Address"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nTransactionID,Transaction ID,The unique id number identifying TransactionHistory records.,integer,\nProductID,Product ID,Product identification number.,integer,\nReferenceOrderID,Reference Order ID,\"Purchase order, sales order, or work order identification number.\",integer,\nReferenceOrderLineID,Reference Order Line ID,\"Line number associated with the purchase order, sales order, or work order.\",integer,\nTransactionDate,Transaction Date,Date and time of the transaction.,datetime,\nTransactionType,Transaction Type,Type of transaction records.,text,\"commonsense evidence: \nW = WorkOrder, S = SalesOrder, P = PurchaseOrder\"\nQuantity,,Product quantity.,integer,\nActualCost,Actual Cost,Product cost.,real,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "TransactionHistoryArchive"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountryRegionCode,Country Region Code,The id number identifying Country Region ISO standard code for countries and regions.,text,\nCurrencyCode,Currency Code,ISO standard currency code.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "CountryRegionCurrency"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCreditCardID,Credit Card ID,The unique id number identifying the credit card.,integer,\nCardType,Card Type,Credit card name.,text,\nCardNumber,Card Number,Credit card number.,text,\nExpMonth,Expiration Month,Credit card expiration month.,integer,\nExpYear,Expiration Year ,Credit card expiration year.,integer,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "CreditCard"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductReviewID,Product Review ID,The unique id numbers identifying product reviews.,integer,\nProductID,Product ID,Product identification number.,integer,\nReviewerName,Reviewer Name,The name of reviewer.,text,\nReviewDate,Review Date,Date review was submitted. ,datetime,Default: getdate()\nEmailAddress,Email Address,Reviewer's e-mail address.,text,\nRating,,Product rating given by the reviewer. ,integer,\"commonsense evidence:\nScale is 1 to 5 with 5 as the highest rating.\"\nComments,,,,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductReview"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nWorkOrderID,WorkOrderID,The id number of work order.,integer,\nProductID,ProductID,The id number identifying products.,integer,\nOperationSequence,Operation Sequence,Indicates the manufacturing process sequence.,integer,\nLocationID,Location ID,Manufacturing location where the part is processed.,integer,\nScheduledStartDate,Scheduled Start Date,Planned manufacturing start date.,datetime,\nScheduledEndDate,Scheduled End Date,Planned manufacturing end date.,datetime,\nActualStartDate,Actual Start Date,Actual start date.,datetime,\nActualEndDate,ActualEndDate,Actual end date.,datetime,\nActualResourceHrs,Actual Resource Hours,Number of manufacturing hours used.,real,\nPlannedCost,Planned Cost,Estimated manufacturing cost.,real,\nActualCost,ActualCost,Actual manufacturing cost.,real,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "WorkOrderRouting"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,Sales person identification number,integer,\nQuotaDate,Quota Date,Sales quota date,datetime,\nSalesQuota,Sales Quota,Sales quota amount,real,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SalesPersonQuotaHistory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDepartmentID,Department ID,The unique id number identifying the department.,integer,\nName,,Name of the department.,text,\nGroupName,Group Name,Name of the group to which the department belongs.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Department"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nScrapReasonID,Scrap Reason ID,The unique number identifying for ScrapReason records.,integer,\nName,Name,Failure description.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ScrapReason"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,The unique id number identifying the person.,integer,\nPasswordHash,Password Hash,Password for the e-mail account.,text,\nPasswordSalt,Password Salt,Random value concatenated with the password string before the password is hashed.,text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Password"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,Product ID,The id number identifying the products.,integer,\nBusinessEntityID,Business Entity ID,The id number identifying the business entities.,integer,\nAverageLeadTime,Average Lead Time,The average span of time between placing an order with the vendor and receiving the purchased product.,integer,in days\nStandardPrice,Standard Price,The vendor's usual selling price.,real,\nLastReceiptCost,Last Receipt Cost,The selling price when last purchased.,real,\"commonsense evidence:\nprofit on net can be computed by LastReceiptCost - StandardPrice\"\nLastReceiptDate,Last Receipt Date,Date the product was last received by the vendor.,datetime,\nMinOrderQty,Min Order Quantity,The maximum quantity that should be ordered.,integer,\nMaxOrderQty,Max Order Quantity,The minimum quantity that should be ordered.,integer,\nOnOrderQty,On Order Quantity,The quantity currently on order.,integer,\"if it's equal to 0, it means \"\"out of stock\"\"\"\nUnitMeasureCode,Unit Measure Code,The product's unit of measure.,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductVendor"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,Employee identification number.,integer,\nDepartmentID,DepartmentI D,Department in which the employee worked including currently.,integer,\nShiftID,Shift ID,Identifies which 8-hour shift the employee works.,integer,\nStartDate,Start Date,Date the employee started working in the department.,date,\nEndDate,End Date,Date the employee ended working in the department.,date,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "EmployeeDepartmentHistory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSalesOrderID,Sales Order ID,The id number of sales order.,integer,\nRevisionNumber,,,integer,\nOrderDate,Order Date,,datetime,\nDueDate,,,datetime,\nShipDate,Ship Date,Estimated shipment date from the vendor,datetime,\nStatus,Status,Order current status,integer,1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1\nOnlineOrderFlag,,,integer,\nSalesOrderNumber,,,text,\nPurchaseOrderNumber,,,text,\nAccountNumber,,,text,\nCustomerID,,,integer,\nSalesPersonID,,,integer,\nTerritoryID,,,integer,\nBillToAddressID,,,integer,\nShipToAddressID,,,integer,\nShipMethodID,Ship Method ID,Shipping method,integer,\nCreditCardID,,,integer,\nCreditCardApprovalCode,,,text,\nCurrencyRateID,,,integer,\nSubTotal,,,real,\nTaxAmt,Tax Amount,Tax amount,real,\nFreight,Freight,Shipping cost,real,\nTotalDue,Total Due,Total due to vendor,real,\nComment,,,text,\nrowguid,,,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SalesOrderHeader"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,Business Entity ID,The id number identifying the Business Entity ID.,integer,\nPersonID,Person ID,The id number identifying the Person ID.,integer,\nContactTypeID,Contact Type ID,The id number identifying the contact type ID.,integer,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "BusinessEntityContact"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductSubcategoryID,Product Subcategory ID,Unique id number identifying the subcategory of products.,integer,\nProductCategoryID,Product Category ID,Product category identification number.,integer,\nName,,Subcategory description.,text,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ProductSubcategory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nShipMethodID,Ship Method ID,The unique number for ShipMethod records.,integer,\nName,,Shipping company name.,text,\nShipBase,Ship Base,Minimum shipping charge.,real,\nShipRate,Ship Rate,Shipping charge per pound.,real,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ShipMethod"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSpecialOfferID,Special Offer ID,The id for SpecialOfferProduct records,integer,\nProductID,Product ID,Product identification number.,integer,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SpecialOfferProduct"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nPurchaseOrderID,Purchase Order ID,The unique id number identifying purchase order.,integer,\nRevisionNumber,Revision Number,Incremental number to track changes to the purchase order over time. ,integer,\nStatus,Status,Order current status.,integer,1 = Pending; 2 = Approved; 3 = Rejected; 4 = Complete Default: 1\nEmployeeID,Employee ID,Employee who created the purchase order.,integer,\nVendorID,Vendor ID,Vendor with whom the purchase order is placed.,integer,\nShipMethodID,Ship Method ID,Shipping method,integer,\nOrderDate,Order Date,Purchase order creation date,datetime,Default: getdate()\nShipDate,Ship Date,Estimated shipment date from the vendor.,datetime,\nSubTotal,SubTotal,Purchase order subtotal,real, Computed as SUM (PurchaseOrderDetail.LineTotal)for the appropriate PurchaseOrderID\nTaxAmt,Tax Amount,Tax amount,real,\nFreight,Freight,Shipping cost,real,\nTotalDue,Total Due,Total due to vendor,real,\"Computed as Subtotal + TaxAmt + Freight. Computed: isnull(([SubTotal]+[TaxAmt])+[Freight],(0))\"\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "PurchaseOrderHeader"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSalesOrderID,Sales Order ID,The id number of sales order.,integer,\nSalesReasonID,Sales Reason ID,The id number for sales reasons.,integer,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SalesOrderHeaderSalesReason"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nDocumentNode,Document Node,The unique hierarchy id identifying the document nodes.,text,\nDocumentLevel,Document Level,Depth in the document hierarchy.,integer,Computed: [DocumentNode].[GetLevel]()\nTitle,,Title of the document.,text,\nOwner,,Employee who controls the document.,integer,\nFolderFlag,Folder Flag,The type of the folders.,integer,\"0 = This is a folder, 1 = This is a document. Default: 0\"\nFileName,File Name,Uniquely identifying the record. Used to support a merge replication sample. ,text,File name of the document\nFileExtension,File Extension,File extension indicating the document type.,text,\nRevision,,Revision number of the document.,text,\nChangeNumber,Change Number,Engineering change approval number.,integer,\nStatus,,Status of document processing.,integer,\"1 = Pending approval, 2 = Approved, 3 = Obsolete\"\nDocumentSummary,Document Summary,Document abstract.,text,\"commonsense evidence:\nif no document Summary: it means this document is private\"\nDocument,,Complete document.,blob,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Document"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,business entity id,Unique number of identifying business entity.,integer,\"Primary key for all customers, vendors, and employees. Identity / Auto increment column\"\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "BusinessEntity"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBusinessEntityID,BusinessEntityID,The unique number identifying Vendor records.,integer,\nAccountNumber,AccountNumber,Vendor account (identification) number.,text,\nName,Name,Company name.,text,\nCreditRating,CreditRating,Rating of credit.,integer,\"commonsense evidence: \n1 = Superior, 2 = Excellent, 3 = Above average, 4 = Average, 5 = Below average. \ncommonsense evidence:\n1, 2, 3 can represent good credit, 4 is average credit, 5 is bad credit.\"\nPreferredVendorStatus,Preferred Vendor Status,Preferred Vendor Status,integer,\"commonsense evidence: \n0 = Do not use if another vendor is available. 1 = Preferred over other vendors supplying the same product.\"\nActiveFlag,Active Flag,Vendor URL,integer,\"commonsense evidence:\n0 = Vendor no longer used. 1 = Vendor is actively used. Default: 1\"\nPurchasingWebServiceURL,PurchasingWebServiceURL,Purchasing Web Service URL,text,\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "Vendor"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nTerritoryID,TerritoryID,The unique id number for SalesTerritory records.,integer,\nName,,Sales territory description.,text,\nCountryRegionCode,Country Region Code,ISO standard country or region code.,text,\nGroup,,Geographic area to which the sales territory belong.,text,\nSalesYTD,Sales Year to Date,Sales in the territory year to date.,real,\nSalesLastYear,Sales Last Year,Sales in the territory the previous year.,real,\nCostYTD,Cost Year to Date,Business costs in the territory year to date.,real,\nCostLastYear,Cost Last Year,Business costs in the territory the previous year.,real,\nrowguid,rowguid,Uniquely identifying the record. Used to support a merge replication sample. ,text,Default: newid()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "SalesTerritory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nShoppingCartItemID,Shopping CartItem ID,The unique id number identifying the shopping cart item records.,integer,\nShoppingCartID,Shopping Cart ID,Shopping cart identification number.,text,\nQuantity,Quantity,Product quantity ordered.,integer,Default: 1\nProductID,Product ID,Product ordered.,integer,\nDateCreated,Date Created,Date the time the record was created. ,datetime,Default: getdate()\nModifiedDate,modified date,Date and time the record was last updated. ,datetime,Default: getdate()",
"table": "ShoppingCartItem"
}
] |
app_store | [
{
"create_sql": "CREATE TABLE \"playstore\"\n(\n App TEXT,\n Category TEXT,\n Rating REAL,\n Reviews INTEGER,\n Size TEXT,\n Installs TEXT,\n Type TEXT,\n Price TEXT,\n \"Content Rating\" TEXT,\n Genres TEXT\n);",
"table": "playstore"
},
{
"create_sql": "CREATE TABLE \"user_reviews\"\n(\n App TEXT\n references \"playstore\" (App),\n Translated_Review TEXT,\n Sentiment TEXT,\n Sentiment_Polarity TEXT,\n Sentiment_Subjectivity TEXT\n);",
"table": "user_reviews"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nApp,,Application name,text,\nCategory,,Category the app belongs to,text,\"FAMILY 18%\nGAME 11%\nOther (7725) 71%\"\nRating,,Overall user rating of the app (as when scraped),real,\nReviews,,Number of user reviews for the app (as when scraped),integer,\nSize,,Size of the app (as when scraped),text,\"Varies with device 16%\n11M 2%\nOther (8948) 83%\"\nInstalls,,Number of user downloads/installs for the app (as when scraped),text,\"1,000,000+ 15%\n10,000,000+ 12%\nOther (8010) 74%\"\nType,,Paid or Free,text,\"Only has 'Paid' and 'Free'\nFree 93%\nPaid 7%\"\nPrice,,Price of the app (as when scraped),text,\"0 93%\n$0.99 1%\nOther (653) 6%\n\ncommonsense evidence:\nFree means the price is 0.\"\nContent Rating,,Age group the app is targeted at - Children / Mature 21+ / Adult,text,\"Everyone 80%\nTeen 11%\nOther (919) 8%\n\ncommonsense evidence:\nAccording to Wikipedia, the different age groups are defined as:\nChildren: age<12~13\nTeen: 13~19\nAdult/Mature: 21+\n\"\nGenres,,An app can belong to multiple genres (apart from its main category).,text,\"Tools 8%\nEntertainment 6%\nOther (9376) 86%\"",
"table": "googleplaystore"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nApp,,Name of app,text,\nTranslated_Review,,User review (Preprocessed and translated to English),text,\"nan 42%\nGood 0%\nOther (37185) 58%\"\nSentiment,,Overall user rating of the app (as when scraped),text,\"commonsense evidence:\nPositive: user holds positive attitude towards this app\nNegative: user holds positive attitude / critizes on this app\nNeural: user holds neural attitude\nnan: user doesn't comment on this app.\"\nSentiment_Polarity,Sentiment Polarity,Sentiment polarity score,text,\"commonsense evidence:\n• score >= 0.5 it means pretty positive or pretty like this app.\n• 0 <= score < 0.5: it means user mildly likes this app.\n• -0.5 <= score < 0: it means this user mildly dislikes this app or slightly negative attitude\n• score <-0.5: it means this user dislikes this app pretty much.\"\nSentiment_Subjectivity,Sentiment Subjectivity,Sentiment subjectivity score,text,\"commonsense evidence:\nmore subjectivity refers to less objectivity, vice versa.\"",
"table": "googleplaystore_user_reviews"
}
] |
social_media | [
{
"create_sql": "CREATE TABLE location\n(\n LocationID INTEGER\n constraint location_pk\n primary key,\n Country TEXT,\n State TEXT,\n StateCode TEXT,\n City TEXT\n);",
"table": "location"
},
{
"create_sql": "CREATE TABLE user\n(\n UserID TEXT\n constraint user_pk\n primary key,\n Gender TEXT\n);",
"table": "user"
},
{
"create_sql": "CREATE TABLE twitter\n(\n TweetID TEXT\n primary key,\n Weekday TEXT,\n Hour INTEGER,\n Day INTEGER,\n Lang TEXT,\n IsReshare TEXT,\n Reach INTEGER,\n RetweetCount INTEGER,\n Likes INTEGER,\n Klout INTEGER,\n Sentiment REAL,\n \"text\" TEXT,\n LocationID INTEGER,\n UserID TEXT,\n foreign key (LocationID) references location(LocationID),\n foreign key (UserID) references user(UserID)\n);",
"table": "twitter"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nLocationID,location id,unique id of the location,integer,\nCountry,,the country,text,\nState,,the state,text,\nStateCode,state code,state code,text,\nCity,,the city,text,",
"table": "location"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nUserID,user id,the unique id of the user,text,\nGender,,user's gender,text,Male / Female / Unknown",
"table": "user"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nTweetID,tweet id,the unique id of the tweet,text,\nWeekday,,the weekday that the tweet has been posted,text,\nHour,,the hour that the tweet has been posted,integer,\nDay,,the day that the tweet has been posted,integer,\nLang,language,the language of the tweet,text,\nIsReshare,is reshare,whether the tweet is reshared,text,\"commonsense evidence:\nA reshared tweet is when someone reshares or forwards a post to their own Twitter \n\ttrue: the tweet is reshared\n\tfalse: the tweet isn't reshared\"\nReach,,the reach of the tweet,integer,\"commonsense evidence:\nreach counts the number of unique users who have seen your tweet\"\nRetweetCount,retweet count,the retweet count,integer,\nLikes,,the number of likes ,integer,\nKlout,,the klout of the tweet,integer,\nSentiment,,the sentiment of the tweet,real,\"commonsense evidence:\n\t>0: the sentiment of the tweet is positive. \n\t=0: the sentiment of the tweet is neutral.\n\t<0: the sentiment of the tweet is negative. \"\ntext,,the text of the tweet,text,\nLocationID,location id,the location id of the poster,integer,\nUserID,user id,the user id of the poster,integer,",
"table": "twitter"
}
] |
airline | [
{
"create_sql": "CREATE TABLE \"Air Carriers\"\n(\n Code INTEGER\n primary key,\n Description TEXT\n);",
"table": "Air Carriers"
},
{
"create_sql": "CREATE TABLE Airports\n(\n Code TEXT\n primary key,\n Description TEXT\n);",
"table": "Airports"
},
{
"create_sql": "CREATE TABLE Airlines\n(\n FL_DATE TEXT,\n OP_CARRIER_AIRLINE_ID INTEGER,\n TAIL_NUM TEXT,\n OP_CARRIER_FL_NUM INTEGER,\n ORIGIN_AIRPORT_ID INTEGER,\n ORIGIN_AIRPORT_SEQ_ID INTEGER,\n ORIGIN_CITY_MARKET_ID INTEGER,\n ORIGIN TEXT,\n DEST_AIRPORT_ID INTEGER,\n DEST_AIRPORT_SEQ_ID INTEGER,\n DEST_CITY_MARKET_ID INTEGER,\n DEST TEXT,\n CRS_DEP_TIME INTEGER,\n DEP_TIME INTEGER,\n DEP_DELAY INTEGER,\n DEP_DELAY_NEW INTEGER,\n ARR_TIME INTEGER,\n ARR_DELAY INTEGER,\n ARR_DELAY_NEW INTEGER,\n CANCELLED INTEGER,\n CANCELLATION_CODE TEXT,\n CRS_ELAPSED_TIME INTEGER,\n ACTUAL_ELAPSED_TIME INTEGER,\n CARRIER_DELAY INTEGER,\n WEATHER_DELAY INTEGER,\n NAS_DELAY INTEGER,\n SECURITY_DELAY INTEGER,\n LATE_AIRCRAFT_DELAY INTEGER,\n FOREIGN KEY (ORIGIN) REFERENCES Airports(Code),\n FOREIGN KEY (DEST) REFERENCES Airports(Code),\n FOREIGN KEY (OP_CARRIER_AIRLINE_ID) REFERENCES \"Air Carriers\"(Code)\n);",
"table": "Airlines"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCode,,the code of the air carriers,integer,\nDescription,,the description of air carriers,text,",
"table": "Air Carriers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nFL_DATE,flight date,flight date,text,\nOP_CARRIER_AIRLINE_ID,operator carrier airline id,operator carrier airline id,integer,\nTAIL_NUM,tail number,plane's tail number,text,plane's tail number\nOP_CARRIER_FL_NUM,operator carrier flight number,operator carrier flight number,integer,\nORIGIN_AIRPORT_ID,origin airport id,origin airport id,integer,\nORIGIN_AIRPORT_SEQ_ID,origin airport sequence id,origin airport sequence id,integer,\nORIGIN_CITY_MARKET_ID,origin city market id,origin city market id,integer,\nORIGIN,,airport of origin,text,\"commonsense evidence:\n\n• the origin city could be inferred by this code:\n\nyou can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia\n\nto quickly check\"\nDEST_AIRPORT_ID,destination airport id,ID of the destination airport,integer,\nDEST_AIRPORT_SEQ_ID,destination airport sequence id,,integer,\nDEST_CITY_MARKET_ID,destination city market id,,integer,\nDEST,destination,Destination airport,text,\"commonsense evidence:\n\n• the dest city could be inferred by this code:\n\nyou can refer to https://www.iata.org/en/publications/directories/code-search/?airport.search=mia\n\nto quickly check\"\nCRS_DEP_TIME,scheduled local departure time,,integer,\nDEP_TIME,departure time,Flight departure time,integer,stored as the integer\nDEP_DELAY,Departure delay,Departure delay indicator,integer,\"in minutes\n\ncommonsense evidence:\n\n• if this value is positive: it means this flight delays; if the value is negative, it means this flight departs in advance (-4)\n\n• if this value <= 0, it means this flight departs on time\"\nDEP_DELAY_NEW,departure delay new,departure delay new,integer,not useful\nARR_TIME,arrival time,Flight arrival time.,integer,\nARR_DELAY,arrival delay,arrival delay time,integer,\"in minutes\n\ncommonsense evidence:\n\n• if this value is positive: it means this flight will arrives late (delay); If the value is negative, this flight arrives earlier than scheduled. (-4)\n\n• if this value <= 0, it means this flight arrives on time\"\nARR_DELAY_NEW,arrival delay new,arrival delay new,integer,not useful\nCANCELLED,,Flight cancellation indicator.,integer,\nCANCELLATION_CODE,cancellation code,cancellation code,text,\"commonsense evidence:\n\nC--> A: more serious reasons lead to this cancellation\"\nCRS_ELAPSED_TIME,scheduled elapsed time,scheduled elapsed time,integer,\nACTUAL_ELAPSED_TIME,actual elapsed time,actual elapsed time,integer,\"commonsense evidence:\n\nif ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME: this flight is faster than scheduled;\n\nif ACTUAL_ELAPSED_TIME > CRS_ELAPSED_TIME: this flight is slower than scheduled\"\nCARRIER_DELAY,carrier delay,carrier delay,integer,minutes\nWEATHER_DELAY,weather delay,delay caused by the wheather problem,integer,minutes\nNAS_DELAY,National Aviavtion System delay,\"delay, in minutes, attributable to the National Aviation System\",integer,minutes\nSECURITY_DELAY,security delay,delay attribute to security,integer,minutes\nLATE_AIRCRAFT_DELAY,late aircraft delay,delay attribute to late aircraft,integer,minutes",
"table": "Airlines"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCode,,IATA code of the air airports,text,\nDescription,,the description of airports,text,",
"table": "Airports"
}
] |
mental_health_survey | [
{
"create_sql": "CREATE TABLE Question\n(\n questiontext TEXT,\n questionid INTEGER\n constraint Question_pk\n primary key\n);",
"table": "Question"
},
{
"create_sql": "CREATE TABLE Survey\n(\n SurveyID INTEGER\n constraint Survey_pk\n primary key,\n Description TEXT\n);",
"table": "Survey"
},
{
"create_sql": "CREATE TABLE \"Answer\"\n(\n AnswerText TEXT,\n SurveyID INTEGER\n constraint Answer_Survey_SurveyID_fk\n references Survey,\n UserID INTEGER,\n QuestionID INTEGER\n constraint Answer_Question_questionid_fk\n references Question,\n constraint Answer_pk\n primary key (UserID, QuestionID)\n);",
"table": "Answer"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nquestiontext,question text,The detailed text of the question.,text,\nquestionid,question id,The unique id of the question.,integer,Each questiontext can only have one unique questionid",
"table": "Question"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSurveyID,Survey ID,The unique id of each survey ,integer,\"commonsense evidence: \nEach SurveyID is unique. And SurveyID is simply survey year ie 2014, 2016, 2017, 2018, 2019.\"\nDescription,,The Description of the specific survey.,text,",
"table": "Survey"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nAnswerText,Answer Text,The specific and detailed answer text of each question.,text,The content is highly depend on the question.\nSurveyID,Survey ID,The id of each survey.,integer,\"The SurveyID is simply survey year i.e., 2014, 2016, 2017, 2018, 2019.\"\nUserID,User ID,The id of different user.,integer,\"commonsense evidence: \nSome questions can contain multiple answers, thus the same user can appear more than once for that QuestionID.\"\nQuestionID,Question ID,The id of different questions.,integer,\"commonsense evidence: \nSome questions can contain multiple answers, thus the same user can appear more than once for that QuestionID.\"",
"table": "Answer"
}
] |
food_inspection | [
{
"create_sql": "CREATE TABLE `businesses` (\n `business_id` INTEGER NOT NULL,\n `name` TEXT NOT NULL,\n `address` TEXT DEFAULT NULL,\n `city` TEXT DEFAULT NULL,\n `postal_code` TEXT DEFAULT NULL,\n `latitude` REAL DEFAULT NULL,\n `longitude` REAL DEFAULT NULL,\n `phone_number` INTEGER DEFAULT NULL,\n `tax_code` TEXT DEFAULT NULL,\n `business_certificate` INTEGER NOT NULL,\n `application_date` DATE DEFAULT NULL,\n `owner_name` TEXT NOT NULL,\n `owner_address` TEXT DEFAULT NULL,\n `owner_city` TEXT DEFAULT NULL,\n `owner_state` TEXT DEFAULT NULL,\n `owner_zip` TEXT DEFAULT NULL,\n PRIMARY KEY (`business_id`)\n);",
"table": "businesses"
},
{
"create_sql": "CREATE TABLE `inspections` (\n `business_id` INTEGER NOT NULL,\n `score` INTEGER DEFAULT NULL,\n `date` DATE NOT NULL,\n `type` TEXT NOT NULL,\n FOREIGN KEY (`business_id`) REFERENCES `businesses` (`business_id`)\n);",
"table": "inspections"
},
{
"create_sql": "CREATE TABLE `violations` (\n `business_id` INTEGER NOT NULL,\n `date` DATE NOT NULL,\n `violation_type_id` TEXT NOT NULL,\n `risk_category` TEXT NOT NULL,\n `description` TEXT NOT NULL,\n FOREIGN KEY (`business_id`) REFERENCES `businesses` (`business_id`)\n);",
"table": "violations"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbusiness_id,business id,the unique id of the business ,integer,\ndate,,the date of the violation,date,\nviolation_type_id,violation type id,the unique type id of the violation,text,\nrisk_category,risk category,\"risk category\nHigh / Moderate / Low risk\",text,\"commonsense evidence:\nHigh risks have more safety and health hazards than low risks\"\ndescription,,the description of the violation,text,",
"table": "violations"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbusiness_id,business id,the unique id of the business ,integer,\nname,,the name of the eatery,text,\naddress,,the eatery address,text,\ncity,,the city where the eatery is located in,text,\npostal_code,postal code,the postal code of the eatery,text,\nlatitude,,the latitude of the position,real,\nlongitude,,the longitude of the position,real,\"commonsense evidence:\nthe distance between eatery A and eatery B = \\sqrt{(latitude_A-latitude_B)^2 + (longitude_A-longitude_B)^2}\"\nphone_number,phone number,the phone number of the eatery,integer,\ntax_code,tax code,the tax code of the eatery,text,\nbusiness_certificate,business certificate,the business certificate number,integer,\napplication_date,application date,the application date of the eatery,date,\nowner_name,owner name,the owner's name,text,\nowner_address,owner address,the owner's address,text,\nowner_city,owner city,the city where the owner is located,text,\nowner_state,owner state,the state where the owner is located,text,\nowner_zip,owner zip,the zip code of the owner,text,",
"table": "businesses"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nbusiness_id,business id,the unique id of the business ,integer,\nscore,score,the inspection score,integer,\"commonsense evidence:\nThe scores range from 1 to 100, where 100 means that the establishment meets all required standards. \"\ndate,,the inspection date,date,\ntype,,the inspection type,text,",
"table": "inspections"
}
] |
sales_in_weather | [
{
"create_sql": "CREATE TABLE sales_in_weather\n(\n date DATE,\n store_nbr INTEGER,\n item_nbr INTEGER,\n units INTEGER,\n primary key (store_nbr, date, item_nbr)\n);",
"table": "sales_in_weather"
},
{
"create_sql": "CREATE TABLE weather\n(\n station_nbr INTEGER,\n date DATE,\n tmax INTEGER,\n tmin INTEGER,\n tavg INTEGER,\n depart INTEGER,\n dewpoint INTEGER,\n wetbulb INTEGER,\n heat INTEGER,\n cool INTEGER,\n sunrise TEXT,\n sunset TEXT,\n codesum TEXT,\n snowfall REAL,\n preciptotal REAL,\n stnpressure REAL,\n sealevel REAL,\n resultspeed REAL,\n resultdir INTEGER,\n avgspeed REAL,\n primary key (station_nbr, date)\n);",
"table": "weather"
},
{
"create_sql": "CREATE TABLE relation\n(\n store_nbr INTEGER\n primary key,\n station_nbr INTEGER,\n foreign key (store_nbr) references sales_in_weather(store_nbr),\n foreign key (station_nbr) references weather(station_nbr)\n);",
"table": "relation"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstation_nbr,station number,the id of weather stations,integer,\ndate,,date,date,\ntmax,temperature max,max temperature,integer,\ntmin,temperature min,min temperature,integer,\"commonsense evidence:\ntemperature range / difference = tmax - tmin\"\ntavg,temperature average,average temperature,integer,\ndepart,departure from normal,,integer,\"Temperature departure from the normal indicates if the dekadal average temperatures were above or below the 30-year normal.\ncommonsense evidence:\n⢠if null: the temperature is 30-year normal\n⢠if the value is positive: the temperature is above the 30-year normal, \n⢠if the value is negative: the temperature is below the 30-year normal, \"\ndewpoint,dew point,,integer,\"commonsense evidence:\nThe dew point is the temperature to which air must be cooled to become saturated with water vapor, assuming constant air pressure and water content.\"\nwetbulb,wet bulb,,integer,\"commonsense evidence:\n⢠The wet-bulb temperature (WBT) is the temperature read by a thermometer covered in water-soaked (water at ambient temperature) cloth (a wet-bulb thermometer) over which air is passed.\n⢠At 100% relative humidity, the wet-bulb temperature is equal to the air temperature (dry-bulb temperature); \n⢠at lower humidity the wet-bulb temperature is lower than dry-bulb temperature because of evaporative cooling.\"\nheat,,calculated heating degree,integer,\ncool,,calculated cooling degree,integer,\nsunrise,,calculated sunrise,text,\nsunset,,calculated sunset,text,\ncodesum,code summarization,code summarization for the weather,text,\"\n⢠PY SPRAY \n⢠SQ SQUALL \n⢠DR LOW DRIFTING \n⢠SH SHOWER \n⢠FZ FREEZING \n⢠MI SHALLOW \n⢠PR PARTIAL \n⢠BC PATCHES \n⢠BL BLOWING \n⢠VC VICINITY \n⢠- LIGHT \n⢠+ HEAVY \n⢠\"\"NO SIGN\"\" MODERATE\"\nsnowfall,,snowfall,real,snowfall (inches AND tenths)\npreciptotal,,precipitation total,real,inches (240hr period ending at indicated local standard time)\nstnpressure,station pressure,station pressure,real,\nsealevel,sea level,sea level,real,\nresultspeed,resultant speed,resultant wind speed,real,\nresultdir,resultant direction,resultant wind direction,integer,who degree\navgspeed,average speed,average wind speed,real,\"commonsense evidence:\nif avgspeed is larger: much more wind\"",
"table": "weather"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndate,date,the date of sales,date,\nstore_nbr,store number,store number,integer,\nitem_nbr,item number,item / product number,integer,\nunits,,the quantity sold of an item on a given day,integer,",
"table": "sales_in_weather"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstore_nbr,store number,the id of stores,integer,\nstation_nbr,station number,the id of weather stations,integer,",
"table": "relation"
}
] |
music_tracker | [
{
"create_sql": "CREATE TABLE \"torrents\"\n(\n groupName TEXT,\n totalSnatched INTEGER,\n artist TEXT,\n groupYear INTEGER,\n releaseType TEXT,\n groupId INTEGER,\n id INTEGER\n constraint torrents_pk\n primary key\n);",
"table": "torrents"
},
{
"create_sql": "CREATE TABLE \"tags\"\n(\n \"index\" INTEGER\n constraint tags_pk\n primary key,\n id INTEGER\n constraint tags_torrents_id_fk\n references torrents,\n tag TEXT\n);",
"table": "tags"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nindex,,index,integer,\nid,,release identifier which can be matched with id field in the torrents table,integer,\ntag,,tag,text,",
"table": "tags"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ngroupName,,release title,text,\ntotalSnatched,,number of times the release has been downloaded,integer,\nartist,,artist / group name,text,\ngroupYear,,release year,integer,\nreleaseType,,\"release type (e.g., album, single, mixtape)\",text,\ngroupId,,Unique release identifier from What.CD. Used to ensure no releases are duplicates.,integer,\nid,,unique identifier (essentially an index),integer,",
"table": "torrents"
}
] |
book_publishing_company | [
{
"create_sql": "CREATE TABLE authors\n(\n au_id TEXT\n primary key,\n au_lname TEXT not null,\n au_fname TEXT not null,\n phone TEXT not null,\n address TEXT,\n city TEXT,\n state TEXT,\n zip TEXT,\n contract TEXT not null\n);",
"table": "authors"
},
{
"create_sql": "CREATE TABLE jobs\n(\n job_id INTEGER\n primary key,\n job_desc TEXT not null,\n min_lvl INTEGER not null,\n max_lvl INTEGER not null\n);",
"table": "jobs"
},
{
"create_sql": "CREATE TABLE publishers\n(\n pub_id TEXT\n primary key,\n pub_name TEXT,\n city TEXT,\n state TEXT,\n country TEXT\n);",
"table": "publishers"
},
{
"create_sql": "CREATE TABLE employee\n(\n emp_id TEXT\n primary key,\n fname TEXT not null,\n minit TEXT,\n lname TEXT not null,\n job_id INTEGER not null,\n job_lvl INTEGER,\n pub_id TEXT not null,\n hire_date DATETIME not null,\n foreign key (job_id) references jobs(job_id)\n on update cascade on delete cascade,\n foreign key (pub_id) references publishers(pub_id)\n on update cascade on delete cascade\n);",
"table": "employee"
},
{
"create_sql": "CREATE TABLE pub_info\n(\n pub_id TEXT\n primary key,\n logo BLOB,\n pr_info TEXT,\n foreign key (pub_id) references publishers(pub_id)\n on update cascade on delete cascade\n);",
"table": "pub_info"
},
{
"create_sql": "CREATE TABLE stores\n(\n stor_id TEXT\n primary key,\n stor_name TEXT,\n stor_address TEXT,\n city TEXT,\n state TEXT,\n zip TEXT\n);",
"table": "stores"
},
{
"create_sql": "CREATE TABLE discounts\n(\n discounttype TEXT not null,\n stor_id TEXT,\n lowqty INTEGER,\n highqty INTEGER,\n discount REAL not null,\n foreign key (stor_id) references stores(stor_id)\n on update cascade on delete cascade\n);",
"table": "discounts"
},
{
"create_sql": "CREATE TABLE titles\n(\n title_id TEXT\n primary key,\n title TEXT not null,\n type TEXT not null,\n pub_id TEXT,\n price REAL,\n advance REAL,\n royalty INTEGER,\n ytd_sales INTEGER,\n notes TEXT,\n pubdate DATETIME not null,\n foreign key (pub_id) references publishers(pub_id)\n on update cascade on delete cascade\n);",
"table": "titles"
},
{
"create_sql": "CREATE TABLE roysched\n(\n title_id TEXT not null,\n lorange INTEGER,\n hirange INTEGER,\n royalty INTEGER,\n foreign key (title_id) references titles(title_id)\n on update cascade on delete cascade\n);",
"table": "roysched"
},
{
"create_sql": "CREATE TABLE sales\n(\n stor_id TEXT not null,\n ord_num TEXT not null,\n ord_date DATETIME not null,\n qty INTEGER not null,\n payterms TEXT not null,\n title_id TEXT not null,\n primary key (stor_id, ord_num, title_id),\n foreign key (stor_id) references stores(stor_id)\n on update cascade on delete cascade,\n foreign key (title_id) references titles(title_id)\n on update cascade on delete cascade\n\n);",
"table": "sales"
},
{
"create_sql": "CREATE TABLE titleauthor\n(\n au_id TEXT not null,\n title_id TEXT not null,\n au_ord INTEGER,\n royaltyper INTEGER,\n primary key (au_id, title_id),\n foreign key (au_id) references authors(au_id)\n on update cascade on delete cascade,\n foreign key (title_id) references titles (title_id)\n on update cascade on delete cascade\n);",
"table": "titleauthor"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ntitle_id,,unique id number identifying title,text,\nlorange,low range,low range,integer,\nhirange,high range,high range,integer,\nroyalty,,royalty,integer,",
"table": "roysched"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nau_id,author id,author id,text,\ntitle_id,title id,title id,text,\nau_ord,author ordering,author ordering,integer,\nroyaltyper,,royaltyper,integer,",
"table": "titleauthor"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nau_id,author id,unique number identifying authors,text,\nau_lname,author last name,author last name,text,\nau_fname,author first name,author first name,text,\nphone,,phone number,text,\naddress,,address,text,\ncity,,city ,text,\nstate,,state ,text,\nzip,,zip code,text,\ncontract,,contract status,text,\"commonsense evidence:\n0: not on the contract\n1: on the contract\"",
"table": "authors"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\njob_id,job id,unique id number identifying the jobs,integer,\njob_desc,job description,job description,text,\"commonsense evidence:\nstaff should be mentioned\"\nmin_lvl,min level,min job level,integer,\nmax_lvl,max level,max job level,integer,\"commonsense evidence:\nlevel range for jobs mentioned in job_desc is (min_lvl, max_lvl)\"",
"table": "jobs"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstor_id,store id,id number identifying stores,text,\nord_num,order number,id number identifying the orders,text,\nord_date,order date,the date of the order,datetime,\nqty,quantity,quantity of sales ,integer,\npayterms,,payments,text,\ntitle_id,title id,id number identifying titles,text,",
"table": "sales"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npub_id,publisher id,unique id number identifying publisher,text,\npub_name,publisher name,publisher name,text,\ncity,city,city ,text,\nstate,state,state,text,\ncountry,country,country,text,",
"table": "publishers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstor_id,store id,unique id number of stores,text,\nstor_name,store name,,text,\nstor_address,store address,,text,\ncity,,city name,text,\nstate,,state code,text,\nzip,,zip code,text,",
"table": "stores"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nemp_id,employee id,unique number identifying employees ,text,\nfname,first name,first name of employees,text,\nminit,,middle name,text,\nlname,last name,last name,text,\njob_id,job id,number identifying jobs,integer,\njob_lvl,job level,job level,integer,\"commonsense evidence:\nhigher value means job level is higher\"\npub_id,publisher id,id number identifying publishers,text,\nhire_date,,hire date,datetime,",
"table": "employee"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ntitle_id,title id,title id,text,\ntitle,,title,text,\ntype,,type of titles,text,\npub_id,publisher id,publisher id,text,\nprice,,price,real,\nadvance,,pre-paid amount,real,\nroyalty,,royalty,integer,\nytd_sales,year to date sales,year to date sales,integer,\nnotes,,notes if any,text,\"commonsense evidence:\nhad better understand notes contents and put some of them into questions if any\"\npubdate,publication date,publication date,datetime,",
"table": "titles"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npub_id,publication id,unique id number identifying publications,text,\nlogo,,logo of publications,blob,\npr_info,publisher's information,publisher's information,text,",
"table": "pub_info"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndiscounttype,discount type,discount type,text,\nstor_id,store id,store id,text,\nlowqty,low quantity,low quantity (quantity floor),integer,\"commonsense evidence: \nThe minimum quantity to enjoy the discount\"\nhighqty,high quantity ,high quantity (max quantity),integer,\"commonsense evidence: \nThe maximum quantity to enjoy the discount\"\ndiscount,discount,discount,real,",
"table": "discounts"
}
] |
cars | [
{
"create_sql": "CREATE TABLE country\n(\n origin INTEGER\n primary key,\n country TEXT\n);",
"table": "country"
},
{
"create_sql": "CREATE TABLE price\n(\n ID INTEGER\n primary key,\n price REAL\n);",
"table": "price"
},
{
"create_sql": "CREATE TABLE data\n(\n ID INTEGER\n primary key,\n mpg REAL,\n cylinders INTEGER,\n displacement REAL,\n horsepower INTEGER,\n weight INTEGER,\n acceleration REAL,\n model INTEGER,\n car_name TEXT,\n foreign key (ID) references price(ID)\n);",
"table": "data"
},
{
"create_sql": "CREATE TABLE production\n(\n ID INTEGER,\n model_year INTEGER,\n country INTEGER,\n primary key (ID, model_year),\n foreign key (country) references country(origin),\n foreign key (ID) references data(ID),\n foreign key (ID) references price(ID)\n);",
"table": "production"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nID,,the id of the car,integer,\nmodel_year,model year,year when the car model was introduced in the market,integer,\ncountry,,country id to which the car belongs,integer,\"Japan --> Asia \nUSA --> North America\"",
"table": "production"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nID,,unique ID for each car ,integer,\nprice,,price of the car in USD,real,",
"table": "price"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nID,,unique ID for each car ,integer,\nmpg,mileage per gallon,mileage of the car in miles per gallon,real,commonsense evidence: The car with higher mileage is more fuel-efficient. \ncylinders,number of cylinders,the number of cylinders present in the car,integer,\ndisplacement,,engine displacement in cubic mm,real,\"commonsense evidence: sweep volume = displacement / no_of cylinders\n\"\nhorsepower,horse power,horse power associated with the car,integer,\"commonsense evidence: horse power is the metric used to indicate the power produced by a car's engine - the higher the number, the more power is sent to the wheels and, in theory, the faster it will go. \"\nweight,,weight of the car in lbs,integer,\"commonsense evidence: A bigger, heavier vehicle provides better crash protection than a smaller\"\nacceleration,,acceleration of the car in miles per squared hour,real,\nmodel,,the year when the car model was introduced in the market,integer,commonsense evidence: 0 --> 1970\ncar_name,car name,name of the car,text,",
"table": "data"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\norigin,,the unique identifier for the origin country,integer,\ncountry,,the origin country of the car,text,",
"table": "country"
}
] |
beer_factory | [
{
"create_sql": "CREATE TABLE customers\n(\n CustomerID INTEGER\n primary key,\n First TEXT,\n Last TEXT,\n StreetAddress TEXT,\n City TEXT,\n State TEXT,\n ZipCode INTEGER,\n Email TEXT,\n PhoneNumber TEXT,\n FirstPurchaseDate DATE,\n SubscribedToEmailList TEXT,\n Gender TEXT\n);",
"table": "customers"
},
{
"create_sql": "CREATE TABLE geolocation\n(\n LocationID INTEGER\n primary key,\n Latitude REAL,\n Longitude REAL,\n foreign key (LocationID) references location(LocationID)\n);",
"table": "geolocation"
},
{
"create_sql": "CREATE TABLE location\n(\n LocationID INTEGER\n primary key,\n LocationName TEXT,\n StreetAddress TEXT,\n City TEXT,\n State TEXT,\n ZipCode INTEGER,\n foreign key (LocationID) references geolocation(LocationID)\n);",
"table": "location"
},
{
"create_sql": "CREATE TABLE rootbeerbrand\n(\n BrandID INTEGER\n primary key,\n BrandName TEXT,\n FirstBrewedYear INTEGER,\n BreweryName TEXT,\n City TEXT,\n State TEXT,\n Country TEXT,\n Description TEXT,\n CaneSugar TEXT,\n CornSyrup TEXT,\n Honey TEXT,\n ArtificialSweetener TEXT,\n Caffeinated TEXT,\n Alcoholic TEXT,\n AvailableInCans TEXT,\n AvailableInBottles TEXT,\n AvailableInKegs TEXT,\n Website TEXT,\n FacebookPage TEXT,\n Twitter TEXT,\n WholesaleCost REAL,\n CurrentRetailPrice REAL\n);",
"table": "rootbeerbrand"
},
{
"create_sql": "CREATE TABLE rootbeer\n(\n RootBeerID INTEGER\n primary key,\n BrandID INTEGER,\n ContainerType TEXT,\n LocationID INTEGER,\n PurchaseDate DATE,\n foreign key (LocationID) references geolocation(LocationID),\n foreign key (LocationID) references location(LocationID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);",
"table": "rootbeer"
},
{
"create_sql": "CREATE TABLE rootbeerreview\n(\n CustomerID INTEGER,\n BrandID INTEGER,\n StarRating INTEGER,\n ReviewDate DATE,\n Review TEXT,\n primary key (CustomerID, BrandID),\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (BrandID) references rootbeerbrand(BrandID)\n);",
"table": "rootbeerreview"
},
{
"create_sql": "CREATE TABLE \"transaction\"\n(\n TransactionID INTEGER\n primary key,\n CreditCardNumber INTEGER,\n CustomerID INTEGER,\n TransactionDate DATE,\n CreditCardType TEXT,\n LocationID INTEGER,\n RootBeerID INTEGER,\n PurchasePrice REAL,\n foreign key (CustomerID) references customers(CustomerID),\n foreign key (LocationID) references location(LocationID),\n foreign key (RootBeerID) references rootbeer(RootBeerID)\n);",
"table": "transaction"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nLocationID,location id,the id of the location,integer,\nLatitude,,the latitude of the location,real,\nLongitude,,the longitude of the location,real,\"commonsense evidence:\nprecise location / coordinate = POINT(latitude, longitude)\"",
"table": "geolocation"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nLocationID,location id,the unique id for the location,integer,\nLocationName,location name,the name of the location,text,\nStreetAddress,street address,the street address,text,\nCity,,the city where the location locates,text,\nState,,the state code,text,\nZipCode,zip code,the zip code of the location,integer,",
"table": "location"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBrandID,brand id,the unique id for the brand,integer,\nBrandName,brand name,the brand name,text,\nFirstBrewedYear,first brewed year,the first brewed year of the brand,integer,\"commonsense evidence:\nbrand with earlier first brewed year has a much longer brewed history\"\nBreweryName,brewery name ,the brewery name,text,\nCity,,the city where the brewery locates,text,\nState,,the state code,text,\nCountry,,the country where the brewery locates,text,\"commonsense evidence:\ncan find its corresponding continent. e.g., U.S.--> North America \"\nDescription,,the description of the brand,text,\nCaneSugar,cane sugar,whether the drink contains cane sugar,text,\nCornSyrup,corn syrup,whether the drink contains the corn syrup,text,\nHoney,,whether the drink contains the honey ,text,\"commonsense evidence:\nif the beer has honey, it means this beer is sweeter or has sweetness\"\nArtificialSweetener,artificial sweetener,whether the drink contains the artificial sweetener ,text,\"commonsense evidence:\nif the beer has artificial sweetener, it means this beer is sweeter or has sweetness\"\nCaffeinated,,whether the drink is caffeinated,text,\nAlcoholic,,whether the drink is alcoholic,text,\nAvailableInCans,available in cans,whether the drink is available in cans,text,\nAvailableInBottles,available in bottles,whether the drink is available in bottles,text,\nAvailableInKegs,available in kegs,whether the drink is available in kegs,text,\nWebsite,,the website of the brand,text,\nFacebookPage,facebook page,the facebook page of the brand,text,\"commonsense evidence:\nif not, it means this brand doesn't advertise on facebook\"\nTwitter,,the twitter of the brand,text,\"commonsense evidence:\nif not, it means this brand doesn't advertise on twitter\"\nWholesaleCost,wholesale cost,the wholesale cost,real,\nCurrentRetailPrice,current retail price,the current retail price,real,\"commonsense evidence:\nThe unit profit available to wholesalers = current retail price - wholesale cost\"",
"table": "rootbeerbrand"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nTransactionID,transaction id,the unique id for the transaction,integer,\nCreditCardNumber,credit card number,the number of the credit card used for payment,integer,\nCustomerID,customer id,the customer id,integer,\nTransactionDate,transaction date,the transaction date,date,yyyy-mm-dd\nCreditCardType,credit card type,the credit card type,text,\nLocationID,location id,the location id of the selling company ,integer,\nRootBeerID,root beer id,the root beer id,integer,\nPurchasePrice,purchase price,the unit purchase price of the root beer,real,us dollars",
"table": "transaction"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCustomerID,customer id,the id of the customer,integer,\nBrandID,brand id,the id of the brand,integer,\nStarRating,star rating,the star rating of the root beer,integer,\"commonsense evidence:\nroot beer with higher star rating has higher market evaluation and acceptance\"\nReviewDate,review date,the review date,date,yyyy-mm-dd\nReview,,the specific review content,text,",
"table": "rootbeerreview"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCustomerID,customer id,the unique id for the customer,integer,\nFirst,first name,the first name of the customer,text,\nLast,last name,the last name of the customer,text,\nStreetAddress,street address,the address of the customer,text,\nCity,,the city where the customer lives,text,\nState,,the state code,text,\"commonsense evidence: please refer to https://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971\nand mention its corresponding state name in the question. i.e. New York-- NY\"\nZipCode,zip code,the zip code,integer,\nEmail,,the customer's email,text,\nPhoneNumber,phone number,the customer's phone number,text,\nFirstPurchaseDate,first purchase date,the first purchase date of the customer,date,yyyy-mm-dd\nSubscribedToEmailList,subscribed to email list,whether the customer subscribe to the email list,text,\"commonsense evidence:\n 'true' means the user permits the company to send regular emails to them. \"\nGender,,the customer's gender,text,",
"table": "customers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nRootBeerID,root beer id,the unique id for the root beer,integer,\nBrandID,brandid,the brand id,integer,\nContainerType,container type,the type of the container,text,\nLocationID,location id,the location id of the selling company ,integer,\nPurchaseDate,purchase date,the purchase date of the root beer,date,",
"table": "rootbeer"
}
] |
regional_sales | [
{
"create_sql": "CREATE TABLE Customers\n(\n CustomerID INTEGER\n constraint Customers_pk\n primary key,\n \"Customer Names\" TEXT\n);",
"table": "Customers"
},
{
"create_sql": "CREATE TABLE Products\n(\n ProductID INTEGER\n constraint Products_pk\n primary key,\n \"Product Name\" TEXT\n);",
"table": "Products"
},
{
"create_sql": "CREATE TABLE Regions\n(\n StateCode TEXT\n constraint Regions_pk\n primary key,\n State TEXT,\n Region TEXT\n);",
"table": "Regions"
},
{
"create_sql": "CREATE TABLE \"Sales Team\"\n(\n SalesTeamID INTEGER\n constraint \"Sales Team_pk\"\n primary key,\n \"Sales Team\" TEXT,\n Region TEXT\n);",
"table": "Sales Team"
},
{
"create_sql": "CREATE TABLE \"Store Locations\"\n(\n StoreID INTEGER\n constraint \"Store Locations_pk\"\n primary key,\n \"City Name\" TEXT,\n County TEXT,\n StateCode TEXT\n constraint \"Store Locations_Regions_StateCode_fk\"\n references Regions(StateCode),\n State TEXT,\n Type TEXT,\n Latitude REAL,\n Longitude REAL,\n AreaCode INTEGER,\n Population INTEGER,\n \"Household Income\" INTEGER,\n \"Median Income\" INTEGER,\n \"Land Area\" INTEGER,\n \"Water Area\" INTEGER,\n \"Time Zone\" TEXT\n);",
"table": "Store Locations"
},
{
"create_sql": "CREATE TABLE \"Sales Orders\"\n(\n OrderNumber TEXT\n constraint \"Sales Orders_pk\"\n primary key,\n \"Sales Channel\" TEXT,\n WarehouseCode TEXT,\n ProcuredDate TEXT,\n OrderDate TEXT,\n ShipDate TEXT,\n DeliveryDate TEXT,\n CurrencyCode TEXT,\n _SalesTeamID INTEGER\n constraint \"Sales Orders_Sales Team_SalesTeamID_fk\"\n references \"Sales Team\"(SalesTeamID),\n _CustomerID INTEGER\n constraint \"Sales Orders_Customers_CustomerID_fk\"\n references Customers(CustomerID),\n _StoreID INTEGER\n constraint \"Sales Orders_Store Locations_StoreID_fk\"\n references \"Store Locations\"(StoreID),\n _ProductID INTEGER\n constraint \"Sales Orders_Products_ProductID_fk\"\n references Products(ProductID),\n \"Order Quantity\" INTEGER,\n \"Discount Applied\" REAL,\n \"Unit Price\" TEXT,\n \"Unit Cost\" TEXT\n);",
"table": "Sales Orders"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSalesTeamID,SalesTeam ID,unique sales team id,integer,\nSales Team,,sales team names,text,\nRegion,,the region where the state is located in,text,",
"table": "Sales Team"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nOrderNumber,Order Number,the unique number identifying the order,text,\nSales Channel,,Sales Channel,text,\" In-Store\n Online\n Distributor\n Wholesale\"\nWarehouseCode,Warehouse Code,Warehouse Code,text,\"commonsense evidence:\nif the warehouse code is the same, it means this product is shipped from the same ware house\"\nProcuredDate,Procured Date,Procured Date,text,\"commonsense evidence:\ndate: month/date/year, 17--> 2017\"\nOrderDate,Order Date,Order Date,text,\nShipDate,Ship Date,Ship Date,text,\nDeliveryDate,Delivery Date,Delivery Date,text,\"commonsense evidence:\nthe difference \"\"DeliveryDate - OrderDate\"\" is smaller, it means faster delivery\"\nCurrencyCode,Currency Code,Currency Code,text,USD\n_SalesTeamID,_Sales Team ID,Sales Team ID,integer,\n_CustomerID,_Customer ID,_Customer ID,integer,\n_StoreID,_Store ID,_Store ID,integer,\n_ProductID,_Product ID,_Product ID,integer,\nOrder Quantity,,Order Quantity,integer,\"commonsense evidence:\n1 - 8:\nhigher means order quantity is higher or customer needs more\"\nDiscount Applied,,Discount Applied,real,\"commonsense evidence:\n0.2: 20% discount\"\nUnit Price,,,text,\nUnit Cost,,,text,\"commonsense evidence:\nnet profit = Unit Price - Unit Cost\"",
"table": "Sales Orders"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCustomerID,customer id,unique id number indicating which customer,integer,\nCustomer Names,customer names,the name of the customer,text,",
"table": "Customers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nStoreID,Store ID,unique store id,integer,\nCity Name,City Name,City Name,text,\nCounty,,full county name,text,\nStateCode,State Code,state code,text,\nState,,full state name,text,\nType,,type of the store,text,\"City\nTown\nCDP (customer data platform)\nUnified Government\nConsolidated Government\nOther\nTownship\nUrban County \nBorough\nMetropolitan Government\"\nLatitude,,Latitude,real,\nLongitude,,Longitude,real,\"commonsense evidence:\ncoordinates or detailed position: (Latitude, Longitude)\"\nAreaCode,Area Code,,integer,\nPopulation,,Population,integer,\nHousehold Income,,Household Income,integer,\nMedian Income,,Median Income,integer,\nLand Area,,Land Area,integer,\nWater Area,,Water Area,integer,\nTime Zone,,Time Zone,text,",
"table": "Store Locations"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nStateCode,state code,the unique code identifying the state,text,\nState,,full state name,text,\nRegion,,the region where the state is located in,text,",
"table": "Regions"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,product id,unique id number representing each product,integer,\nProduct Name,product name,name of the product,text,",
"table": "Products"
}
] |
soccer_2016 | [
{
"create_sql": "CREATE TABLE Batting_Style\n(\n Batting_Id INTEGER\n primary key,\n Batting_hand TEXT\n);",
"table": "Batting_Style"
},
{
"create_sql": "CREATE TABLE Bowling_Style\n(\n Bowling_Id INTEGER\n primary key,\n Bowling_skill TEXT\n);",
"table": "Bowling_Style"
},
{
"create_sql": "CREATE TABLE City\n(\n City_Id INTEGER\n primary key,\n City_Name TEXT,\n Country_id INTEGER\n);",
"table": "City"
},
{
"create_sql": "CREATE TABLE Country\n(\n Country_Id INTEGER\n primary key,\n Country_Name TEXT,\n foreign key (Country_Id) references Country(Country_Id)\n);",
"table": "Country"
},
{
"create_sql": "CREATE TABLE Extra_Type\n(\n Extra_Id INTEGER\n primary key,\n Extra_Name TEXT\n);",
"table": "Extra_Type"
},
{
"create_sql": "CREATE TABLE Extra_Runs\n(\n Match_Id INTEGER,\n Over_Id INTEGER,\n Ball_Id INTEGER,\n Extra_Type_Id INTEGER,\n Extra_Runs INTEGER,\n Innings_No INTEGER,\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Extra_Type_Id) references Extra_Type(Extra_Id)\n);",
"table": "Extra_Runs"
},
{
"create_sql": "CREATE TABLE Out_Type\n(\n Out_Id INTEGER\n primary key,\n Out_Name TEXT\n);",
"table": "Out_Type"
},
{
"create_sql": "CREATE TABLE Outcome\n(\n Outcome_Id INTEGER\n primary key,\n Outcome_Type TEXT\n);",
"table": "Outcome"
},
{
"create_sql": "CREATE TABLE Player\n(\n Player_Id INTEGER\n primary key,\n Player_Name TEXT,\n DOB DATE,\n Batting_hand INTEGER,\n Bowling_skill INTEGER,\n Country_Name INTEGER,\n foreign key (Batting_hand) references Batting_Style(Batting_Id),\n foreign key (Bowling_skill) references Bowling_Style(Bowling_Id),\n foreign key (Country_Name) references Country(Country_Id)\n);",
"table": "Player"
},
{
"create_sql": "CREATE TABLE Rolee\n(\n Role_Id INTEGER\n primary key,\n Role_Desc TEXT\n);",
"table": "Rolee"
},
{
"create_sql": "CREATE TABLE Season\n(\n Season_Id INTEGER\n primary key,\n Man_of_the_Series INTEGER,\n Orange_Cap INTEGER,\n Purple_Cap INTEGER,\n Season_Year INTEGER\n);",
"table": "Season"
},
{
"create_sql": "CREATE TABLE Team\n(\n Team_Id INTEGER\n primary key,\n Team_Name TEXT\n);",
"table": "Team"
},
{
"create_sql": "CREATE TABLE Toss_Decision\n(\n Toss_Id INTEGER\n primary key,\n Toss_Name TEXT\n);",
"table": "Toss_Decision"
},
{
"create_sql": "CREATE TABLE Umpire\n(\n Umpire_Id INTEGER\n primary key,\n Umpire_Name TEXT,\n Umpire_Country INTEGER,\n foreign key (Umpire_Country) references Country(Country_Id)\n);",
"table": "Umpire"
},
{
"create_sql": "CREATE TABLE Venue\n(\n Venue_Id INTEGER\n primary key,\n Venue_Name TEXT,\n City_Id INTEGER,\n foreign key (City_Id) references City(City_Id)\n);",
"table": "Venue"
},
{
"create_sql": "CREATE TABLE Win_By\n(\n Win_Id INTEGER\n primary key,\n Win_Type TEXT\n);",
"table": "Win_By"
},
{
"create_sql": "CREATE TABLE Match\n(\n Match_Id INTEGER\n primary key,\n Team_1 INTEGER,\n Team_2 INTEGER,\n Match_Date DATE,\n Season_Id INTEGER,\n Venue_Id INTEGER,\n Toss_Winner INTEGER,\n Toss_Decide INTEGER,\n Win_Type INTEGER,\n Win_Margin INTEGER,\n Outcome_type INTEGER,\n Match_Winner INTEGER,\n Man_of_the_Match INTEGER,\n foreign key (Team_1) references Team(Team_Id),\n foreign key (Team_2) references Team(Team_Id),\n foreign key (Season_Id) references Season(Season_Id),\n foreign key (Venue_Id) references Venue(Venue_Id),\n foreign key (Toss_Winner) references Team(Team_Id),\n foreign key (Toss_Decide) references Toss_Decision(Toss_Id),\n foreign key (Win_Type) references Win_By(Win_Id),\n foreign key (Outcome_type) references Out_Type(Out_Id),\n foreign key (Match_Winner) references Team(Team_Id),\n foreign key (Man_of_the_Match) references Player(Player_Id)\n);",
"table": "Match"
},
{
"create_sql": "CREATE TABLE Ball_by_Ball\n(\n Match_Id INTEGER,\n Over_Id INTEGER,\n Ball_Id INTEGER,\n Innings_No INTEGER,\n Team_Batting INTEGER,\n Team_Bowling INTEGER,\n Striker_Batting_Position INTEGER,\n Striker INTEGER,\n Non_Striker INTEGER,\n Bowler INTEGER,\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);",
"table": "Ball_by_Ball"
},
{
"create_sql": "CREATE TABLE Batsman_Scored\n(\n Match_Id INTEGER,\n Over_Id INTEGER,\n Ball_Id INTEGER,\n Runs_Scored INTEGER,\n Innings_No INTEGER,\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id)\n);",
"table": "Batsman_Scored"
},
{
"create_sql": "CREATE TABLE Player_Match\n(\n Match_Id INTEGER,\n Player_Id INTEGER,\n Role_Id INTEGER,\n Team_Id INTEGER,\n primary key (Match_Id, Player_Id, Role_Id),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Id) references Player(Player_Id),\n foreign key (Team_Id) references Team(Team_Id),\n foreign key (Role_Id) references Rolee(Role_Id)\n);",
"table": "Player_Match"
},
{
"create_sql": "CREATE TABLE Wicket_Taken\n(\n Match_Id INTEGER,\n Over_Id INTEGER,\n Ball_Id INTEGER,\n Player_Out INTEGER,\n Kind_Out INTEGER,\n Fielders INTEGER,\n Innings_No INTEGER,\n primary key (Match_Id, Over_Id, Ball_Id, Innings_No),\n foreign key (Match_Id) references Match(Match_Id),\n foreign key (Player_Out) references Player(Player_Id),\n foreign key (Kind_Out) references Out_Type(Out_Id),\n foreign key (Fielders) references Player(Player_Id)\n);",
"table": "Wicket_Taken"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMatch_Id,,unique id for match,integer,\nTeam_1,team 1,the team id of the first team,integer,\nTeam_2,team 2,the team id for the second team,integer,\nMatch_Date,match date,the date of the match,date,yyyy-mm-dd\nSeason_Id,season id,the id of the season,integer,\nVenue_Id,venue id,the id of the venue where the match held,integer,\nToss_Winner,toss winner,the id of the toss winner,integer,\"commonsense evidence:\nThe toss winner is a term used in cricket and is the team that wins the heads or tails toss of coin at the beginning of a match which then enables the team captain to decide whether to bat or bowl first on the pitch.\"\nToss_Decide,toss decide,the decision (batting or bowling) made after winning the toss,integer,\"⢠field \n⢠bat\"\nWin_Type,winning type,the id of the winning type ,integer,\nWin_Margin,winning margin,the points of the winning margin,integer,\"commonsense evidence:\nA winning margin bet is a wager on the final result of a game, within a certain range of points.\"\nOutcome_type,outcome type,the id of the outcome type,integer,\nMatch_Winner,match winner,the team id of the match winner,integer,\nMan_of_the_Match,man of the match,the id of the man of the match,integer,\"commonsense evidence:\nIn team sport, a player of the match or man (or woman) of the match award is often given to the outstanding player in a particular match.\"",
"table": "Match"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMatch_Id,match id,unique id for match,integer,\nPlayer_Id,player id,the id of the player,integer,\nRole_Id,role id,the id of the play's role in the match,integer,\"commonsense evidence:\nif a player has multiple roles in a match, it means this player is versatile\"\nTeam_Id,team id,the id of player's team,integer,",
"table": "Player_Match"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nToss_Id,toss id,the unique id for the toss,integer,\nToss_Name,toss name,the toss decision name,text,",
"table": "Toss_Decision"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMatch_Id,match id,Unique Number Which Identifies a match,integer,\nOver_Id,over id,Unique Number which Identifies an over in an Innings,integer,\nBall_Id,ball id,Unique Number which Identifies a ball in an over,integer,\nRuns_Scored,runs scored,Number of Runs scored by the batsman,integer,\nInnings_No,innings number,Unique Number which Identifies an innings in a match,integer,",
"table": "Batsman_Scored"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nUmpire_Id,umpire id,the unique id of the umpire,integer,\nUmpire_Name,umpire name,umpire's name,text,\nUmpire_Country,umpire country,the id of the country where the umpire are from,integer,",
"table": "Umpire"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountry_Id,country id,unique id for country,integer,\nCountry_Name,country name,country name,text,",
"table": "Country"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSeason_Id,season id,the unique id for season,integer,\nMan_of_the_Series,man of the series,the player id of man of the series,integer,\"commonsense evidence:\nIn team sport, a player of the series or man (or woman) of the series award is often given to the outstanding player in a particular series.\"\nOrange_Cap,orange cap,the player id who wins the orange cap,integer,\"commonsense evidence:\nThe Orange Cap is a coveted award for a batter who is participating in the Indian Premier League (IPL)\"\nPurple_Cap,purple cap,the player id who wins the purple cap,integer,\"commonsense evidence:\nThe Purple Cap is awarded to the bowler who has emerged as the leading wicket-taker in a particular edition of the high-profile Indian Premier League (IPL)\"\nSeason_Year,season year,the year of the season,integer,",
"table": "Season"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nVenue_Id,venue id,the unique id of the venue,integer,\nVenue_Name,venue name,the name of the venue,text,\nCity_Id,city id,the city id where the venue is located in ,integer,",
"table": "Venue"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBowling_Id,bowling id,unique id for bowling style,integer,\nBowling_skill,bowling skill,the bowling skill,text,",
"table": "Bowling_Style"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCity_Id,city id,unique id for city,integer,\nCity_Name,city name,city name,text,\nCountry_id,country id,id of country,integer,",
"table": "City"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nOut_Id,out id,unique id for out type,integer,\nOut_Name,out name,out type name,text,",
"table": "Out_Type"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMatch_Id,match id,the id of the match,integer,\nOver_Id,over id,the id of the over in an inning,integer,\nBall_Id,ball id,the id of the ball in an over,integer,\nPlayer_Out,player out,the player id who got an out,integer,\nKind_Out,kind out,the id that represents the out type,integer,\nFielders ,,the id of fielders,integer,\nInnings_No,innings number ,number which identifies an innings in a match,integer,",
"table": "Wicket_Taken"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nTeam_Id,team id,the unique id for the team,integer,\nTeam_Name,team name,the team name ,text,",
"table": "Team"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nOutcome_Id,outcome id,unique id for outcome,integer,\nOutcome_Type,outcome type,type of the outcome,text,",
"table": "Outcome"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nWin_Id,winning id,the unique id for the winning,integer,\nWin_Type,winning type,the winning type,text,",
"table": "Win_By"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nBatting_Id,batting id,unique id for batting hand,integer,\nBatting_hand,batting hand,the batting hand: left or right,text,",
"table": "Batting_Style"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nExtra_Id,extra id,unique id for extra type,integer,\nExtra_Name,extra name,extra type name,text,",
"table": "Extra_Type"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nPlayer_Id,player id,the id of the player,integer,\nPlayer_Name,player name,the name of the player,text,\nDOB,date of birth,player's birthday,date,yyyy-mm-dd\nBatting_hand,batting hand,the id of the batting hand,integer,\nBowling_skill,bowling skill,the id of the bowling skill,integer,\nCountry_Name,country name,the name of the country where the player is from,integer,",
"table": "Player"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMatch_Id,match id,Unique Number Which Identifies a match,integer,\nOver_Id,over id,Unique Number which Identifies an over in an Innings,integer,\nBall_Id,ball id,Unique Number which Identifies a ball in an over,integer,\nExtra_Type_Id,extra type id,Unique Number which Identifies extra type,integer,\nExtra_Runs,extra runs,Number of extra runs,integer,\nInnings_No,innings number,Unique Number which Identifies an innings in a match,integer,",
"table": "Extra_Runs"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nRole_Id,role id,the unique id for the role,integer,\nRole_Desc,role description,the role description ,text,",
"table": "Rolee"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMatch_Id,match id,Unique Number Which Identifies a match,integer,\nOver_Id,over id,Unique Number which Identifies an over in an Innings,integer,\"commonsense evidence:\nThe match is made up of two innings and each team takes a turn at batting and bowling. An innings is made up of 50 overs. An over involves six deliveries from the bowler.\"\nBall_Id,ball id,Unique Number which Identifies a ball in an over,integer,\nInnings_No,innings number,Unique Number which Identifies an innings in a match,integer,\nTeam_Batting,team batting,Unique Number which Identifies Batting team in a match,integer,\nTeam_Bowling,team bowling,Unique Number which Identifies Bowling team in a match,integer,\nStriker_Batting_Position,striker batting position,Unique Number which Identifies the position in which player came into bat,integer,\nStriker,,Unique Number which Identifies the player who is on strike for that particular ball,integer,\nNon_Striker,non striker,Unique Number which Identifies the player who is Non-striker for that particular ball,integer,\nBowler,,Unique Number which Identifies the player who is Bowling that particular ball,integer,",
"table": "Ball_by_Ball"
}
] |
cs_semester | [
{
"create_sql": "CREATE TABLE \"course\"\n(\n course_id INTEGER\n constraint course_pk\n primary key,\n name TEXT,\n credit INTEGER,\n diff INTEGER\n);",
"table": "course"
},
{
"create_sql": "CREATE TABLE prof\n(\n prof_id INTEGER\n constraint prof_pk\n primary key,\n gender TEXT,\n first_name TEXT,\n last_name TEXT,\n email TEXT,\n popularity INTEGER,\n teachingability INTEGER,\n graduate_from TEXT\n);",
"table": "prof"
},
{
"create_sql": "CREATE TABLE RA\n(\n student_id INTEGER,\n capability INTEGER,\n prof_id INTEGER,\n salary TEXT,\n primary key (student_id, prof_id),\n foreign key (prof_id) references prof(prof_id),\n foreign key (student_id) references student(student_id)\n);",
"table": "RA"
},
{
"create_sql": "CREATE TABLE registration\n(\n course_id INTEGER,\n student_id INTEGER,\n grade TEXT,\n sat INTEGER,\n primary key (course_id, student_id),\n foreign key (course_id) references course(course_id),\n foreign key (student_id) references student(student_id)\n);",
"table": "registration"
},
{
"create_sql": "CREATE TABLE student\n(\n student_id INTEGER\n primary key,\n f_name TEXT,\n l_name TEXT,\n phone_number TEXT,\n email TEXT,\n intelligence INTEGER,\n gpa REAL,\n type TEXT\n);",
"table": "student"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstudent_id,student id,the id numbe representing each student,integer,\ncapability,,\"the capability of student on research\n(Evaluated by the professor)\",integer,higher --> higher research ability / capability\nprof_id,professor id,professor who advises this student,integer,\"this value may be repetitive since one professor may advise many students in this semester\ncommonsense evidence:\nif a professor advise > 2 students in this semester, it means this professor's research work is heavy\nor: this professor's popularity on research is higher\"\nsalary,,the salary of this student.,text,\"med: average salary\nhigh: higher salary than others\nlow: lower salary\nfree: unpaid RA\"",
"table": "RA"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstudent_id,student id,the unique id to identify students,integer,\nf_name,first name,the first name of the student,text,\nl_name,last name,the last name of the student,text,\"commonsense evidence:\nfull name: f_name, l_name\"\nphone_number,phone number ,phone number,text,\nemail,,email ,text,\nintelligence,,intelligence of the student,integer,higher --> more intelligent\ngpa,graduate point average,gpa ,real,\ntype,,type of the student,text,\" TPG: taught postgraduate student(master)\n RPG: research postgraduate student (master)\n UG: undergraduate student(bachelor)\ncommonsense evidence:\nboth TPG and RPG are students pursuing a masters degree; UG are students pursuing the bachelor degree\"",
"table": "student"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncourse_id,course id,the id of courses,integer,\nstudent_id,student id,the id of students,integer,\ngrade,,the grades that the students acquire in this course,text,\"commonsense evidence:\n A: excellent -- 4\n B: good -- 3\n C: fair -- 2\n D: poorly pass -- 1\n null or empty: this student fails to pass this course\n gpa of students for this semester = sum (credits x grade) / sum (credits)\"\nsat,satisfying degree,student satisfaction with the course,integer,",
"table": "registration"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncourse_id,course id,unique id representing the course,integer,\nname,,name of the course,text,\ncredit,,credit of the course,integer,\"commonsense evidence:\nhigher means more important\"\ndiff,difficulty,difficulty of the course,integer,\"commonsense evidence:\nhigher --> more difficult\nsmaller --> less difficult\"",
"table": "course"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nprof_id,professor id,unique id for professors,integer,\ngender,gender,gender of the professor,text,\nfirst_name,first name,the first name of the professor,text,\nlast_name,last name,the last name of the professor ,text,\"commonsense evidence:\nfull name: first name, last name\"\nemail,,email of the professor,text,\npopularity,,popularity of the professor,integer,\"commonsense evidence:\nhigher --> more popular\"\nteachingability,teaching ability,the teaching ability of the professor,integer,\"commonsense evidence:\nhigher --> more teaching ability, his / her lectures may have better quality\"\ngraduate_from,graduate from,the school where the professor graduated from,text,",
"table": "prof"
}
] |
shakespeare | [
{
"create_sql": "CREATE TABLE \"chapters\"\n(\n id INTEGER\n primary key autoincrement,\n Act INTEGER not null,\n Scene INTEGER not null,\n Description TEXT not null,\n work_id INTEGER not null\n references works\n);",
"table": "chapters"
},
{
"create_sql": "CREATE TABLE \"characters\"\n(\n id INTEGER\n primary key autoincrement,\n CharName TEXT not null,\n Abbrev TEXT not null,\n Description TEXT not null\n);",
"table": "characters"
},
{
"create_sql": "CREATE TABLE \"paragraphs\"\n(\n id INTEGER\n primary key autoincrement,\n ParagraphNum INTEGER not null,\n PlainText TEXT not null,\n character_id INTEGER not null\n references characters,\n chapter_id INTEGER default 0 not null\n references chapters\n);",
"table": "paragraphs"
},
{
"create_sql": "CREATE TABLE \"works\"\n(\n id INTEGER\n primary key autoincrement,\n Title TEXT not null,\n LongTitle TEXT not null,\n Date INTEGER not null,\n GenreType TEXT not null\n);",
"table": "works"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,id,unique id number identifying the characters,integer,\nCharName,char name,character name,text,\nAbbrev,abbreviation,abbreviation. An abbreviation is a shortened form of a word or phrase.,text,\nDescription,,description of the character.,text,",
"table": "characters"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,id,unique id number identifying the chapter,integer auto_increment,\nAct,,\"An act is a major division of a theatre work, including a play, film, opera, or musical theatre\",integer,\"commonsense evidence:\nAn act can consist of one or more scenes\"\nScene,,\"A scene is a dramatic part of a story, at a specific time and place, between specific characters.\",integer,\nDescription,,textual description of the chapter.,text,\nwork_id,work id,id number identifying the work,integer,",
"table": "chapters"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,id,unique id number identifying the paragraphs,integer ,\nParagraphNum,paragraph number,unique id number identifying the paragraph number,integer,\nPlainText,Plain Text,main content of the paragraphs,text,\ncharacter_id,character id,unique id number identifying the mentioned character,integer,\nchapter_id,chapter id,unique id number identifying the related chapter,integer,\"commonsense evidence:\nif number of the paragraphs is > 150, then it means this is a long chapter\"",
"table": "paragraphs"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,id,unique id number identifying the work,integer,\nTitle,,title of the work,text,\" commonsense evidence:\nthe short title or abbreviated title\n\"\nLongTitle,Long Title,full title of the work,text,\nDate,character id,date of the work,integer,\nGenreType,genre type,the type of the genere,text,",
"table": "works"
}
] |
authors | [
{
"create_sql": "CREATE TABLE \"Author\"\n(\n Id INTEGER\n constraint Author_pk\n primary key,\n Name TEXT,\n Affiliation TEXT\n);",
"table": "Author"
},
{
"create_sql": "CREATE TABLE \"Conference\"\n(\n Id INTEGER\n constraint Conference_pk\n primary key,\n ShortName TEXT,\n FullName TEXT,\n HomePage TEXT\n);",
"table": "Conference"
},
{
"create_sql": "CREATE TABLE \"Journal\"\n(\n Id INTEGER\n constraint Journal_pk\n primary key,\n ShortName TEXT,\n FullName TEXT,\n HomePage TEXT\n);",
"table": "Journal"
},
{
"create_sql": "CREATE TABLE Paper\n(\n Id INTEGER\n primary key,\n Title TEXT,\n Year INTEGER,\n ConferenceId INTEGER,\n JournalId INTEGER,\n Keyword TEXT,\n foreign key (ConferenceId) references Conference(Id),\n foreign key (JournalId) references Journal(Id)\n);",
"table": "Paper"
},
{
"create_sql": "CREATE TABLE PaperAuthor\n(\n PaperId INTEGER,\n AuthorId INTEGER,\n Name TEXT,\n Affiliation TEXT,\n foreign key (PaperId) references Paper(Id),\n foreign key (AuthorId) references Author(Id)\n);",
"table": "PaperAuthor"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nPaperId,, Paper Id,integer,\nAuthorId,,Author Id,integer,\"commonsense reasoning: A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair. \"\nName,,Author Name (as written on paper),text,\nAffiliation,,Author Affiliation (as written on paper),text,the name of an organization with which an author can be affiliated",
"table": "PaperAuthor"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nId,,Journal Id,integer,\nShortName,,Short name,text,\nFullName,,Full name,text,\nHomePage,,Homepage URL of journal,text,",
"table": "Journal"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nId,,Conference Id,integer,\nShortName,,Short name,text,\nFullName,,Full name,text,\nHomePage,,Homepage URL of conference,text,",
"table": "Conference"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nId,, Id of the paper,integer,\nTitle,,Title of the paper,text,\nYear,,Year of the paper,integer,\"commonsense reasoning: if the year is \"\"0\"\", it means this paper is preprint, or not published\"\nConferenceId,,Conference Id in which paper was published,integer,\nJournalId,,Journal Id in which paper was published,integer,\"commonsense reasoning: If a paper contain \"\"0\"\" in both ConferenceID and JournalId, it means this paper is preprint\"\nKeyword,,Keywords of the paper ,text,\"commonsense reasoning: Keywords should contain words and phrases that suggest what the topic is about. \nSimilar keywords represent similar fields or sub-field. \"",
"table": "Paper"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nId,,Id of the author,integer,\nName,,Author Name,text,\nAffiliation,,Organization name with which the author is affiliated. ,text,the name of an organization with which an author can be affiliated",
"table": "Author"
}
] |
movie_3 | [
{
"create_sql": "CREATE TABLE film_text\n(\n film_id INTEGER not null\n primary key,\n title TEXT not null,\n description TEXT null\n);",
"table": "film_text"
},
{
"create_sql": "CREATE TABLE \"actor\"\n(\n actor_id INTEGER\n primary key autoincrement,\n first_name TEXT not null,\n last_name TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "actor"
},
{
"create_sql": "CREATE TABLE \"address\"\n(\n address_id INTEGER\n primary key autoincrement,\n address TEXT not null,\n address2 TEXT,\n district TEXT not null,\n city_id INTEGER not null\n references city\n on update cascade,\n postal_code TEXT,\n phone TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "address"
},
{
"create_sql": "CREATE TABLE \"category\"\n(\n category_id INTEGER\n primary key autoincrement,\n name TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "category"
},
{
"create_sql": "CREATE TABLE \"city\"\n(\n city_id INTEGER\n primary key autoincrement,\n city TEXT not null,\n country_id INTEGER not null\n references country\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "city"
},
{
"create_sql": "CREATE TABLE \"country\"\n(\n country_id INTEGER\n primary key autoincrement,\n country TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "country"
},
{
"create_sql": "CREATE TABLE \"customer\"\n(\n customer_id INTEGER\n primary key autoincrement,\n store_id INTEGER not null\n references store\n on update cascade,\n first_name TEXT not null,\n last_name TEXT not null,\n email TEXT,\n address_id INTEGER not null\n references address\n on update cascade,\n active INTEGER default 1 not null,\n create_date DATETIME not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "customer"
},
{
"create_sql": "CREATE TABLE \"film\"\n(\n film_id INTEGER\n primary key autoincrement,\n title TEXT not null,\n description TEXT,\n release_year TEXT,\n language_id INTEGER not null\n references language\n on update cascade,\n original_language_id INTEGER\n references language\n on update cascade,\n rental_duration INTEGER default 3 not null,\n rental_rate REAL default 4.99 not null,\n length INTEGER,\n replacement_cost REAL default 19.99 not null,\n rating TEXT default 'G',\n special_features TEXT,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "film"
},
{
"create_sql": "CREATE TABLE \"film_actor\"\n(\n actor_id INTEGER not null\n references actor\n on update cascade,\n film_id INTEGER not null\n references film\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null,\n primary key (actor_id, film_id)\n);",
"table": "film_actor"
},
{
"create_sql": "CREATE TABLE \"film_category\"\n(\n film_id INTEGER not null\n references film\n on update cascade,\n category_id INTEGER not null\n references category\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null,\n primary key (film_id, category_id)\n);",
"table": "film_category"
},
{
"create_sql": "CREATE TABLE \"inventory\"\n(\n inventory_id INTEGER\n primary key autoincrement,\n film_id INTEGER not null\n references film\n on update cascade,\n store_id INTEGER not null\n references store\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "inventory"
},
{
"create_sql": "CREATE TABLE \"language\"\n(\n language_id INTEGER\n primary key autoincrement,\n name TEXT not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "language"
},
{
"create_sql": "CREATE TABLE \"payment\"\n(\n payment_id INTEGER\n primary key autoincrement,\n customer_id INTEGER not null\n references customer\n on update cascade,\n staff_id INTEGER not null\n references staff\n on update cascade,\n rental_id INTEGER\n references rental\n on update cascade on delete set null,\n amount REAL not null,\n payment_date DATETIME not null,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "payment"
},
{
"create_sql": "CREATE TABLE \"rental\"\n(\n rental_id INTEGER\n primary key autoincrement,\n rental_date DATETIME not null,\n inventory_id INTEGER not null\n references inventory\n on update cascade,\n customer_id INTEGER not null\n references customer\n on update cascade,\n return_date DATETIME,\n staff_id INTEGER not null\n references staff\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null,\n unique (rental_date, inventory_id, customer_id)\n);",
"table": "rental"
},
{
"create_sql": "CREATE TABLE \"staff\"\n(\n staff_id INTEGER\n primary key autoincrement,\n first_name TEXT not null,\n last_name TEXT not null,\n address_id INTEGER not null\n references address\n on update cascade,\n picture BLOB,\n email TEXT,\n store_id INTEGER not null\n references store\n on update cascade,\n active INTEGER default 1 not null,\n username TEXT not null,\n password TEXT,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "staff"
},
{
"create_sql": "CREATE TABLE \"store\"\n(\n store_id INTEGER\n primary key autoincrement,\n manager_staff_id INTEGER not null\n unique\n references staff\n on update cascade,\n address_id INTEGER not null\n references address\n on update cascade,\n last_update DATETIME default CURRENT_TIMESTAMP not null\n);",
"table": "store"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nfilm_id,film id,unique id number identifying the film,integer,\ntitle,title,title of the film,text,\ndescription,description,main content of the film,text,",
"table": "film_text"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncustomer_id,country id,unique id number identifying the country,integer,\nstore_id,store id,unique id number identifying the store,integer,\nfirst_name,first name,First name of the customer,text,\nlast_name,last name,Last name of the customer,text,\nemail,,Email address of the customer,text,\naddress_id,address id,Address id number of the customer.,integer ,\nactive,,Wether the customer is active or not.,integer,\"1: active\n0: not active\"\ncreate_date,create date,The date when the record is created.,datetime,\nlast_update,last update,The time of the latest update,datetime,",
"table": "customer"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nlanguage_id,language id,unique id number identifying the language,integer ,\nname,name,name of the language,text,\nlast_update,last update,The time of the latest update,datetime,",
"table": "language"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncategory_id,category id,unique id number identifying the category,integer ,\nname,,name of the category,text,\nlast_update,last update,The time of the latest update,datetime,",
"table": "category"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nactor_id,actor id,unique id number identifying the actor,integer ,\nfilm_id,film id,id number identifying the film,integer ,\nlast_update,last update,The time of the latest update,datetime,",
"table": "film_actor"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\naddress_id,address id,unique id number identifying the address,integer ,\naddress,,The first address line,text,\naddress2,address 2,the second address line,text,\"commonsense evidence:\naddress2 is the additional address if any\"\ndistrict,,,text,\ncity_id,,,integer unsigned,\npostal_code,postal code,,text,\"a postal code is a series of letters or digits or both, sometimes including spaces or punctuation, included in a postal address for the purpose of sorting mail.\"\nphone,,phone number,text,\nlast_update,last update,The time of the latest update,datetime,",
"table": "address"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncity_id,city id,unique id number identifying the city,integer ,\ncity,,name of the city,text,\ncountry_id,country id,number identifying the country which the city belongs to,integer ,\nlast_update,last update,The time of the latest update,datetime,",
"table": "city"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ninventory_id,inventory id,unique id number identifying the inventory,integer ,\nfilm_id,film id,unique id number identifying the film,integer ,\nstore_id,store id, id of the store,integer,\nlast_update,last update,the last update time of the film,datetime,",
"table": "inventory"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nfilm_id,film id,unique id number identifying the film,integer,\ncategory_id,category id,id number identifying the category,integer,\nlast_update,last update,The time of the latest update,datetime,",
"table": "film_category"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npayment_id,payment id,unique id number identifying the payment,integer ,\ncustomer_id,customer id,unique id number identifying the customer,integer ,\nstaff_id,staff id,unique id number identifying the staff,integer ,\nrental_id,rental id,unique id number identifying the rental,integer,\namount,amount,unique id number identifying the amount,real,\npayment_date,payment date,the date when the payment ocurs,datetime,\nlast_update,last update,The time of the latest update,datetime,",
"table": "payment"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstore_id,store id,unique id number identifying the store,integer ,\nmanager_staff_id,manager staff id,id number identifying the manager staff,integer ,\naddress_id,address id,id number identifying the address,integer ,\nlast_update,last update,The time of the latest update,datetime,",
"table": "store"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncountry_id,country id,unique id number identifying the country,integer ,\ncountry,the name of the country,number identifying the country,text,\"commonsense evidence:\n Africa: (Algeria, Angola, Cameroon, Chad, Congo, The Democratic Republic of the, Egypt, Ethiopia, Gambia...)\n Asia: (Afghanistan, Armenia, Azerbaijan, \nBahrain, Bangladesh, Brunei, Cambodia, China, Hong Kong, India, Indonesia, Iran, Iraq, Israel...)\n Oceania (American Samoa, Australia, French Polynesia...)\n North America (Anguilla, Canada, Dominican Republic, Ecuador, Greenland...)\n South America (Argentina, Bolivia, Brazil, Chile, \nColombia, Ecuador, French Guiana....)\n Europe (Austria, Belarus, Bulgaria, Czech Republic, Estonia, Faroe Islands, Finland, France, Germany, Greece, Holy See (Vatican City State), Hungary, Italy...)\ndetails: https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent\nquestion can mention i.e., Europe instead of Austria, etc.\"\nlast_update,last update,The time of the latest update,datetime,",
"table": "country"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstaff_id,staff id,unique id number identifying the staff,integer ,\nfirst_name,first name,First name of the actor,text,\nlast_name,last name,Last name of the actor,text,\"full name = (first name, last name)\"\naddress_id,address id,id number identifying the address,integer,\npicture,picture of the staff,,blob,\nemail,email of the staff,,text,\nstore_id,store id,id number identifying the store,integer ,\nactive,,Whether the staff is active or not.,integer,\"1: active\n0: not active\"\nusername,,username to login the staff,text,\npassword,,password to login the staff,text,\nlast_update,last update,The time of the latest update,datetime,",
"table": "staff"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nfilm_id,film id,unique id number identifying the film,integer ,\ntitle,title,title of the film,text,\ndescription,description,main content of the film,text,\nrelease_year,release year,the year when the film is released,text,\nlanguage_id,language id,the language id of the film,integer ,\noriginal_language_id,original language id,the original language id of the film,integer ,\nrental_duration,rental duration,how long this film can be rent at once,integer,\"commonsense evidence:\ndays\nprice / day = rental_rate / retal_duration\"\nrental_rate,rental rate,the rate of renting this film,real,higher -> expensive\nlength,length,Duration time of the film screening,integer,minutes\nreplacement_cost,replacement cost,cost of replacing this film,real,\nrating,rating,The Motion Picture Association film rating,text,\"commonsense evidence:\nG ?General Audiences\nPG ? Parental Guidance Suggested\nPG-13 ? Parents Strongly Cautioned\nR ? Restricted\nNC-17 ? Adults Only\"\nspecial_features,special features,features of this film,text,\nlast_update,last update,The time of the latest update,datetime,",
"table": "film"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nrental_id,rental id,unique id number identifying the rental,integer ,\nrental_date,rental date,date when the rental occurs,datetime,\ninventory_id,inventory id,id number identifying the inventory,integer ,\ncustomer_id,customer id,id number identifying the customer,integer ,\nreturn_date,return date,date when the rental returns,datetime,\nstaff_id,staff id,id number identifying the staff,integer ,\nlast_update,last update,The time of the latest update,datetime,",
"table": "rental"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nactor_id,actor id,unique id number identifying the actor,integer ,\nfirst_name,first name,First name of the actor,text,\nlast_name,last name,Last name of the actor,text,\nlast_update,last update,The time of the latest update,datetime,",
"table": "actor"
}
] |
food_inspection_2 | [
{
"create_sql": "CREATE TABLE employee\n(\n employee_id INTEGER\n primary key,\n first_name TEXT,\n last_name TEXT,\n address TEXT,\n city TEXT,\n state TEXT,\n zip INTEGER,\n phone TEXT,\n title TEXT,\n salary INTEGER,\n supervisor INTEGER,\n foreign key (supervisor) references employee(employee_id)\n);",
"table": "employee"
},
{
"create_sql": "CREATE TABLE establishment\n(\n license_no INTEGER\n primary key,\n dba_name TEXT,\n aka_name TEXT,\n facility_type TEXT,\n risk_level INTEGER,\n address TEXT,\n city TEXT,\n state TEXT,\n zip INTEGER,\n latitude REAL,\n longitude REAL,\n ward INTEGER\n);",
"table": "establishment"
},
{
"create_sql": "CREATE TABLE inspection\n(\n inspection_id INTEGER\n primary key,\n inspection_date DATE,\n inspection_type TEXT,\n results TEXT,\n employee_id INTEGER,\n license_no INTEGER,\n followup_to INTEGER,\n foreign key (employee_id) references employee(employee_id),\n foreign key (license_no) references establishment(license_no),\n foreign key (followup_to) references inspection(inspection_id)\n);",
"table": "inspection"
},
{
"create_sql": "CREATE TABLE inspection_point\n(\n point_id INTEGER\n primary key,\n Description TEXT,\n category TEXT,\n code TEXT,\n fine INTEGER,\n point_level TEXT\n);",
"table": "inspection_point"
},
{
"create_sql": "CREATE TABLE violation\n(\n inspection_id INTEGER,\n point_id INTEGER,\n fine INTEGER,\n inspector_comment TEXT,\n primary key (inspection_id, point_id),\n foreign key (inspection_id) references inspection(inspection_id),\n foreign key (point_id) references inspection_point(point_id)\n);",
"table": "violation"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npoint_id,point id,the unique id for the inspection point,integer,\nDescription,,the specific description of the inspection results,text,\ncategory,,the inspection category,text,\ncode,,the sanitary operating requirement code,text,commonsense evidence: Each code stands for an operating requirement\nfine,,the fines for food safety problems,integer,\"commonsense evidence: The fine of more serious food safety problems will be higher. \n Minor: 100 \n Serious: 250 \n Critical: 500\"\npoint_level,,point level,text,Critical / Serious/ Minor",
"table": "inspection_point"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ninspection_id,inspection id,the unique id for the inspection,integer,\ninspection_date,inspection date,the date of the inspection,date,yyyy-mm-dd\ninspection_type,inspection type,the type of the inspection,text s,\nresults,,the inspection results,text,\" Pass \n Pass w/ Conditions \n Fail \n Out of Business \n Business Not Located \n No Entry \n Not Ready \ncommonsense evidence: the quality is verified: Pass + Pass w/ Conditions\"\nemployee_id,employee id,the id of the employee who is responsible for the inspection,integer,\nlicense_no,license number,the license number of the facility that is inspected,integer,\nfollowup_to,followup to,the id of inspections that this inspection is following up,integer,\"commonsense evidence: 'No data' means the inspection has no followup.\nif followup_to has value: \n it's the parent inspection id, and this value represents child inspection id \n the entire inspection: followup_to + inspection_id\"",
"table": "inspection"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ninspection_id,inspection id,the unique id for the inspection,integer,\npoint_id,point id,the inspection point id,integer,\nfine,,the fine of the violation,integer,\"commonsense evidence: The fine of more serious food safety problems will be higher. \n Minor: 100 \n Serious: 250 \n Critical: 500\"\ninspector_comment,,the comment of the inspector,text,",
"table": "violation"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nlicense_no,license number,the license number of the facility,integer,\ndba_name,doing business as name,the dba name of the facility,text,\"commonsense evidence: DBA stands for doing business as. It's also referred to as your business's assumed, trade or fictitious name.\"\naka_name,as know as name,the aka name of the facility,text,commonsense evidence: the aka name is used to indicate another name that a person or thing has or uses\nfacility_type,facility type,the facility type,text,\"commonsense evidence: can ask some questions about its categories, for i.e.: \n \"\"Restaurant\"\" and \"\"Cafeteria\"\" refers to restaurants \n PASTRY school and \"\"CULINARY ARTS SCHOOL\"\" belongs to \"\"Education\"\" or \"\"School\"\". Please design this and mention your evidence in the commonsense part of questions, thanks\"\nrisk_level,risk level,the risk level of the facility,integer,commonsense evidence: Facilities with higher risk level have more serious food safety issues\naddress,,physical street address of the facility,text,\ncity,,city of the facility's address,text,\nstate,,state of the facility's address,text,\nzip,,postal code of the facility's address,integer,\nlatitude,,the latitude of the facility,real,\nlongitude,,the longitude of the facility,real,\"commonsense evidence: location = POINT(latitude, longitude)\"\nward,,the ward number of the facility,integer,\"commonsense evidence: Ward number is the number assigned by the local authorities to identify the population count in each town, village and district usually for electoral purposes or to extract property and locality details\"",
"table": "establishment"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nemployee_id,employee id,the unique id for the employee,integer,\nfirst_name,first name,first name of the employee,text,\nlast_name,last name,last name of the employee,text,commonsense evidence: full name: first name + last_name\naddress,,physical street address of the employee,text,\ncity,,city of the employee's address,text,\nstate,,state of the customer's address,text,\nzip,,postal code of the employee's address,integer,\nphone,,telephone number to reach the customer,text,\ntitle,,career title of the employee,text,\" Sanitarian \n Supervisor \n Division Manager\"\nsalary,,the salary of the employee,integer,\"us dollars / year\ncommonsense evidence: monthly salary: salary / 12\"\nsupervisor,,the employee id of the employee's supervisor,integer,",
"table": "employee"
}
] |
movie | [
{
"create_sql": "CREATE TABLE actor\n(\n ActorID INTEGER\n constraint actor_pk\n primary key,\n Name TEXT,\n \"Date of Birth\" DATE,\n \"Birth City\" TEXT,\n \"Birth Country\" TEXT,\n \"Height (Inches)\" INTEGER,\n Biography TEXT,\n Gender TEXT,\n Ethnicity TEXT,\n NetWorth TEXT\n);",
"table": "actor"
},
{
"create_sql": "CREATE TABLE movie\n(\n MovieID INTEGER\n constraint movie_pk\n primary key,\n Title TEXT,\n \"MPAA Rating\" TEXT,\n Budget INTEGER,\n Gross INTEGER,\n \"Release Date\" TEXT,\n Genre TEXT,\n Runtime INTEGER,\n Rating REAL,\n \"Rating Count\" INTEGER,\n Summary TEXT\n);",
"table": "movie"
},
{
"create_sql": "CREATE TABLE characters\n(\n MovieID INTEGER,\n ActorID INTEGER,\n \"Character Name\" TEXT,\n creditOrder INTEGER,\n pay TEXT,\n screentime TEXT,\n primary key (MovieID, ActorID),\n foreign key (ActorID) references actor(ActorID),\n foreign key (MovieID) references movie(MovieID)\n);",
"table": "characters"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMovieID,movie id,the unique id for the movie,integer,\nActorID,actor id,the unique id for the actor,integer,\nCharacter Name,character name,the name of the character,text,\ncreditOrder,credit order,order of the character in the credit list ,integer,\npay,,the salary of the character,text,\nscreentime,,the screentime of the character,text,\"commonsense evidence:\nScreentime is directly proportional to the importance of the characters. \"",
"table": "characters"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nMovieID,movie id,the unique id for the movie,integer,\nTitle,,the title of the movie,text,\nMPAA Rating,motion picture association of america rating,MPAA rating of the movie,text,\"commonsense evidence:\nMPAA rating is the movie rating for parents to use as a guide to determine the appropriateness of a film's content for children and teenagers. \n rated G: General audiences All ages admitted\n rated PG: Parental guidance suggested Some material may not be suitable for pre-teenagers\n rated R: Restricted Under 17 requires accompanying parent or adult guardian\n rated X: No one under 17 admitted\"\nBudget,,the budget of the movie,integer,the unit is dollar\nGross,,the gross of the movie,integer,\nRelease Date,,release date,text,yyyy-mm-dd\nGenre,,the genre of the movie,text,\nRuntime,,the runtime of the movie,integer,\nRating,,the rating of the movie,real,\"0.0 - 10.0\ncommonsense evidence:\nHigher ratings mean higher quality and better response. \"\nRating Count,rating count,the number of the ratings,integer,\nSummary,,the summary of the movie,text,",
"table": "movie"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nActorID,actor id,the unique id for the actor,integer,\nName,,actor's name,text,\nDate of Birth,date of birth,actor's birth date,date,\nBirth City,birth city,actor's birth city,text,\nBirth Country,birth country,actor's birth country,text,\nHeight (Inches),height inches,actor's height,integer,the unit is inch\nBiography,,actor's biography,text,\nGender,,actor's gender,text,\nEthnicity,,actor's ethnicity,text,\nNetWorth,,actor's networth,text,\"commonsense evidence:\nThe actor with more networth is richer. \"",
"table": "actor"
}
] |
disney | [
{
"create_sql": "CREATE TABLE characters\n(\n movie_title TEXT\n primary key,\n release_date TEXT,\n hero TEXT,\n villian TEXT,\n song TEXT,\n foreign key (hero) references \"voice-actors\"(character)\n);",
"table": "characters"
},
{
"create_sql": "CREATE TABLE director\n(\n name TEXT\n primary key,\n director TEXT,\n foreign key (name) references characters(movie_title)\n);",
"table": "director"
},
{
"create_sql": "CREATE TABLE movies_total_gross\n(\n movie_title TEXT,\n release_date TEXT,\n genre TEXT,\n MPAA_rating TEXT,\n total_gross TEXT,\n inflation_adjusted_gross TEXT,\n primary key (movie_title, release_date),\n foreign key (movie_title) references characters(movie_title)\n);",
"table": "movies_total_gross"
},
{
"create_sql": "CREATE TABLE revenue\n(\n Year INTEGER\n primary key,\n \"Studio Entertainment[NI 1]\" REAL,\n \"Disney Consumer Products[NI 2]\" REAL,\n \"Disney Interactive[NI 3][Rev 1]\" INTEGER,\n \"Walt Disney Parks and Resorts\" REAL,\n \"Disney Media Networks\" TEXT,\n Total INTEGER\n);",
"table": "revenue"
},
{
"create_sql": "CREATE TABLE \"voice-actors\"\n(\n character TEXT\n primary key,\n \"voice-actor\" TEXT,\n movie TEXT,\n foreign key (movie) references characters(movie_title)\n);",
"table": "voice-actors"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nYear,,The year the movie was released.,integer,\nStudio Entertainment[NI 1],,The studio entertainment segment of the Walt Disney Company.,real,\nDisney Consumer Products[NI 2],,The consumer products segment of the Walt Disney Company.,real,\nDisney Interactive[NI 3][Rev 1],,The interactive segment of the Walt Disney Company. ,integer,\nWalt Disney Parks and Resorts,,The parks and resorts segment of the Walt Disney Company.,real,\nDisney Media Networks,,The media networks segment of the Walt Disney Company.,text,\nTotal,,The total box office gross for the movie.,integer,",
"table": "revenue"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_title,movie title,unique title of the movie,text,\nrelease_date,release date,The release date of the movie.,text,\nhero,,The main character of the movie. ,text,\"commonsense evidence:\n\nround role\"\nvillian,,The villain of the movie.,text,a character whose evil actions or motives are important to the plot. \nsong,,A song associated with the movie.,text,",
"table": "characters"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,unique movie name,text,\ndirector,,the name of the director,text,\"one director may have multiple movies.\n\nmore movies --> this director is more productive\"",
"table": "director"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovie_title,movie title,movie title,text,\nrelease_date,release date,release date,text,\ngenre,,genre of the movie,text,\nMPAA_rating,Motion Picture Association of America rating,Motion Picture Association of America of the disney movie,text,\"commonsense evidence:\n⢠G: general audience\n⢠PG: mature audiences or parental guidance suggested\n⢠R: restricted: no children under 17 allowed without parents or adult guardians\n⢠PG-13: PARENTS STRONGLY CAUTIONED. Some material may be inappropriate for children under 13\nmovies need accompany with parents: PG, PG-13, PG-17;\nif \"\"Not rated\"\" or null, it means this film can show only gets permissions by theatre management\nif the film can show without need of permissions of theatre management, the MPAA_rating should not be \"\"Not rated\"\" or null\"\ntotal_gross,total gross,The total gross of the movie.,text,\"commonsense evidence:\nmore total_gross--> more popular movie\"\ninflation_adjusted_gross,inflation adjusted gross,The inflation-adjusted gross of the movie.,text,\"commonsense evidence:\nestimated inflation rate = inflation_adjusted_gross / total_gross;\nthe current gross = inflation_adjusted_gross\"",
"table": "movies_total_gross"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncharacter,,The unique name of the character. ,text,\nvoice-actor,,The name of the voice actor.,text,\nmovie,,The name of the movie.,text,",
"table": "voice-actors"
}
] |
law_episode | [
{
"create_sql": "CREATE TABLE Episode\n(\n episode_id TEXT\n primary key,\n series TEXT,\n season INTEGER,\n episode INTEGER,\n number_in_series INTEGER,\n title TEXT,\n summary TEXT,\n air_date DATE,\n episode_image TEXT,\n rating REAL,\n votes INTEGER\n);",
"table": "Episode"
},
{
"create_sql": "CREATE TABLE Keyword\n(\n episode_id TEXT,\n keyword TEXT,\n primary key (episode_id, keyword),\n foreign key (episode_id) references Episode(episode_id)\n);",
"table": "Keyword"
},
{
"create_sql": "CREATE TABLE Person\n(\n person_id TEXT\n primary key,\n name TEXT,\n birthdate DATE,\n birth_name TEXT,\n birth_place TEXT,\n birth_region TEXT,\n birth_country TEXT,\n height_meters REAL,\n nickname TEXT\n);",
"table": "Person"
},
{
"create_sql": "CREATE TABLE Award\n(\n award_id INTEGER\n primary key,\n organization TEXT,\n year INTEGER,\n award_category TEXT,\n award TEXT,\n series TEXT,\n episode_id TEXT,\n person_id TEXT,\n role TEXT,\n result TEXT,\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);",
"table": "Award"
},
{
"create_sql": "CREATE TABLE Credit\n(\n episode_id TEXT,\n person_id TEXT,\n category TEXT,\n role TEXT,\n credited TEXT,\n primary key (episode_id, person_id),\n foreign key (episode_id) references Episode(episode_id),\n foreign key (person_id) references Person(person_id)\n);",
"table": "Credit"
},
{
"create_sql": "CREATE TABLE Vote\n(\n episode_id TEXT,\n stars INTEGER,\n votes INTEGER,\n percent REAL,\n foreign key (episode_id) references Episode(episode_id)\n);",
"table": "Vote"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nperson_id,person id,the unique identifier for the person,text,\nname,,the name of the person,text,\nbirthdate,birth date,the date the person was born,date,\"if null, it means this birthdate of the person is not available\"\nbirth_name,birth name,the name parents gave to the person shortly after birth,text,\nbirth_place,birth place,the place where a person was born.,text,\"commonsense evidence: the birth place info is integrate if birth_name, birth_place, birth_region don't contain null value\nthe full birth place = birth_country +birth_region +birth_place\"\nbirth_region,birth region,the geographical area describing where a person was born that is larger than the birth place,text,\nbirth_country,birth country,the name of the country where the person was born,text,\"commonsense evidence: can ask questions about its corresponding continent: e.g.: \nUSA --> North America\"\nheight_meters,height meters,how tall the person is in meters,real,\nnickname,,the nickname the person goes by,text,",
"table": "Person"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nepisode_id,episode id,the id of the episode,text,\nstars,,a number between 1 and 10 indicating how much the viewer enjoyed the episode,integer,\"commonsense evidence: The higher the number, the more the episode was enjoyed\"\nvotes,,\"The total number of viewers that gave the specific episode the number of stars indicated in the \"\"stars\"\" column\",integer,\npercent,,\"The percent of viewers that gave the specific episode the number of stars indicated in the \"\"stars\"\" column\",real,",
"table": "Vote"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nepisode_id,episode id,the id of the episode,text,\nkeyword,,the keyword that is relevant for the episode,text,",
"table": "Keyword"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nepisode_id,episode id,the id of the episode to which the credit information pertains,text,\nperson_id,person id,the id of the person to which the credit information pertains,text,\ncategory,,the kind of credit being recognized,text,\nrole,,the role for which the person is being recognized,text,\"If the credit is for an actor, this is the name of the character he or she portrayed (Dan Florek plays Donald Craven). Otherwise, this is the production role (producer, sound editor).\"\ncredited,,whether the credit was displayed in the credits at the end of the episode,text,\"commonsense evidence: A person may fill a role in an episode, but not show up in the on-screen credits. In this case, the work is said to be \"\"uncredited.\"\"\"",
"table": "Credit"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nepisode_id,episode id,the unique identifier of the episode,text,\nseries,,the name of the series,text,\nseason,,a number indicating the season of the episode,integer,\nepisode,,the sequential number of the episode within a specific season,integer,\nnumber_in_series,number in series,the overall sequence number of episode in the entire series,integer,\ntitle,,the title of the episode,text,\nsummary,,a brief description of what happens in the episode,text,\nair_date,air date,the date the episode was initially broadcast in the United States,date,\nepisode_image,episode image,a link to an image from the episode,text,\nrating,,the weighted average of the votes received for the episode,real,commonsense evidence: The higher rating means the episode has more positive viewer comments. \nvotes,,the total number of rating votes for the episode,integer,",
"table": "Episode"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\naward_id,award id,the unique identifier for the award nomination,integer,\norganization,,the name of the organization that grants the award,text,\nyear,,the year of the nomination for the award,integer,\naward_category,award category,the class of the award,text,\naward,,the specific award,text,\nseries,,the name of the Law & Order series that has been nominated,text,\nepisode_id,episode id,the id of the episode that has been nominated,text,\nperson_id,,the id of the person that has been nominated,text,\nrole,,the role that has been nominated,text,\nresult,,the nomination result,text,\"Nominee / Winner\ncommonsense evidence: 'Winner' means that the award was actually received. \"",
"table": "Award"
}
] |
chicago_crime | [
{
"create_sql": "CREATE TABLE Community_Area\n(\n community_area_no INTEGER\n primary key,\n community_area_name TEXT,\n side TEXT,\n population TEXT\n);",
"table": "Community_Area"
},
{
"create_sql": "CREATE TABLE District\n(\n district_no INTEGER\n primary key,\n district_name TEXT,\n address TEXT,\n zip_code INTEGER,\n commander TEXT,\n email TEXT,\n phone TEXT,\n fax TEXT,\n tty TEXT,\n twitter TEXT\n);",
"table": "District"
},
{
"create_sql": "CREATE TABLE FBI_Code\n(\n fbi_code_no TEXT\n primary key,\n title TEXT,\n description TEXT,\n crime_against TEXT\n);",
"table": "FBI_Code"
},
{
"create_sql": "CREATE TABLE IUCR\n(\n iucr_no TEXT\n primary key,\n primary_description TEXT,\n secondary_description TEXT,\n index_code TEXT\n);",
"table": "IUCR"
},
{
"create_sql": "CREATE TABLE Neighborhood\n(\n neighborhood_name TEXT\n primary key,\n community_area_no INTEGER,\n foreign key (community_area_no) references Community_Area(community_area_no)\n);",
"table": "Neighborhood"
},
{
"create_sql": "CREATE TABLE Ward\n(\n ward_no INTEGER\n primary key,\n alderman_first_name TEXT,\n alderman_last_name TEXT,\n alderman_name_suffix TEXT,\n ward_office_address TEXT,\n ward_office_zip TEXT,\n ward_email TEXT,\n ward_office_phone TEXT,\n ward_office_fax TEXT,\n city_hall_office_room INTEGER,\n city_hall_office_phone TEXT,\n city_hall_office_fax TEXT,\n Population INTEGER\n);",
"table": "Ward"
},
{
"create_sql": "CREATE TABLE Crime\n(\n report_no INTEGER\n primary key,\n case_number TEXT,\n date TEXT,\n block TEXT,\n iucr_no TEXT,\n location_description TEXT,\n arrest TEXT,\n domestic TEXT,\n beat INTEGER,\n district_no INTEGER,\n ward_no INTEGER,\n community_area_no INTEGER,\n fbi_code_no TEXT,\n latitude TEXT,\n longitude TEXT,\n foreign key (ward_no) references Ward(ward_no),\n foreign key (iucr_no) references IUCR(iucr_no),\n foreign key (district_no) references District(district_no),\n foreign key (community_area_no) references Community_Area(community_area_no),\n foreign key (fbi_code_no) references FBI_Code(fbi_code_no)\n);",
"table": "Crime"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\niucr_no,iucr number,Unique identifier for the incident classification,text,\nprimary_description,primary description,The general description of the incident classification,text,\"commonsense evidence:\n\nIt's the general description \"\nsecondary_description,secondary description,The specific description of the incident classification,text,\"commonsense evidence:\n\nIt's the specific description \"\nindex_code,index code,\"Uses values \"\"I\"\" and \"\"N\"\" to indicate crimes \",text,\"commonsense evidence:\n\n⢠\"\"Indexed\"\" (severe, such as murder, rape, arson, and robbery)\n\n⢠\"\"Non-Indexed\"\" (less severe, such as vandalism, weapons violations, and peace disturbance) \"",
"table": "IUCR"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nfbi_code_no,fbi code number,unique code made by fbi to classify the crime cases,text,\ntitle,,Short description of the kind of crime,text,\ndescription,,Detailed description of the kind of crime,text,\ncrime_against,crime against,States who the crime is against. ,text,\"Values are Persons, Property, Society, or \"\"Persons and Society\"\"\"",
"table": "FBI_Code"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nreport_no,report number,unique Numeric identifier of the crime report.,integer,\ncase_number,case number,Case number assigned to the reported crime.,text,\"commonsense evidence: \n\nThere is usually one case number for any reported crime except in the case of multiple homicide where a single report will produce one case number for each victim\n\nif case_number appears > 1, it means this is a multiple homicide\"\ndate,,Date of the occurrence of the incident being reported,text,\nblock,,A redacted address indicating in which city block the incident occurred,text,\niucr_no,Illinois Uniform Crime Reporting number,Illinois Uniform Crime Reporting code: a four digit code used to classify criminal incidents when taking reports.,text,\nlocation_description,location description,A description of the kind of area where incident occurred,text,\narrest,,A true/false value indicating if an arrest has been made,text,\ndomestic,,A true/false value indicating if the incident is as case of domestic violence,text,\nbeat,,,integer,\ndistrict_no,district number,A number indicating the geographic subdivision of the police district where the incident occurred,integer,\nward_no,ward number,A two digit number identifying the legislative district (ward) where the incident occurred.,integer,\ncommunity_area_no,community area number,A number identifying one of 77 geographic areas where the incident occurred,integer,\nfbi_code_no,fbi code number,A code identifying the type of crime reported according to the classification scheme used by the FBI.,text,\nlatitude,,The latitude where incident is reported to have occurred.,text,\nlongitude,,The longitude where incident is reported to have occurred.,text,\"commonsense evidence: \n\nThe precise location / coordinate: combines the longitude and latitude for plotting purposes. (latitude, longitude)\"",
"table": "Crime"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncommunity_area_no,community area number,unique community area number,integer,\ncommunity_area_name,community area name,community area name,text,\nside,,district ,text,\npopulation,,population of the community,text,",
"table": "Community_Area"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndistrict_no,district number,unique number identifying the district,integer,\ndistrict_name,district name, name of the district,text,\naddress,,Street address of the police district building,text,\nzip_code,zip code,ZIP code of the police district building,integer,\ncommander,,Name of the district's commanding officer,text,\"commonsense evidence:\n\nthe person who should be responsible for the crime case. \"\nemail,,Email address to contact district administrators,text,\nphone,,Main telephone number for the district,text,\nfax,,Fax number for the district,text,\ntty,,Number of the district teletype machine.,text,\"A teletype machine is a device that lets people who are deaf, hard of hearing, or speech-impaired use the telephone to communicate, by allowing them to type text messages.\"\ntwitter,,The district twitter handle. ,text,\"Twitter is a social networking service on which users post and interact with brief messages known as \"\"tweets\"\"\"",
"table": "District"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nneighborhood_name,neighborhood name,The neighborhood name as used in everyday communication,text,\ncommunity_area_no,community area number,The community area in which most of the neighborhood is located,integer,",
"table": "Neighborhood"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nward_no,,,integer,\nalderman_first_name,,,text,\nalderman_last_name,,,text,\nalderman_name_suffix,,,text,\nward_office_address,ward_office_address,,text,\nward_office_zip,,,text,\nward_email,,,text,\nward_office_phone,,,text,\nward_office_fax,,,text,\ncity_hall_office_room,,,integer,\ncity_hall_office_phone,,,text,\ncity_hall_office_fax,,,text,\nPopulation,,,text,",
"table": "Ward"
}
] |
sales | [
{
"create_sql": "CREATE TABLE Customers\n(\n CustomerID INTEGER not null\n primary key,\n FirstName TEXT not null,\n MiddleInitial TEXT null,\n LastName TEXT not null\n);",
"table": "Customers"
},
{
"create_sql": "CREATE TABLE Employees\n(\n EmployeeID INTEGER not null\n primary key,\n FirstName TEXT not null,\n MiddleInitial TEXT null,\n LastName TEXT not null\n);",
"table": "Employees"
},
{
"create_sql": "CREATE TABLE Products\n(\n ProductID INTEGER not null\n primary key,\n Name TEXT not null,\n Price REAL null\n);",
"table": "Products"
},
{
"create_sql": "CREATE TABLE Sales\n(\n SalesID INTEGER not null\n primary key,\n SalesPersonID INTEGER not null,\n CustomerID INTEGER not null,\n ProductID INTEGER not null,\n Quantity INTEGER not null,\n foreign key (SalesPersonID) references Employees (EmployeeID)\n on update cascade on delete cascade,\n foreign key (CustomerID) references Customers (CustomerID)\n on update cascade on delete cascade,\n foreign key (ProductID) references Products (ProductID)\n on update cascade on delete cascade\n);",
"table": "Sales"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nEmployeeID,Employee ID,the unique id of the employee,integer,\nFirstName,First Name,the employee's first name,text,\nMiddleInitial,Middle Initial,the employee's middle initial ,text,\nLastName,Last Name,the employee's last name,text,",
"table": "Employees"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSalesID,Sales ID,the unique id of the sales,integer,\nSalesPersonID,SalesPerson ID,the unique id of the sale person,integer,\nCustomerID,Customer ID,the unique id of the customer,integer,\nProductID,Product ID,the unique id of the product,integer,\nQuantity,,trading quantity,integer,\"commonsense evidence:\ntotal price = quantity x Products' Price\"",
"table": "Sales"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCustomerID,Customer ID,the unique id of the customer,integer,\nFirstName,First Name,the customer's first name,text,\nMiddleInitial,Middle Initial,the customer's middle initial ,text,\nLastName,Last Name,the customer's last name,text,",
"table": "Customers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,Product ID,the unique id of the product,integer,\nName,,the product name,text,\nPrice,,the price of the product,real,\"unit price\ncommonsense evidence:\nif the price = 0.0, it means this product is free or a gift\"",
"table": "Products"
}
] |
bike_share_1 | [
{
"create_sql": "CREATE TABLE \"station\"\n(\n id INTEGER not null\n primary key,\n name TEXT,\n lat REAL,\n long REAL,\n dock_count INTEGER,\n city TEXT,\n installation_date TEXT\n);",
"table": "station"
},
{
"create_sql": "CREATE TABLE \"status\"\n(\n station_id INTEGER,\n bikes_available INTEGER,\n docks_available INTEGER,\n time TEXT\n);",
"table": "status"
},
{
"create_sql": "CREATE TABLE \"trip\"\n(\n id INTEGER not null\n primary key,\n duration INTEGER,\n start_date TEXT,\n start_station_name TEXT,\n start_station_id INTEGER,\n end_date TEXT,\n end_station_name TEXT,\n end_station_id INTEGER,\n bike_id INTEGER,\n subscription_type TEXT,\n zip_code INTEGER\n);",
"table": "trip"
},
{
"create_sql": "CREATE TABLE \"weather\"\n(\n date TEXT,\n max_temperature_f INTEGER,\n mean_temperature_f INTEGER,\n min_temperature_f INTEGER,\n max_dew_point_f INTEGER,\n mean_dew_point_f INTEGER,\n min_dew_point_f INTEGER,\n max_humidity INTEGER,\n mean_humidity INTEGER,\n min_humidity INTEGER,\n max_sea_level_pressure_inches REAL,\n mean_sea_level_pressure_inches REAL,\n min_sea_level_pressure_inches REAL,\n max_visibility_miles INTEGER,\n mean_visibility_miles INTEGER,\n min_visibility_miles INTEGER,\n max_wind_Speed_mph INTEGER,\n mean_wind_speed_mph INTEGER,\n max_gust_speed_mph INTEGER,\n precipitation_inches TEXT,\n cloud_cover INTEGER,\n events TEXT,\n wind_dir_degrees INTEGER,\n zip_code TEXT\n);",
"table": "weather"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndate,,,text,\nmax_temperature_f,max temperature in Fahrenheit degree,max temperature in Fahrenheit degree,integer,\"commonsense evidence:\nIt represents the hottest temperature.\"\nmean_temperature_f,mean temperature in Fahrenheit degree,mean temperature in Fahrenheit degree,integer,\nmin_temperature_f,min temperature in Fahrenheit degree,min temperature in Fahrenheit degree,integer,\"commonsense evidence:\nIt represents the coldest temperature.\"\nmax_dew_point_f,max dew point in Fahrenheit degree ,max dew point in Fahrenheit degree ,integer,\nmean_dew_point_f,mean dew point in Fahrenheit degree ,mean dew point in Fahrenheit degree ,integer,\nmin_dew_point_f,min dew point in Fahrenheit degree ,min dew point in Fahrenheit degree ,integer,\nmax_humidity,max humidity,max humidity,integer,\nmean_humidity,mean humidity,mean humidity,integer,\nmin_humidity,min humidity,min humidity,integer,\nmax_sea_level_pressure_inches,max sea level pressure in inches,max sea level pressure in inches,real,\nmean_sea_level_pressure_inches,mean sea level pressure in inches,mean sea level pressure in inches,real,\nmin_sea_level_pressure_inches,min sea level pressure in inches,min sea level pressure in inches,real,\nmax_visibility_miles,max visibility in miles,max visibility in miles,integer,\nmean_visibility_miles,mean visibility in miles,mean visibility in miles,integer,\nmin_visibility_miles,min visibility in miles,min visibility in miles,integer,\nmax_wind_Speed_mph,max wind Speed in mph,max wind Speed in mph,integer,\nmean_wind_speed_mph,mean wind Speed in mph,mean wind Speed in mph,integer,\nmax_gust_speed_mph,max gust Speed in mph,max gust Speed in mph,integer,\nprecipitation_inches,precipitation in inches,precipitation in inches,text,\ncloud_cover,cloud cover,cloud cover,integer,\nevents,,,text,\"Allowed input: [null], Rain, other\"\nwind_dir_degrees,wind direction degrees,wind direction degrees,integer,\nzip_code,zip code,zip code,text,",
"table": "weather"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,,integer,\nduration,,The duration of the trip in seconds.,integer,\"commonsense evidence:\nduration = end_date - start_date \"\nstart_date,start date,start date,text,\nstart_station_name,start station name,The name of the start station,text,\"commonsense evidence:\nIt represents the station name the bike borrowed from.\"\nstart_station_id,start station id,The ID of the start station,integer,\nend_date,end date,end date,text,\nend_station_name,end station name,The name of the end station,text,\"commonsense evidence:\nIt represents the station name the bike returned to.\"\nend_station_id,end station id,The ID of the end station,integer,\nbike_id,bike id,The ID of the bike,integer,\nsubscription_type,subscription type,subscription type,text,\"Allowed input: Subscriber, Customer.\"\nzip_code, zip code,zip code,integer,",
"table": "trip"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,unique ID for each station,integer,\nname,,Station name,text,\nlat,latitude,latitude,real,\"commonsense evidence:\nCan represent the location of the station when combined with longitude.\"\nlong,longitude,longitude,real,\"commonsense evidence:\nCan represent the location of the station when combined with \nlatitude.\"\ndock_count,dock count,number of bikes the station can hold,integer,\ncity,,,text,\ninstallation_date,installation date,installation date,text,",
"table": "station"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstation_id,station id,station id,integer,\nbikes_available,,number of available bikes,integer,\"commonsense evidence:\n0 means no bike can be borrowed.\"\ndocks_available,,number of available docks,integer,\"commonsense evidence:\n0 means no bike can be returned to this station.\"\ntime,,,text,",
"table": "status"
}
] |
citeseer | [
{
"create_sql": "CREATE TABLE cites\n(\n cited_paper_id TEXT not null,\n citing_paper_id TEXT not null,\n primary key (cited_paper_id, citing_paper_id)\n);",
"table": "cites"
},
{
"create_sql": "CREATE TABLE paper\n(\n paper_id TEXT not null\n primary key,\n class_label TEXT not null\n);",
"table": "paper"
},
{
"create_sql": "CREATE TABLE content\n(\n paper_id TEXT not null,\n word_cited_id TEXT not null,\n primary key (paper_id, word_cited_id),\n foreign key (paper_id) references paper(paper_id)\n);",
"table": "content"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npaper_id,paper id,unique string ID of the paper,text,unique string ID of the paper\nword_cited_id,word cited id,rtype,text,whether each word in the vocabulary is present (indicated by 1) or absent (indicated by 0) in the paper",
"table": "content"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncited_paper_id,,cited_paper_id is the ID of the paper being cited,text,cited_paper_id is the ID of the paper being cited\nciting_paper_id,,citing_paper_id stands for the paper which contains the citation,text,citing_paper_id stands for the paper which contains the citation",
"table": "cites"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npaper_id,paper id,unique string ID of the paper,text,unique string ID of the paper\nclass_label,class label,,text,",
"table": "paper"
}
] |
car_retails | [
{
"create_sql": "CREATE TABLE offices\n(\n officeCode TEXT not null\n primary key,\n city TEXT not null,\n phone TEXT not null,\n addressLine1 TEXT not null,\n addressLine2 TEXT,\n state TEXT,\n country TEXT not null,\n postalCode TEXT not null,\n territory TEXT not null\n);",
"table": "offices"
},
{
"create_sql": "CREATE TABLE employees\n(\n employeeNumber INTEGER not null\n primary key,\n lastName TEXT not null,\n firstName TEXT not null,\n extension TEXT not null,\n email TEXT not null,\n officeCode TEXT not null,\n reportsTo INTEGER,\n jobTitle TEXT not null,\n foreign key (officeCode) references offices(officeCode),\n foreign key (reportsTo) references employees(employeeNumber)\n);",
"table": "employees"
},
{
"create_sql": "CREATE TABLE customers\n(\n customerNumber INTEGER not null\n primary key,\n customerName TEXT not null,\n contactLastName TEXT not null,\n contactFirstName TEXT not null,\n phone TEXT not null,\n addressLine1 TEXT not null,\n addressLine2 TEXT,\n city TEXT not null,\n state TEXT,\n postalCode TEXT,\n country TEXT not null,\n salesRepEmployeeNumber INTEGER,\n creditLimit REAL,\n foreign key (salesRepEmployeeNumber) references employees(employeeNumber)\n);",
"table": "customers"
},
{
"create_sql": "CREATE TABLE orders\n(\n orderNumber INTEGER not null\n primary key,\n orderDate DATE not null,\n requiredDate DATE not null,\n shippedDate DATE,\n status TEXT not null,\n comments TEXT,\n customerNumber INTEGER not null,\n foreign key (customerNumber) references customers(customerNumber)\n);",
"table": "orders"
},
{
"create_sql": "CREATE TABLE payments\n(\n customerNumber INTEGER not null,\n checkNumber TEXT not null,\n paymentDate DATE not null,\n amount REAL not null,\n primary key (customerNumber, checkNumber),\n foreign key (customerNumber) references customers(customerNumber)\n);",
"table": "payments"
},
{
"create_sql": "CREATE TABLE productlines\n(\n productLine TEXT not null\n primary key,\n textDescription TEXT,\n htmlDescription TEXT,\n image BLOB\n);",
"table": "productlines"
},
{
"create_sql": "CREATE TABLE products\n(\n productCode TEXT not null\n primary key,\n productName TEXT not null,\n productLine TEXT not null,\n productScale TEXT not null,\n productVendor TEXT not null,\n productDescription TEXT not null,\n quantityInStock INTEGER not null,\n buyPrice REAL not null,\n MSRP REAL not null,\n foreign key (productLine) references productlines(productLine)\n);",
"table": "products"
},
{
"create_sql": "CREATE TABLE \"orderdetails\"\n(\n orderNumber INTEGER not null\n references orders,\n productCode TEXT not null\n references products,\n quantityOrdered INTEGER not null,\n priceEach REAL not null,\n orderLineNumber INTEGER not null,\n primary key (orderNumber, productCode)\n);",
"table": "orderdetails"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nofficeCode,office code,unique ID of the office,text,unique ID of the office\ncity,city,,text,\nphone,,phone number,text,\naddressLine1,,addressLine1,text,\naddressLine2,,addressLine2,text,\"commonsense evidence: \naddressLine1 + addressLine2 = entire address\"\nstate,,,text,\ncountry,,country,text,\npostalCode,,postalCode,text,\nterritory,,territory,text,",
"table": "offices"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\norderNumber,order number,unique order number,integer,unique order number\norderDate,order date,order date,date,\nrequiredDate,required Date,required Date,date,\nshippedDate,shipped date,shipped Date,date,\nstatus,,status,text,\ncomments,,comments,text,\ncustomerNumber,customer number,customer number,integer,",
"table": "orders"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nemployeeNumber,Employee Number,unique string ID of the employees,integer,\nlastName,last name,last name of employees,text,\nfirstName,first name,first name of employees,text,\nextension,,extension number,text,\nemail,,email,text,\nofficeCode,office code,office code of the employees,text,\nreportsTo,reports to,represents for organization structure such as who reports to whom,integer,\"commonsense evidence: \n\"\"reportsTO\"\" is the leader of the \"\"employeeNumber\"\"\"\njobTitle,job title,job title,text,",
"table": "employees"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncustomerNumber,customer number,customer number,integer,\ncheckNumber,check Number,check Number,text,\npaymentDate,payment Date,payment Date,date,\namount,,amount,real,",
"table": "payments"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nproductCode,product code,unique product code,text,\nproductName,product name,product name,text,\nproductLine,product line,product line name,text,\nproductScale,product scale,product scale,text,\nproductVendor,product vendor,product vendor,text,\nproductDescription,product description,product description,text,\nquantityInStock,quantity in stock ,quantity in stock ,integer,\nbuyPrice,buy price,buy price from vendors,real,\nMSRP,Manufacturer Suggested Retail Price,Manufacturer Suggested Retail Price,real,\"commonsense evidence: \nexpected profits: msrp - buyPrice\"",
"table": "products"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nproductLine,product line,unique product line name,text,\ntextDescription,text description,text description,text,\nhtmlDescription,html description,html description,text,\nimage,,image,blob,",
"table": "productlines"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\norderNumber,order number,order number,integer,\nproductCode,product code,product code,text,\nquantityOrdered,quantity ordered,quantity ordered,integer,\npriceEach,price for each,price for each,real,\"commonsense evidence: \ntotal price = quantityOrdered x priceEach\"\norderLineNumber,order Line Number,order Line Number,integer,",
"table": "orderdetails"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncustomerNumber,customer number,unique id number of customer,integer,\ncustomerName,customer name,the name when the customer registered,text,\ncontactLastName,contact last name,contact last name,text,\ncontactFirstName,contact first name,contact first name,text,\nphone,,phone,text,\naddressLine1,,addressLine1,text,\naddressLine2,,addressLine2,text,\"commonsense evidence: \naddressLine1 + addressLine2 = entire address\"\ncity,,city,text,\nstate,,state,text,\npostalCode,,postalCode,text,\ncountry,,country,text,\nsalesRepEmployeeNumber,sales representative employee number,sales representative employee number,integer,\ncreditLimit,credit limit,credit limit,real,",
"table": "customers"
}
] |
student_loan | [
{
"create_sql": "CREATE TABLE bool\n(\n \"name\" TEXT default '' not null\n primary key\n);",
"table": "bool"
},
{
"create_sql": "CREATE TABLE person\n(\n \"name\" TEXT default '' not null\n primary key\n);",
"table": "person"
},
{
"create_sql": "CREATE TABLE disabled\n(\n \"name\" TEXT default '' not null\n primary key,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n);",
"table": "disabled"
},
{
"create_sql": "CREATE TABLE enlist\n(\n \"name\" TEXT not null,\n organ TEXT not null,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n);",
"table": "enlist"
},
{
"create_sql": "CREATE TABLE filed_for_bankrupcy\n(\n \"name\" TEXT default '' not null\n primary key,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n);",
"table": "filed_for_bankrupcy"
},
{
"create_sql": "CREATE TABLE longest_absense_from_school\n(\n \"name\" TEXT default '' not null\n primary key,\n \"month\" INTEGER default 0 null,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n);",
"table": "longest_absense_from_school"
},
{
"create_sql": "CREATE TABLE male\n(\n \"name\" TEXT default '' not null\n primary key,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n);",
"table": "male"
},
{
"create_sql": "CREATE TABLE no_payment_due\n(\n \"name\" TEXT default '' not null\n primary key,\n bool TEXT null,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade,\n foreign key (bool) references bool (\"name\")\n on update cascade on delete cascade\n);",
"table": "no_payment_due"
},
{
"create_sql": "CREATE TABLE unemployed\n(\n \"name\" TEXT default '' not null\n primary key,\n foreign key (\"name\") references person (\"name\")\n on update cascade on delete cascade\n);",
"table": "unemployed"
},
{
"create_sql": "CREATE TABLE `enrolled` (\n `name` TEXT NOT NULL,\n `school` TEXT NOT NULL,\n `month` INTEGER NOT NULL DEFAULT 0,\n PRIMARY KEY (`name`,`school`),\n FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE\n);",
"table": "enrolled"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,the name of the disabled students,text,",
"table": "disabled"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,student name who filed for bankruptcy,text,",
"table": "filed_for_bankruptcy"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,,text,",
"table": "bool"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,the name of the enlisted students,text,\norgan,organization,the organization that the student enlisted in ,text,",
"table": "enlist"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,student's name ,text,\nbool,,whether the student has payment dues,text,\"commonsense evidence:\n\tneg: the student doesn't have payment due\n\tpos: the student has payment due\"",
"table": "no_payment_due"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,student's name,text,\nmonth,,the duration of absence,integer,\"commonsense evidence:\n0 means that the student has never been absent. \"",
"table": "longest_absense_from_school"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,,text,\nschool,,,text,\nmonth,,,integer,",
"table": "enrolled"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,student's name who are male,text,\"commonsense evidence:\nthe students who are not in this list are female.\"",
"table": "male"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,student's name,text,",
"table": "person"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,student who is unemployed,text,",
"table": "unemployed"
}
] |
olympics | [
{
"create_sql": "CREATE TABLE city\n(\n id INTEGER not null\n primary key,\n city_name TEXT default NULL\n);",
"table": "city"
},
{
"create_sql": "CREATE TABLE games\n(\n id INTEGER not null\n primary key,\n games_year INTEGER default NULL,\n games_name TEXT default NULL,\n season TEXT default NULL\n);",
"table": "games"
},
{
"create_sql": "CREATE TABLE games_city\n(\n games_id INTEGER default NULL,\n city_id INTEGER default NULL,\n foreign key (city_id) references city(id),\n foreign key (games_id) references games(id)\n);",
"table": "games_city"
},
{
"create_sql": "CREATE TABLE medal\n(\n id INTEGER not null\n primary key,\n medal_name TEXT default NULL\n);",
"table": "medal"
},
{
"create_sql": "CREATE TABLE noc_region\n(\n id INTEGER not null\n primary key,\n noc TEXT default NULL,\n region_name TEXT default NULL\n);",
"table": "noc_region"
},
{
"create_sql": "CREATE TABLE person\n(\n id INTEGER not null\n primary key,\n full_name TEXT default NULL,\n gender TEXT default NULL,\n height INTEGER default NULL,\n weight INTEGER default NULL\n);",
"table": "person"
},
{
"create_sql": "CREATE TABLE games_competitor\n(\n id INTEGER not null\n primary key,\n games_id INTEGER default NULL,\n person_id INTEGER default NULL,\n age INTEGER default NULL,\n foreign key (games_id) references games(id),\n foreign key (person_id) references person(id)\n);",
"table": "games_competitor"
},
{
"create_sql": "CREATE TABLE person_region\n(\n person_id INTEGER default NULL,\n region_id INTEGER default NULL,\n foreign key (person_id) references person(id),\n foreign key (region_id) references noc_region(id)\n);",
"table": "person_region"
},
{
"create_sql": "CREATE TABLE sport\n(\n id INTEGER not null\n primary key,\n sport_name TEXT default NULL\n);",
"table": "sport"
},
{
"create_sql": "CREATE TABLE event\n(\n id INTEGER not null\n primary key,\n sport_id INTEGER default NULL,\n event_name TEXT default NULL,\n foreign key (sport_id) references sport(id)\n);",
"table": "event"
},
{
"create_sql": "CREATE TABLE competitor_event\n(\n event_id INTEGER default NULL,\n competitor_id INTEGER default NULL,\n medal_id INTEGER default NULL,\n foreign key (competitor_id) references games_competitor(id),\n foreign key (event_id) references event(id),\n foreign key (medal_id) references medal(id)\n);",
"table": "competitor_event"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nevent_id,event id,\"the id of the event\nMaps to event(id)\",integer,\ncompetitor_id,competitor id,\"the id of the competitor\nMaps to games_competitor(id)\",integer,\"commonsense evidence:\nThe number of competitors who participated in a specific event could be calculated by grouping by event_id. \"\nmedal_id,medal id,\"the id of the medal\nMaps to medal(id)\",integer,\"commonsense evidence:\nFor a specific event, the competitor whose medal_id = 1 is the champion, the competitor whose medal_id = 2 is the runner-up, and the competitor whose medal_id = 3 got third place. \"",
"table": "competitor_event"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nperson_id,,\"the id of the person\nMaps to person(id)\",integer,\nregion_id,,\"the id of the noc region\nMaps to noc_region(id)\",integer,",
"table": "person_region"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the game,integer,\ngames_year,games year,the year of the game,integer,\ngames_name,games name,the name of the game,text,\"commonsense evidence:\ngames_name is 'games_year season'\"\nseason,,the season of the game,text,\"commonsense evidence:\nThe Olympics are held every four years and include both summer and winter games. The summer games include a wide range of sports, such as athletics, swimming, and gymnastics, while the winter games feature sports that are played on ice or snow, such as ice hockey, figure skating, and skiing.\"",
"table": "games"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the city,integer,\ncity_name,city name,the name of the city,text,",
"table": "city"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the sport,integer,\nsport_name,sport name,the name of the sport,text,",
"table": "sport"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid ,,the unique identifier of the noc region,integer,\nnoc,,the NOC code of the region,text,\"commonsense evidence:\nA NOC code is a number used by the International Olympic Committee (IOC) to identify each of the national Olympic committees (NOCs) from around the world. \"\nregion_name,region name,the name of the region,text,",
"table": "noc_region"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ngames_id,games id,\"the id of the game\nMaps to games(id)\",integer,\ncity_id,city id,\"the id of the city that held the game\nMaps to city(id)\",integer,",
"table": "games_city"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid ,,the unique identifier of the record,,\ngames_id,games id,\"the id of the game\nMaps to games(id)\",integer,\nperson_id,person id,\"the id of the person\nMaps to person(id)\",integer,\"commonsense evidence:\nThe times a person participated in the Olympics games could be calculated by grouping by person_id. \"\nage,,the age of the person when he/she participated in the game,integer,\"commonsense evidence:\nIf person A's age was 22 when he participated in game A and his age was 24 when he participated in game B, it means that game A was held two years earlier than game B.\"",
"table": "games_competitor"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the event,integer,\nsport_id,sport id,\"the id of the sport\nMaps to sport(id)\",integer,\"commonsense evidence:\nThere may be different events for the same sport in Olympics. \"\nevent_name,event name,the name of the event,text,",
"table": "event"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid ,,the unique identifier of the metal,integer,\nmedal_name,medal name,the name of the medal,text,",
"table": "medal"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique identifier of the person,integer,\nfull_name,full name,the full name of the person,text,\"commonsense evidence:\nA person's full name is the complete name that they are known by, which typically includes their first name, middle name (if applicable), and last name. \"\ngender,,the gender of the person,text,\"commonsense evidence:\nM stands for male and F stands for female. \"\nheight,,the height of the person,integer,\nweight,,the weight of the person,integer,\"commonsense evidence:\nThe unit of height is cm, and the unit of weight is kg. If the height or the weight of the person is 0, it means his/her height or weight is missing. \"",
"table": "person"
}
] |
address | [
{
"create_sql": "CREATE TABLE CBSA\n(\n CBSA INTEGER\n primary key,\n CBSA_name TEXT,\n CBSA_type TEXT\n);",
"table": "CBSA"
},
{
"create_sql": "CREATE TABLE state\n(\n abbreviation TEXT\n primary key,\n name TEXT\n);",
"table": "state"
},
{
"create_sql": "CREATE TABLE congress\n(\n cognress_rep_id TEXT\n primary key,\n first_name TEXT,\n last_name TEXT,\n CID TEXT,\n party TEXT,\n state TEXT,\n abbreviation TEXT,\n House TEXT,\n District INTEGER,\n land_area REAL,\n foreign key (abbreviation) references state(abbreviation)\n);",
"table": "congress"
},
{
"create_sql": "CREATE TABLE zip_data\n(\n zip_code INTEGER\n primary key,\n city TEXT,\n state TEXT,\n multi_county TEXT,\n type TEXT,\n organization TEXT,\n time_zone TEXT,\n daylight_savings TEXT,\n latitude REAL,\n longitude REAL,\n elevation INTEGER,\n state_fips INTEGER,\n county_fips INTEGER,\n region TEXT,\n division TEXT,\n population_2020 INTEGER,\n population_2010 INTEGER,\n households INTEGER,\n avg_house_value INTEGER,\n avg_income_per_household INTEGER,\n persons_per_household REAL,\n white_population INTEGER,\n black_population INTEGER,\n hispanic_population INTEGER,\n asian_population INTEGER,\n american_indian_population INTEGER,\n hawaiian_population INTEGER,\n other_population INTEGER,\n male_population INTEGER,\n female_population INTEGER,\n median_age REAL,\n male_median_age REAL,\n female_median_age REAL,\n residential_mailboxes INTEGER,\n business_mailboxes INTEGER,\n total_delivery_receptacles INTEGER,\n businesses INTEGER,\n \"1st_quarter_payroll\" INTEGER,\n annual_payroll INTEGER,\n employees INTEGER,\n water_area REAL,\n land_area REAL,\n single_family_delivery_units INTEGER,\n multi_family_delivery_units INTEGER,\n total_beneficiaries INTEGER,\n retired_workers INTEGER,\n disabled_workers INTEGER,\n parents_and_widowed INTEGER,\n spouses INTEGER,\n children INTEGER,\n over_65 INTEGER,\n monthly_benefits_all INTEGER,\n monthly_benefits_retired_workers INTEGER,\n monthly_benefits_widowed INTEGER,\n CBSA INTEGER,\n foreign key (state) references state(abbreviation),\n foreign key (CBSA) references CBSA(CBSA)\n);",
"table": "zip_data"
},
{
"create_sql": "CREATE TABLE alias\n(\n zip_code INTEGER\n primary key,\n alias TEXT,\n foreign key (zip_code) references zip_data(zip_code)\n);",
"table": "alias"
},
{
"create_sql": "CREATE TABLE area_code\n(\n zip_code INTEGER,\n area_code INTEGER,\n primary key (zip_code, area_code),\n foreign key (zip_code) references zip_data(zip_code)\n);",
"table": "area_code"
},
{
"create_sql": "CREATE TABLE avoid\n(\n zip_code INTEGER,\n bad_alias TEXT,\n primary key (zip_code, bad_alias),\n foreign key (zip_code) references zip_data(zip_code)\n);",
"table": "avoid"
},
{
"create_sql": "CREATE TABLE country\n(\n zip_code INTEGER,\n county TEXT,\n state TEXT,\n primary key (zip_code, county),\n foreign key (zip_code) references zip_data(zip_code),\n foreign key (state) references state(abbreviation)\n);",
"table": "country"
},
{
"create_sql": "CREATE TABLE zip_congress\n(\n zip_code INTEGER,\n district TEXT,\n primary key (zip_code, district),\n foreign key (district) references congress(cognress_rep_id),\n foreign key (zip_code) references zip_data(zip_code)\n);",
"table": "zip_congress"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nzip_code,zip code,the zip code of the district,integer,\ndistrict,,the district,text,",
"table": "zip_congress"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nzip_code,zip code,the zip code of the bad alias,integer,\nbad_alias,bad alias,the bad alias,text,",
"table": "avoid"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nzip_code,zip code,the zip code of the area,integer,\narea_code,area code,the code of the area,integer,",
"table": "area_code"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncognress_rep_id,congress representative id,the representative id of congress representatives,text,\nfirst_name ,first name,the first name of the congress representative,text,\nlast_name,last name,the last name of the congress representative,text,\nCID,,the unique identifier for the congress representative,text,\nparty,,the party of the representative,text,\nstate,,the state that the representative is from,text,\nabbreviation,,the abbreviation of the state,text,\nHouse,,the house that the representative is from,text,\nDistrict,,the id of the district that the representative represents ,integer,\"commonsense evidence: The state is divided into different districts. The districts under the same state will be numbered uniformly. \n'NA' means that the state is not divided into districts. \"\nland_area,land area,the land area of the district,real,",
"table": "congress"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nzip_code,zip code,the zip code of the alias,integer,\nalias,,the alias of the city,text,",
"table": "alias"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nzip_code,zip code,the zip code of the postal point,integer,\ncity,,the city where the postal point locates,text,\nstate,,the state of the city,text,\nmulti_county,multi country,whether the country that the city belongs to is multi_country,text,commonsense evidence: The meaning of multi_country is consisting of or involving multiple countries.\ntype,,the type of the postal point,text,\norganization ,,the organization to which the postal point belongs,text,commonsense evidence: 'No data' means the postal point is not affiliated with any organization\ntime_zone,time zone,the time zone of the postal point location,text,\ndaylight_savings,daylight savings,whether the location implements daylight savings,text,\"commonsense evidence: Daylight saving is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. As a result, there is one 23-hour day in late winter or early spring and one 25-hour day in autumn.\"\nlatitude,,the latitude of the postal point location,real,\nlongitude,,the longitude of the postal point location,real,\nelevation,,the elevation of the postal point location,integer,\nstate_fips,state fips,state-level FIPS code,integer,\ncounty_fips,country fips,country-level FIPS code,integer,commonsense evidence: FIPS codes are numbers that uniquely identify geographic areas. The number of digits in FIPS codes varies depending on the level of geography.\nregion,,the region where the postal point locates ,text,\ndivision,,the division of the organization ,text,\npopulation_2020,population 2020,the population of the residential area in 2020,integer,commonsense evidence: 'No data' means that the postal point is not affiliated with any organization. Or the organization has no division. \npopulation_2010,population 2010,the population of the residential area in 2010,integer,\nhouseholds,,the number of the households in the residential area,integer,\navg_house_value,average house value,the average house value in the residential area,integer,\navg_income_per_household,average income per household,the average income per household in the residential area,integer,\npersons_per_household,persons per household,the number of persons per household residential area,real,\nwhite_population,white population,the population of white people in the residential area,integer,\nblack_population,black population,the population of black people in the residential area,integer,\nhispanic_population,Hispanic population,the population of Hispanic people in the residential area,integer,\nasian_population,Asian population,the population of Asian people in the residential area,integer,\namerican_indian_population,American Indian population,the population of American Indian people in the residential area,integer,\nhawaiian_population,Hawaiian population,the population of Hawaiian people in the residential area,integer,\nother_population,other population,the population of other races in the residential area,integer,\nmale_population,male population,the population of males in the residential area,integer,\nfemale_population,female population,the population of females in the residential area,integer,\nmedian_age,median age,the median age of the residential area,real,commonsense evidence: gender ratio in the residential area = male_population / female_population if female_population != 0\nmale_median_age,male median age,the male median age in the residential area,real,\nfemale_median_age,female median age,the female median age in the residential area,real,\nresidential_mailboxes,residential mailboxes,the number of residential mailboxes in the residential area,integer,\nbusiness_mailboxes,business mailboxes,the number of business mailboxes in the residential area,integer,\ntotal_delivery_receptacles,total delivery receptacles,the total number of delivery receptacles,integer,\nbusinesses,,the number of businesses in the residential area,integer,\n1st_quarter_payroll,1st quarter payroll,the total wages reported in the 1st quarter payroll report of the residential area,integer,\nannual_payroll,annual payroll,the total wages reported in the annual payroll report of the residential area,integer,\nemployees,,the number of employees in the residential area,integer,commonsense evidence: Employers must submit periodic payroll reports to the Internal Revenue Service and state taxing authority. The report is used by employers to report wage information.\nwater_area,water area,the water area of the residential area,real,\nland_area,land area,the land area of the residential area,real,\nsingle_family_delivery_units,single-family delivery units,the number of single-family delivery units in the residential area,integer,\nmulti_family_delivery_units,multi-family delivery units,the number of single-family delivery units in the residential area,integer,\"commonsense evidence: A single-family unit can be described as a single unit that accommodates only one family or tenant at a time on rent.\n\"\ntotal_beneficiaries,total beneficiaries,the total number of beneficiaries of the postal service,integer,commonsense evidence: multi-family units are usually under a greater surface area with the capacity to accommodate more than one tenant or multiple families on rent at the same time\nretired_workers,retired workers,the number of retired workers in the residential area,integer,\ndisabled_workers,disable workers,the number of disabled workers in the residential area,integer,\nparents_and_widowed,parents and widowed,the number of parents and widowed in the residential area,integer,\nspouses,,the number of spouses in the residential area,integer,\nchildren,,the number of children in the residential area,integer,\nover_65,over 65,the number of people whose age is over 65 in the residential area,integer,\nmonthly_benefits_all,monthly benefits all,all benefit payments by month ,integer,\"commonsense evidence: no. of over_65 can refer to elders. Higher means more elders\nif the ratio: over_65 / children is higher: the aging is more serious.\"\nmonthly_benefits_retired_workers,monthly benefits retired workers,monthly benefit payments for retired workers,integer,usd\nmonthly_benefits_widowed,monthly benefits widowed,monthly benefit payments for retired workers,integer,\nCBSA,,the code of the cbsa officer,integer,",
"table": "zip_data"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nzip_code,zip code,the zip code of the state in the country,integer,\ncounty,country,the country ,text,\nstate,,the state of the country,text,",
"table": "country"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCBSA,,the code of the cbsa officer,integer,\nCBSA_name,cbsa name,the name and the position of the cbsa officer ,text,\nCBSA_type,cbsa type,the office type of the officer,text,",
"table": "CBSA"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nabbreviation,,the abbreviation of the state name,text,\nname,,the state name,text,",
"table": "state"
}
] |
music_platform_2 | [
{
"create_sql": "CREATE TABLE runs (\n run_at text not null,\n max_rowid integer not null,\n reviews_added integer not null\n );",
"table": "runs"
},
{
"create_sql": "CREATE TABLE podcasts (\n podcast_id text primary key,\n itunes_id integer not null,\n slug text not null,\n itunes_url text not null,\n title text not null\n );",
"table": "podcasts"
},
{
"create_sql": "CREATE TABLE \"reviews\"\n(\n podcast_id TEXT not null\n constraint reviews_podcasts_podcast_id_fk\n references podcasts,\n title TEXT not null,\n content TEXT not null,\n rating INTEGER not null,\n author_id TEXT not null,\n created_at TEXT not null\n);",
"table": "reviews"
},
{
"create_sql": "CREATE TABLE \"categories\"\n(\n podcast_id TEXT not null\n constraint categories_podcasts_podcast_id_fk\n references podcasts,\n category TEXT not null,\n constraint \"PRIMARY\"\n primary key (podcast_id, category)\n);",
"table": "categories"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nrun_at,run at,The date and time of the podcast review creation.,text,\nmax_rowid,max row id,The id of max row of this run.,integer,\nreviews_added,reviews added,The number of reviews added in this run.,integer,",
"table": "runs"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npodcast_id,podcast id,The unique id of the podcast ,text,\nitunes_id,itunes id,The unique id of the itunes.,integer,\nslug,,The slug of the podcast.,text,\"commonsense evidence: \nIt usually has the same name with the \"\"title\"\" column. \"\nitunes_url,itunes url,The iTunes url of the podcast.,text,\"commonsense evidence: \nCan visit the webpage of the podcast by clicking the itunes_url.\"\ntitle,,The title of the podcast.,text,\"commonsense evidence: \nIt usually has a very similar name to the \"\"slug\"\" column. \"",
"table": "podcasts"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npodcast_id,podcast id,The unique id of the podcast ,text,\ntitle,,The title of the podcast review.,text,\"commonsense evidence: \nThis usually is the abstract of the whole review.\"\ncontent,,The content of the podcast review.,text,\"commonsense evidence: \nThis usually is the detailed explanation of the podcast review title.\"\nrating,,The rating of the podcast review.,integer,\"commonsense evidence: \nAllowed values: 0 to 5. \nThis rating is highly related with \"\"title\"\" and \"\"content\"\".\"\nauthor_id,author id,The author id of the podcast review.,text,\ncreated_at,created at,The date and time of the podcast review creation.,text,\"In the format of \"\"Date time\"\". e.g., 2018-05-09T18:14:32-07:00\"",
"table": "reviews"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npodcast_id,podcast id,The unique id of the podcast ,text,\ncategory,,category of the podcast,text,\"commonsense evidence: \nThis usually represents the topic of the podcast.\"",
"table": "categories"
}
] |
codebase_comments | [
{
"create_sql": "CREATE TABLE \"Method\"\n(\n Id INTEGER not null\n primary key autoincrement,\n Name TEXT,\n FullComment TEXT,\n Summary TEXT,\n ApiCalls TEXT,\n CommentIsXml INTEGER,\n SampledAt INTEGER,\n SolutionId INTEGER,\n Lang TEXT,\n NameTokenized TEXT\n);",
"table": "Method"
},
{
"create_sql": "CREATE TABLE \"MethodParameter\"\n(\n Id INTEGER not null\n primary key autoincrement,\n MethodId TEXT,\n Type TEXT,\n Name TEXT\n);",
"table": "MethodParameter"
},
{
"create_sql": "CREATE TABLE Repo\n(\n Id INTEGER not null\n primary key autoincrement,\n Url TEXT,\n Stars INTEGER,\n Forks INTEGER,\n Watchers INTEGER,\n ProcessedTime INTEGER\n);",
"table": "Repo"
},
{
"create_sql": "CREATE TABLE Solution\n(\n Id INTEGER not null\n primary key autoincrement,\n RepoId INTEGER,\n Path TEXT,\n ProcessedTime INTEGER,\n WasCompiled INTEGER\n);",
"table": "Solution"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nId ,,\"unique id number\nthat identifies methods\",integer,\nName ,,name of methods ,text,\"the second part is the task of this method\ndelimited by \"\".\"\"\"\nFullComment,Full Comment,full comment of this method,text,\nSummary,Summary,summary of the method,text,\nApiCalls,Api Calls,linearized sequenced of API calls,text,\nCommentIsXml,CommentIs Xml,whether the comment is XML format or not,integer,\"commonsense evidence:\n\n0: the comment for this method is not XML format.\n1: the comment for this method is XML format.\"\nSampledAt,Sampled At,the time of sampling,integer,\nSolutionId,Solution Id,id number of solutions,integer,\nLang,Language,language code of method,text,\nNameTokenized,Name Tokenized,tokenized name,text,",
"table": "Method"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nId,,unique id number identifying method parameters,integer,\nMethodId,Method Id,,text,\nType,,type of the method,text,\nName,,name of the method,text,\"commonsense evidence:\n\nif the name is not a word like \"\"H\"\", \"\"z\"\", it means this method is not well-discriminative.\"",
"table": "MethodParameter"
},
{
"description": ",original_column_name,column_name,column_description,data_format,value_description\n0,Id,,unique id to identify this solution,integer,\n1,RepoId,Repository Id,id of repository,integer,\n2,Path,Path,path of this solution,text,\n3,ProcessedTime,Processed Time,processed time,integer,\n4,WasCompiled,Was Compiled,whether this solution needs to be compiled or not,integer,\"\ncommonsense evidence:\n0: this solution needs to be compiled if user wants to implement it.\n1: this solution can be implemented without needs of compilation\"",
"table": "Solution"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nId,,unique id to identify repositories,integer,\nUrl,,github address of repository,text,\nStars,,stars this repository has received,integer,\nForks,,forks that the repository has received,integer,\nWatchers,,how many watchers of this repository,integer,\nProcessedTime,Processed Time,how much processed time of downloading this repository,integer,",
"table": "Repo"
}
] |
human_resources | [
{
"create_sql": "CREATE TABLE location\n(\n locationID INTEGER\n constraint location_pk\n primary key,\n locationcity TEXT,\n address TEXT,\n state TEXT,\n zipcode INTEGER,\n officephone TEXT\n);",
"table": "location"
},
{
"create_sql": "CREATE TABLE position\n(\n positionID INTEGER\n constraint position_pk\n primary key,\n positiontitle TEXT,\n educationrequired TEXT,\n minsalary TEXT,\n maxsalary TEXT\n);",
"table": "position"
},
{
"create_sql": "CREATE TABLE employee\n(\n ssn TEXT\n primary key,\n lastname TEXT,\n firstname TEXT,\n hiredate TEXT,\n salary TEXT,\n gender TEXT,\n performance TEXT,\n positionID INTEGER,\n locationID INTEGER,\n foreign key (locationID) references location(locationID),\n foreign key (positionID) references position(positionID)\n);",
"table": "employee"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nlocationID,location id,the unique id for location,integer,\nlocationcity,location city,the location city,text,\naddress,,the detailed address of the location,text,\nstate,,the state abbreviation,text,\nzipcode,zip code,zip code of the location,integer,\nofficephone,office phone,the office phone number of the location,text,",
"table": "location"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nssn,social security number,employee's ssn,text,\nlastname,last name,employee's last name,text,\nfirstname,first name,employee's first name,text,\"commonsense evidence:\nemployee's full name is firstname lastname . \"\nhiredate,hire date,employee's hire date,text,yyyy-mm-dd\nsalary,,employee's salary,text,the unit is dollar per year\ngender,,employee's gender,text,\nperformance,,employee's performance,text,Good / Average/ Poor\npositionID,position id,the unique id for position,integer,\nlocationID,location id,the unique id for location,integer,",
"table": "employee"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\npositionID,position id,the unique id for position,integer,\npositiontitle,position title,the position title,text,\neducationrequired ,education required,the required education year,text,\"commonsense evidence:\nGenerally, more complex work requires more education year. \"\nminsalary,minimum salary,minimum salary of this position ,text,\nmaxsalary,maximum salary,maximum salary of this position ,text,",
"table": "position"
}
] |
coinmarketcap | [
{
"create_sql": "CREATE TABLE coins\n(\n id INTEGER not null\n primary key,\n name TEXT,\n slug TEXT,\n symbol TEXT,\n status TEXT,\n category TEXT,\n description TEXT,\n subreddit TEXT,\n notice TEXT,\n tags TEXT,\n tag_names TEXT,\n website TEXT,\n platform_id INTEGER,\n date_added TEXT,\n date_launched TEXT\n);",
"table": "coins"
},
{
"create_sql": "CREATE TABLE \"historical\"\n(\n date DATE,\n coin_id INTEGER,\n cmc_rank INTEGER,\n market_cap REAL,\n price REAL,\n open REAL,\n high REAL,\n low REAL,\n close REAL,\n time_high TEXT,\n time_low TEXT,\n volume_24h REAL,\n percent_change_1h REAL,\n percent_change_24h REAL,\n percent_change_7d REAL,\n circulating_supply REAL,\n total_supply REAL,\n max_supply REAL,\n num_market_pairs INTEGER\n);",
"table": "historical"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,unique id number identifying coins,integer,\nname,,name of coins,text,\nslug,,slug names of coins,text,\nsymbol,,symbol of names of coins,text,\nstatus,,status of coins,text,\"commonsense reasoning:\n• active: this coin is active and available for transactions\n• untracked: this coin cannot be tracked\n• inactive: this coin is not available for transactions\n• extinct: this coin has been disappeared \"\ncategory,,category of coins,text,\"commonsense reasoning:\n• token: \n• coin: \"\ndescription,,description of coins,text,\nsubreddit,,name of coins on reddit ,text,\nnotice,,notice if any ,text,\ntags,,tags of coins,text,\ntag_names,,tag names of coins,text,\nwebsite,,website introduction of coins,text,\nplatform_id,platform id,id number of the platform,integer,\ndate_added,date added,the added date,text,\ndate_launched,date lanched,lanched date,text,",
"table": "Coins"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndate,,\"transaction date\n\",date,\ncoin_id,,id number referring to coins,integer,\ncmc_rank,coinmarketcap rank,CMC rank is a metric used by CoinMarketCap to rank the relative popularity of different cryptocurrencies.,integer,\nmarket_cap,Market capitalization,Market capitalization refers to how much a coin is worth as determined by the coin market.,real,\"dollars\nmarket cap (latest trade price x circulating supply).\"\nprice,,how much is a coin,real,dollars\nopen,,the price at which a cryptocurrency (coin) opens at a time period,real,\"dollars\ncommonsense reasoning:\nif null or empty, it means this coins has not opened yet today.\"\nhigh,,highest price,real,dollars\nlow,,lowest price,real,\"commonsense reasoning:\n1.\tIt's the best time to purchase this coin\n2.\tusers can make the max profit today by computation: high - low\"\nclose,,\"the price at which a cryptocurrency (coin) closes at a time period, for example at the end of the day.\",real,\ntime_high,,the time to achieve highest price,text,\ntime_low,,the time to achieve lowest price,text,\nvolume_24h,,the total value of cryptocurrency coined traded in the past 24 hours.,real,\npercent_change_1h,percent change 1h,price percentage change in the first hour,real,The change is the difference (in percent) between the price now compared to the price around this time 1 hours ago\npercent_change_24h,percent change 24h,price percentage change in the first 24 hours,real,The change is the difference (in percent) between the price now compared to the price around this time 24 hours ago\npercent_change_7d,percent change 7d,price percentage change in the first 7 days,real,The change is the difference (in percent) between the price now compared to the price around this time 7 days ago\ncirculating_supply,circulating supply,the best approximation of the number of coins that are circulating in the market and in the general public's hands.,real,\ntotal_supply,total supply ,the total amount of coins in existence right now,real,\nmax_supply,max supply,Max Supply is the best approximation of the maximum amount of coins that will ever exist in the lifetime of the cryptocurrency.,real,\"commonsense reasoning:\nthe number of coins verifiably burned so far = max_supply - total_supply\"\nnum_market_pairs,number market pairs,number of market pairs across all exchanges trading each currency.,integer,\"commonsense reasoning:\nactive coins that have gone inactive can easily be identified as having a num_market_pairs of 0\"",
"table": "Historical"
}
] |
superstore | [
{
"create_sql": "CREATE TABLE people\n(\n \"Customer ID\" TEXT,\n \"Customer Name\" TEXT,\n Segment TEXT,\n Country TEXT,\n City TEXT,\n State TEXT,\n \"Postal Code\" INTEGER,\n Region TEXT,\n primary key (\"Customer ID\", Region)\n);",
"table": "people"
},
{
"create_sql": "CREATE TABLE product\n(\n \"Product ID\" TEXT,\n \"Product Name\" TEXT,\n Category TEXT,\n \"Sub-Category\" TEXT,\n Region TEXT,\n primary key (\"Product ID\", Region)\n);",
"table": "product"
},
{
"create_sql": "CREATE TABLE central_superstore\n(\n \"Row ID\" INTEGER\n primary key,\n \"Order ID\" TEXT,\n \"Order Date\" DATE,\n \"Ship Date\" DATE,\n \"Ship Mode\" TEXT,\n \"Customer ID\" TEXT,\n Region TEXT,\n \"Product ID\" TEXT,\n Sales REAL,\n Quantity INTEGER,\n Discount REAL,\n Profit REAL,\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);",
"table": "central_superstore"
},
{
"create_sql": "CREATE TABLE east_superstore\n(\n \"Row ID\" INTEGER\n primary key,\n \"Order ID\" TEXT,\n \"Order Date\" DATE,\n \"Ship Date\" DATE,\n \"Ship Mode\" TEXT,\n \"Customer ID\" TEXT,\n Region TEXT,\n \"Product ID\" TEXT,\n Sales REAL,\n Quantity INTEGER,\n Discount REAL,\n Profit REAL,\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);",
"table": "east_superstore"
},
{
"create_sql": "CREATE TABLE south_superstore\n(\n \"Row ID\" INTEGER\n primary key,\n \"Order ID\" TEXT,\n \"Order Date\" DATE,\n \"Ship Date\" DATE,\n \"Ship Mode\" TEXT,\n \"Customer ID\" TEXT,\n Region TEXT,\n \"Product ID\" TEXT,\n Sales REAL,\n Quantity INTEGER,\n Discount REAL,\n Profit REAL,\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);",
"table": "south_superstore"
},
{
"create_sql": "CREATE TABLE west_superstore\n(\n \"Row ID\" INTEGER\n primary key,\n \"Order ID\" TEXT,\n \"Order Date\" DATE,\n \"Ship Date\" DATE,\n \"Ship Mode\" TEXT,\n \"Customer ID\" TEXT,\n Region TEXT,\n \"Product ID\" TEXT,\n Sales REAL,\n Quantity INTEGER,\n Discount REAL,\n Profit REAL,\n foreign key (\"Customer ID\", Region) references people(\"Customer ID\",Region),\n foreign key (\"Product ID\", Region) references product(\"Product ID\",Region)\n);",
"table": "west_superstore"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProduct ID,,the id of products,text,\nProduct Name,,the name of products,text,\nCategory,,the categories of products,text,\" Furniture \n Office Supplies \n Technology\"\nSub-Category,,the sub-categories of products,text,\" Bookcases \n Chairs \n Furnishings \n Tables \n Appliances \n Art \n Binders \n Envelopes \n Fasteners \n Labels \n Paper \n Storage \n Supplies \n Accessories \n Copiers \n Machines \n Phones \"\nRegion,,the region of products,text,\" Central: \n East: \n West: \n South:\"",
"table": "product"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nRow ID,row id,the unique id for rows,integer,\nOrder ID,order id,the unique identifier for the order,text,\nOrder Date,order date,the date of the order,date,yyyy-mm-dd\nShip Date,ship date,the date of the shipment,date,\"yyyy-mm-dd\ncommonsense evidence: \n'shipment time' refers to the time interval between order_date and ship_date.\"\nShip Mode,ship mode,the ship mode of the order,text,\"First Class / Second Class / Standard Class\ncommonsense evidence: Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\"\nCustomer ID,customer id,the id of the customer,text,\nRegion,,region of the customer's address,text,\nProduct ID,product id,the id of the product,text,\nSales,,the sales of the product,real,\nQuantity,,the quantity of the product,integer,\nDiscount,,the discount of the product,real,commonsense evidence: original price = sales / (1- discount)\nProfit,,the profit that the company got by selling the product,real,\"commonsense evidence:\ntotal cost of products = sales / (1- discount) * quantity - profit\ndeficiency: if the value is negative\"",
"table": "central_superstore"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nRow ID,row id,the unique id for rows,integer,\nOrder ID,order id,the unique identifier for the order,text,\nOrder Date,order date,the date of the order,date,yyyy-mm-dd\nShip Date,ship date,the date of the shipment,date,\"yyyy-mm-dd \ncommonsense evidence: 'shipment time' refers to the time interval between order_date and ship_date. \"\nShip Mode,ship mode,the ship mode of the order,text,\"First Class / Second Class / Standard Class\ncommonsense evidence: Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest. \"\nCustomer ID,customer id,the id of the customer,text,\nRegion,,region of the customer's address,text,\nProduct ID,product id,the id of the product,text,\nSales,,the sales of the product,real,\nQuantity,,the quantity of the product,integer,\nDiscount,,the discount of the product,real,\"commonsense evidence: original price = sales / (1- discount)\n\"\nProfit,,the profit that the company got by selling the product,real,\"commonsense evidence: total cost of products = sales / (1- discount) * quantity - profit\ndeficiency: if the value is negative\n\"",
"table": "south_superstore"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nRow ID,row id,the unique id for rows,integer,\nOrder ID,order id,the unique identifier for the order,text,\nOrder Date,order date,the date of the order,date,yyyy-mm-dd\nShip Date,ship date,the date of the shipment,date,\"yyyy-mm-dd\ncommonsense evidence: 'shipment time' refers to the time interval between order_date and ship_date. \"\nShip Mode,ship mode,the ship mode of the order,text,\"First Class / Second Class / Standard Class\ncommonsense evidence: Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest. \"\nCustomer ID,customer id,the id of the customer,text,\nRegion,,region of the customer's address,text,\nProduct ID,product id,the id of the product,text,\nSales,,the sales of the product,real,\nQuantity,,the quantity of the product,integer,\nDiscount,,the discount of the product,real,commonsense evidence: original price = sales / (1- discount)\nProfit,,the profit that the company got by selling the product,real,\"commonsense evidence: total cost of products = sales / (1- discount) * quantity - profit\ndeficiency: if the value is negative\"",
"table": "west_superstore"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nRow ID,row id,the unique id for rows,integer,\nOrder ID,order id,the unique identifier for the order,text,\nOrder Date,order date,the date of the order,date,yyyy-mm-dd\nShip Date,ship date,the date of the shipment,date,\"yyyy-mm-dd\ncommonsense evidence: 'shipment time' refers to the time interval between order_date and ship_date. \"\nShip Mode,ship mode,the ship mode of the order,text,\"First Class / Second Class / Standard Class\ncommonsense evidence: Among three ship modes, First Class has the fastest delivery speed, followed by Second Class and the speed of the Standard Class is the slowest.\n\"\nCustomer ID,customer id,the id of the customer,text,\nRegion,,region of the customer's address,text,\nProduct ID,product id,the id of the product,text,\nSales,,the sales of the product,real,\nQuantity,,the quantity of the product,integer,\nDiscount,,the discount of the product,real,commonsense evidence: original price = sales / (1- discount)\nProfit,,the profit that the company got by selling the product,real,\"commonsense evidence: total cost of products = sales / (1- discount) * quantity - profit\ndeficiency: if the value is negative\n\"",
"table": "east_superstore"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCustomer ID,,the id of the customers,text,\nCustomer Name,,the name of the customers,text,\nSegment,,the segment that the customers belong to,text,\"commonsense evidence: \n consumer \n home office: synonym: headquarter. \n corporate\"\nCountry,,the country of people,text,\nCity,,the city of people,text,\nState,,the state of people,text,\"commonsense evidence: please mention its full name in the question, by referring to \nhttps://www23.statcan.gc.ca/imdb/p3VD.pl?Function=getVD&TVD=53971\ne.g., New York --> NY\"\nPostal Code,,the postal code,integer,\nRegion,,the region of people,text,\" Central: \n East: \n West: \n South: \"",
"table": "people"
}
] |
genes | [
{
"create_sql": "CREATE TABLE Classification\n(\n GeneID TEXT not null\n primary key,\n Localization TEXT not null\n);",
"table": "Classification"
},
{
"create_sql": "CREATE TABLE Genes\n(\n GeneID TEXT not null,\n Essential TEXT not null,\n Class TEXT not null,\n Complex TEXT null,\n Phenotype TEXT not null,\n Motif TEXT not null,\n Chromosome INTEGER not null,\n Function TEXT not null,\n Localization TEXT not null,\n foreign key (GeneID) references Classification (GeneID)\n on update cascade on delete cascade\n);",
"table": "Genes"
},
{
"create_sql": "CREATE TABLE Interactions\n(\n GeneID1 TEXT not null,\n GeneID2 TEXT not null,\n Type TEXT not null,\n Expression_Corr REAL not null,\n primary key (GeneID1, GeneID2),\n foreign key (GeneID1) references Classification (GeneID)\n on update cascade on delete cascade,\n foreign key (GeneID2) references Classification (GeneID)\n on update cascade on delete cascade\n);",
"table": "Interactions"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nGeneID1,gene id 1,identifier number of genes,text,\nGeneID2,gene id 2,identifier number of genes,text,\nType,,Type,text,\nExpression_Corr,Expression correlation score,Expression correlation score,real,\"range: (0,1)\n\nif the value is the positive then it's \"\"positively correlated\"\"\n\nif the value is the negative then it's \"\"negatively correlated\"\"\n\nif the value is very high positively, it means two genes are highly correlated\"",
"table": "Interactions"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nGeneID,gene id,unique identifier number of genes,text,\nLocalization,,location,text,",
"table": "Classification"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nGeneID,gene id,identifier number of genes,text,\nEssential ,,essential ,text,\nClass,,class,text,\nComplex,,Complex,text,\nPhenotype,,Phenotype,text,?: means: doesn't exit the phenotype\nMotif,,Motif,text,\nChromosome,,Chromosome,text,\nFunction,,Function,text,\nLocalization,,,text,",
"table": "Genes"
}
] |
donor | [
{
"create_sql": "CREATE TABLE \"essays\"\n(\n projectid TEXT,\n teacher_acctid TEXT,\n title TEXT,\n short_description TEXT,\n need_statement TEXT,\n essay TEXT\n);",
"table": "essays"
},
{
"create_sql": "CREATE TABLE \"projects\"\n(\n projectid TEXT not null\n primary key,\n teacher_acctid TEXT,\n schoolid TEXT,\n school_ncesid TEXT,\n school_latitude REAL,\n school_longitude REAL,\n school_city TEXT,\n school_state TEXT,\n school_zip INTEGER,\n school_metro TEXT,\n school_district TEXT,\n school_county TEXT,\n school_charter TEXT,\n school_magnet TEXT,\n school_year_round TEXT,\n school_nlns TEXT,\n school_kipp TEXT,\n school_charter_ready_promise TEXT,\n teacher_prefix TEXT,\n teacher_teach_for_america TEXT,\n teacher_ny_teaching_fellow TEXT,\n primary_focus_subject TEXT,\n primary_focus_area TEXT,\n secondary_focus_subject TEXT,\n secondary_focus_area TEXT,\n resource_type TEXT,\n poverty_level TEXT,\n grade_level TEXT,\n fulfillment_labor_materials REAL,\n total_price_excluding_optional_support REAL,\n total_price_including_optional_support REAL,\n students_reached INTEGER,\n eligible_double_your_impact_match TEXT,\n eligible_almost_home_match TEXT,\n date_posted DATE\n);",
"table": "projects"
},
{
"create_sql": "CREATE TABLE donations\n(\n donationid TEXT not null\n primary key,\n projectid TEXT,\n donor_acctid TEXT,\n donor_city TEXT,\n donor_state TEXT,\n donor_zip TEXT,\n is_teacher_acct TEXT,\n donation_timestamp DATETIME,\n donation_to_project REAL,\n donation_optional_support REAL,\n donation_total REAL,\n dollar_amount TEXT,\n donation_included_optional_support TEXT,\n payment_method TEXT,\n payment_included_acct_credit TEXT,\n payment_included_campaign_gift_card TEXT,\n payment_included_web_purchased_gift_card TEXT,\n payment_was_promo_matched TEXT,\n via_giving_page TEXT,\n for_honoree TEXT,\n donation_message TEXT,\n foreign key (projectid) references projects(projectid)\n);",
"table": "donations"
},
{
"create_sql": "CREATE TABLE resources\n(\n resourceid TEXT not null\n primary key,\n projectid TEXT,\n vendorid INTEGER,\n vendor_name TEXT,\n project_resource_type TEXT,\n item_name TEXT,\n item_number TEXT,\n item_unit_price REAL,\n item_quantity INTEGER,\n foreign key (projectid) references projects(projectid)\n);",
"table": "resources"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nprojectid,project id,project's unique identifier,text,\nteacher_acctid,teacher_acctid,teacher's unique identifier (teacher that created a project),text,\nschoolid,schoolid,school's identifier (school where teacher works),text,\nschool_ncesid,school national center for education statistics id,Public National Center for Ed Statistics id,text,\nschool_latitude,school latitude,latitude of school ,real,\nschool_longitude,school longitude,longitude of school ,real,\nschool_city,school city,city where the school is located,text,\nschool_state,school state,state where the school is located,text,\nschool_zip,school zip,zipcode of school,integer,\nschool_metro,school metro,metro where the school is located,text,\nschool_district,school district,district where the school is located,text,\nschool_county,school county,country where the school is located,text,\nschool_charter,school charter,whether it is a public charter school or not (no private schools in the dataset),text,\nschool_magnet,school magnet,whether a public magnet school or not,text,\nschool_year_round,school year round,whether it is a public year round school or not,text,\nschool_nlns,school Nonleafy Normal Stature,whether it is a public Nonleafy Normal Stature school or not,text,\nschool_kipp,school Knowledge Is Power Program,whether it is a public Knowledge Power Program school or not,text,\nschool_charter_ready_promise,school charter ready promise,whether it is a public ready promise school or not,text,\nteacher_prefix,teacher prefix,teacher's gender,text,\"commonsense evidence:\nif the value is equal to \"\"Dr. \"\", it means this teacher acquired P.h.D or doctor degree.\"\nteacher_teach_for_america,teachers teach for america,Teach for America or not,text,\nteacher_ny_teaching_fellow,teacher_new_york_teaching_fellow,New York teaching fellow or not,text,\"• t: true\n• f: false\ncommonsense evidence:\nif true: it means that this teacher is a New York teacher\"\nprimary_focus_subject,primary focus subject,main subject for which project materials are intended,text,\nprimary_focus_area,primary focus area,main subject area for which project materials are intended,text,\nsecondary_focus_subject,secondary focus subject,secondary subject,text,\nsecondary_focus_area,secondary focus area,secondary subject area,text,\nresource_type,resource type,main type of resources requested by a project,text,\npoverty_level,poverty level,school's poverty level,text,\"commonsense evidence:\nhighest: 65%+ free of reduced lunch; high: 40-64%; moderate: 10-39%low: 0-9%\"\ngrade_level,grade level,grade level for which project materials are intended,text,\nfulfillment_labor_materials,fulfillment labor materials, cost of fulfillment,real,\"commonsense evidence:\nhigher means higher cost, or need more labors\"\ntotal_price_excluding_optional_support,total price excluding optional support,project cost excluding optional tip that donors give to DonorsChoose.org while funding a project,real,\ntotal_price_including_optional_support,total price including optional support,project cost including optional tip that donors give to DonorsChoose.org while funding a project,real,\"commonsense evidence:\ncost of optional tip = total_price_including_optional_support -total_price_excluding_optional_support\"\nstudents_reached,students reached,number of students impacted by a project (if funded),integer,\neligible_double_your_impact_match,eligible double your impact match,\" project was eligible for a 50% off offer by a corporate partner (logo appears on a project, like Starbucks or Disney)\",text,\neligible_almost_home_match,eligible almost home match,project was eligible for a $100 boost offer by a corporate partner,text,\ndate_posted,date posted,data a project went live on the site,date,",
"table": "projects"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nprojectid,project id,unique project identifier,text,\nteacher_acctid,teacher acctid,teacher id that created a project,text,\ntitle,title,title of the project,text,\nshort_description,short description,short description of a project,text,\nneed_statement,need statement,need statement of a project,text,\nessay,essay,complete project essay,text,",
"table": "essays"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nresourceid,resource id,unique resource id,text,\nprojectid,project id,project id that requested resources for a classroom,text,\nvendorid,vendor id,vendor id that supplies resources to a project,integer,\nvendor_name,vendor name,vendor name,text,\nproject_resource_type,project resource type,type of resource,text,\nitem_name,item name,resource name,text,\nitem_number,item number,resource item identifier,text,\nitem_unit_price,item unit price,unit price of the resource,real,\nitem_quantity,item quantity,number of a specific item requested by a teacher,integer,",
"table": "resources"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndonationid,donation id,unique donation identifier,text,\nprojectid,project id,project identifier that received the donation,text,\ndonor_acctid,donor accid,donor that made a donation,text,\ndonor_city,donor city,donation city,text,\ndonor_state,donor state,donation state,text,\ndonor_zip,donor zip,donation zip code,text,\nis_teacher_acct,is teacher acct,whether donor is also a teacher,text,\"commonsense evidence:\n• f: false, it means this donor is not a teacher\n• t: true, it means this donor is a teacher\"\ndonation_timestamp,donation timestamp,the time of donation,datetime,\ndonation_to_project,donation to project,\"amount to project, excluding optional support (tip)\",real,\ndonation_optional_support,donation optional support,amount of optional support,real,\ndonation_total,donation total,donated amount,real,\"commonsense evidence:\ndonated amount = donation_to_project + donation_optional_support\"\ndollar_amount,dollar amount,donated amount in US dollars,text,\ndonation_included_optional_support,donation included optional support,whether optional support (tip) was included for DonorsChoose.org,text,\"commonsense evidence:\n• f: false, optional support (tip) was not included for DonorsChoose.org\n• t: true, optional support (tip) was included for DonorsChoose.org\"\npayment_method,payment method,what card/payment option was used,text,\npayment_included_acct_credit,payment included acct credit,whether a portion of a donation used account credits redemption,text,\"commonsense evidence:\n• f: false, a portion of a donation didn't use account credits redemption\n• t: true, a portion of a donation used account credits redemption\"\npayment_included_campaign_gift_card,payment included campaign gift card,whether a portion of a donation included corporate sponsored gift card,text,\"commonsense evidence:\n• f: false, a portion of a donation included corporate sponsored gift card\n• t: true, a portion of a donation included corporate sponsored gift card\"\npayment_included_web_purchased_gift_card,payment included web purchased gift card,whether a portion of a donation included citizen purchased gift card (ex: friend buy a gift card for you),text,\"• f: false\n• t: true\"\n,,,text,\npayment_was_promo_matched,payment was promo matched,whether a donation was matched 1-1 with corporate funds,text,\"commonsense evidence:\n• f: false, a donation was not matched 1-1 with corporate funds\n• t: true, a donation was matched 1-1 with corporate funds\"\nvia_giving_page,via giving page,donation given via a giving / campaign page (example: Mustaches for Kids),text,\nfor_honoree,for honoree,donation made for an honoree,text,\"commonsense evidence:\n• f: false, this donation is not made for an honoree\n• t: true, this donation is made for an honoree\"\ndonation_message,donation message,donation comment/message. ,text,",
"table": "donations"
}
] |
hockey | [
{
"create_sql": "CREATE TABLE AwardsMisc\n(\n name TEXT not null\n primary key,\n ID TEXT,\n award TEXT,\n year INTEGER,\n lgID TEXT,\n note TEXT\n);",
"table": "AwardsMisc"
},
{
"create_sql": "CREATE TABLE HOF\n(\n year INTEGER,\n hofID TEXT not null\n primary key,\n name TEXT,\n category TEXT\n);",
"table": "HOF"
},
{
"create_sql": "CREATE TABLE Teams\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n franchID TEXT,\n confID TEXT,\n divID TEXT,\n rank INTEGER,\n playoff TEXT,\n G INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n OTL TEXT,\n Pts INTEGER,\n SoW TEXT,\n SoL TEXT,\n GF INTEGER,\n GA INTEGER,\n name TEXT,\n PIM TEXT,\n BenchMinor TEXT,\n PPG TEXT,\n PPC TEXT,\n SHA TEXT,\n PKG TEXT,\n PKC TEXT,\n SHF TEXT,\n primary key (year, tmID)\n);",
"table": "Teams"
},
{
"create_sql": "CREATE TABLE Coaches\n(\n coachID TEXT not null,\n year INTEGER not null,\n tmID TEXT not null,\n lgID TEXT,\n stint INTEGER not null,\n notes TEXT,\n g INTEGER,\n w INTEGER,\n l INTEGER,\n t INTEGER,\n postg TEXT,\n postw TEXT,\n postl TEXT,\n postt TEXT,\n primary key (coachID, year, tmID, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade\n);",
"table": "Coaches"
},
{
"create_sql": "CREATE TABLE AwardsCoaches\n(\n coachID TEXT,\n award TEXT,\n year INTEGER,\n lgID TEXT,\n note TEXT,\n foreign key (coachID) references Coaches (coachID)\n);",
"table": "AwardsCoaches"
},
{
"create_sql": "CREATE TABLE Master\n(\n playerID TEXT,\n coachID TEXT,\n hofID TEXT,\n firstName TEXT,\n lastName TEXT not null,\n nameNote TEXT,\n nameGiven TEXT,\n nameNick TEXT,\n height TEXT,\n weight TEXT,\n shootCatch TEXT,\n legendsID TEXT,\n ihdbID TEXT,\n hrefID TEXT,\n firstNHL TEXT,\n lastNHL TEXT,\n firstWHA TEXT,\n lastWHA TEXT,\n pos TEXT,\n birthYear TEXT,\n birthMon TEXT,\n birthDay TEXT,\n birthCountry TEXT,\n birthState TEXT,\n birthCity TEXT,\n deathYear TEXT,\n deathMon TEXT,\n deathDay TEXT,\n deathCountry TEXT,\n deathState TEXT,\n deathCity TEXT,\n foreign key (coachID) references Coaches (coachID)\n on update cascade on delete cascade\n);",
"table": "Master"
},
{
"create_sql": "CREATE TABLE AwardsPlayers\n(\n playerID TEXT not null,\n award TEXT not null,\n year INTEGER not null,\n lgID TEXT,\n note TEXT,\n pos TEXT,\n primary key (playerID, award, year),\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n);",
"table": "AwardsPlayers"
},
{
"create_sql": "CREATE TABLE CombinedShutouts\n(\n year INTEGER,\n month INTEGER,\n date INTEGER,\n tmID TEXT,\n oppID TEXT,\n \"R/P\" TEXT,\n IDgoalie1 TEXT,\n IDgoalie2 TEXT,\n foreign key (IDgoalie1) references Master (playerID)\n on update cascade on delete cascade,\n foreign key (IDgoalie2) references Master (playerID)\n on update cascade on delete cascade\n);",
"table": "CombinedShutouts"
},
{
"create_sql": "CREATE TABLE Goalies\n(\n playerID TEXT not null,\n year INTEGER not null,\n stint INTEGER not null,\n tmID TEXT,\n lgID TEXT,\n GP TEXT,\n Min TEXT,\n W TEXT,\n L TEXT,\n \"T/OL\" TEXT,\n ENG TEXT,\n SHO TEXT,\n GA TEXT,\n SA TEXT,\n PostGP TEXT,\n PostMin TEXT,\n PostW TEXT,\n PostL TEXT,\n PostT TEXT,\n PostENG TEXT,\n PostSHO TEXT,\n PostGA TEXT,\n PostSA TEXT,\n primary key (playerID, year, stint),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n);",
"table": "Goalies"
},
{
"create_sql": "CREATE TABLE GoaliesSC\n(\n playerID TEXT not null,\n year INTEGER not null,\n tmID TEXT,\n lgID TEXT,\n GP INTEGER,\n Min INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n SHO INTEGER,\n GA INTEGER,\n primary key (playerID, year),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n);",
"table": "GoaliesSC"
},
{
"create_sql": "CREATE TABLE GoaliesShootout\n(\n playerID TEXT,\n year INTEGER,\n stint INTEGER,\n tmID TEXT,\n W INTEGER,\n L INTEGER,\n SA INTEGER,\n GA INTEGER,\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n);",
"table": "GoaliesShootout"
},
{
"create_sql": "CREATE TABLE Scoring\n(\n playerID TEXT,\n year INTEGER,\n stint INTEGER,\n tmID TEXT,\n lgID TEXT,\n pos TEXT,\n GP INTEGER,\n G INTEGER,\n A INTEGER,\n Pts INTEGER,\n PIM INTEGER,\n \"+/-\" TEXT,\n PPG TEXT,\n PPA TEXT,\n SHG TEXT,\n SHA TEXT,\n GWG TEXT,\n GTG TEXT,\n SOG TEXT,\n PostGP TEXT,\n PostG TEXT,\n PostA TEXT,\n PostPts TEXT,\n PostPIM TEXT,\n \"Post+/-\" TEXT,\n PostPPG TEXT,\n PostPPA TEXT,\n PostSHG TEXT,\n PostSHA TEXT,\n PostGWG TEXT,\n PostSOG TEXT,\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n);",
"table": "Scoring"
},
{
"create_sql": "CREATE TABLE ScoringSC\n(\n playerID TEXT,\n year INTEGER,\n tmID TEXT,\n lgID TEXT,\n pos TEXT,\n GP INTEGER,\n G INTEGER,\n A INTEGER,\n Pts INTEGER,\n PIM INTEGER,\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n);",
"table": "ScoringSC"
},
{
"create_sql": "CREATE TABLE ScoringShootout\n(\n playerID TEXT,\n year INTEGER,\n stint INTEGER,\n tmID TEXT,\n S INTEGER,\n G INTEGER,\n GDG INTEGER,\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n);",
"table": "ScoringShootout"
},
{
"create_sql": "CREATE TABLE ScoringSup\n(\n playerID TEXT,\n year INTEGER,\n PPA TEXT,\n SHA TEXT,\n foreign key (playerID) references Master (playerID)\n on update cascade on delete cascade\n);",
"table": "ScoringSup"
},
{
"create_sql": "CREATE TABLE SeriesPost\n(\n year INTEGER,\n round TEXT,\n series TEXT,\n tmIDWinner TEXT,\n lgIDWinner TEXT,\n tmIDLoser TEXT,\n lgIDLoser TEXT,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n GoalsWinner INTEGER,\n GoalsLoser INTEGER,\n note TEXT,\n foreign key (year, tmIDWinner) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (year, tmIDLoser) references Teams (year, tmID)\n on update cascade on delete cascade\n);",
"table": "SeriesPost"
},
{
"create_sql": "CREATE TABLE TeamSplits\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n hW INTEGER,\n hL INTEGER,\n hT INTEGER,\n hOTL TEXT,\n rW INTEGER,\n rL INTEGER,\n rT INTEGER,\n rOTL TEXT,\n SepW TEXT,\n SepL TEXT,\n SepT TEXT,\n SepOL TEXT,\n OctW TEXT,\n OctL TEXT,\n OctT TEXT,\n OctOL TEXT,\n NovW TEXT,\n NovL TEXT,\n NovT TEXT,\n NovOL TEXT,\n DecW TEXT,\n DecL TEXT,\n DecT TEXT,\n DecOL TEXT,\n JanW INTEGER,\n JanL INTEGER,\n JanT INTEGER,\n JanOL TEXT,\n FebW INTEGER,\n FebL INTEGER,\n FebT INTEGER,\n FebOL TEXT,\n MarW TEXT,\n MarL TEXT,\n MarT TEXT,\n MarOL TEXT,\n AprW TEXT,\n AprL TEXT,\n AprT TEXT,\n AprOL TEXT,\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade\n);",
"table": "TeamSplits"
},
{
"create_sql": "CREATE TABLE TeamVsTeam\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n oppID TEXT not null,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n OTL TEXT,\n primary key (year, tmID, oppID),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade,\n foreign key (oppID, year) references Teams (tmID, year)\n on update cascade on delete cascade\n);",
"table": "TeamVsTeam"
},
{
"create_sql": "CREATE TABLE TeamsHalf\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n half INTEGER not null,\n rank INTEGER,\n G INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n GF INTEGER,\n GA INTEGER,\n primary key (year, tmID, half),\n foreign key (tmID, year) references Teams (tmID, year)\n on update cascade on delete cascade\n);",
"table": "TeamsHalf"
},
{
"create_sql": "CREATE TABLE TeamsPost\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n G INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n GF INTEGER,\n GA INTEGER,\n PIM TEXT,\n BenchMinor TEXT,\n PPG TEXT,\n PPC TEXT,\n SHA TEXT,\n PKG TEXT,\n PKC TEXT,\n SHF TEXT,\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade\n);",
"table": "TeamsPost"
},
{
"create_sql": "CREATE TABLE TeamsSC\n(\n year INTEGER not null,\n lgID TEXT,\n tmID TEXT not null,\n G INTEGER,\n W INTEGER,\n L INTEGER,\n T INTEGER,\n GF INTEGER,\n GA INTEGER,\n PIM TEXT,\n primary key (year, tmID),\n foreign key (year, tmID) references Teams (year, tmID)\n on update cascade on delete cascade\n);",
"table": "TeamsSC"
},
{
"create_sql": "CREATE TABLE abbrev\n(\n Type TEXT not null,\n Code TEXT not null,\n Fullname TEXT,\n primary key (Type, Code)\n);",
"table": "abbrev"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nType,,type of hockey games,text,\nCode,,abbreviated codes,text,\nFullname,,full names of code,text,",
"table": "abbrev"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year,integer,\nround,,round ,text,see abbrev.csv for details\nseries,,series,text,used for the NHL designations\ntmIDWinner,Team ID of winner,Team ID of winner,text,\nlgIDWinner,League ID of winner,League ID of winner,text,\ntmIDLoser,Team ID of loser,Team ID of winner,text,\nlgIDLoser,league id of loser,league id of loser,text,\nW,wins ,wins ,integer,\nL,loses,loses,integer,\nT,ties ,ties ,integer,\nGoalsWinner,goals for winner,goals for winner,integer,\nGoalsLoser,goals for loser,goals for loser,integer,\nnote,,note,note,\"Note: EX = exhibition, ND = no decision, TG = total-goals series\"",
"table": "SeriesPost"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nname,,unique name of awards,text,unique name of awards\nID,,\"id number of players or coaches, etc.\",text,\naward,,awarder,text,not useful\nyear,,year of the award,integer,\nlgID,league ID,league abbreviated name,text,\nnote ,,note if needed,text,\"commonsense evidence: \nnoted information\"",
"table": "AwardsMisc"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,,id number identifying the player,text,number identifying players\nyear,,year,integer,\"2005-06 listed as \"\"2005\"\"\"\ntmID,team ID,team abbreviated name,text,\nlgID,league ID,league abbreviated name,text,\nGP,Games played,Games played,integer,\nMin,Minutes,Minutes of appearance,integer,\nW,Wins,Wins,integer,\nL,Loses,Loses,integer,\nT,Ties,Ties,integer,\nSHO,Shutouts,Shutouts,integer,\"commonsense evidence:\nIn ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\"\nGA,Goals against,Goals against,integer,\"commonsense evidence:\n“Goals Against” are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\"",
"table": "GoaliesSC"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,,id number identifying the player,text,\ncoachID,coach ID,coach id number,text,\"commonsense evidence:\nif a person has both playerID and coachID, it means this person becomes coach after retirement.\"\nhofID,,hall of fame id,text,\nfirstName,first name,first name,text,\nlastName,last name,last name,text,\nnameNote,name note,note about name,text,\nnameGiven,name given ,Given name,text,\nnameNick,Nickname ,Nickname ,text,\"(multiple entries separated by \"\"/\"\")\"\nheight,,height,text,\nweight,,weight,text,\nshootCatch,shoot catch,Shooting hand (or catching hand for goalies),text,\"commonsense evidence: \nShooting hand (or catching hand for goalies)\nL: left hand\nR: right hand\nif null or 'empty', it means this player is good at both left and right hand\"\nlegendsID,legends ID,ID at Legends Of Hockey,text,\nihdbID,Internet Hockey Database ID,ID at the Internet Hockey Database,text,\nhrefID,Hockey-Reference.com ID,ID at Hockey-Reference.com,text,\nfirstNHL,First NHL season,First NHL season,text,\nlastNHL,Last NHL season,Last NHL season,text,\nfirstWHA,First WHA season,First WHA season,text,\nlastWHA,Last WHA season,Last WHA season,text,\npos,position,,text,\"commonsense evidence:\nLW: left winger\nRW: right winger\nC: center\nG: goalie\nD: defenseman\nW: winger\nF: forward\nthe player with W (winger) means he can play the role as both LW (left winger) and RW (right winger)\nsome players have two positions, which will be shown as \"\"L/D\"\". It means that LW + D --> left winger and defenseman\"\nbirthYear,birth Year,birth Year,text,\nbirthMon,birth Month,birth Month,text,\nbirthDay,birth Day,birth Day,text,\"commonsense evidence:\nthe entire / detail birth date in this table is \"\"year\"\" / \"\"month\"\" / \"\"date\"\"\"\nbirthCountry,birth Country,birth Country,text,\nbirthState,birth State,birth State,text,\nbirthCity,birth city,birth city,text,\ndeathYear,death year,death year,text,\ndeathMon,death month,death month,text,\ndeathDay,death day,death day,text,\ndeathCountry,death country,death country,text,\ndeathState,death state,death state,text,\ndeathCity,death city,death city,text,",
"table": "Master"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year,integer,\nlgID,league ID,league ID number,text,\ntmID,team ID,team ID,text,\nfranchID,Franchise ID,Franchise ID,text,\nconfID,Conference ID,Conference ID,text,see abbrev.csv for details\ndivID,Division ID,Division ID,text,see abbrev.csv for details\nrank,,Final standing,integer,\nplayoff,,playoff results,text,\nG,games,games,integer,\nW,wins,wins,integer,\nL,loses,loses,integer,\nT,ties,ties,integer,\nOTL,Overtime losses,Overtime losses,text,\nPts,points,points,integer,\nSoW,Shootout wins,Shootout wins,text,\nSoL,Shootout loses,Shootout loses,text,\nGF,Goals for,Goals for,integer,\nGA,Goals against,goals against,integer,\nname,Full team name,Full team name,text,\nPIM,Penalty minutes,Penalty minutes,text,\nBenchMinor,Bench minors (minutes),Bench minors (minutes),text,\"commonsense evidence: \nA bench minor penalty is a minor penalty committed by a player or coach that is not on the ice. It is like a minor penalty in that it calls for the offending player to serve two minutes in the penalty box.\"\nPPG,Power play goals,Power play goals,text,\nPPC,Power play chances,Power play chances,text,\"commonsense evidence: \npower play percentage (PP%) = PPG / PPC\"\nSHA,Shorthanded goals against,Shorthanded goals against,text,\nPKG,Power play goals against,Power play goals against,text,\nPKC,Penalty kill chances,Penalty kill chances,text,\nSHF,Shorthanded goals for,Shorthanded goals for,text,",
"table": "Teams"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,player id,id number identifying the player,text,number identifying the player\nyear,,year,integer,\"2005-06 listed as \"\"2005\"\"\"\nstint,,stint,integer,\ntmID,team ID,team abbreviated name,text,\nS,shots,shots,integer,\nG,goals,goals,integer,\nGDG,game deciding goals,game deciding goals,integer,",
"table": "ScoringShootout"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,player id,string ID of players,text,unique string ID of the player\nyear,,,,\nPPA,Power play assists,Power play assists,text,\nSHA,Shorthanded assists,Shorthanded assists,text,",
"table": "ScoringSup"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year,integer,\nlgID,league ID,league ID number,text,\ntmID,team ID,team ID,text,\nhW,home wins,home wins,integer,\nhL,home loses,home loses,integer,\nhT,home ties,home ties,integer,\nhOTL,Home overtime losses,Home overtime losses,text,\nrW,Road wins,Road wins,integer,\nrL,Road loses,Road loses,integer,\nrT,Road ties,Road ties,integer,\nrOTL,road overtime loses,road overtime loses,text,\nSepW,September wins,September wins,text,\nSepL,September loses,September loses,text,\nSepT,September ties,September ties,text,\nSepOL,September overtime loses,September overtime loses,text,\nOctW,October wins,October wins,text,\nOctL,October loses,October loses,text,\nOctT,October ties,October ties,text,\nOctOL,October overtime loses,October overtime loses,text,\nNovW,November wins,November wins,text,\nNovL,November loses,November loses,text,\nNovT,November ties,November ties,text,\nNovOL,November overtime loses,November overtime loses,text,\nDecW,December wins,December wins,text,\nDecL,December loses,December loses,text,\nDecT,December ties,December ties,text,\nDecOL,December overtime loses,December overtime loses,text,\nJanW,January wins,January wins,integer,\nJanL,January loses,January loses,integer,\nJanT,January ties,January ties,integer,\nJanOL,January overtime loses,January overtime loses,text,\nFebW,February wins,February wins,integer,\nFebL,February loses,February loses,integer,\nFebT,February ties,February ties,integer,\nFebOL,February overtime loses,February overtime loses,text,\nMarW,March wins,March wins,text,\nMarL,March loses,March loses,text,\nMarT,March ties,March ties,text,\nMarOL,March overtime loses,March overtime loses,text,\nAprW,April wins,April wins,text,\nAprL,April loses,April loses,text,\nAprT,April ties,April ties,text,\nAprOL,April overtime loses,April overtime loses,text,",
"table": "TeamSplits"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,,id number identifying the player,text,number identifying players\nyear,,year,integer,\"2005-06 listed as \"\"2005\"\"\"\nstint,,order of appearance in a season,integer,\"commonsense evidence: \nthe entire date in this table is \"\"year\"\" / \"\"month\"\" / \"\"date\"\"\"\ntmID,team ID,team abbreviated name,text,\nlgID,league ID,league abbreviated name,text,\nGP,Games played,Games played,text,\nMin,Minutes,Minutes of appearance,text,\nW,wins,wins,text,\nL,loses,loses,text,\nT/OL,Ties / overtime losses,Ties / overtime losses,text,\nENG,Empty net goals,Empty net goals,text,\"commonsense evidence: \nAn empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered “empty\"\" \"\nSHO,Shutouts,Shutouts,text,\"commonsense evidence: \nIn ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\"\nGA,Goals against,Goals against,text,\"commonsense evidence: \n“Goals Against” are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\"\nSA,Shots against,Shots against,text,\"commonsense evidence: \n“Shot Against” are the number of shots recorded while the goalie is on the ice\"\nPostGP,Postseason games played,Postseason games played,text,\nPostMin,Postseason minutes,Postseason minutes,text,\nPostW,Postseason wins,Postseason wins,text,\nPostL,Postseason loses,Postseason loses,text,\nPostT,Postseason ties,Postseason ties,text,\nPostENG,Postseason empty net goals,Postseason empty net goals,text,\"commonsense evidence: \nAn empty net goal happens when a team scores against their opponent who has pulled their goalie. Since there is no goalie in the net, the net is considered “empty\"\" \"\nPostSHO,Postseason Shutouts,Postseason Shutouts,text,\"commonsense evidence: \nIn ice hockey, a shutout (SHO) is credited to a goaltender who successfully stops the other team from scoring during the entire game.\"\nPostGA,Postseason Goals against,Postseason Goals against,text,\"commonsense evidence: \n“Goals Against” are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\"\nPostSA,Postseason Shots against,Postseason Shots against,text,\"commonsense evidence: \n“Shot Against” are the number of shots recorded while the goalie is on the ice.\"",
"table": "Goalies"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year,integer,\nlgID,league ID,league ID number,text,\ntmID,team ID,team ID,text,\nG,Games,Games,integer,\nW,wins,wins,integer,\nL,loses,loses,integer,\nT,ties,ties,integer,\nGF,goals for,goals for,integer,\nGA,goals against,goals against,integer,\nPIM,penalty minutes,penalty minutes,text,\nBenchMinor,Bench minors (minutes),Bench minors (minutes),text,\nPPG,Power play goals,Power play goals,text,\nPPC,Power play chances,Power play chances,text,\nSHA,Shorthanded goals against,Shorthanded goals against,text,\nPKG,Power play goals against,Power play goals against,text,\nPKC,Penalty kill chances,Penalty kill chances,text,\nSHF,Shorthanded goals for,Shorthanded goals for,text,",
"table": "TeamsPost"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year of hall of fame,integer,\nhofID,hall of fame id,hall of fame id,text,\nname,,name,text,\ncategory,,category,text,",
"table": "HOF"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year,integer,\nlgID,league ID,league ID number,text,\ntmID,team ID,team ID,text,\nhalf,,First or second half of season,integer,\nrank,,Final standing for the half,integer,\nG,Games,Games,integer,\nW,wins,wins,integer,\nL,loses,loses,integer,\nT,ties,ties,integer,\nGF,goals for,goals for,integer,\nGA,goals against,goal against,integer,",
"table": "TeamsHalf"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year,integer,\nlgID,league ID,league ID number,text,\ntmID,team ID,team ID,text,\noppID,opponent ID,opponent ID,text,\nW,wins,wins,integer,\nL,loses,loses,integer,\nT,ties,ties,integer,\nOTL,overtime loses,overtime loses,text,",
"table": "TeamVsTeam"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncoachID,coach ID,string ID of the coach,text,\naward,,awards that the coach achieve,text,\nyear,,year of award,integer,\nlgID,league ID,league abbreviated name,text,\nnote,,,text,",
"table": "AwardsCoaches"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year,integer,\nlgID,league ID,league ID number,text,\ntmID,team ID,team ID,text,\nG,Games,Games,integer,\nW,wins,wins,integer,\nL,loses,loses,integer,\nT,ties,ties,integer,\nGF,goals for,goals for,integer,\nGA,goals against,goals against,integer,\nPIM,penalty minutes,penalty minutes,text,",
"table": "TeamsSC"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,player id,string ID of players,text,unique string ID of the player\naward,,award name,text,\nyear,,year of award,integer,\nlgID,league ID,league abbreviated name,text,\nnote,,note if needed,text,\npos,position,position of players,text,\"commonsense evidence: \nLW: left winger\nRW: right winger\nC: center\nG: goalie\nD: defenseman\nW: winger\nF: forward\n\nthe player with W (winger) means he can play the role as both LW (left winger) and RW (right winger)\"",
"table": "AwardsPlayers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nyear,,year,integer,\nmonth,,month,integer,\ndate,,day,integer,\"commonsense evidence: \nthe entire date in this table is \"\"year\"\" / \"\"month\"\" / \"\"date\"\"\"\ntmID,team ID,team abbreviated name,text,\noppID,opposite team ID,Team ID of opponent,text,\nR/P ,regular / postseason,regular / postseason,text,\"R\"\" for regular season, or \"\"P\"\" for postseason\"\nIDgoalie1,ID of goalie 1,ID of first goalie,text,\nIDgoalie2,ID of goalie 2,ID of second goalie,text,",
"table": "CombinedShutouts"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,,id number identifying the player,text,number identifying the player\nyear,,year,integer,\"2005-06 listed as \"\"2005\"\"\"\ntmID,team ID,team abbreviated name,text,\nlgID,league ID,league abbreviated name,text,\npos,position ,position,text,\nGP,Games played,Games played,integer,\nG,Goals,goals,integer,\nA,assists,assists,integer,\nPts,points,points,integer,\nPIM,Penalty minutes,Penalty minutes,integer,",
"table": "ScoringSC"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncoachID,coach ID,number identifying coaches,text,number identifying coaches\nyear,,In which year did the coach teach this team,integer,\ntmID,team ID,team abbreviated name,text,\nlgID,league ID,league abbreviated name,text,\nstint,,stint,integer,\nnotes ,,note if needed,text,\"commonsense evidence: \nnoted information\"\ng,games,number of games,integer,\nw,wins,number of wins,integer,\"commonsense evidence: \nwinning rates = wins / (wins + loses)\"\nl,loses,number of loses,integer,\nt,ties,number of ties,integer,\npostg,post-season games,number of post-season games,text,\npostw,post-season wins,number of post-season wins,text,\npostl,post-season loses,number of post-season loses,text,\npostt,post-season ties,number of post-season ties,text,",
"table": "Coaches"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,,player ID,text,\nyear,,play year,integer,\nstint,,Stint (order of appearance in a season),integer,\ntmID,team id,team id,text,\nlgID,league id,league id,text,\npos,position ,position,text,\"commonsense evidence:\nLW: left winger\nRW: right winger\nC: center\nG: goalie\nD: defenseman\nW: winger\nF: forward\nthe player with W (winger) means he can play the role as both LW (left winger) and RW (right winger)\nsome players have two positions, which will be shown as \"\"L/D\"\". It means that LW + D --> left winger and defenseman\"\nGP,game played,game played,integer,\nG,goals,goals,integer,\nA,assists,assists,integer,\nPts,points,points,integer,\nPIM,Penalty minutes,Penalty minutes,integer,\n+/-,Plus / minus,Plus / minus,text,\"commonsense evidence:\nThe plus minus stat is used to determine how often a player is on the ice when a goal is scored for the team versus against the team. A positive plus minus means that the player has been on for more goals scored than against, while a negative number means they have been on for more against.\nIn another words, higher \"\"+ / -\"\" means more importance to the team, lower means less importance\"\nPPG,Power play goals,Power play goals,text,\"commonsense evidence:\nWhen a team with more players on the ice scores a goal it is known as a power play goal. Many goals are scored in power play situations as the team is able to keep possession of the puck and have more scoring chances.\"\nPPA,Power play assists,Power play assists,text,\nSHG,Shorthanded goals,Shorthanded goals,text,\"commonsense evidence: \nSometimes the team with fewer players on the ice known as the short-handed team will score a goal.\"\nSHA,Shorthanded assists,Shorthanded assists,text,\nGWG,Game-winning goals,Game-winning goals,text,\"commonsense evidence: \nA game-winning goal (GWG) is the goal scored to put the winning team in excess of the losing team's final score.\ncommonsense evidence:\nif a player gets more GWG, it means this player is more trustworthy in the critical moment.\"\nGTG,Game-tying goals,Game-tying goals,text,A game-tying goal (GWG) is the goal scored to put the winning team in the ties of the losing team's final score\nSOG,Shots on goal,Shots on goal,text,\"commonsense evidence:\na shot that enters the goal or would have entered the goal if it had not been blocked by the goalkeeper or another defensive player.\"\nPostGP,Postseason games played,Postseason games played,text,\nPostG,Postseason goals,Postseason goals,text,\nPostA,Postseason assists,Postseason assists,text,\nPostPts,Postseason points,Postseason points,text,\nPostPIM,Postseason penalty minutes,Postseason penalty minutes,text,\nPost+/-,Postseason Plus / minus,Postseason Plus / minus,text,\nPostPPG,Postseason power play goals,Postseason power play goals,text,\nPostPPA,Postseason power play assists,Postseason power play assists,text,\nPostSHG,Postseason Shorthanded goals,Postseason Shorthanded goals,text,\nPostSHA,Postseason Shorthanded assists,Postseason Shorthanded assists,text,\nPostGWG,Postseason game-winning goals,Postseason game-winning goals,text,\nPostSOG,Postseason shots on goal,Postseason shots on goal,text,",
"table": "Scoring"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nplayerID,,,integer,\nyear,,year,integer,\"2005-06 listed as \"\"2005\"\"\"\nstint,,stint,text,\ntmID,team ID,team abbreviated name,integer,\nW,Wins,Wins,integer,\nL,Loses,Loses,integer,\nSA,Shots against,Shots against,integer,\"commonsense evidence: \n“Shot Against” are the number of shots recorded while the goalie is on the ice.\"\nGA,Goals against,Goals against,integer,\"commonsense evidence: \n“Goals Against” are the number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.\"",
"table": "GoaliesShootout"
}
] |
talkingdata | [
{
"create_sql": "CREATE TABLE `app_all`\n(\n `app_id` INTEGER NOT NULL,\n PRIMARY KEY (`app_id`)\n);",
"table": "app_all"
},
{
"create_sql": "CREATE TABLE `app_events` (\n `event_id` INTEGER NOT NULL,\n `app_id` INTEGER NOT NULL,\n `is_installed` INTEGER NOT NULL,\n `is_active` INTEGER NOT NULL,\n PRIMARY KEY (`event_id`,`app_id`),\n FOREIGN KEY (`event_id`) REFERENCES `events` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE\n);",
"table": "app_events"
},
{
"create_sql": "CREATE TABLE `app_events_relevant` (\n `event_id` INTEGER NOT NULL,\n `app_id` INTEGER NOT NULL,\n `is_installed` INTEGER DEFAULT NULL,\n `is_active` INTEGER DEFAULT NULL,\n PRIMARY KEY (`event_id`,`app_id`),\n FOREIGN KEY (`event_id`) REFERENCES `events_relevant` (`event_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (`app_id`) REFERENCES `app_all` (`app_id`) ON DELETE CASCADE ON UPDATE CASCADE\n);",
"table": "app_events_relevant"
},
{
"create_sql": "CREATE TABLE `app_labels` (\n `app_id` INTEGER NOT NULL,\n `label_id` INTEGER NOT NULL,\n FOREIGN KEY (`label_id`) REFERENCES `label_categories` (`label_id`) ON DELETE CASCADE ON UPDATE CASCADE,\n FOREIGN KEY (`app_id`) REFERENCES `app_all` (`app_id`) ON DELETE CASCADE ON UPDATE CASCADE\n);",
"table": "app_labels"
},
{
"create_sql": "CREATE TABLE `events` (\n `event_id` INTEGER NOT NULL,\n `device_id` INTEGER DEFAULT NULL,\n `timestamp` DATETIME DEFAULT NULL,\n `longitude` REAL DEFAULT NULL,\n `latitude` REAL DEFAULT NULL,\n PRIMARY KEY (`event_id`)\n);",
"table": "events"
},
{
"create_sql": "CREATE TABLE `events_relevant` (\n `event_id` INTEGER NOT NULL,\n `device_id` INTEGER DEFAULT NULL,\n `timestamp` DATETIME NOT NULL,\n `longitude` REAL NOT NULL,\n `latitude` REAL NOT NULL,\n PRIMARY KEY (`event_id`),\n FOREIGN KEY (`device_id`) REFERENCES `gender_age` (`device_id`) ON DELETE CASCADE ON UPDATE CASCADE\n);",
"table": "events_relevant"
},
{
"create_sql": "CREATE TABLE `gender_age` (\n `device_id` INTEGER NOT NULL,\n `gender` TEXT DEFAULT NULL,\n `age` INTEGER DEFAULT NULL,\n `group` TEXT DEFAULT NULL,\n PRIMARY KEY (`device_id`),\n FOREIGN KEY (`device_id`) REFERENCES `phone_brand_device_model2` (`device_id`) ON DELETE CASCADE ON UPDATE CASCADE\n);",
"table": "gender_age"
},
{
"create_sql": "CREATE TABLE `gender_age_test` (\n `device_id` INTEGER NOT NULL,\n PRIMARY KEY (`device_id`)\n);",
"table": "gender_age_test"
},
{
"create_sql": "CREATE TABLE `gender_age_train` (\n `device_id` INTEGER NOT NULL,\n `gender` TEXT DEFAULT NULL,\n `age` INTEGER DEFAULT NULL,\n `group` TEXT DEFAULT NULL,\n PRIMARY KEY (`device_id`)\n);",
"table": "gender_age_train"
},
{
"create_sql": "CREATE TABLE `label_categories` (\n `label_id` INTEGER NOT NULL,\n `category` TEXT DEFAULT NULL,\n PRIMARY KEY (`label_id`)\n);",
"table": "label_categories"
},
{
"create_sql": "CREATE TABLE `phone_brand_device_model2` (\n `device_id` INTEGER NOT NULL,\n `phone_brand` TEXT NOT NULL,\n `device_model` TEXT NOT NULL,\n PRIMARY KEY (`device_id`,`phone_brand`,`device_model`)\n);",
"table": "phone_brand_device_model2"
},
{
"create_sql": "CREATE TABLE `sample_submission` (\n `device_id` INTEGER NOT NULL,\n `F23-` REAL DEFAULT NULL,\n `F24-26` REAL DEFAULT NULL,\n `F27-28` REAL DEFAULT NULL,\n `F29-32` REAL DEFAULT NULL,\n `F33-42` REAL DEFAULT NULL,\n `F43+` REAL DEFAULT NULL,\n `M22-` REAL DEFAULT NULL,\n `M23-26` REAL DEFAULT NULL,\n `M27-28` REAL DEFAULT NULL,\n `M29-31` REAL DEFAULT NULL,\n `M32-38` REAL DEFAULT NULL,\n `M39+` REAL DEFAULT NULL,\n PRIMARY KEY (`device_id`)\n);",
"table": "sample_submission"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndevice_id,device id,unique number of devices,integer,\ngender,,gender of the user who uses this device,text,\nage,,age of the user who uses this device,integer,\" M: male;\n F: female\"\ngroup,,group of the ages,text,",
"table": "gender_age"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nevent_id,,,integer,\napp_id,,,integer,\nis_installed,,,integer,\nis_active,,,integer,",
"table": "app_events_relevant"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nlabel_id,label id,unique id of label,integer,\ncategory,,category of the label,text,",
"table": "label_categories"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\napp_id,,,integer,",
"table": "app_all"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndevice_id,,,integer,\ngender,,,text,\nage,,,integer,\ngroup,,,text,",
"table": "gender_age_train"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nevent_id,event id,the id of events,integer,\napp_id,app id,the id of app users,integer,each app_id represents for an user\nis_installed,is installed,whether this app is installed or not,integer,\" 0: no\n 1: yes: installed\"\nis_active,is active,whether this user is active or not,integer,",
"table": "app_events"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndevice_id,,,integer,",
"table": "gender_age_test"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nevent_id,,,integer,\ndevice_id,,,integer,\ntimestamp,,,datetime,\nlongitude,,,real,\nlatitude,,,real,",
"table": "events_relevant"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nevent_id,event id,unique id number referring to the event,integer,\ndevice_id,device id,id number referring the device,integer,\ntimestamp,,the time of the event,datetime,\nlongitude,,longitude ,real,\"commonsense evidence:\nthe location / coordinate = (longitude, latitude)\"\nlatitude,,latitude,real,",
"table": "events"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\napp_id,app id,id of the app user,integer,\nlabel_id,label id,id of labels represents which behavior category that each user belongs to ,integer,",
"table": "app_labels"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndevice_id,device id,the id number of the device,integer,\nphone_brand,phone brand,phone brand,text,\"commonsense evidence:\nphone_brand has duplicated values since some device models belong to the same brand\"\ndevice_model,device model,device model,text,\"commonsense evidence:\nphone_brand has duplicated values since some device models belong to the same brand\"",
"table": "phone_brand_device_model2"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndevice_id,,,integer,\nF23-,,,real,\nF24-26,,,real,\nF27-28,,,real,\nF29-32,,,real,\nF33-42,,,real,\nF43+,,,real,\nM22-,,,real,\nM23-26,,,real,\nM27-28,,,real,\nM29-31,,,real,\nM32-38,,,real,\nM39+,,,real,",
"table": "sample_submission"
}
] |
movielens | [
{
"create_sql": "CREATE TABLE users\n(\n userid INTEGER default 0 not null\n primary key,\n age TEXT not null,\n u_gender TEXT not null,\n occupation TEXT not null\n);",
"table": "users"
},
{
"create_sql": "CREATE TABLE \"directors\"\n(\n directorid INTEGER not null\n primary key,\n d_quality INTEGER not null,\n avg_revenue INTEGER not null\n);",
"table": "directors"
},
{
"create_sql": "CREATE TABLE \"actors\"\n(\n actorid INTEGER not null\n primary key,\n a_gender TEXT not null,\n a_quality INTEGER not null\n);",
"table": "actors"
},
{
"create_sql": "CREATE TABLE \"movies\"\n(\n movieid INTEGER default 0 not null\n primary key,\n year INTEGER not null,\n isEnglish TEXT not null,\n country TEXT not null,\n runningtime INTEGER not null\n);",
"table": "movies"
},
{
"create_sql": "CREATE TABLE \"movies2actors\"\n(\n movieid INTEGER not null\n references movies\n on update cascade on delete cascade,\n actorid INTEGER not null\n references actors\n on update cascade on delete cascade,\n cast_num INTEGER not null,\n primary key (movieid, actorid)\n);",
"table": "movies2actors"
},
{
"create_sql": "CREATE TABLE \"movies2directors\"\n(\n movieid INTEGER not null\n references movies\n on update cascade on delete cascade,\n directorid INTEGER not null\n references directors\n on update cascade on delete cascade,\n genre TEXT not null,\n primary key (movieid, directorid)\n);",
"table": "movies2directors"
},
{
"create_sql": "CREATE TABLE \"u2base\"\n(\n userid INTEGER default 0 not null\n references users\n on update cascade on delete cascade,\n movieid INTEGER not null\n references movies\n on update cascade on delete cascade,\n rating TEXT not null,\n primary key (userid, movieid)\n);",
"table": "u2base"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ndirectorid,director id,unique identification number of actors directors,integer,\nd_quality ,director quality,director quality ,integer,\"higher value is better, lower is the worse\"\navg_revenue,average revenue,average revenue,integer,\"higher value is the higher, lower is the lower\"",
"table": "directors"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nactorid,actor id,unique identificator number of actors,integer,\na_gender,actor gender,actor gender,text,\"M: male;\nF: female\"\na_quality,actor quality,actor quality,integer,\"higher is better, lower is the worse\"",
"table": "actors"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nuserid,user id,unique identifier number of users,integer,\nage,age,age,text,\"1: 1-18 years old; \n18: 18-25 years old; \n25: 25-35 years old; \n35: 35-45 years old; \n45: 45-50 years old; \n50: 50-56 years old; \n56: over 56 years old\"\nu_gender,user gender,user gender,text,M / F: Male / Female\noccupation ,,occupation,text,",
"table": "users"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovieid,movie id,identifier number of movies,integer,\ndirectorid,director id,identifier number of directors,integer,\ngenre,genre,genre of movies,text,",
"table": "movies2directors"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nuserid,user id,identifier number of users,integer,\nmovieid,movie id,identifier number of movie,integer,\nrating,rating,ratings of movies,text,\"higher value refers to higher satisfactory, each value is the rating of movies left by users.\"",
"table": "u2base"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovieid,movie id,unique identifier number of movies,integer,\nyear,year,year,integer,\"4: newest;\n\n1: oldest\n\nhigher value means newer published date\"\nisEnglish,is English,is English,text,\ncountry,,country,text,\nrunningtime,,,integer,",
"table": "movies"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nmovieid,movie id,identifier number of movies,integer,\n,,,,\nactorid,actor id,identifier number of actors,integer,\n,,,,\ncast_num,cast number,cast number,integer,",
"table": "movies2actors"
}
] |
computer_student | [
{
"create_sql": "CREATE TABLE course\n(\n course_id INTEGER\n constraint course_pk\n primary key,\n courseLevel TEXT\n);",
"table": "course"
},
{
"create_sql": "CREATE TABLE person\n(\n p_id INTEGER\n constraint person_pk\n primary key,\n professor INTEGER,\n student INTEGER,\n hasPosition TEXT,\n inPhase TEXT,\n yearsInProgram TEXT\n);",
"table": "person"
},
{
"create_sql": "CREATE TABLE \"advisedBy\"\n(\n p_id INTEGER,\n p_id_dummy INTEGER,\n constraint advisedBy_pk\n primary key (p_id, p_id_dummy),\n constraint advisedBy_person_p_id_p_id_fk\n foreign key (p_id, p_id_dummy) references person (p_id, p_id)\n);",
"table": "advisedBy"
},
{
"create_sql": "CREATE TABLE taughtBy\n(\n course_id INTEGER,\n p_id INTEGER,\n primary key (course_id, p_id),\n foreign key (p_id) references person(p_id),\n foreign key (course_id) references course(course_id)\n);",
"table": "taughtBy"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\np_id,person id,id number identifying each person,integer,\np_id_dummy,person id dummy,the id number identifying the advisor,integer,",
"table": "advisedBy"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncourse_id,course ID,the identification number identifying each course,integer,\np_id,person ID,the identification number identifying each person,integer,",
"table": "taughtBy"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncourse_id,course id,unique id number identifying courses,integer,\ncourseLevel,course level,course level,text,\"commonsense evidence:\n Level_300: basic or medium undergraduate courses.\n Level_400: high-level or harder undergraduate course.\n Level_500: professional or master/graduate courses\"",
"table": "course"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\np_id,person ID,the unique number identifying each person,integer,\nprofessor,professor,whether the person is a professor,integer,\"0: professor\n1: student\"\nstudent,student,whether the person is a student,integer,\"0: professor\n1: student\"\nhasPosition,has position,whether the person has a position in the faculty,text,\"0: the person is not a faculty member\nCommon Sense evidence:\nfaculty_aff: affiliated faculty\nfaculty_eme: faculty employee\"\ninPhase,in phase,the phase of qualification the person is undergoing,text,0: the person is not undergoing the phase of qualification\nyearsInProgram,years in program,the year of the program the person is at,text,\"0: the person is not in any programs\nCommon Sense evidence:\nyearX means the person is on the Xth year of the program\"",
"table": "person"
}
] |
college_completion | [
{
"create_sql": "CREATE TABLE institution_details\n(\n unitid INTEGER\n constraint institution_details_pk\n primary key,\n chronname TEXT,\n city TEXT,\n state TEXT,\n level TEXT,\n control TEXT,\n basic TEXT,\n hbcu TEXT,\n flagship TEXT,\n long_x REAL,\n lat_y REAL,\n site TEXT,\n student_count INTEGER,\n awards_per_value REAL,\n awards_per_state_value REAL,\n awards_per_natl_value REAL,\n exp_award_value INTEGER,\n exp_award_state_value INTEGER,\n exp_award_natl_value INTEGER,\n exp_award_percentile INTEGER,\n ft_pct REAL,\n fte_value INTEGER,\n fte_percentile INTEGER,\n med_sat_value TEXT,\n med_sat_percentile TEXT,\n aid_value INTEGER,\n aid_percentile INTEGER,\n endow_value TEXT,\n endow_percentile TEXT,\n grad_100_value REAL,\n grad_100_percentile INTEGER,\n grad_150_value REAL,\n grad_150_percentile INTEGER,\n pell_value REAL,\n pell_percentile INTEGER,\n retain_value REAL,\n retain_percentile INTEGER,\n ft_fac_value REAL,\n ft_fac_percentile INTEGER,\n vsa_year TEXT,\n vsa_grad_after4_first TEXT,\n vsa_grad_elsewhere_after4_first TEXT,\n vsa_enroll_after4_first TEXT,\n vsa_enroll_elsewhere_after4_first TEXT,\n vsa_grad_after6_first TEXT,\n vsa_grad_elsewhere_after6_first TEXT,\n vsa_enroll_after6_first TEXT,\n vsa_enroll_elsewhere_after6_first TEXT,\n vsa_grad_after4_transfer TEXT,\n vsa_grad_elsewhere_after4_transfer TEXT,\n vsa_enroll_after4_transfer TEXT,\n vsa_enroll_elsewhere_after4_transfer TEXT,\n vsa_grad_after6_transfer TEXT,\n vsa_grad_elsewhere_after6_transfer TEXT,\n vsa_enroll_after6_transfer TEXT,\n vsa_enroll_elsewhere_after6_transfer TEXT,\n similar TEXT,\n state_sector_ct INTEGER,\n carnegie_ct INTEGER,\n counted_pct TEXT,\n nicknames TEXT,\n cohort_size INTEGER\n);",
"table": "institution_details"
},
{
"create_sql": "CREATE TABLE institution_grads\n(\n unitid INTEGER,\n year INTEGER,\n gender TEXT,\n race TEXT,\n cohort TEXT,\n grad_cohort TEXT,\n grad_100 TEXT,\n grad_150 TEXT,\n grad_100_rate TEXT,\n grad_150_rate TEXT,\n foreign key (unitid) references institution_details(unitid)\n);",
"table": "institution_grads"
},
{
"create_sql": "CREATE TABLE state_sector_grads\n(\n stateid INTEGER,\n state TEXT,\n state_abbr TEXT,\n control TEXT,\n level TEXT,\n year INTEGER,\n gender TEXT,\n race TEXT,\n cohort TEXT,\n grad_cohort TEXT,\n grad_100 TEXT,\n grad_150 TEXT,\n grad_100_rate TEXT,\n grad_150_rate TEXT,\n grad_cohort_ct INTEGER,\n foreign key (state) references institution_details(state),\n foreign key (stateid) references state_sector_details(stateid)\n);",
"table": "state_sector_grads"
},
{
"create_sql": "CREATE TABLE \"state_sector_details\"\n(\n stateid INTEGER,\n state TEXT\n references institution_details (state),\n state_post TEXT,\n level TEXT,\n control TEXT,\n schools_count INTEGER,\n counted_pct TEXT,\n awards_per_state_value TEXT,\n awards_per_natl_value REAL,\n exp_award_state_value TEXT,\n exp_award_natl_value INTEGER,\n state_appr_value TEXT,\n state_appr_rank TEXT,\n grad_rate_rank TEXT,\n awards_per_rank TEXT,\n primary key (stateid, level, control)\n);",
"table": "state_sector_details"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nunitid,Unit ID number,unique Education Unit ID number,integer,\nchronname,,Institution name,text,\ncity,,Institution city,text,\nstate,,Institution state,text,\nlevel,,Level of institution,text,\"commonsense evidence:\n4-year: bachelor's degree\n2-year: associate's degree\"\ncontrol,,Control of institution,text,\"Public, \nPrivate not-for-profit, \nPrivate for-profit\"\nbasic,,Carnegie Foundation for the Advancement of Teaching Basic Classification (2010 version),text,\nhbcu,Historically Black College and Universities,Denotes Historically Black College and Universities,text,\nflagship,,Denotes Public flagship institutions,text,\nlong_x,,Institution longitude,real,\nlat_y,,Institution latitude,real,\"commonsense evidence:\ninstitute Coordinate\"\nsite,,Institution Web site address,text,\nstudent_count,student count,Total number of undergraduates in 2010,integer,\nawards_per_value,awards per value,\"Completions per 100 FTE (full-time equivalency) undergraduate students (average 2011, 2012, and 2013)\",real,\nawards_per_state_value,awards per state value,\"Completions per 100 FTE (full-time equivalency) undergraduate students, state and sector average\",real,\"commonsense evidence:\n if his institute's completion (or graduation) rate exceeds the average for the state and sector in which it belongs:\nawards_per_value > awards_per_state_value\n if his institute's completion (or graduation) rate falls below the average for the state and sector in which it belongs:\nawards_per_value < awards_per_state_value\"\nawards_per_natl_value,awards per national value,\"Completions per 100 FTE (full-time equivalency) undergraduate students, national sector average\",real,\"commonsense evidence:\n if his institute's completion (or graduation) rate exceeds the average for the nationalin which it belongs:\nawards_per_value > awards_per_natl_value\n if his institute's completion (or graduation) rate falls below the average for the state and industry in which it belongs:\nawards_per_value < awards_per_natl_value\"\nexp_award_value,expected award value,Estimated educational spending per academic award in 2013. Includes all certificates and degrees,integer,\"expenses related to instruction, research, public service, student services, academic support, institutional support, operations and maintenance. Includes all certificates and degrees\"\nexp_award_state_value,expected award state value,\"Spending per completion, state and sector average\",integer,\nexp_award_natl_value,expected award national value,\"Spending per completion, national sector average\",integer,\nexp_award_percentile,,,,\nft_pct,Full-time percentage,Percentage of undergraduates who attend full-time,real,\nfte_value,Full-time percentage,total number of full-time equivalent undergraduates,integer,\nfte_percentile,,,,\nmed_sat_value,median SAT value,Median estimated SAT value for incoming students,text,\nmed_sat_percentile,median SAT percentile,Institution's percent rank for median SAT value within sector,text,Institution's percent rank for median SAT value within sector\naid_value,aid value,The average amount of student aid going to undergraduate recipients,integer,\naid_percentile,aid percentile,Institution's percent rank for average amount of student aid going to undergraduate recipients within sector,integer,Institution's percent rank for average amount of student aid going to undergraduate recipients within sector\nendow_value,endow value,End-of-year endowment value per full-time equivalent student,text,\nendow_percentile,endow percentile,Institution's percent rank for endowment value per full-time equivalent student within sector,text,\ngrad_100_value,graduation 100 value,\"percentage of first-time, full-time, degree-seeking undergraduates who complete a degree or certificate program within 100 percent of expected time (bachelor's-seeking group at 4-year institutions)\",real,\"%, \ncommonsense evidence:\nlower means harder to graduate for bachelor\"\ngrad_100_percentile,graduation 100 percentile,Institution's percent rank for completers within 100 percent of normal time within sector,integer,\ngrad_150_value,graduation 150 value,\"percentage of first-time, full-time, degree-seeking undergraduates who complete a degree or certificate program within 150 percent of expected time (bachelor's-seeking group at 4-year institutions)\",real,\"%, \ncommonsense evidence:\nlower means harder to graduate for bachelor\"\ngrad_150_percentile,graduation 150 percentile,Institution's percent rank for completers within 150 percent of normal time within sector,integer,\npell_value,pell value,percentage of undergraduates receiving a Pell Grant,real,\npell_percentile,pell percentile,Institution's percent rank for undergraduate Pell recipients within sector,integer,\nretain_value,retain value,share of freshman students retained for a second year,real,\nretain_percentile,retain percentile,Institution's percent rank for freshman retention percentage within sector,integer,\nft_fac_value,full time faculty value,\"Percentage of employees devoted to instruction, research or public service who are full-time and do not work for an associated medical school\",real,\nft_fac_percentile,full time faculty percentile,Institution's percent rank for full-time faculty share within sector ,integer,\nvsa_year,voluntary system of accountability year,Most recent year of Student Success and Progress Rate data available from the Voluntary System of Accountability,text,\nvsa_grad_after4_first,voluntary system of accountability after 4 year first time,\"First-time, full-time students who graduated from this institution within four years\",text,\nvsa_grad_elsewhere_after4_first,voluntary system of accountability graduation elsewhere after 4 year first time,\"First-time, full-time students who graduated from another institution within four years\",text,\nvsa_enroll_after4_first,voluntary system of accountability enrollment after 4 year first time,\"First-time, full-time students who are still enrolled at this institution after four years\",text,\nvsa_enroll_elsewhere_after4_first,voluntary system of accountability enrollment elsewhere after 4 year first time,\"First-time, full-time students who are enrolled at another institution after four years\",text,\nvsa_grad_after6_first,voluntary system of accountability graduation elsewhere after 6 year first time,\"First-time, full-time students who graduated from this institution within six years\",text,null: not available\nvsa_grad_elsewhere_after6_first,voluntary system of accountability graduation elsewhere after 6 year first time,\"First-time, full-time students who graduated from another institution within six years\",text,\nvsa_enroll_after6_first,voluntary system of accountability enrollment after 6 year first time,\"First-time, full-time students who are still enrolled at this institution after six years\",text,\nvsa_enroll_elsewhere_after6_first,voluntary system of accountability enrollment elsewhere after 6 year first time,\"First-time, full-time students who are enrolled at another institution after six years\",text,\nvsa_grad_after4_transfer,voluntary system of accountability transfer after 6 year first time,Full-time transfer students who graduated from this institution within four years,text,\nvsa_grad_elsewhere_after4_transfer,voluntary system of accountability graduation elsewhere after 4 year ,Full-time transfer students who graduated from this institution within four years,text,\nvsa_enroll_after4_transfer,voluntary system of accountability enrollment after 4 years transfer,Full-time transfer students who are still enrolled at this institution after four years,text,\nvsa_enroll_elsewhere_after4_transfer,voluntary system of accountability enrollment elsewhere after 4 years transfer,Full-time transfer students who are enrolled at another institution after four years,text,\nvsa_grad_after6_transfer,voluntary system of accountability enrollment elsewhere after 6 years transfer,Full-time transfer students who graduated from this institution within six years,text,\nvsa_grad_elsewhere_after6_transfer,voluntary system of accountability graduation elsewhere after 6 years transfer,Full-time transfer students who graduated from another institution within six years,text,\nvsa_enroll_after6_transfer,voluntary system of accountability enrollment after 6 years transfer,Full-time transfer students who are still enrolled at this institution after six years,text,\nvsa_enroll_elsewhere_after6_transfer,voluntary system of accountability enrollment elsewhere after 6 years transfer,Full-time transfer students who are enrolled at another institution after six years,text,\nsimilar,,,,\nstate_sector_ct,,,,\ncarnegie_ct,,,,\ncounted_pct,,,,\nnicknames,,,,\ncohort_size,,,,",
"table": "institution_details"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstateid,state id,state FIPS (Federal Information Processing System) code,integer,\nstate,state name ,state name ,text,\nstate_post,,,,\nlevel,,Level of institution,text,\"commonsense evidence:\n4-year: bachelor's degree\n2-year: associate's degree\"\ncontrol,,,text,\"Public, \nPrivate not-for-profit, \nPrivate for-profit\"\nschools_count,,,,\ncounted_pct,counted percentage,\"Percentage of students in the entering class (Fall 2007 at 4-year institutions, Fall 2010 at 2-year institutions) who are first-time, full-time, degree-seeking students and generally part of the official graduation rate\",text,\nawards_per_state_value,awards per state value,\"Completions per 100 FTE (full-time equivalent) undergraduate students, state and sector average\",text,\nawards_per_natl_value,awards per national value,\"Completions per 100 FTE (full-time equivalent) undergraduate students, national sector average\",real,\nexp_award_state_value,expected award state value,\"Spending per completion, state and sector average \",text,\nexp_award_natl_value,expected award national value,\"Spending per completion, national sector average\",integer,\nstate_appr_value,state appropriation value,State appropriations to higher education in fiscal year 2011 per resident,text,\nstate_appr_rank,,,,\ngrad_rate_rank,,,,\nawards_per_rank,,,,",
"table": "state_sector_details"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nunitid,unit id,Education Unit ID number,integer,\nyear,,year of data release,integer,\ngender,,gender of students,text,'B' = both genders; 'M' = male; 'F' = female\nrace,,race/ethnicity of students,text,\"commonsense evidence:\n'X' = all students; 'Ai' = American Indian; 'A' = Asian; 'B' = Black; 'H' = Hispanic; 'W' = White\"\ncohort,,degree-seeking cohort type,text,\"commonsense evidence:\n '4y bach' = Bachelor's/equivalent-seeking cohort at 4-year institutions; \n '4y other' = Students seeking another type of degree or certificate at a 4-year institution; \n '2y all' = Degree-seeking students at 2-year institutions\n4-year degree is bachelor's degree\n2-year degree is associate's degree\"\ngrad_cohort,graduation cohort,\"Number of first-time, full-time, degree-seeking students in the cohort being tracked, minus any exclusions\",text,\ngrad_100,graduation 100,Number of students who graduated within 100 percent of normal/expected time,text,\ngrad_150,graduation 150,Number of students who graduated within 150 percent of normal/expected time,text,\ngrad_100_rate,grad_100_rate,Percentage of students who graduated within 100 percent of normal/expected time,text,\ngrad_150_rate,grad_150_rate,Percentage of students who graduated within 150 percent of normal/expected time,text,",
"table": "institution_grads"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nstateid,state id,state FIPS (Federal Information Processing System) code,integer,\nstate,state name ,state name ,text,\nstate_abbr,,,,\ncontrol,,,text,\"Public, \nPrivate not-for-profit, \nPrivate for-profit\"\nlevel,,Level of institution,text,\"commonsense evidence:\n4-year: bachelor's degree\n2-year: associate's degree\"\nyear,,year of data release,integer,\ngender,,gender of students,text,B' = both genders; 'M' = male; 'F' = female\nrace,,race/ethnicity of students,text,\"commonsense evidence:\n'X' = all students; 'Ai' = American Indian; 'A' = Asian; 'B' = Black; 'H' = Hispanic; 'W' = White\"\ncohort,,degree-seeking cohort type,text,\"commonsense evidence:\n '4y bach' = Bachelor's/equivalent-seeking cohort at 4-year institutions; \n '4y other' = Students seeking another type of degree or certificate at a 4-year institution; \n '2y all' = Degree-seeking students at 2-year institutions\n4-year degree is bachelor's degree\n2-year degree is associate's degree\"\ngrad_cohort,graduation cohort,\"Number of first-time, full-time, degree-seeking students in the cohort being tracked, minus any exclusions\",text,\ngrad_100,graduation 100,Number of students who graduated within 100 percent of normal/expected time,text,\ngrad_150,graduation 150,Number of students who graduated within 150 percent of normal/expected time,text,\ngrad_100_rate,grad_100_rate,Percentage of students who graduated within 100 percent of normal/expected time,text,\ngrad_150_rate,grad_150_rate,Percentage of students who graduated within 150 percent of normal/expected time,text,\ngrad_cohort_ct,graduation cohort count,Number of institutions with data included in the cohort,integer,",
"table": "state_sector_grads"
}
] |
craftbeer | [
{
"create_sql": "CREATE TABLE breweries\n(\n id INTEGER not null\n primary key,\n name TEXT null,\n city TEXT null,\n state TEXT null\n);",
"table": "breweries"
},
{
"create_sql": "CREATE TABLE \"beers\"\n(\n id INTEGER not null\n primary key,\n brewery_id INTEGER not null\n constraint beers_ibfk_1\n references breweries,\n abv REAL,\n ibu REAL,\n name TEXT not null,\n style TEXT,\n ounces REAL not null\n);",
"table": "beers"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,id,unique ID of the breweries,integer,\nname,name,name of the breweries,text,\ncity,,city,text,\nstate,,state,text,",
"table": "Breweries"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,unique id number of beers,integer,\nbrewery_id,brewery id,id number of the breweries,integer ,\nabv,alcohol by volume,alcohol by volume,text,Alcohol by VolumeABV is the most common measurement of alcohol content in beer; it simply indicates how much of the total volume of liquid in a beer is made up of alcohol. \nibu,International Bitterness Units,International Bitterness Units,real,\"IBU stands for International Bitterness Units, a scale to gauge the level of a beer's bitterness. More specifically, IBUs measure the parts per million of is humulone from hops in a beer, which gives beer bitterness.\"\nname,,name of beers,text,\nstyle,,style / sorts of beers,text,\nounces,,ounces,real,",
"table": "Beers"
}
] |
shooting | [
{
"create_sql": "CREATE TABLE incidents\n(\n case_number TEXT not null\n primary key,\n date DATE not null,\n location TEXT not null,\n subject_statuses TEXT not null,\n subject_weapon TEXT not null,\n subjects TEXT not null,\n subject_count INTEGER not null,\n officers TEXT not null\n\n);",
"table": "incidents"
},
{
"create_sql": "CREATE TABLE officers\n(\n case_number TEXT not null,\n race TEXT null,\n gender TEXT not null,\n last_name TEXT not null,\n first_name TEXT null,\n full_name TEXT not null,\n foreign key (case_number) references incidents (case_number)\n);",
"table": "officers"
},
{
"create_sql": "CREATE TABLE subjects\n(\n case_number TEXT not null,\n race TEXT not null,\n gender TEXT not null,\n last_name TEXT not null,\n first_name TEXT null,\n full_name TEXT not null,\n foreign key (case_number) references incidents (case_number)\n);",
"table": "subjects"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncase_number,case number,case number,text,\nrace,race,race,text,\ngender,,gender,text,\"M: male;\n\nF: female\"\nlast_name,last name,last name,text,\nfirst_name,first name,first name,text,\nfull_name,full name,full name,text,",
"table": "officers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncase_number,case number,case number,text,\nrace,race,race,text,\ngender,,gender,text,\"M: male;\n\nF: female\"\nlast_name,last name,last name,text,\nfirst_name,first name,first name,text,\nfull_name,full name,full name,text,",
"table": "subjects"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncase_number,case number,case number,text,\ndate,,date,date,\nlocation,,location,text,\nsubject_statuses,subject statuses,statuses of the victims ,text,\nsubject_weapon,subject weapon,subject weapon,text,\nsubjects,,subjects,text,\nsubject_count,,subject_count,integer,\nofficers,,officers,text,",
"table": "Incidents"
}
] |
restaurant | [
{
"create_sql": "CREATE TABLE geographic\n(\n city TEXT not null\n primary key,\n county TEXT null,\n region TEXT null\n);",
"table": "geographic"
},
{
"create_sql": "CREATE TABLE generalinfo\n(\n id_restaurant INTEGER not null\n primary key,\n label TEXT null,\n food_type TEXT null,\n city TEXT null,\n review REAL null,\n foreign key (city) references geographic(city)\n on update cascade on delete cascade\n);",
"table": "generalinfo"
},
{
"create_sql": "CREATE TABLE location\n(\n id_restaurant INTEGER not null\n primary key,\n street_num INTEGER null,\n street_name TEXT null,\n city TEXT null,\n foreign key (city) references geographic (city)\n on update cascade on delete cascade,\n foreign key (id_restaurant) references generalinfo (id_restaurant)\n on update cascade on delete cascade\n);",
"table": "location"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description,Unnamed: 5,Unnamed: 6\nid_restaurant,id restaurant,the unique id for the restaurant,integer,,,\nstreet_num,street number,the street number of the restaurant,integer,,,\nstreet_name,street name,the street name of the restaurant,text,,,\ncity,,the city where the restaurant is located in,text,,,\n,,,,,,\n,,,,,,\n,,,,,,\n,,,,,,\n,,,,,,",
"table": "location"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid_restaurant,id restaurant,the unique id for the restaurant,integer,\nlabel,,the label of the restaurant,text,\nfood_type,food type,the food type,text,\ncity,,the city where the restaurant is located in,text,\nreview,,the review of the restaurant,real,\"commonsense evidence:\nthe review rating is from 0.0 to 5.0\nThe high review rating is positively correlated with the overall level of the restaurant. The restaurant with higher review rating is usually more popular among diners. \"",
"table": "generalinfo"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ncity,,the city,text,\ncounty,country,the country the city belongs to,text,\nregion,,corresponding regions,text,",
"table": "geographic"
}
] |
retails | [
{
"create_sql": "CREATE TABLE `customer` (\n `c_custkey` INTEGER NOT NULL,\n `c_mktsegment` TEXT DEFAULT NULL,\n `c_nationkey` INTEGER DEFAULT NULL,\n `c_name` TEXT DEFAULT NULL,\n `c_address` TEXT DEFAULT NULL,\n `c_phone` TEXT DEFAULT NULL,\n `c_acctbal` REAL DEFAULT NULL,\n `c_comment` TEXT DEFAULT NULL,\n PRIMARY KEY (`c_custkey`),\n FOREIGN KEY (`c_nationkey`) REFERENCES `nation` (`n_nationkey`) ON DELETE CASCADE ON UPDATE CASCADE\n);",
"table": "customer"
},
{
"create_sql": "CREATE TABLE lineitem\n(\n l_shipdate DATE null,\n l_orderkey INTEGER not null,\n l_discount REAL not null,\n l_extendedprice REAL not null,\n l_suppkey INTEGER not null,\n l_quantity INTEGER not null,\n l_returnflag TEXT null,\n l_partkey INTEGER not null,\n l_linestatus TEXT null,\n l_tax REAL not null,\n l_commitdate DATE null,\n l_receiptdate DATE null,\n l_shipmode TEXT null,\n l_linenumber INTEGER not null,\n l_shipinstruct TEXT null,\n l_comment TEXT null,\n primary key (l_orderkey, l_linenumber),\n foreign key (l_orderkey) references orders (o_orderkey)\n on update cascade on delete cascade,\n foreign key (l_partkey, l_suppkey) references partsupp (ps_partkey, ps_suppkey)\n on update cascade on delete cascade\n);",
"table": "lineitem"
},
{
"create_sql": "CREATE TABLE nation\n(\n n_nationkey INTEGER not null\n primary key,\n n_name TEXT null,\n n_regionkey INTEGER null,\n n_comment TEXT null,\n foreign key (n_regionkey) references region (r_regionkey)\n on update cascade on delete cascade\n);",
"table": "nation"
},
{
"create_sql": "CREATE TABLE orders\n(\n o_orderdate DATE null,\n o_orderkey INTEGER not null\n primary key,\n o_custkey INTEGER not null,\n o_orderpriority TEXT null,\n o_shippriority INTEGER null,\n o_clerk TEXT null,\n o_orderstatus TEXT null,\n o_totalprice REAL null,\n o_comment TEXT null,\n foreign key (o_custkey) references customer (c_custkey)\n on update cascade on delete cascade\n);",
"table": "orders"
},
{
"create_sql": "CREATE TABLE part\n(\n p_partkey INTEGER not null\n primary key,\n p_type TEXT null,\n p_size INTEGER null,\n p_brand TEXT null,\n p_name TEXT null,\n p_container TEXT null,\n p_mfgr TEXT null,\n p_retailprice REAL null,\n p_comment TEXT null\n);",
"table": "part"
},
{
"create_sql": "CREATE TABLE partsupp\n(\n ps_partkey INTEGER not null,\n ps_suppkey INTEGER not null,\n ps_supplycost REAL not null,\n ps_availqty INTEGER null,\n ps_comment TEXT null,\n primary key (ps_partkey, ps_suppkey),\n foreign key (ps_partkey) references part (p_partkey)\n on update cascade on delete cascade,\n foreign key (ps_suppkey) references supplier (s_suppkey)\n on update cascade on delete cascade\n);",
"table": "partsupp"
},
{
"create_sql": "CREATE TABLE region\n(\n r_regionkey INTEGER not null\n primary key,\n r_name TEXT null,\n r_comment TEXT null\n);",
"table": "region"
},
{
"create_sql": "CREATE TABLE supplier\n(\n s_suppkey INTEGER not null\n primary key,\n s_nationkey INTEGER null,\n s_comment TEXT null,\n s_name TEXT null,\n s_address TEXT null,\n s_phone TEXT null,\n s_acctbal REAL null,\n foreign key (s_nationkey) references nation (n_nationkey)\n);",
"table": "supplier"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nc_custkey,customer key,unique id number identifying the customer,integer,\nc_mktsegment,customer market segment,the segment of the customer,text,\nc_nationkey,customer nation key,the nation key number of the customer,integer,\nc_name,customer name,name of the customer,text,\nc_address,customer address,address of the customer,text,\nc_phone,customer phone,phone of the customer,text,\nc_acctbal,customer account balance,account balance,real,if c_acctbal < 0: this account is in debt\nc_comment,customer comment,comment of the customer,text,",
"table": "customer"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\no_orderdate,order date,date of the order,date,\"commonsense evidence:\nearlier order date --> higher priority in delivery\"\no_orderkey,order key,unique id number identifying the order,integer,\no_custkey,order customer key,customer key of order,integer,\no_orderpriority,order priority,priority rate of order,text,A smaller number means a higher priority: 0-Urgent\no_shippriority,order ship priority,ship priority of order,integer,NOT USEFUL\no_clerk,order clerk,clerk of order,text,\no_orderstatus,order status,status of order,text,NOT USEFUL\no_totalprice,order total price,total price of the order,real,\no_comment,order comment,comment description of order,text,",
"table": "orders"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\np_partkey,part key,unique id number identifying the part,integer,\np_type,part type,type of part,text,\np_size,part size,size number of part,integer,larger number --> larger part\np_brand,part brand,brand of part,text,\np_name,part name,name of part,text,\np_container,part container,container of part,text,\np_mfgr,part manufacturer,manufacturer of part,text,\np_retailprice,part retail price,retail price of part,real,\np_comment,part comment,comment description text of part,text,",
"table": "part"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nps_partkey,part supply part key,unique id number identifying the part key,integer,\nps_suppkey,part supply supply key,unique id number identifying the supply key,integer,\nps_supplycost,part supply cost,cost number of the part supply,real,\"commonsense evidence:\nprofit = (l_extendedprice*(1-l_discount)) - (ps_supplycost * l_quantity)] l_quantity comes from table lineitem!\"\nps_availqty,part supply available quantity,available quantity of the part supply,integer,if ps_availqty < 10 --> closer to OOS (out of stock)\nps_comment,part supply comment,comment description of the part supply.,text,",
"table": "partsupp"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ns_suppkey,supply key,unique id number identifying the supply,integer,\ns_nationkey,supplier nation key,nation key of the supply,integer,\ns_comment,supplier comment,comment description of the comment,text,\ns_name,supplier name,name of the supplier,text,\ns_address,supplier address,address of the supplier,text,\ns_phone,supplier phone,phone number of the supplier,text,\ns_acctbal,supplier account balance,account balance of the supplier,real,\"commonsense evidence:\nif c_acctbal < 0: this account is in debt\"",
"table": "supplier"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nn_nationkey,nation key,unique id number identifying the nation,integer,\nn_name,nation name,name of the nation,text,\nn_regionkey,nation region key,region key number of the nation,integer,\nn_comment,nation comment,comment description of nation,text,",
"table": "nation"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nl_shipdate,line item ship date,ship date of line item ,date,\nl_orderkey,line item order key,order key number of line item ,integer,\nl_discount,line item discount,discount of line item ,real,0.1: 10% off\nl_extendedprice,line item extended price,extended price of line item ,real,\"commonsense evidence:\nfull price before discount\ndiscounted price = (l_extendedprice*(1-l_discount))\"\nl_suppkey,line item suppkey,suppkey of line item ,integer,\nl_quantity,line item quantity,quantity of line item ,integer,\nl_returnflag,line item return flag,return flag of line item ,text,\"commonsense evidence:\n R ? returned item\n A and \"\"N\"\": not returned item.\"\nl_partkey,line item part key,part key of line item ,integer,\nl_linestatus,line item line status,line status of line item ,text,NOT USEFUL\nl_tax,line item tax,tax of line item ,real,\"commonsense evidence:\ncharge = l_extendedprice * (1- l_discount) * (1+ l_tax)\"\nl_commitdate,line item commit date,commit date of line item ,date,\nl_receiptdate,line item receipt date,receipt date of line item ,date,\"commonsense evidence:\nfreight / shipping / delivery time = l_receiptdate - l_commitdate;\nless shipping / delivery time --> faster shipping speed.\"\nl_shipmode,line item ship mode,ship mode of line item ,text,\nl_linenumber,line item line number,unique id number identifying the line item,integer,\nl_shipinstruct,line item ship instruct,ship instruct of line item ,text,\nl_comment,line item comment,comment of line item ,text,",
"table": "lineitem"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nr_regionkey,region key,unique id number identifying the region,integer,\nr_name,region name,name of the region,text,\nr_comment,region comment,comment description of the region,text,",
"table": "region"
}
] |
menu | [
{
"create_sql": "CREATE TABLE Dish\n(\n id INTEGER\n primary key,\n name TEXT,\n description TEXT,\n menus_appeared INTEGER,\n times_appeared INTEGER,\n first_appeared INTEGER,\n last_appeared INTEGER,\n lowest_price REAL,\n highest_price REAL\n);",
"table": "Dish"
},
{
"create_sql": "CREATE TABLE Menu\n(\n id INTEGER\n primary key,\n name TEXT,\n sponsor TEXT,\n event TEXT,\n venue TEXT,\n place TEXT,\n physical_description TEXT,\n occasion TEXT,\n notes TEXT,\n call_number TEXT,\n keywords TEXT,\n language TEXT,\n date DATE,\n location TEXT,\n location_type TEXT,\n currency TEXT,\n currency_symbol TEXT,\n status TEXT,\n page_count INTEGER,\n dish_count INTEGER\n);",
"table": "Menu"
},
{
"create_sql": "CREATE TABLE MenuPage\n(\n id INTEGER\n primary key,\n menu_id INTEGER,\n page_number INTEGER,\n image_id REAL,\n full_height INTEGER,\n full_width INTEGER,\n uuid TEXT,\n foreign key (menu_id) references Menu(id)\n);",
"table": "MenuPage"
},
{
"create_sql": "CREATE TABLE MenuItem\n(\n id INTEGER\n primary key,\n menu_page_id INTEGER,\n price REAL,\n high_price REAL,\n dish_id INTEGER,\n created_at TEXT,\n updated_at TEXT,\n xpos REAL,\n ypos REAL,\n foreign key (dish_id) references Dish(id),\n foreign key (menu_page_id) references MenuPage(id)\n);",
"table": "MenuItem"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,unique id number indicating the dishes,integer,\nname,,the name of the dish,text,\ndescription,,description of the dish ,text,(no value)\nmenus_appeared,menus appeared,how many menus have this dish ,integer,\ntimes_appeared,times appeared,how many times this dish appears in the menu,integer,\"commonsense evidence:\nif times_appeared > menus_appeard: this dish appeared in a menu more than once\"\nfirst_appeared,first appeared,the year that this dish appears first,integer,\"commonsense evidence:\n1.\tthe year outside of [1851, 2012], it means this data is not correct \n2.\tif this dish lasts longer (last_appeared - first_appeard), it means its history is long or historical / classical\"\nlast_appeared,last appeared,the year that this dish appears the last time,integer,\"commonsense evidence:\n1.\tthe year outside of [1851, 2012], it means this data is not correct\n2.\tif this dish lasts longer (last_appeared - first_appeard), it means its history is long or historical / classical\"\nlowest_price,lowest price,the lowest price of the dish,real,\"commonsense evidence:\n0: for free\"\nhighest_price,highest price,the highest price of the dish,real,",
"table": "Dish"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique id representing the menu item,integer,\nmenu_page_id,menu_page_id,the id of menu page,integer,\nprice,,the price of this dish (menu item),real,\nhigh_price,high price,high price of this dish,real,\ndish_id,dish_id,the id of the dish,integer,\ncreated_at,created at,the dates when the item was created,text,\nupdated_at,updated at,the dates when the item was updated,text,\nxpos,x position,x-axis position of the dish in this menu page,real,\nypos,y position,y-axis position of the dish in this menu page,real,",
"table": "MenuItem"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique id number indentifying the menupage,integer,\nmenu_id,menu id,the id of the menu,integer,\npage_number,page number,the page number ,integer,\nimage_id,image id,the id of the image ,real,\nfull_height,full height,full height of the menu page,integer,(mm)\nfull_width,full width,full width of the menu page,integer,(mm)\nuuid,,,text,",
"table": "MenuPage"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,,the unique number identifying the menu,integer,\nname,,the name of the menu,text,\"commonsense evidence:\n\nif the value is not null or empty, it means this menu has special dishes.\n\notherwise, this menu is general and nothing special\"\nsponsor,,the sponsor of this menu,text,\"commonsense evidence:\n\nif the value is null or empyt, it means this meanu is DIY by the restaurant.\"\nevent,,the event that the menu was created for,text,\nvenue,,the venue that the menu was created for,text,\nplace,,the location that the menu was used,text, the location that the menu was used\nphysical_description,physical description,physical description of the menu,text,\noccasion,,occasion of the menu,text,\nnotes,,notes,text,\ncall_number,,call number,text,\"commonsense evidence:\nif null: not support for taking out or booking in advance\"\nkeywords,,keywords,text,not useful\nlanguage,,language,text,not useful\ndate,,the date that this menu was created,date,\nlocation,,the location that the menu was used,text,\nlocation_type,,,text,not useful\ncurrency,,the currency that the menu was used,text,\ncurrency_symbol,,the currency symbol,text,\nstatus,,status of the menu,text,\npage_count,page count,the number of pages of this menu,integer,\ndish_count,dish count,the number of dishes of this menu,integer,",
"table": "Menu"
}
] |
university | [
{
"create_sql": "CREATE TABLE country\n(\n id INTEGER not null\n primary key,\n country_name TEXT default NULL\n);",
"table": "country"
},
{
"create_sql": "CREATE TABLE ranking_system\n(\n id INTEGER not null\n primary key,\n system_name TEXT default NULL\n);",
"table": "ranking_system"
},
{
"create_sql": "CREATE TABLE ranking_criteria\n(\n id INTEGER not null\n primary key,\n ranking_system_id INTEGER default NULL,\n criteria_name TEXT default NULL,\n foreign key (ranking_system_id) references ranking_system(id)\n);",
"table": "ranking_criteria"
},
{
"create_sql": "CREATE TABLE university\n(\n id INTEGER not null\n primary key,\n country_id INTEGER default NULL,\n university_name TEXT default NULL,\n foreign key (country_id) references country(id)\n);",
"table": "university"
},
{
"create_sql": "CREATE TABLE university_ranking_year\n(\n university_id INTEGER default NULL,\n ranking_criteria_id INTEGER default NULL,\n year INTEGER default NULL,\n score INTEGER default NULL,\n foreign key (ranking_criteria_id) references ranking_criteria(id),\n foreign key (university_id) references university(id)\n);",
"table": "university_ranking_year"
},
{
"create_sql": "CREATE TABLE university_year\n(\n university_id INTEGER default NULL,\n year INTEGER default NULL,\n num_students INTEGER default NULL,\n student_staff_ratio REAL default NULL,\n pct_international_students INTEGER default NULL,\n pct_female_students INTEGER default NULL,\n foreign key (university_id) references university(id)\n);",
"table": "university_year"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nuniversity_id,university id,id of the university,integer,\nyear,,,integer,\nnum_students,number of students,the total number of students for the year,integer,\nstudent_staff_ratio,student staff ratio,,real,commonsense evidence: student_staff_ratio = number of students / number of staff\npct_international_students,pct internation student,the percentage of international students among all students,real,commonsense evidence: pct_international_student = number of interbational students / number of students\npct_female_students,pct female students,the percentage of female students,real,commonsense evidence: pct_female_students = number of female students / number of students",
"table": "university_year"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,id,unique id number identifying ranking criteria,integer,\nranking_system_id,ranking system id,id number identifying ranking system,integer,\ncriteria_name,criteria name,name of the criteria,text,",
"table": "ranking_criteria"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nuniversity_id,university id,the id of the university,integer,\nranking_criteria_id,ranking criteria id,the id of the ranking criteria,integer,\nyear,,ranking year,integer,\nscore,,ranking score,integer,",
"table": "university_ranking_year"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,id,unique id number identifying university,integer,\ncountry_id, country id,the country where the university locates,text,\nuniversity_name,university name,name of the university,text,",
"table": "university"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,id,unique id number identifying ranking system,integer,\nsystem_name,system name,id number identifying ranking system,text,",
"table": "ranking_system"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nid,id,unique id number identifying country,integer,\ncountry_name,country name,the name of the country,text,",
"table": "country"
}
] |
image_and_language | [
{
"create_sql": "CREATE TABLE ATT_CLASSES\n(\n ATT_CLASS_ID INTEGER default 0 not null\n primary key,\n ATT_CLASS TEXT not null\n);",
"table": "ATT_CLASSES"
},
{
"create_sql": "CREATE TABLE OBJ_CLASSES\n(\n OBJ_CLASS_ID INTEGER default 0 not null\n primary key,\n OBJ_CLASS TEXT not null\n);",
"table": "OBJ_CLASSES"
},
{
"create_sql": "CREATE TABLE IMG_OBJ\n(\n IMG_ID INTEGER default 0 not null,\n OBJ_SAMPLE_ID INTEGER default 0 not null,\n OBJ_CLASS_ID INTEGER null,\n X INTEGER null,\n Y INTEGER null,\n W INTEGER null,\n H INTEGER null,\n primary key (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (OBJ_CLASS_ID) references OBJ_CLASSES (OBJ_CLASS_ID)\n);",
"table": "IMG_OBJ"
},
{
"create_sql": "CREATE TABLE IMG_OBJ_ATT\n(\n IMG_ID INTEGER default 0 not null,\n ATT_CLASS_ID INTEGER default 0 not null,\n OBJ_SAMPLE_ID INTEGER default 0 not null,\n primary key (IMG_ID, ATT_CLASS_ID, OBJ_SAMPLE_ID),\n foreign key (ATT_CLASS_ID) references ATT_CLASSES (ATT_CLASS_ID),\n foreign key (IMG_ID, OBJ_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);",
"table": "IMG_OBJ_ATT"
},
{
"create_sql": "CREATE TABLE PRED_CLASSES\n(\n PRED_CLASS_ID INTEGER default 0 not null\n primary key,\n PRED_CLASS TEXT not null\n);",
"table": "PRED_CLASSES"
},
{
"create_sql": "CREATE TABLE IMG_REL\n(\n IMG_ID INTEGER default 0 not null,\n PRED_CLASS_ID INTEGER default 0 not null,\n OBJ1_SAMPLE_ID INTEGER default 0 not null,\n OBJ2_SAMPLE_ID INTEGER default 0 not null,\n primary key (IMG_ID, PRED_CLASS_ID, OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID),\n foreign key (PRED_CLASS_ID) references PRED_CLASSES (PRED_CLASS_ID),\n foreign key (IMG_ID, OBJ1_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID),\n foreign key (IMG_ID, OBJ2_SAMPLE_ID) references IMG_OBJ (IMG_ID, OBJ_SAMPLE_ID)\n);",
"table": "IMG_REL"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nOBJ_CLASS_ID,OBJECT CLASS ID,unique id number identifying object classes,integer,\nOBJ_CLASS,OBJECT CLASS,the explanation about object classes,text,",
"table": "OBJ_CLASSES"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nPRED_CLASS_ID,PREDICTION CLASS ID,the unique prediction id for the class,integer,\nPRED_CLASS,PREDICTION CLASS,the caption for the prediction class id,text,",
"table": "PRED_CLASSES"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nIMG_ID,IMAGE ID,the id representing images,integer,\nOBJ_SAMPLE_ID,OBJECT SAMPLE ID,the id of the object sample,integer,\nOBJ_CLASS_ID,OBJECT CLASS ID,the id indicating class of the objects,integer,\nX,,x coordinate ,integer,\nY,,y coordinate ,integer,\nW,,width of the bounding box of the object,integer,\nH,,height of the bounding box of the object,integer,\"commonsense evidence:\n\nbounding box of the object: (x, y, W, H)\"",
"table": "IMG_OBJ"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nIMG_ID,IMAGE ID,id number of each image,integer,\nATT_CLASS_ID,ATTRIBUTE CLASS ID,attribute class number for image,integer,\"commonsense evidence:\n\nif one IMG_ID has many ATT_CLASS_ID, it refers to that this image has multiple attributes\"\nOBJ_SAMPLE_ID,OBJECT SAMPLE ID,object sample id,integer,\"commonsense evidence:\n\n⢠if one IMG_ID has many OBJ_SAMPLE_ID, it refers to that this image has multiple objects\n\n⢠if one ATT_CLASS_ID has many OBJ_SAMPLE_ID, it refers to that this attribute is composed of multiple objects.\"",
"table": "IMG_OBJ_ATT"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nIMG_ID,IMAGE ID,the image id ,integer,\nPRED_CLASS_ID,PREDICTION CLASS ID,the prediction relationship class between objects,integer,\"commonsense evidence:\n\nif OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID, this relationship is the self-relation.\"\nOBJ1_SAMPLE_ID,OBJECT1 SAMPLE ID,the sample id of the first object,integer,\nOBJ2_SAMPLE_ID,OBJECT2 SAMPLE ID,the sample id of the second object,integer,\"commonsense evidence:\n\nif (OBJ1_SAMPLE_ID, OBJ2_SAMPLE_ID) has multiple PRED_CLASS_ID, it means these two objects have multiple relations.\"",
"table": "IMG_REL"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nATT_CLASS_ID,ATTRIBUTE CLASS ID,the unique attribute class ids,integer,\nATT_CLASS,ATTRIBUTE CLASS,the corresponding classes for attributes,text,",
"table": "ATT_CLASSES"
}
] |
cookbook | [
{
"create_sql": "CREATE TABLE Ingredient\n(\n ingredient_id INTEGER\n primary key,\n category TEXT,\n name TEXT,\n plural TEXT\n);",
"table": "Ingredient"
},
{
"create_sql": "CREATE TABLE Recipe\n(\n recipe_id INTEGER\n primary key,\n title TEXT,\n subtitle TEXT,\n servings INTEGER,\n yield_unit TEXT,\n prep_min INTEGER,\n cook_min INTEGER,\n stnd_min INTEGER,\n source TEXT,\n intro TEXT,\n directions TEXT\n);",
"table": "Recipe"
},
{
"create_sql": "CREATE TABLE Nutrition\n(\n recipe_id INTEGER\n primary key,\n protein REAL,\n carbo REAL,\n alcohol REAL,\n total_fat REAL,\n sat_fat REAL,\n cholestrl REAL,\n sodium REAL,\n iron REAL,\n vitamin_c REAL,\n vitamin_a REAL,\n fiber REAL,\n pcnt_cal_carb REAL,\n pcnt_cal_fat REAL,\n pcnt_cal_prot REAL,\n calories REAL,\n foreign key (recipe_id) references Recipe(recipe_id)\n);",
"table": "Nutrition"
},
{
"create_sql": "CREATE TABLE Quantity\n(\n quantity_id INTEGER\n primary key,\n recipe_id INTEGER,\n ingredient_id INTEGER,\n max_qty REAL,\n min_qty REAL,\n unit TEXT,\n preparation TEXT,\n optional TEXT,\n foreign key (recipe_id) references Recipe(recipe_id),\n foreign key (ingredient_id) references Ingredient(ingredient_id),\n foreign key (recipe_id) references Nutrition(recipe_id)\n);",
"table": "Quantity"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nquantity_id,quantity id,the unique identifier for the quantity,integer,\nrecipe_id,recipe id,the id of the recipe,integer,\ningredient_id,ingredient id,the id of the ingredient,integer,\nmax_qty,maximum quantity,the max quantity of the ingredient,real,\nmin_qty,minimum quantity,the min quantity of the ingredient,real,\"commonsense evidence: If max_qty equals to min_qty, it means that the ingredient must be rationed. \"\nunit,,the unit of the ingredient,text,\npreparation,,,text,commonsense evidence: 'No data' means the ingredient doesn't need preprocessing. \noptional,,whether the ingredient is optional ,text,",
"table": "Quantity"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\ningredient_id,ingredient id,the unique identifier for the ingredient,integer,\ncategory,,the category of the ingredient,text,\nname,,the name of the ingredient,text,\nplural,,the plural suffix of the ingredient,text,",
"table": "Ingredient"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nrecipe_id,recipe id,the id of the recipe,integer,\nprotein,,the protein content in the recipe,real,\ncarbo,,the carbo content in the recipe,real,\nalcohol,,the alcohol content in the recipe,real,\ntotal_fat,total fat,the total fat content in the recipe,real,commonsense evidence: higher --> higher possibility to gain weight\nsat_fat,saturated fat,the saturated fat content in the recipe,real,commonsense evidence: unsaturated fat = total_fat - saturated fat\ncholestrl,cholesterol,the cholesterol content in the recipe,real,\nsodium,,the sodium content in the recipe,real,\"commonsense evidence:\nSalt/Sodium-Free - Less than 5 mg of sodium per serving\nVery Low Sodium - 35 mg of sodium or less per serving\nLow Sodium -140 mg of sodium or less per serving\nReduced Sodium - At least 25% less sodium than the regular product\nLight in Sodium or Lightly Salted - At least 50% less sodium than the regular product\nNo-Salt-Added or Unsalted - No salt is added during processing - but these products may not be salt/sodium-free unless stated\"\niron,,the iron content in the recipe,real,\"commonsense evidence: if iron > 20mg, it will lead to \n constipation \n feeling sick \n being sick \n stomach pain \nquestion could mention any of functions listed before.\"\nvitamin_c,vitamin c,the vitamin c content in the recipe,real,\"commonsense evidence: Vitamin C, also known as ascorbic acid, if the VC is higher, it will:\n helping to protect cells and keeping them healthy \n maintaining healthy skin, blood vessels, bones and cartilage \n helping with wound healing \nquestion could mention any of functions listed before.\"\nvitamin_a,vitamin a,the vitamin a content in the recipe,real,\"commonsense evidence:\nhigher --> beneficial to \n helping your body's natural defense against illness and infection (the immune system) work properly \n helping vision in dim light \n keeping skin and the lining of some parts of the body, such as the nose, healthy \nquestion could mention any of functions listed before.\"\nfiber,,the fiber a content in the recipe,real,\npcnt_cal_carb,percentage calculation carbo,percentage of carbo in total nutrient composition,real,\npcnt_cal_fat,percentage calculation fat,percentage of fat in total nutrient composition,real,\npcnt_cal_prot,percentage calculation protein,percentage of protein in total nutrient composition,real,\ncalories,,the calories of the recipe,real,",
"table": "Nutrition"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nrecipe_id,recipe id,the unique identifier for the recipe,integer,\ntitle,,the title of the recipe,text,\nsubtitle,,the subtitle of the recipe,text,\nservings,,the number of people the recipe can serve,integer,\nyield_unit,yield unit ,the unit of the yield for the recipe,text,\nprep_min,preparation minute,the preparation minute of the recipe,integer,\ncook_min,cooked minute,the cooked minute of the recipe,integer,\nstnd_min,stand minute,the stand minute of the price,integer,\"commonsense evidence: The stand minute stands for the time to take the dish away from the heat source. \nthe total time of the recipe = prep_min + cook_min + stnd_min\"\nsource,,the source of the recipe,text,\nintro,introduction,the introduction of the recipe,text,\ndirections,,the directions of the recipe,text,",
"table": "Recipe"
}
] |
retail_world | [
{
"create_sql": "CREATE TABLE Categories\n(\n CategoryID INTEGER PRIMARY KEY AUTOINCREMENT,\n CategoryName TEXT,\n Description TEXT\n);",
"table": "Categories"
},
{
"create_sql": "CREATE TABLE Customers\n(\n CustomerID INTEGER PRIMARY KEY AUTOINCREMENT,\n CustomerName TEXT,\n ContactName TEXT,\n Address TEXT,\n City TEXT,\n PostalCode TEXT,\n Country TEXT\n);",
"table": "Customers"
},
{
"create_sql": "CREATE TABLE Employees\n(\n EmployeeID INTEGER PRIMARY KEY AUTOINCREMENT,\n LastName TEXT,\n FirstName TEXT,\n BirthDate DATE,\n Photo TEXT,\n Notes TEXT\n);",
"table": "Employees"
},
{
"create_sql": "CREATE TABLE Shippers(\n ShipperID INTEGER PRIMARY KEY AUTOINCREMENT,\n ShipperName TEXT,\n Phone TEXT\n);",
"table": "Shippers"
},
{
"create_sql": "CREATE TABLE Suppliers(\n SupplierID INTEGER PRIMARY KEY AUTOINCREMENT,\n SupplierName TEXT,\n ContactName TEXT,\n Address TEXT,\n City TEXT,\n PostalCode TEXT,\n Country TEXT,\n Phone TEXT\n);",
"table": "Suppliers"
},
{
"create_sql": "CREATE TABLE Products(\n ProductID INTEGER PRIMARY KEY AUTOINCREMENT,\n ProductName TEXT,\n SupplierID INTEGER,\n CategoryID INTEGER,\n Unit TEXT,\n Price REAL DEFAULT 0,\n\tFOREIGN KEY (CategoryID) REFERENCES Categories (CategoryID),\n\tFOREIGN KEY (SupplierID) REFERENCES Suppliers (SupplierID)\n);",
"table": "Products"
},
{
"create_sql": "CREATE TABLE Orders(\n OrderID INTEGER PRIMARY KEY AUTOINCREMENT,\n CustomerID INTEGER,\n EmployeeID INTEGER,\n OrderDate DATETIME,\n ShipperID INTEGER,\n FOREIGN KEY (EmployeeID) REFERENCES Employees (EmployeeID),\n FOREIGN KEY (CustomerID) REFERENCES Customers (CustomerID),\n FOREIGN KEY (ShipperID) REFERENCES Shippers (ShipperID)\n);",
"table": "Orders"
},
{
"create_sql": "CREATE TABLE OrderDetails(\n OrderDetailID INTEGER PRIMARY KEY AUTOINCREMENT,\n OrderID INTEGER,\n ProductID INTEGER,\n Quantity INTEGER,\n\tFOREIGN KEY (OrderID) REFERENCES Orders (OrderID),\n\tFOREIGN KEY (ProductID) REFERENCES Products (ProductID)\n);",
"table": "OrderDetails"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nOrderID,Order ID,the unique id for orders,integer,\nCustomerID,Customer ID,the unique id for customers,text,\nEmployeeID,Employee ID,the unique id for employees,integer,\nOrderDate,Order Date,the order date,datetime,\nRequiredDate,Required Date,the required date of the order,datetime,\nShippedDate,Shipped Date,the shipped date of the order,datetime,\nShipVia,Ship Via,the shippers id,integer,\nFreight,,the freight of the product,real,\nShipName,Ship Name,name of the consignee,text,\nShipAddress,Ship Address,address ships to,text,\nShipCity,Ship City,the ship city,text,\nShipRegion,Ship Region,the ship region,text,\nShipPostalCode,Ship Postal Code,the postal code,text,\nShipCountry,Ship Country,the country ,text,\nShipperID,Shipper ID,the id of the shipper,integer",
"table": "Orders"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nSupplierID,Supplier ID,the unique id for suppliers,integer,\nSupplierName,Supplier Name,the supplier name,text,\nContactName,Contact Name,the contact person's name representing the company,text,\nContactTitle,Contact Title,the title of the contact person,text,\nAddress,,the address of the supplier,text,\nCity,,the city where the supplier is located,text,\nRegion,,the region where the supplier is located,text,\nPostalCode,Postal Code,the postal code,text,\nCountry,,the country,text,\nPhone,,the phone number,text,\nFax,,the fax number,text,\nHomePage,,the home page url of the supply company,text,",
"table": "Suppliers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nEmployeeID,Employee ID,the unique id for employees,integer,\nLastName,Last Name,the employee's last name,text,\nFirstName,First Name,the employee's first name,text,\"commonsense evidence:\nthe employee's full name is 'first_name last_name'. \n\"\nTitle,,the employee's position title,text,\nTitleOfCourtesy,Title Of Courtesy,the title of the courtesy,text,\"commonsense evidence:\n Ms.: Mr. was used as a shortening of master, a title used for men of high authority\n Dr.: it is used as a designation for a person who has obtained a doctorate (commonly a PhD).\n Mrs.: It was used as a shortening of mistress a title used for women of high rank or a woman who was the female head of a household\n Ms: an honorific used to refer to any woman, regardless of marital status\"\nBirthDate,Birth Date,the birth date of the employee,datetime,\nHireDate,Hire Date,the hire date of the employee,datetime,\nAddress,,the address of the employee,text,\nCity,,the city where the employee is located,text,\nRegion,,the region where the employee is located,text,\nPostalCode,Postal Code,the postal code ,text,\nCountry,,the country where the employee is located,text,\nHomePhone,Home Phone,employee's home phone number,text,\nExtension,,employee's extension number,text,\nPhoto,,the photo of the employee,blob,\nNotes,,some additional information of the employee,text,\nReportsTo,Reports To,the employee id that the employee directly reports to,integer,\"commonsense evidence:\nreportsto represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter\"\nPhotoPath,Photo Path,the url of the employee's photo,text,\nSalary,,the employee's salary ,real,",
"table": "Employees"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCustomerID,Customer ID,the unique id for customers,text,\nCustomerName,Customer Name,the customer name,text,\nContactName,Contact Name,the contact person's name representing the company,text,\nContactTitle,Contact Title,the title of the contact person,text,\nAddress,,the address of the customer,text,\nCity,,the city where the customer is located,text,\nRegion,,the region where the customer is located,text,\nPostalCode,Postal Code,the postal code,text,\nCountry,,the country,text,\nPhone,,the phone number,text,\nFax,,the fax number,text,",
"table": "Customers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nOrderID,Order ID,the unique id for orders,integer,\nProductID,Product ID,the unique id for products,integer,\nUnitPrice,Unit Price,the unit price of the products,real,\nQuantity,,the quantity of the ordered products,integer,\nDiscount,,the discount,real,\"commonsense evidence:\nthe total payment of the order = unit price * quantity * (1-discount)\"\nOrderDetailID,order detail id,id of the order detail,text,",
"table": "OrderDetails"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCategoryID,Category ID,the unique id for the category,integer,\nCategoryName,Category Name,the category name,text,\nDescription,,the detailed description of the category,text,\nPicture,,the picture of the category,blob,",
"table": "Categories"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nShipperID,Shipper ID,the unique id for shippers,integer,\nShipperName,Shipper Name,the shipped company name,text,\nPhone,,the phone of the company,text,",
"table": "Shippers"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nProductID,Product ID,the unique id for products,integer,\nProductName,Product Name,the name of the product,text,\nSupplierID,Supplier ID,the unique id for supplier,integer,\nCategoryID,Category ID,the unique id for the product category,integer,\nQuantityPerUnit,Quantity Per Unit,the quantity per unit of the product,text,\nUnit,,the unit of the product,text\nPrice,Price,the price,real,",
"table": "Products"
}
] |
world | [
{
"create_sql": "CREATE TABLE `City` (\n `ID` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\n `Name` TEXT NOT NULL DEFAULT '',\n `CountryCode` TEXT NOT NULL DEFAULT '',\n `District` TEXT NOT NULL DEFAULT '',\n `Population` INTEGER NOT NULL DEFAULT 0,\n FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`)\n);",
"table": "City"
},
{
"create_sql": "CREATE TABLE `Country` (\n `Code` TEXT NOT NULL DEFAULT '',\n `Name` TEXT NOT NULL DEFAULT '',\n `Continent` TEXT NOT NULL DEFAULT 'Asia',\n `Region` TEXT NOT NULL DEFAULT '',\n `SurfaceArea` REAL NOT NULL DEFAULT 0.00,\n `IndepYear` INTEGER DEFAULT NULL,\n `Population` INTEGER NOT NULL DEFAULT 0,\n `LifeExpectancy` REAL DEFAULT NULL,\n `GNP` REAL DEFAULT NULL,\n `GNPOld` REAL DEFAULT NULL,\n `LocalName` TEXT NOT NULL DEFAULT '',\n `GovernmentForm` TEXT NOT NULL DEFAULT '',\n `HeadOfState` TEXT DEFAULT NULL,\n `Capital` INTEGER DEFAULT NULL,\n `Code2` TEXT NOT NULL DEFAULT '',\n PRIMARY KEY (`Code`)\n);",
"table": "Country"
},
{
"create_sql": "CREATE TABLE `CountryLanguage` (\n `CountryCode` TEXT NOT NULL DEFAULT '',\n `Language` TEXT NOT NULL DEFAULT '',\n `IsOfficial`TEXT NOT NULL DEFAULT 'F',\n `Percentage` REAL NOT NULL DEFAULT 0.0,\n PRIMARY KEY (`CountryCode`,`Language`),\n FOREIGN KEY (`CountryCode`) REFERENCES `Country` (`Code`)\n);",
"table": "CountryLanguage"
}
] | [
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCode,,the unique country code of the country,text,\nName,,the country name,text,\nContinent,,the continent that the country locates,text,\nRegion,,the region that the country locates,text,\nSurfaceArea,Surface Area,the surface area of the country,real,\nIndepYear,Independence Year,the year that the country declared independence ,integer,\nPopulation,,the number of the population in the area,integer,\"commonsense evidence:\n\nmore population --> more crowded\"\nLifeExpectancy,Life Expectancy,the life expectancy at birth of the country,real,\"commonsense evidence:\n\n Life expectancy at birth is defined as how long, on average, a newborn can expect to live if current death rates do not change\"\nGNP,Gross National Product,the GNP of the country,real,\"commonsense evidence:\n\n GNP measures the total monetary value of the output produced by a country's residents. \"\nGNPOld,Gross National Product Old,Gross national product - old value.,real,\nLocalName,Local Name,The country's local name,text,\nGovernmentForm,Government Form,The country's goverment form.,text,\"commonsense evidence:\n\nRepublic: governmentform contains \"\"Republic\"\"\"\nHeadOfState,Head Of State,The head of state full name.,text,\nCapital,,The country's capital ,integer,\"commonsense evidence:\n\nif the capital is null, it means this country doesn't have a city where a region's government is located\"\nCode2,,The second country code.,text,",
"table": "Country"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nCountryCode,Country Code,The unique code for country ,text,\nLanguage,,Country language,text,\nIsOfficial,Is Official,Information on whether the language is official in a given country,text,T / F\nPercentage,,Percentage of language use,real,",
"table": "CountryLanguage"
},
{
"description": "original_column_name,column_name,column_description,data_format,value_description\nID,,the unique id for the city,integer,\nName,,the name of the city,text,\nCountryCode,Country Code,the country code of the country that the city is belonged,text,\nDistrict,,the district where the city locates,text,\nPopulation,,the number of the population in the area,integer,\"commonsense evidence:\n\nmore population --> more crowded\"",
"table": "City"
}
] |