Datasets:
Update README.md
Browse files123467 unmodified lines727374---dataset_info:- config_name: mined-negativefeatures:67 unmodified lines- split: trainpath: triplet/train-*---1234567891011121314151667 unmodified lines84858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145---language:- enmultilinguality:- monolingualsize_categories:- 1M<n<10Mtags:- sentence-transformerstask_categories:- feature-extraction- sentence-similaritypretty_name: SQL Questionsdataset_info:- config_name: mined-negativefeatures:67 unmodified lines- split: trainpath: triplet/train-*---# Dataset card for SQL QuestionsThis dataset is a reformatting of the [`sql_questions_triplets`](https://huggingface.co/datasets/sergeyvi4ev/sql_questions_triplets) dataset by [@sergeyvi4ev](https://huggingface.co/sergeyvi4ev), such that the dataset can be directly used to train Sentence Transformer models.## Dataset Subsets### `pair` subset* Columns: "query", "positive"* Column types: `str`, `str`* Examples:```python{'query': 'How many zip codes are under Barre, VT?','positive': '"Barre, VT" is the CBSA_name',}```* Collection strategy: Reading the SQL Questions dataset and selecting all query-positive pairs.* Deduplified: Yes### `triplet` subset* Columns: "query", "positive", "negative"* Column types: `str`, `str`, `str`* Examples:```python{'query': 'How many zip codes are under Barre, VT?','positive': '"Barre, VT" is the CBSA_name','negative': "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'"}```* Collection strategy: Reading the SQL Questions dataset and selecting all possible triplet pairs.* Deduplified: No### `mined-negative` subset* Columns: "query", "positive", "negative_1", "negative_2", "negative_3", "negative_4", "negative_5", "negative_6", "negative_7", "negative_8", "negative_9", "negative_10"* Column types: `str`, `str`, `str`, `str`, `str`, `str`, `str`, `str`, `str`, `str`, `str`, `str`* Examples:```python{"query": "How many zip codes are under Barre, VT?","positive": "\"Barre, VT\" is the CBSA_name","negative_1": "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'","negative_2": "name of county refers to county","negative_3": "median age over 40 refers to median_age > 40","negative_4": "\"PHILLIPS\" is the county; 'Montana' is the name of state","negative_5": "name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;","negative_6": "population greater than 10000 in 2010 refers to population_2010 > 10000;","negative_7": "postal points refer to zip_code; under New York-Newark-Jersey City, NY-NJ-PA refers to CBSA_name = 'New York-Newark-Jersey City, NY-NJ-PA';","negative_8": "the largest water area refers to MAX(water_area);","negative_9": "\"Wisconsin\" is the state; largest land area refers to Max(land_area); full name refers to first_name, last_name; postal code refers to zip_code","negative_10": "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))"}```* Collection strategy: Reading the SQL Questions dataset, filtering away the 15 samples that did not have 10 negative pairs, and formatting them in the described columns.* Deduplified: No
README.md+71