Datasets:
query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
|---|---|---|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'
|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
name of county refers to county
|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
median age over 40 refers to median_age > 40
|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
"PHILLIPS" is the county; 'Montana' is the name of state
|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;
|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
population greater than 10000 in 2010 refers to population_2010 > 10000;
|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
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';
|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
the largest water area refers to MAX(water_area);
|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
"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
|
How many zip codes are under Barre, VT?
|
"Barre, VT" is the CBSA_name
|
"Alabama" and "Illinois" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
precise location refers to latitude, longitude
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
"ARECIBO" is the county; average median female age = Divide (Sum(median_female_age), Count(country))
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
"Barre, VT" is the CBSA_name
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;
|
What is the country and state of the city named Dalton?
|
Dalton is the city;
|
name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
"NEW HAVEN" is the county; male refers to male_population
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
precise location refers to latitude, longitude
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
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';
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
location coordinate refers to (latitude, longitude)
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
highest average house value refers to Max(avg_house_value)
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
the highest population in year 2020 refers to MAX(population_2020);
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
"New York" refers to state = 'NY' and name = 'New York'; 'Post Office' is the type
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
median female age of over 32 refers to median_female_age > 32
|
Which state has the most bad aliases?
|
the most bad aliases refer to MAX(COUNT(bad_alias));
|
"Lawrenceville" is the bad_alias
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
the largest water area refers to MAX(water_area);
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
postal points refer to zip_code; unique post office types refer to type = 'Unique Post Office'; Ohio is the name of the state, in which name = 'Ohio';
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
Georgia is the name of the state, in which name = 'Georgia';
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
highest number of females refers to Max(female_population)
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
over 30 employees refers to employee > 30; 'HUNTINGDON' is the county
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
congress representatives' IDs refer to CID; East Springfield is the city;
|
What is the CBSA name and type in York, ME?
|
"York" is the city; 'ME' is the state; type refers to CBSA_type
|
highest average house value refers to Max(avg_house_value)
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
over 30 employees refers to employee > 30; 'HUNTINGDON' is the county
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
AVG(elevation) where alias = 'Amherst';
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
median female age of over 32 refers to median_female_age > 32
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
"Bishopville" is the city; 'SC' is the state
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
name of congressman implies full name which refers to first_name, last_name; Guanica is the city;
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
Asian population of 7 refers to asian_population = 7;
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
"Berlin, NH" is the CBSA_name
|
Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
|
"Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
|
median age over 40 refers to median_age > 40
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
highest number of females refers to Max(female_population)
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
"PHILLIPS" is the county; 'Montana' is the name of state
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
AVG(elevation) where alias = 'Amherst';
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
name of congressman implies full name which refers to first_name, last_name; Guanica is the city;
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
"ARECIBO" is the county; highest gender ration refers to Max(Divide (male_population, female_population))
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
Georgia is the name of the state, in which name = 'Georgia';
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
postal points refer to zip_code; unique post office types refer to type = 'Unique Post Office'; Ohio is the name of the state, in which name = 'Ohio';
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
Savoy is the city;
|
Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
|
"URB San Joaquin" is the bad_alias
|
DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
population_2020 > MULTIPLY(0.97, AVG(population_2020));
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
"Bishopville" is the city; 'SC' is the state
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
"ARECIBO" is the county; highest white population refers to Max(white_population)
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
the county of Hampden is located in the state of Massachusetts.
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
"Alabama" is the name
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
"Barre, VT" is the CBSA_name
|
State the male population for all zip code which were under the Berlin, NH CBSA.
|
"Berlin, NH" is the CBSA_name
|
"Massachusetts" is the state; zip code more than 1 area code refers to Count (zip_code) > 1
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
"ARECIBO" is the county; highest gender ration refers to Max(Divide (male_population, female_population))
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
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';
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';
|
List 10 cities with a median age over 40. Include their zip codes and area codes.
|
median age over 40 refers to median_age > 40
|
"ARECIBO" is the county; total number of households refer to sum(households)
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
"Bishopville" is the city; 'SC' is the state
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
congress representatives' IDs refer to CID; East Springfield is the city;
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
the highest population in year 2020 refers to MAX(population_2020);
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
Greeneville is the city;
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
location coordinate refers to (latitude, longitude)
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
"ARECIBO" is the county; highest white population refers to Max(white_population)
|
What is the average household income in the city known as "Danzig"?
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
"Puerto Rico" refers to state = 'PR'
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
"Lawrenceville" is the bad_alias
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
the county of Hampden is located in the state of Massachusetts.
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
population greater than 10000 in 2010 refers to population_2010 > 10000;
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
median female age of over 32 refers to median_female_age > 32
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
highest average house value refers to Max(avg_house_value)
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
postal point of post office refers to type = 'Post Office';
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
"Massachusetts" is the state; zip code more than 1 area code refers to Count (zip_code) > 1
|
Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.
|
DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';
|
"Barre, VT" is the CBSA_name
|
End of preview. Expand
in Data Studio
This dataset is the triplet subset of https://huggingface.co/datasets/sentence-transformers/sql-questions with a train and test split.
The test split can be passed to TripletEvaluator.
The train and test spilts don't have any queries in common.
Here's the full script used to generate this dataset
import os
import datasets
from sklearn.model_selection import train_test_split
dataset = datasets.load_dataset(
"sentence-transformers/sql-questions", "triplet", split="train"
)
queries_unique = list({record["query"]: None for record in dataset})
# Use a dict for deterministic (insertion) order
len(queries_unique)
queries_tr, queries_te = train_test_split(
queries_unique, test_size=0.2, random_state=42
)
queries_tr = set(queries_tr)
queries_te = set(queries_te)
train_dataset = dataset.filter(lambda record: record["query"] in queries_tr)
test_dataset = dataset.filter(lambda record: record["query"] in queries_te)
assert not set(train_dataset["query"]) & set(test_dataset["query"])
assert len(train_dataset) + len(test_dataset) == len(dataset)
dataset_dict = datasets.DatasetDict({"train": train_dataset, "test": test_dataset})
dataset_dict.push_to_hub(
"aladar/sql-questions", config_name="triplet", token=os.environ["HF_TOKEN_CREATE"]
)
- Downloads last month
- 23