Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: UnexpectedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
table_id string | table_name string | column_names string |
|---|---|---|
Person-0 | BusinessEntityContact | ["bId", "PersonId", "cTypeId", "rId", "ModDate"] |
Person-1 | EmailAddress | ["BusinessEntId", "EmailId", "EAddress", "rguid", "ModifDate"] |
Person-2 | Address | ["AID", "AL1", "AL2", "ACity", "SID", "ZipCode", "ARGuid", "CDate"] |
Person-3 | Person | ["BusEntID", "PerType", "PerNameStyle", "PersonTitle", "FName", "MName", "LName", "SufxName", "EmailPromo", "AddContInfo", "Demo", "PersonGUID", "PerModDate"] |
Person-4 | BusinessEntityAddress | ["bId", "aId", "aTypeId", "rId", "ModDate"] |
Person-5 | AddressType | ["ATypeID", "Type", "ATRGuid", "ATChangeDate"] |
Person-6 | ContactType | ["CTypeID", "ContactName", "ContactTypeMDate"] |
Person-7 | CountryRegion | ["CRCode", "CRName", "CRMdate"] |
Person-8 | StateProvince | ["SPID", "SPCode", "CrCode", "IsStateProvinceFlag", "StateProvinceName", "tId", "rGuid", "ModDate"] |
Person-9 | PhoneNumberType | ["PhoneNumTypId", "PName", "PhoneModDate"] |
Person-10 | Password | ["BusinessEntId", "PasswdHash", "PasswdSalt", "rwGuid", "ChangedDate"] |
Person-11 | PersonPhone | ["BusEntID", "TelephoneNumber", "PersonPhoneNumTypeId", "ChangedDate"] |
Person-12 | BusinessEntity | ["bId", "rId", "ModDate"] |
Sales-0 | SpecialOfferProduct | ["SOPSOID", "SOPPID", "SOPRGuid", "CDate"] |
Sales-1 | CurrencyRate | ["CurrRID", "CurrRDate", "FromCurrCode", "ToCurrCode", "CurrAvgRate", "EODRate", "MDate"] |
Sales-2 | SalesTerritory | ["SalesTerrId", "SalesTerrName", "STCountryRC", "STGroup", "SalesYearToDate", "LastYearSales", "CostYearToDate", "LastYearCost", "STRowGUID", "STChangedDate"] |
Sales-3 | SalesPerson | ["BusinessEntId", "TerrId", "SalesQuota", "SalesBonus", "CommissionPct", "SalesYearToDate", "LastYearSales", "rowGuid", "ModDate"] |
Sales-4 | CountryRegionCurrency | ["CRCode", "CurrC", "CRCMdate"] |
Sales-5 | CreditCard | ["CCId", "CCCType", "CCCNumber", "CCExpM", "CCExpY", "CCMDate"] |
Sales-6 | Currency | ["CC", "CurrN", "MDate"] |
Sales-7 | SalesPersonQuotaHistory | ["BusinessEntId", "SPQDate", "SPQuota", "SalesRGUID", "ModDate"] |
Sales-8 | SalesOrderHeader | ["SOrderId", "RevNo", "OrderDay", "DueDay", "ShipDay", "SalesOrderStatus", "OnlineSalesOrderFlag", "SalesOrderNo", "PurchaseOdrNo", "AccNo", "CustId", "SalesmanId", "TerrId", "BillingAdressId", "ShippingAdressId", "ShippingMethod", "CreditCardIdentifier", "SalesCreditCardApprovalCode", "SalesCurrencyRateId", "subttl", ... |
Sales-9 | SalesOrderHeaderSalesReason | ["SalesOrderId", "SalesReasonIdentifier", "ModificationDate"] |
Sales-10 | Customer | ["CustId", "PID", "SID", "TID", "CusAcctNo", "CusRowID", "MDate"] |
Sales-11 | SalesTerritoryHistory | ["STHBusEntID", "TerrID", "STHStartDt", "EndDt", "STHRowGuid", "STHModDate"] |
Sales-12 | Store | ["bId", "StoreName", "PersonId", "Demogrphcs", "rGuid", "ModDate"] |
Sales-13 | SalesReason | ["SRID", "SRName", "SRType", "SRModDate"] |
Sales-14 | PersonCreditCard | ["BusEntID", "CCID", "ChangedDate"] |
Sales-15 | ShoppingCartItem | ["SCIID", "SCID", "QTY", "SCIPID", "CreateDate", "MDate"] |
Sales-16 | SalesTaxRate | ["STRId", "STRProvinceId", "STRTaxType", "STRTaxRate", "STRName", "STRGUID", "STRModDate"] |
Sales-17 | SalesOrderDetail | ["OrderIdForSales", "SalesOrderDId", "CTN", "OQuantity", "PId", "Id_SpecialOffer", "PricePerUnit", "UnitPriceDisc", "LinTot", "row_guid", "ModDate"] |
Sales-18 | SpecialOffer | ["SOID", "Desc", "DcntPct", "SOType", "Ctg", "SDate", "EDate", "Min", "Max", "SORGuid", "CDate"] |
dbo-0 | DimProduct | ["Prod", "AltProdKey", "Category", "WeightUnit", "SizeUnit", "EnglishProdName", "SpanProdName", "FrenchProdName", "StdCost", "FinGdFlag", "DProdColor", "SafeStockLvl", "ReorderPt", "DProdListPrice", "DProdSize", "DProdSizeRng", "DProdWeight", "DaysToMF", "ProdLine", "DProdDealerPrice", "DProdClass", "DProdStyle", "DPro... |
dbo-1 | FactInternetSales | ["ProdKey", "OrderDate", "DueDate", "ShipDate", "CustKey", "PromoKey", "Currency", "SalesRegionKey", "SalesOrderNum", "SalesOrderLnNum", "RevNum", "OrderQty", "UPrice", "ExdAmt", "UnitPriceDiscPct", "DscntAmt", "ProdStandardCost", "TotalProdCost", "SalesAmt", "TaxAmount", "Feight", "CarrierTrackNo", "CustPONo", "OrderT... |
dbo-2 | DimDepartmentGroup | ["DeptKey", "ParentDeptKey", "GrpName"] |
dbo-3 | FactAdditionalInternationalProductDescription | ["ProdKey", "CultName", "ProdDESCR"] |
dbo-4 | FactCallCenter | ["FactCCID", "FactCCDateKey", "FactCCWageType", "FactCCShift", "FactCCLvlOneOps", "FactCCLvlTwoOps", "FactCCTotOps", "FactCCCalls", "FactCCAutRSPs", "FactCCOrders", "FactCCIssuesRaised", "FactCCAvgTimePerIssue", "SGrade", "Date"] |
dbo-5 | DimAccount | ["AcctKey", "ParentAcctKey", "AcctCodeAltKey", "ParentAcctCodeAltKey", "AcctDesc", "AcctType", "DAOperator", "CustomMem", "ValType", "CustMemOpt"] |
dbo-6 | FactResellerSales | ["ProdKey", "OrderDateKey", "DueDateKey", "ShipDateKey", "Reseller", "Employee", "PromoKey", "CurrencyKey", "SalesRegionKey", "SalesOrderNo", "SalesOrderLnNo", "RevNum", "OrderQty", "UnitCost", "ExdAmt", "UnitPriceDiscPct", "DiscAmt", "ProdStandardCost", "TotalProdCost", "SalesAmt", "TaxAmt", "Freight", "CarrierTrackNo... |
dbo-7 | FactSurveyResponse | ["SurveyResKey", "DateKey", "CustKey", "ProdCat", "EnglishProdCat", "ProdSubcat", "EnglishProdSubcat", "Date"] |
dbo-8 | DimScenario | ["DScenKey", "DScenName"] |
dbo-9 | FactInternetSalesReason | ["SalesOrderNo", "SalesOrderLnNo", "SalesReason"] |
dbo-10 | FactFinance | ["FKey", "DKey", "OrgKey", "DeptGroup", "Scenario", "AcctKey", "Amt", "Date"] |
dbo-11 | NewFactCurrencyRate | ["MeanRate", "CurrencyID", "CurrDate", "EoDRate", "CurrKey", "DateKey"] |
dbo-12 | DimCustomer | ["CustKey", "GeoKey", "CustAltKey", "CustTitle", "CustFName", "mName", "lName", "nStyle", "bDate", "Status", "NameSuffix", "PersonGender", "Email", "income", "totChild", "ChildrenAtHome", "EngEd", "SpanEd", "FrEd", "EnglishOccu", "SpanOccu", "FrenchOccu", "HouseOwner", "nCars", "Addr", "Addr2", "PhoneNumber", "FirstPur... |
dbo-13 | DimReseller | ["DResKey", "DGeoKey", "DResAltKey", "DResPhone", "DResBizType", "DResName", "RNumEmployees", "DResOrderFrq", "DResOrderMonth", "DResFirstOrdYear", "DResLastOrdYear", "DResProdLine", "DResAddrLine1", "DResAddrLine2", "DResAnnuSales", "DResBankName", "DResMinPayType", "DResMinPayAmt", "DResAnnuRev", "DResYearOpened"] |
dbo-14 | DimSalesTerritory | ["DSalesTerKey", "DSalesTerAltKey", "DSalesTerRegion", "DSalesTerCountry", "DSalesTerGrp"] |
dbo-15 | ProspectiveBuyer | ["ProsBuyerKey", "ProsAltKey", "FName", "MName", "LName", "BDate", "Marriage", "Sex", "Email", "AnnualIncome", "NumChildren", "TotalChildrenHome", "EduLevel", "JobTitle", "OwnHome", "NumCars", "Address1", "Address2", "City", "State", "POCode", "Contact", "Salutation", "Unknown"] |
dbo-16 | DimCurrency | ["CurrKey", "CurrAltKey", "CurrName"] |
dbo-17 | FactCurrencyRate | ["Currency", "KeyForDate", "MeanRate", "EODRate", "Date"] |
dbo-18 | FactSalesQuota | ["SalesQuota", "EmpKey", "QDate", "CalYear", "CalQuarter", "SalesAmtQuot", "Date"] |
dbo-19 | DimProductSubcategory | ["ProdSubcatKey", "ProdSubcatAltKey", "EngProdSubcatName", "SpanProdSubcatName", "FrProdSubcatName", "SubProdCatKey"] |
dbo-20 | DimSalesReason | ["DSalesRsnKey", "DSalesRsnAltKey", "DSalesRsnName", "DSalesRsnType"] |
dbo-21 | DimEmployee | ["EmpKey", "ParentEmpKey", "EmpAltKey", "ParentEmpAltKey", "SalesRegionKey", "FName", "LName", "MName", "StyleName", "EmpTitle", "Hired", "BDay", "ID", "EAddr", "PhoneNumber", "MStat", "EmergencyContact", "EmergencyPhoneNumber", "Salaried", "EmpGender", "PayCheckFreq", "BasePay", "VacationTime", "SickTime", "Current", ... |
dbo-22 | DimProductCategory | ["ProdCatKey", "ProdCatAltKey", "EngProdCatName", "SpanProdCatName", "FrProdCatName"] |
dbo-23 | DimDate | ["DKey", "DateAltKey", "DayofWeek", "EngDayOfWeek", "SpanDayOfWeek", "FrDayOfWeek", "DayMonNum", "DayNum", "WeekNum", "EngMonth", "SpanMonth", "FrenchMon", "Month", "Qtr", "Year", "Semseter", "FiscQuarter", "FiscYear", "FiscSemester"] |
dbo-24 | DimOrganization | ["OrgKey", "ParentOrgKey", "PercentOwner", "Organization", "Currency"] |
dbo-25 | DimPromotion | ["PromoKey", "PromoAltKey", "EngPromoName", "SpanPromoName", "FrPromoName", "DProdDiscountPct", "EngPromoType", "SpanPromoType", "FrPromoType", "EngPromoCat", "SpanPromoCat", "FrPromoCat", "DPromoStateDate", "DPromoEndDate", "DPromoMinQty", "DPromoMaxQty"] |
dbo-26 | FactProductInventory | ["ProdKey", "DKey", "MovementTime", "UCost", "UnitsIn", "UnitsOut", "UnitsBal"] |
dbo-27 | DimGeography | ["LocationKey", "CityName", "StateCode", "StateName", "Country", "EngCountryName", "SpanishCountry", "FrCountry", "PCode", "SalesTerritory", "Ipv4"] |
Production-0 | Document | ["DocLvl", "DocTitle", "DocOwr", "DocFF", "DocuFileN", "DocuFileE", "DocuRvsn", "DocuChngNo", "DocuStatus", "DocSummary", "r_guid", "ChangedDate"] |
Production-1 | ScrapReason | ["SRID", "ReasonName", "ModDate"] |
Production-2 | ProductReview | ["PrdctReviewId", "pId", "rName", "rDate", "EmailAdd", "Ratng", "ProductComments", "ModDate"] |
Production-3 | WorkOrder | ["WOID", "WOPID", "WOOQ", "WOSQ", "WQScQ", "SOSDate", "WOEDate", "WODDate", "WOSRId", "WOMDate"] |
Production-4 | ProductCategory | ["PCID", "PCName", "PCRID", "ChangedDate"] |
Production-5 | ProductModelIllustration | ["pModelId", "iId", "ModDate"] |
Production-6 | ProductSubcategory | ["ProductSubcatId", "PcId", "ProductSubCatName", "rId", "ModDate"] |
Production-7 | ProductListPriceHistory | ["PLPHPID", "PLPHSDate", "EDate", "LP", "CDate"] |
Production-8 | ProductModelProductDescriptionCulture | ["pModelId", "pDescId", "cId", "ModDate"] |
Production-9 | TransactionHistory | ["tId", "pId", "ROrderId", "ROrderLineId", "tDate", "tType", "Qty", "ActCost", "ModDate"] |
Production-10 | ProductDocument | ["PDPID", "PDChangeDate"] |
Production-11 | TransactionHistoryArchive | ["tId", "pId", "ROrderId", "ROrderLineId", "tDate", "TransctnType", "Qty", "ActCost", "ModDate"] |
Production-12 | Product | ["ProdID", "ProName", "ProNum", "ProMakeFlg", "FinGoodsFlg", "PColor", "ProductSafetyStockLevel", "ProdReorderPt", "StdCost", "ProductListPrice", "ProdSize", "SizeMeasCode", "WtMeasureCode", "ProWeight", "DaysToMfg", "PLine", "PClass", "PStyle", "ProdSubCatID", "ProdModelID", "SellStDt", "SellEndDt", "DiscontdDate", "P... |
Production-13 | Illustration | ["IllstrtnId", "Diag", "ModDate"] |
Production-14 | ProductModel | ["PMID", "PMName", "CtlgDesc", "Instr", "PMRGuid", "CDate"] |
Production-15 | Culture | ["CultId", "CultName", "CultMDate"] |
Production-16 | ProductPhoto | ["prdctPhotoId", "ThFileName", "LrgPhtFileName", "ModDate"] |
Production-17 | WorkOrderRouting | ["ordrId", "PrdtId", "OprSeq", "LocaID", "SSD", "SED", "ActualSDate", "ActualEDate", "ActualResHrs", "PC", "ACost", "MDate"] |
Production-18 | ProductProductPhoto | ["pId", "prdctPhotoId", "IsPrimary", "ModDate"] |
Production-19 | ProductCostHistory | ["PCHID", "SDate", "EDate", "StdCost", "PCHChangeDate"] |
Production-20 | BillOfMaterials | ["Bid", "PassemblyId", "cId", "sDate", "eDate", "uMCode", "BomLvl", "PAssemblyQt", "ModDate"] |
Production-21 | ProductInventory | ["PIPID", "LID", "PIShelf", "PIBin", "PIQty", "PIRGuid", "ChangedDate"] |
Production-22 | Location | ["Locationidentifier", "LocationName", "CostRate", "Availblty", "ModDate"] |
Production-23 | UnitMeasure | ["uMCode", "UnitMsrName", "ModDate"] |
Production-24 | ProductDescription | ["PDID", "Desc", "PDRGUID", "CDate"] |
Purchasing-0 | PurchaseOrderDetail | ["PurchOrdrID", "PODId", "PODDate", "OrdrOty", "PrdctId", "PurchOrdrUnitP", "PurcOrdrDtlLT", "ReceQty", "PurchOrdrDtlRejQty", "PurcOrdrDetlStockQty", "PurchOrdDtlMDate"] |
Purchasing-1 | Vendor | ["bId", "ActNumber", "VendorName", "PurcVendCR", "PurcVendPVS", "PVActiveFlag", "PurcVendPWSUrl", "PurcVendMDate"] |
Purchasing-2 | PurchaseOrderHeader | ["PurchOrdrID", "RvNumber", "POHStatus", "EmpId", "VID", "ShipId", "ODate", "POHShipDate", "POHSubTtl", "POHTaxAmt", "POHFrght", "TDue", "POHMdate"] |
Purchasing-3 | ShipMethod | ["SMID", "SMName", "SBase", "SRate", "SMRID", "SMMDate"] |
Purchasing-4 | ProductVendor | ["pId", "bId", "AvgLeadtime", "StandrdPrice", "LstReceiptCost", "LstReceiptDate", "MinOrdQtry", "MxOrdrQtry", "onOrdrQtry", "uMCode", "ModDate"] |
HumanResources-0 | Department | ["DeptID", "DName", "GrpN", "MDate"] |
HumanResources-1 | Shift | ["SID", "ShiftName", "STime", "ETime", "ChangedDate"] |
HumanResources-2 | Employee | ["BusEntId", "NationId", "Login", "OrgLevel", "JobTtl", "Birthday", "Married", "Sex", "HiringDate", "SalaryFlag", "HoursOnVacation", "SickTime", "CurrentEmployeeFlag", "roww_guid", "ModificationDate"] |
HumanResources-3 | EmployeePayHistory | ["BusnsEnttyId", "RateChangeDay", "Rate", "EmployeePayFrequency", "ChangedDate"] |
HumanResources-4 | EmployeeDepartmentHistory | ["BussEnttyId", "DeptId", "ShiftId", "StartDay", "EmployeeEndDate", "ModDate"] |
HumanResources-5 | JobCandidate | ["JobCandId", "BussEnttyId", "CV", "ModDate"] |
AW
Dataset Summary
AW is a dataset for keyword search over tables (KWS-over-tables): given a short natural-language keyword query (e.g., "employee phone number"), a retrieval system must rank the tables in a corpus by their relevance to the query. The task is the table analog of text retrieval — instead of returning documents, the system returns structured tables — and is motivated by enterprise data discovery, where analysts who know roughly what they need must locate the right table in a database with many cryptically named ones.
The corpus is a modified version of the AdventureWorks Microsoft sample
database. Column names have been manually abbreviated (e.g., BusEntId,
DTPh, STRGUID) to simulate the low-information schemas common in real
enterprise data.
Relevance judgments are binary (0 or 1) and were produced by manual
inspection of every (query, table) pair in the full 96 × 15 = 1,440 Cartesian
product. The 60 pairs marked relevant (1) are listed in qrels.csv; pairs
not listed are non-relevant.
AW is one of six datasets in an evaluation suite for this task; each dataset is published as its own Hugging Face repo following the same schema.
How to Use
AW is an evaluation-only benchmark — there is no train/test split. All
rows live in a single split named all. (Hugging Face's datasets library
requires every config to declare a split; all is used here in place of the
default train label to avoid implying training data.)
from datasets import load_dataset
# Tables, queries, and binary relevance judgments
metadata = load_dataset("anhaidgroup/aw", "metadata", split="all") # 96 tables
queries = load_dataset("anhaidgroup/aw", "queries", split="all") # 15 queries
qrels = load_dataset("anhaidgroup/aw", "qrels", split="all") # 60 relevant pairs
For methods that consume tuple-level data, download the per-table tuples archive separately:
from huggingface_hub import hf_hub_download
import zipfile, pandas as pd
zip_path = hf_hub_download("anhaidgroup/aw", "tuples.zip", repo_type="dataset")
with zipfile.ZipFile(zip_path) as z:
with z.open("Tuples/Sales-17.csv") as f:
df = pd.read_csv(f)
Methods that retrieve over table metadata (table name and column names) only
need metadata, queries, and qrels. Methods that retrieve over actual
tuple values additionally need tuples.zip.
Dataset Structure
Files
| file | size | purpose |
|---|---|---|
metadata.csv |
96 rows | one row per table; identifier, name, column names |
queries.csv |
15 rows | one row per query; identifier and query text |
qrels.csv |
60 rows | binary relevance judgments (positive pairs only) |
tuples.zip |
96 inner CSVs | per-table tuple data, one CSV per table |
Schema
metadata.csv
| column | type | description |
|---|---|---|
table_id |
str | unique identifier, e.g., Person-0, Sales-17 |
table_name |
str | name from the source schema |
column_names |
str | JSON-encoded list of column names; parse with json.loads |
queries.csv
| column | type | description |
|---|---|---|
query_id |
str | unique identifier, e.g., q1, q2 |
query |
str | natural-language keyword query |
qrels.csv — positive-only convention: only relevant (query, table) pairs
are listed. Pairs not listed are treated as non-relevant.
| column | type | description |
|---|---|---|
query_id |
str | foreign key to queries.csv |
table_id |
str | foreign key to metadata.csv |
relevance_score |
int | always 1 (binary judgments) |
tuples.zip — archive of per-table CSV files.
- Inner layout:
Tuples/<table_id>.csv(one file per table). - Each inner CSV: header on row 0 (matching the
column_namesentry inmetadata.csvfor thattable_id), tuples on subsequent rows, RFC 4180 quoting. - Some tables (e.g.,
Production-2) contain multi-line quoted text fields. Use a CSV parser that respects quoting (pandas.read_csvworks); avoid line-based tools.
Statistics
96 tables span six namespaces from the source schema: Person (13),
Sales (19), dbo (28), Production (25), Purchasing (5),
HumanResources (6). Per-query relevant-table counts range from 1 to 8
(median 4).
Dataset Creation
Source Data
The corpus is built from a modified version of AdventureWorks, Microsoft's sample relational database for SQL Server demos. The schema modification is the manual abbreviation of column names — tuple values are unchanged from the original. This modified schema was originally introduced in the Columbo system to study retrieval and discovery on schemas with low-information names.
Annotations
All 1,440 candidate (query, table) pairs (96 tables × 15 queries) were
manually inspected. A pair was marked relevant (1) if the table contains
data that would satisfy the query, judged from the table name, column names,
and a sample of tuple values. Pairs not marked are non-relevant. The
positive-only convention (60 entries listed in qrels.csv, the rest treated
as non-relevant by absence) follows TREC qrels practice.
Considerations for Using the Data
Tuple downsampling
This release caps each table's tuples at 500,000 rows, applied as
df.head(500_000) against the source — the first 500k rows of each table
preserving the original ordering. Tables with fewer than 500k rows are
unaffected.
metadata.csv and qrels.csv were produced against the un-capped corpus.
Methods that rely only on table metadata (table name and column names) are
unaffected by the cap. Methods that inspect actual tuple values may produce
a deflated score relative to the same method evaluated on the un-capped
corpus, since some relevant cells in tail rows of large tables may not
appear in tuples.zip. A future release will include the un-capped tuples.
License
The dataset is released under CC-BY-4.0. You are free to share and adapt the material with attribution.
The source AdventureWorks database is a Microsoft sample.
Citation
A citation will be added once the associated paper is published.
Authors
Minh Phan, Ting Cai, AnHai Doan.
- Downloads last month
- -