{"set": {"query": "How many zip codes are under Barre, VT?", "pos": ["\"Barre, VT\" is the CBSA_name"], "neg": ["coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "name of county refers to county", "median age over 40 refers to median_age > 40", "\"PHILLIPS\" is the county; 'Montana' is the name of state", "name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;", "population greater than 10000 in 2010 refers to population_2010 > 10000;", "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';", "the largest water area refers to MAX(water_area);", "\"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", "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))"]}} {"set": {"query": "What is the country and state of the city named Dalton?", "pos": ["Dalton is the city;"], "neg": ["average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county", "Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;", "precise location refers to latitude, longitude", "DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';", "the most bad aliases refer to MAX(COUNT(bad_alias));", "\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))", "\"Barre, VT\" is the CBSA_name", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;"]}} {"set": {"query": "Which state has the most bad aliases?", "pos": ["the most bad aliases refer to MAX(COUNT(bad_alias));"], "neg": ["\"NEW HAVEN\" is the county; male refers to male_population", "precise location refers to latitude, longitude", "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';", "location coordinate refers to (latitude, longitude)", "highest average house value refers to Max(avg_house_value)", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "the highest population in year 2020 refers to MAX(population_2020);", "\"New York\" refers to state = 'NY' and name = 'New York'; 'Post Office' is the type", "median female age of over 32 refers to median_female_age > 32", "\"Lawrenceville\" is the bad_alias"]}} {"set": {"query": "What is the CBSA name and type in York, ME?", "pos": ["\"York\" is the city; 'ME' is the state; type refers to CBSA_type"], "neg": ["coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "the largest water area refers to MAX(water_area);", "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';", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';", "Georgia is the name of the state, in which name = 'Georgia';", "highest number of females refers to Max(female_population)", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "over 30 employees refers to employee > 30; 'HUNTINGDON' is the county", "congress representatives' IDs refer to CID; East Springfield is the city;", "highest average house value refers to Max(avg_house_value)"]}} {"set": {"query": "Among the residential areas with the bad alias \"Internal Revenue Service\", how many of them are in the Eastern time zone?", "pos": ["\"Internal Revenue Service\" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'"], "neg": ["over 30 employees refers to employee > 30; 'HUNTINGDON' is the county", "coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';", "AVG(elevation) where alias = 'Amherst';", "median female age of over 32 refers to median_female_age > 32", "\"Bishopville\" is the city; 'SC' is the state", "name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "Asian population of 7 refers to asian_population = 7;", "\"Berlin, NH\" is the CBSA_name", "median age over 40 refers to median_age > 40"]}} {"set": {"query": "Please list the Asian populations of all the residential areas with the bad alias \"URB San Joaquin\".", "pos": ["\"URB San Joaquin\" is the bad_alias"], "neg": ["highest number of females refers to Max(female_population)", "\"PHILLIPS\" is the county; 'Montana' is the name of state", "AVG(elevation) where alias = 'Amherst';", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "Georgia is the name of the state, in which name = 'Georgia';", "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';", "Savoy is the city;", "DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';"]}} {"set": {"query": "State the male population for all zip code which were under the Berlin, NH CBSA.", "pos": ["\"Berlin, NH\" is the CBSA_name"], "neg": ["population_2020 > MULTIPLY(0.97, AVG(population_2020));", "\"Bishopville\" is the city; 'SC' is the state", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';", "the county of Hampden is located in the state of Massachusetts.", "representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);", "\"Alabama\" is the name", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "\"Barre, VT\" is the CBSA_name", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1"]}} {"set": {"query": "List 10 cities with a median age over 40. Include their zip codes and area codes.", "pos": ["median age over 40 refers to median_age > 40"], "neg": ["\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "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';", "representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';", "coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';", "\"ARECIBO\" is the county; total number of households refer to sum(households)"]}} {"set": {"query": "Among all the residential areas in Delaware, how many of them implement daylight saving?", "pos": ["\"Delaware\" is a county; implement daylight savings refers to daylight_saving = 'Yes'"], "neg": ["DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "highest average income per household refers to Max(avg_income_per_household)", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "zero employee refers to employees = 0", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "median age over 40 refers to median_age > 40", "Greeneville is the city;", "\"PHILLIPS\" is the county; 'Montana' is the name of state", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'"]}} {"set": {"query": "What is the average household income in the city known as \"Danzig\"?", "pos": ["average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';"], "neg": ["COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "\"Bishopville\" is the city; 'SC' is the state", "congress representatives' IDs refer to CID; East Springfield is the city;", "the highest population in year 2020 refers to MAX(population_2020);", "postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';", "Greeneville is the city;", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "location coordinate refers to (latitude, longitude)", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "\"Puerto Rico\" refers to state = 'PR'"]}} {"set": {"query": "Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.", "pos": ["DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';"], "neg": ["\"Lawrenceville\" is the bad_alias", "the county of Hampden is located in the state of Massachusetts.", "population greater than 10000 in 2010 refers to population_2010 > 10000;", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';", "median female age of over 32 refers to median_female_age > 32", "highest average house value refers to Max(avg_house_value)", "name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;", "postal point of post office refers to type = 'Post Office';", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "\"Barre, VT\" is the CBSA_name"]}} {"set": {"query": "What are the top 3 states with the highest Asian population? List the full names of all the representatives in the said states.", "pos": ["city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name"], "neg": ["the highest population in year 2020 refers to MAX(population_2020);", "zero employee refers to employees = 0", "postal point of post office refers to type = 'Post Office';", "median age over 40 refers to median_age > 40", "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "Asian population of 7 refers to asian_population = 7;", "\"Berlin, NH\" is the CBSA_name", "SUBTRACT(COUNT(type = 'P.O. Box Only'), COUNT(type = 'Post Office')) where area_code = 787;", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;"]}} {"set": {"query": "Provide the zip code, city, and congress representative's full names of the area which has highest population in 2020.", "pos": ["representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);"], "neg": ["\"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", "median female age of over 32 refers to median_female_age > 32", "\"Virginia\" is the state", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type", "coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "Savoy is the city;", "AVG(elevation) where alias = 'Amherst';", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "the county of Hampden is located in the state of Massachusetts."]}} {"set": {"query": "Compare the numbers of postal points under Smith Adrian and Heck Joe.", "pos": ["COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');"], "neg": ["\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "\"Berlin, NH\" is the CBSA_name", "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';", "postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';", "implement daylight savings refers to daylight_savings = 'Yes';", "the highest population in year 2020 refers to MAX(population_2020);", "median age over 40 refers to median_age > 40", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "\"PHILLIPS\" is the county; 'Montana' is the name of state"]}} {"set": {"query": "Calculate the percentage of congress representatives from the Democrat party. Among them, how many postal points are in the Hawaii state?", "pos": ["DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';"], "neg": ["population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "\"Lexington-Fayette, KY\" is the CBSA_name", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "\"ARECIBO\" is the county; total number of households refer to sum(households)", "\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "the most bad aliases refer to MAX(COUNT(bad_alias));", "DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;", "congress representatives' IDs refer to CID; East Springfield is the city;", "location coordinate refers to (latitude, longitude)"]}} {"set": {"query": "Among the cities with area code 608, how many cities implement daylight savings?", "pos": ["implement daylight savings refers to daylight_savings = 'Yes';"], "neg": ["the largest water area refers to MAX(water_area);", "name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "\"OUTAGAMIE\" is the county", "\"Barre, VT\" is the CBSA_name", "DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';", "the most bad aliases refer to MAX(COUNT(bad_alias));", "\"URB San Joaquin\" is the bad_alias", "CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;", "median age over 40 refers to median_age > 40", "\"Puerto Rico\" refers to state = 'PR'"]}} {"set": {"query": "List down the area code and country of the city named Savoy.", "pos": ["Savoy is the city;"], "neg": ["coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "name of county refers to county", "\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "highest average house value refers to Max(avg_house_value)", "\"New York\" refers to state = 'NY' and name = 'New York'; 'Post Office' is the type", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "\"OUTAGAMIE\" is the county", "central time zone refers to time_zone = 'Central'", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)"]}} {"set": {"query": "Provide the zip codes and coordinates of the postal points under Allentown-Bethlehem-Easton, PA-NJ.", "pos": ["coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';"], "neg": ["\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))", "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';", "highest average income per household refers to Max(avg_income_per_household)", "population greater than 10000 in 2010 refers to population_2010 > 10000;", "\"Alabama\" is the name", "Asian population of 7 refers to asian_population = 7;", "the most bad aliases refer to MAX(COUNT(bad_alias));", "\"Delaware\" is a county; implement daylight savings refers to daylight_saving = 'Yes'", "median age over 40 refers to median_age > 40", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';"]}} {"set": {"query": "In the state where Lisa Murkowski is the representative, how many cities have zero employees?", "pos": ["zero employee refers to employees = 0"], "neg": ["\"ARECIBO\" is the county; total number of households refer to sum(households)", "highest average income per household refers to Max(avg_income_per_household)", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "median female age of over 32 refers to median_female_age > 32", "the highest population in year 2020 refers to MAX(population_2020);", "DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';", "\"Virginia\" is the state", "the county of Hampden is located in the state of Massachusetts."]}} {"set": {"query": "Please list the zip_codes of all the residential areas in Huntingdon county with over 30 employees.", "pos": ["over 30 employees refers to employee > 30; 'HUNTINGDON' is the county"], "neg": ["\"NEW HAVEN\" is the county; male refers to male_population", "Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;", "CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;", "location coordinate refers to (latitude, longitude)", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));", "\"PHILLIPS\" is the county; 'Montana' is the name of state", "\"Puerto Rico\" refers to state = 'PR'", "precise location refers to latitude, longitude", "\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))"]}} {"set": {"query": "Name 10 cities with their states that are under the Lexington-Fayette, KY office of the Canada Border Services Agency.", "pos": ["\"Lexington-Fayette, KY\" is the CBSA_name"], "neg": ["postal point of post office refers to type = 'Post Office';", "\"Bishopville\" is the city; 'SC' is the state", "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';", "\"Puerto Rico\" refers to state = 'PR'", "\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';", "\"Berlin, NH\" is the CBSA_name", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "precise location refers to latitude, longitude", "CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;"]}} {"set": {"query": "Tell the name of the county which is represented by Hartzler Vicky.", "pos": ["name of county refers to county"], "neg": ["\"Puerto Rico\" refers to state = 'PR'", "location coordinate refers to (latitude, longitude)", "representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);", "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))", "\"Berlin, NH\" is the CBSA_name", "congress representatives' IDs refer to CID; East Springfield is the city;", "\"PHILLIPS\" is the county; 'Montana' is the name of state", "\"New York\" refers to state = 'NY' and name = 'New York'; 'Post Office' is the type", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;"]}} {"set": {"query": "Which city and state has the bad alias of Lawrenceville?", "pos": ["\"Lawrenceville\" is the bad_alias"], "neg": ["\"OUTAGAMIE\" is the county", "biggest land area refers to Max(land_area); \"SAINT CROIX\" is the county", "Dalton is the city;", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "zero employee refers to employees = 0", "DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;", "DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';", "AVG(elevation) where alias = 'Amherst';", "name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "congress representatives' IDs refer to CID; East Springfield is the city;"]}} {"set": {"query": "What is the area code of Bishopville, SC?", "pos": ["\"Bishopville\" is the city; 'SC' is the state"], "neg": ["in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type", "above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));", "\"Alabama\" is the name", "\"Puerto Rico\" refers to state = 'PR'", "highest number of females refers to Max(female_population)", "\"Lawrenceville\" is the bad_alias", "\"York\" is the city; 'ME' is the state; type refers to CBSA_type", "implement daylight savings refers to daylight_savings = 'Yes';", "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))", "\"Virginia\" is the state"]}} {"set": {"query": "Which city has the most bad aliases?", "pos": ["the most bad aliases refer to MAX(COUNT(bad_alias));"], "neg": ["\"Lexington-Fayette, KY\" is the CBSA_name", "\"ARECIBO\" is the county; total number of households refer to sum(households)", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "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';", "Asian population of 7 refers to asian_population = 7;", "\"Lawrenceville\" is the bad_alias", "above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));", "\"Virginia\" is the state", "name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type"]}} {"set": {"query": "Give at least five alias of cities with a postal point of post office.", "pos": ["postal point of post office refers to type = 'Post Office';"], "neg": ["\"Alabama\" is the name", "the highest population in year 2020 refers to MAX(population_2020);", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name", "population greater than 10000 in 2010 refers to population_2010 > 10000;", "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';", "SUBTRACT(COUNT(type = 'P.O. Box Only'), COUNT(type = 'Post Office')) where area_code = 787;", "AVG(elevation) where alias = 'Amherst';", "Greeneville is the city;", "\"NEW HAVEN\" is the county; male refers to male_population", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');"]}} {"set": {"query": "What percentage of households are in \"Coroyell\" out of its state?", "pos": ["DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;"], "neg": ["\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))", "coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';", "\"Bishopville\" is the city; 'SC' is the state", "central time zone refers to time_zone = 'Central'", "Savoy is the city;", "location coordinate refers to (latitude, longitude)", "the largest water area refers to MAX(water_area);", "Greeneville is the city;", "\"York\" is the city; 'ME' is the state; type refers to CBSA_type", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');"]}} {"set": {"query": "Provide the congress representatives' IDs of the postal points in East Springfield.", "pos": ["congress representatives' IDs refer to CID; East Springfield is the city;"], "neg": ["the county of Hampden is located in the state of Massachusetts.", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;", "\"New York\" refers to state = 'NY' and name = 'New York'; 'Post Office' is the type", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "zero employee refers to employees = 0", "DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';", "\"Lexington-Fayette, KY\" is the CBSA_name", "name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;"]}} {"set": {"query": "Provide the zip codes and area codes of the postal points with the community post office type at the elevation above 6000.", "pos": ["community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;"], "neg": ["highest average income per household refers to Max(avg_income_per_household)", "DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';", "name of county refers to county", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "\"Puerto Rico\" refers to state = 'PR'", "\"Virginia\" is the state", "\"ARECIBO\" is the county; total number of households refer to sum(households)", "representative's full names refer to first_name, last_name; postal points affiliated with Readers Digest refer to zip_code where organization = 'Readers Digest';", "zero employee refers to employees = 0", "highest number of females refers to Max(female_population)"]}} {"set": {"query": "In which county is the residential area with the highest average income per household located?", "pos": ["highest average income per household refers to Max(avg_income_per_household)"], "neg": ["\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))", "DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "population greater than 10000 in 2010 refers to population_2010 > 10000;", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type", "SUBTRACT(COUNT(type = 'P.O. Box Only'), COUNT(type = 'Post Office')) where area_code = 787;", "Savoy is the city;", "highest number of females refers to Max(female_population)", "location coordinate refers to (latitude, longitude)", "highest average house value refers to Max(avg_house_value)"]}} {"set": {"query": "Please list the bad alias of all the residential areas with a median female age of over 32.", "pos": ["median female age of over 32 refers to median_female_age > 32"], "neg": ["\"NEW HAVEN\" is the county; male refers to male_population", "the most bad aliases refer to MAX(COUNT(bad_alias));", "DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';", "\"Internal Revenue Service\" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'", "implement daylight savings refers to daylight_savings = 'Yes';", "congress representatives' IDs refer to CID; East Springfield is the city;", "\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))", "biggest land area refers to Max(land_area); \"SAINT CROIX\" is the county", "DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name"]}} {"set": {"query": "Which district has the largest land area in Wisconsin? Write the full name of the congress representative and include the postal codes.", "pos": ["\"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"], "neg": ["\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "SUBTRACT(COUNT(type = 'P.O. Box Only'), COUNT(type = 'Post Office')) where area_code = 787;", "precise location refers to latitude, longitude", "\"Alabama\" is the name", "\"York\" is the city; 'ME' is the state; type refers to CBSA_type", "over 30 employees refers to employee > 30; 'HUNTINGDON' is the county", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;", "highest average income per household refers to Max(avg_income_per_household)", "Dalton is the city;"]}} {"set": {"query": "How many counties are there in Alabama?", "pos": ["\"Alabama\" is the name"], "neg": ["name of county refers to county", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;", "postal point of post office refers to type = 'Post Office';", "\"NEW CASTLE\" is the county; 'Delaware' is the name of state", "\"OUTAGAMIE\" is the county", "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';", "Georgia is the name of the state, in which name = 'Georgia';", "the county of Hampden is located in the state of Massachusetts.", "\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))"]}} {"set": {"query": "Calculate the average number of beneficiaries per postal point in Guam.", "pos": ["DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';"], "neg": ["Georgia is the name of the state, in which name = 'Georgia';", "\"Lexington-Fayette, KY\" is the CBSA_name", "postal point of post office refers to type = 'Post Office';", "\"Berlin, NH\" is the CBSA_name", "\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))", "Asian population of 7 refers to asian_population = 7;", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county", "highest average income per household refers to Max(avg_income_per_household)", "name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type"]}} {"set": {"query": "Which zip code in Massachusetts that have more than 1 area code?", "pos": ["\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1"], "neg": ["\"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';", "DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';", "\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))", "precise location refers to latitude, longitude", "above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));", "postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';", "name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;", "the most bad aliases refer to MAX(COUNT(bad_alias));"]}} {"set": {"query": "Provide the zip codes and the alias of Greeneville.", "pos": ["Greeneville is the city;"], "neg": ["\"Internal Revenue Service\" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'", "\"Barre, VT\" is the CBSA_name", "highest number of females refers to Max(female_population)", "Dalton is the city;", "\"Lexington-Fayette, KY\" is the CBSA_name", "AVG(elevation) where alias = 'Amherst';", "Savoy is the city;", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "\"PHILLIPS\" is the county; 'Montana' is the name of state", "coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';"]}} {"set": {"query": "Calculate the average male median age of all the residential areas in Windham county.", "pos": ["average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county"], "neg": ["\"PHILLIPS\" is the county; 'Montana' is the name of state", "median female age of over 32 refers to median_female_age > 32", "representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);", "representative's full names refer to first_name, last_name; postal points affiliated with Readers Digest refer to zip_code where organization = 'Readers Digest';", "Dalton is the city;", "Greeneville is the city;", "zero employee refers to employees = 0", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;", "\"Puerto Rico\" refers to state = 'PR'"]}} {"set": {"query": "What is the average median female age of all the residential areas in the Arecibo county?", "pos": ["\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))"], "neg": ["AVG(elevation) where alias = 'Amherst';", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name", "\"Delaware\" is a county; implement daylight savings refers to daylight_saving = 'Yes'", "name of county refers to county", "Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';", "median age over 40 refers to median_age > 40", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';"]}} {"set": {"query": "Indicate the name of the country with a population greater than 10000 in 2010.", "pos": ["population greater than 10000 in 2010 refers to population_2010 > 10000;"], "neg": ["DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';", "Greeneville is the city;", "\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name", "postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';", "CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;", "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))", "DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';", "Savoy is the city;", "population_2020 > MULTIPLY(0.97, AVG(population_2020));"]}} {"set": {"query": "How many states are in the central time zone? Write their full names.", "pos": ["central time zone refers to time_zone = 'Central'"], "neg": ["average female median age refers to Divide (Sum(female_median_age), Count(county))", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name", "location coordinate refers to (latitude, longitude)", "highest average house value refers to Max(avg_house_value)", "Asian population of 7 refers to asian_population = 7;", "\"New York\" refers to state = 'NY' and name = 'New York'; 'Post Office' is the type", "median female age of over 32 refers to median_female_age > 32", "median age over 40 refers to median_age > 40", "the largest water area refers to MAX(water_area);", "\"Bishopville\" is the city; 'SC' is the state"]}} {"set": {"query": "Among the zip code under Saint Croix county, which zip code has the biggest land area?", "pos": ["biggest land area refers to Max(land_area); \"SAINT CROIX\" is the county"], "neg": ["location coordinate refers to (latitude, longitude)", "zero employee refers to employees = 0", "Greeneville is the city;", "postal point of post office refers to type = 'Post Office';", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "\"PHILLIPS\" is the county; 'Montana' is the name of state", "name of county refers to county", "\"Lawrenceville\" is the bad_alias", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name"]}} {"set": {"query": "List all the bad alias for zip codes in Puerto Rico.", "pos": ["\"Puerto Rico\" refers to state = 'PR'"], "neg": ["Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;", "the highest population in year 2020 refers to MAX(population_2020);", "\"Barre, VT\" is the CBSA_name", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name", "median female age of over 32 refers to median_female_age > 32", "name of county refers to county", "the largest water area refers to MAX(water_area);", "Dalton is the city;", "over 30 employees refers to employee > 30; 'HUNTINGDON' is the county", "highest average house value refers to Max(avg_house_value)"]}} {"set": {"query": "Provide the average elevation of the cities with alias Amherst.", "pos": ["AVG(elevation) where alias = 'Amherst';"], "neg": ["postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';", "\"URB San Joaquin\" is the bad_alias", "\"ARECIBO\" is the county; total number of households refer to sum(households)", "\"Lexington-Fayette, KY\" is the CBSA_name", "zero employee refers to employees = 0", "Greeneville is the city;", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name", "Georgia is the name of the state, in which name = 'Georgia';", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "\"Alabama\" is the name"]}} {"set": {"query": "Provide the zip codes and the congress representatives' names of the postal points which are affiliated with Readers Digest.", "pos": ["representative's full names refer to first_name, last_name; postal points affiliated with Readers Digest refer to zip_code where organization = 'Readers Digest';"], "neg": ["\"Internal Revenue Service\" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'", "representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);", "\"OUTAGAMIE\" is the county", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county", "name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "\"Puerto Rico\" refers to state = 'PR'", "DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;", "SUBTRACT(COUNT(type = 'P.O. Box Only'), COUNT(type = 'Post Office')) where area_code = 787;", "median age over 40 refers to median_age > 40", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type"]}} {"set": {"query": "Calculate the ratio between the number of representatives in Alabama and the number of representatives in Illinois.", "pos": ["\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))"], "neg": ["CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;", "Dalton is the city;", "over 30 employees refers to employee > 30; 'HUNTINGDON' is the county", "name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "implement daylight savings refers to daylight_savings = 'Yes';", "\"Lawrenceville\" is the bad_alias", "\"OUTAGAMIE\" is the county", "Savoy is the city;"]}} {"set": {"query": "How many males are there in New Haven County's residential areas?", "pos": ["\"NEW HAVEN\" is the county; male refers to male_population"], "neg": ["city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name", "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';", "above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));", "highest number of females refers to Max(female_population)", "\"Barre, VT\" is the CBSA_name", "Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;", "the most bad aliases refer to MAX(COUNT(bad_alias));", "Dalton is the city;", "\"Berlin, NH\" is the CBSA_name", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)"]}} {"set": {"query": "What is the area code of Phillips county in Montana?", "pos": ["\"PHILLIPS\" is the county; 'Montana' is the name of state"], "neg": ["representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);", "central time zone refers to time_zone = 'Central'", "\"URB San Joaquin\" is the bad_alias", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "zero employee refers to employees = 0", "highest average income per household refers to Max(avg_income_per_household)", "implement daylight savings refers to daylight_savings = 'Yes';", "location coordinate refers to (latitude, longitude)", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';", "Dalton is the city;"]}} {"set": {"query": "Which state is Outagamie County in? Give the full name of the state.", "pos": ["\"OUTAGAMIE\" is the county"], "neg": ["\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';", "average female median age refers to Divide (Sum(female_median_age), Count(county))", "DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;", "\"NEW CASTLE\" is the county; 'Delaware' is the name of state", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type", "AVG(elevation) where alias = 'Amherst';", "\"URB San Joaquin\" is the bad_alias", "the most bad aliases refer to MAX(COUNT(bad_alias));", "Asian population of 7 refers to asian_population = 7;"]}} {"set": {"query": "What is the elevation of the city belonging to Hampden, Massachusetts?", "pos": ["the county of Hampden is located in the state of Massachusetts."], "neg": ["Asian population of 7 refers to asian_population = 7;", "average female median age refers to Divide (Sum(female_median_age), Count(county))", "Georgia is the name of the state, in which name = 'Georgia';", "\"Alabama\" is the name", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type", "Savoy is the city;", "over 30 employees refers to employee > 30; 'HUNTINGDON' is the county", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "\"Puerto Rico\" refers to state = 'PR'", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'"]}} {"set": {"query": "Show the alias for the county at coordinate (18.090875, -66.867756).", "pos": ["coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'"], "neg": ["DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';", "\"URB San Joaquin\" is the bad_alias", "\"Delaware\" is a county; implement daylight savings refers to daylight_saving = 'Yes'", "the largest water area refers to MAX(water_area);", "\"OUTAGAMIE\" is the county", "above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));", "\"Lawrenceville\" is the bad_alias", "the most bad aliases refer to MAX(COUNT(bad_alias));", "location coordinate refers to (latitude, longitude)", "the most bad aliases refer to MAX(COUNT(bad_alias));"]}} {"set": {"query": "What are the states with an above-average female population?", "pos": ["above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));"], "neg": ["zero employee refers to employees = 0", "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';", "\"Bishopville\" is the city; 'SC' is the state", "SUBTRACT(COUNT(type = 'P.O. Box Only'), COUNT(type = 'Post Office')) where area_code = 787;", "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';", "postal point of post office refers to type = 'Post Office';", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "the most bad aliases refer to MAX(COUNT(bad_alias));", "Dalton is the city;", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';"]}} {"set": {"query": "What is the difference in the number of cities with P.O. box only and cities with Post Office among the cities with area code 787?", "pos": ["SUBTRACT(COUNT(type = 'P.O. Box Only'), COUNT(type = 'Post Office')) where area_code = 787;"], "neg": ["the most bad aliases refer to MAX(COUNT(bad_alias));", "the most bad aliases refer to MAX(COUNT(bad_alias));", "Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;", "\"OUTAGAMIE\" is the county", "representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);", "precise location refers to latitude, longitude", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';", "\"PHILLIPS\" is the county; 'Montana' is the name of state", "Georgia is the name of the state, in which name = 'Georgia';", "representative's full names refer to first_name, last_name; postal points affiliated with Readers Digest refer to zip_code where organization = 'Readers Digest';"]}} {"set": {"query": "Give the location coordinates of the city with area code 636.", "pos": ["location coordinate refers to (latitude, longitude)"], "neg": ["the county of Hampden is located in the state of Massachusetts.", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "\"NEW HAVEN\" is the county; male refers to male_population", "average female median age refers to Divide (Sum(female_median_age), Count(county))", "Greeneville is the city;", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "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';", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type", "name of county refers to county"]}} {"set": {"query": "How many postal points with unique post office types are there in Ohio?", "pos": ["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';"], "neg": ["congress representatives' IDs refer to CID; East Springfield is the city;", "postal point of post office refers to type = 'Post Office';", "median female age of over 32 refers to median_female_age > 32", "the largest water area refers to MAX(water_area);", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county", "\"Puerto Rico\" refers to state = 'PR'", "\"Barre, VT\" is the CBSA_name", "above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));", "DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)"]}} {"set": {"query": "Give the alias of the cities with an Asian population of 7.", "pos": ["Asian population of 7 refers to asian_population = 7;"], "neg": ["name of county refers to county", "congress representatives' IDs refer to CID; East Springfield is the city;", "the most bad aliases refer to MAX(COUNT(bad_alias));", "precise location refers to latitude, longitude", "location coordinate refers to (latitude, longitude)", "\"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", "DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';", "zero employee refers to employees = 0", "\"Virginia\" is the state", "postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';"]}} {"set": {"query": "Among all the residential areas in Arecibo county, what is the zip_code of the one with the highest white population?", "pos": ["\"ARECIBO\" is the county; highest white population refers to Max(white_population)"], "neg": ["Greeneville is the city;", "postal point of post office refers to type = 'Post Office';", "name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "\"NEW CASTLE\" is the county; 'Delaware' is the name of state", "population greater than 10000 in 2010 refers to population_2010 > 10000;", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name", "\"Lexington-Fayette, KY\" is the CBSA_name", "name of county refers to county"]}} {"set": {"query": "Indicate the name of the congressman represent in Guanica.", "pos": ["name of congressman implies full name which refers to first_name, last_name; Guanica is the city;"], "neg": ["\"Puerto Rico\" refers to state = 'PR'", "precise location refers to latitude, longitude", "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))", "the most bad aliases refer to MAX(COUNT(bad_alias));", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county", "\"NEW CASTLE\" is the county; 'Delaware' is the name of state", "AVG(elevation) where alias = 'Amherst';", "Dalton is the city;", "the most bad aliases refer to MAX(COUNT(bad_alias));", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type"]}} {"set": {"query": "List down the country of the cities with a population greater than 97% of the average population of all countries in 2020.", "pos": ["population_2020 > MULTIPLY(0.97, AVG(population_2020));"], "neg": ["COUNT(zip_code where first_name = 'Smith' and last_name = 'Adrian') > COUNT(zip_code where first_name = 'Heck' and last_name = 'Joe');", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "\"URB San Joaquin\" is the bad_alias", "\"York\" is the city; 'ME' is the state; type refers to CBSA_type", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "precise location refers to latitude, longitude", "Asian population of 7 refers to asian_population = 7;", "DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';", "DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "Greeneville is the city;"]}} {"set": {"query": "Count the number of postal points under New York-Newark-Jersey City, NY-NJ-PA.", "pos": ["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';"], "neg": ["population_2020 > MULTIPLY(0.97, AVG(population_2020));", "\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "\"Internal Revenue Service\" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'", "\"URB San Joaquin\" is the bad_alias", "\"York\" is the city; 'ME' is the state; type refers to CBSA_type", "\"NEW HAVEN\" is the county; male refers to male_population", "Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;", "implement daylight savings refers to daylight_savings = 'Yes';", "the highest population in year 2020 refers to MAX(population_2020);", "DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;"]}} {"set": {"query": "Provide the zip codes and CBSA officers of the postal point in Oxford.", "pos": ["CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;"], "neg": ["\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "implement daylight savings refers to daylight_savings = 'Yes';", "\"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", "\"Berlin, NH\" is the CBSA_name", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "precise location refers to latitude, longitude", "\"OUTAGAMIE\" is the county", "SUBTRACT(COUNT(type = 'P.O. Box Only'), COUNT(type = 'Post Office')) where area_code = 787;", "location coordinate refers to (latitude, longitude)", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';"]}} {"set": {"query": "Among the postal points in California, calculate the percentage of them in post office types.", "pos": ["DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';"], "neg": ["\"Delaware\" is a county; implement daylight savings refers to daylight_saving = 'Yes'", "the highest population in year 2020 refers to MAX(population_2020);", "precise location refers to latitude, longitude", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "the largest water area refers to MAX(water_area);", "\"Barre, VT\" is the CBSA_name", "the county of Hampden is located in the state of Massachusetts.", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "\"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", "highest average income per household refers to Max(avg_income_per_household)"]}} {"set": {"query": "Provide the population of Arecibo in 2020.", "pos": ["population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';"], "neg": ["CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;", "\"NEW HAVEN\" is the county; male refers to male_population", "\"York\" is the city; 'ME' is the state; type refers to CBSA_type", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "the most bad aliases refer to MAX(COUNT(bad_alias));", "DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';", "name of county refers to county", "\"Virginia\" is the state", "highest average income per household refers to Max(avg_income_per_household)", "Greeneville is the city;"]}} {"set": {"query": "Among the listed cities, provide the area code of the city with the largest water area.", "pos": ["the largest water area refers to MAX(water_area);"], "neg": ["congress representatives' IDs refer to CID; East Springfield is the city;", "DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';", "precise location refers to latitude, longitude", "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';", "population greater than 10000 in 2010 refers to population_2010 > 10000;", "\"Puerto Rico\" refers to state = 'PR'", "representative's full names refer to first_name, last_name; postal points affiliated with Readers Digest refer to zip_code where organization = 'Readers Digest';", "postal point of post office refers to type = 'Post Office';", "median age over 40 refers to median_age > 40"]}} {"set": {"query": "What is the highest gender ratio of the residential areas in Arecibo county?", "pos": ["\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))"], "neg": ["coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';", "the largest water area refers to MAX(water_area);", "DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;", "name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "the highest population in year 2020 refers to MAX(population_2020);", "\"Lawrenceville\" is the bad_alias", "\"NEW CASTLE\" is the county; 'Delaware' is the name of state", "AVG(elevation) where alias = 'Amherst';", "\"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"]}} {"set": {"query": "Among the postal points in Texas, provide the zip codes and cities of postal points which have total beneficiaries of above 10000.", "pos": ["Texas is the name of the state, in which name = 'Texas'; total beneficiaries of above 10000 refer to total_beneficiaries > 10000;"], "neg": ["\"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", "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';", "\"Berlin, NH\" is the CBSA_name", "\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ';", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "population greater than 10000 in 2010 refers to population_2010 > 10000;", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type", "average female median age refers to Divide (Sum(female_median_age), Count(county))"]}} {"set": {"query": "What is the total number of households in Arecibo county?", "pos": ["\"ARECIBO\" is the county; total number of households refer to sum(households)"], "neg": ["DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "\"New York\" refers to state = 'NY' and name = 'New York'; 'Post Office' is the type", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "representative's full names refer to first_name, last_name; postal points affiliated with Readers Digest refer to zip_code where organization = 'Readers Digest';", "\"Bishopville\" is the city; 'SC' is the state", "Greeneville is the city;", "\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))", "\"Puerto Rico\" refers to state = 'PR'", "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county"]}} {"set": {"query": "What are the precise locations of the cities with an area code of 787?", "pos": ["precise location refers to latitude, longitude"], "neg": ["representative's full names refer to first_name, last_name; postal points affiliated with Readers Digest refer to zip_code where organization = 'Readers Digest';", "DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "\"NEW CASTLE\" is the county; 'Delaware' is the name of state", "AVG(elevation) where alias = 'Amherst';", "congress representatives' IDs refer to CID; East Springfield is the city;", "CBSA officers refer to CBSA_name; postal point refers to zip_code; Oxford is the city;", "median age over 40 refers to median_age > 40", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "\"URB San Joaquin\" is the bad_alias", "name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;"]}} {"set": {"query": "How many counties are there in Virginia State?", "pos": ["\"Virginia\" is the state"], "neg": ["\"ARECIBO\" is the county; total number of households refer to sum(households)", "precise location refers to latitude, longitude", "\"Lexington-Fayette, KY\" is the CBSA_name", "above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));", "representative's full names refer to first_name, last_name; postal points affiliated with Readers Digest refer to zip_code where organization = 'Readers Digest';", "highest average income per household refers to Max(avg_income_per_household)", "median age over 40 refers to median_age > 40", "DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name"]}} {"set": {"query": "In which county can you find the city with the highest number of females?", "pos": ["highest number of females refers to Max(female_population)"], "neg": ["AVG(elevation) where alias = 'Amherst';", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "\"Puerto Rico\" refers to state = 'PR'", "\"NEW CASTLE\" is the county; 'Delaware' is the name of state", "representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);", "\"Barre, VT\" is the CBSA_name", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "\"ARECIBO\" is the county; highest gender ration refers to Max(Divide (male_population, female_population))", "representative's full names refer to first_name, last_name; postal points affiliated with Readers Digest refer to zip_code where organization = 'Readers Digest';", "\"PHILLIPS\" is the county; 'Montana' is the name of state"]}} {"set": {"query": "List all the zip codes in the county of New Castle in Delaware.", "pos": ["\"NEW CASTLE\" is the county; 'Delaware' is the name of state"], "neg": ["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';", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "\"ARECIBO\" is the county; total number of households refer to sum(households)", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "\"URB San Joaquin\" is the bad_alias", "\"Berlin, NH\" is the CBSA_name", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "\"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", "highest average house value refers to Max(avg_house_value)", "\"NEW HAVEN\" is the county; male refers to male_population"]}} {"set": {"query": "What is the name and the position of the CBSA officer in the city of Cabo Rojo?", "pos": ["name of the CBSA officer refers to CBSA_name; position of the CBSA officer refers to CBSA_type;"], "neg": ["population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "\"Bishopville\" is the city; 'SC' is the state", "\"OUTAGAMIE\" is the county", "\"ARECIBO\" is the county; average median female age = Divide (Sum(median_female_age), Count(country))", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "over 30 employees refers to employee > 30; 'HUNTINGDON' is the county", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "the highest population in year 2020 refers to MAX(population_2020);", "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))", "\"PHILLIPS\" is the county; 'Montana' is the name of state"]}} {"set": {"query": "What is the bad alias of the residential area with the highest average house value?", "pos": ["highest average house value refers to Max(avg_house_value)"], "neg": ["DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "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;", "implement daylight savings refers to daylight_savings = 'Yes';", "median age over 40 refers to median_age > 40", "over 30 employees refers to employee > 30; 'HUNTINGDON' is the county", "Georgia is the name of the state, in which name = 'Georgia';", "Asian population of 7 refers to asian_population = 7;", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "\"Berlin, NH\" is the CBSA_name"]}} {"set": {"query": "In California, how many delivery receptacles are there in the community post office that has the highest number of delivery receptacles?", "pos": ["in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type"], "neg": ["population_2020 > MULTIPLY(0.97, AVG(population_2020));", "biggest land area refers to Max(land_area); \"SAINT CROIX\" is the county", "the county of Hampden is located in the state of Massachusetts.", "zero employee refers to employees = 0", "Greeneville is the city;", "DIVIDE(SUBTRACT(SUM(population_2020)), SUM(population_2010)), SUM(population_2010) as percentage where county = 'ARROYO';", "\"URB San Joaquin\" is the bad_alias", "\"NEW HAVEN\" is the county; male refers to male_population", "\"Barre, VT\" is the CBSA_name", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county"]}} {"set": {"query": "Describe the number of postal points and the countries in West Virginia.", "pos": ["postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';"], "neg": ["above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));", "average male median age refers to Divide (Sum(male_median_age), Count(county)); 'WINDHAM' is the county", "median female age of over 32 refers to median_female_age > 32", "\"Massachusetts\" is the state; zip code more than 1 area code refers to Count (zip_code) > 1", "\"ARECIBO\" is the county; highest white population refers to Max(white_population)", "\"Berlin, NH\" is the CBSA_name", "\"PHILLIPS\" is the county; 'Montana' is the name of state", "postal point of post office refers to type = 'Post Office';", "location coordinate refers to (latitude, longitude)", "the largest water area refers to MAX(water_area);"]}} {"set": {"query": "Provide the alias of the city with the highest population in year 2020.", "pos": ["the highest population in year 2020 refers to MAX(population_2020);"], "neg": ["DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';", "community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;", "in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type", "median age over 40 refers to median_age > 40", "\"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", "city with highest asian population refers to Max(Sum(asian_population)); full name refers to first_name, last_name", "\"NEW CASTLE\" is the county; 'Delaware' is the name of state", "\"Lexington-Fayette, KY\" is the CBSA_name", "\"Alabama\" is the name"]}} {"set": {"query": "List all the counties in Georgia.", "pos": ["Georgia is the name of the state, in which name = 'Georgia';"], "neg": ["name of congressman implies full name which refers to first_name, last_name; Guanica is the city;", "the highest population in year 2020 refers to MAX(population_2020);", "\"NEW HAVEN\" is the county; male refers to male_population", "DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';", "implement daylight savings refers to daylight_savings = 'Yes';", "DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';", "\"Alabama\" is the name", "\"Puerto Rico\" refers to state = 'PR'", "location coordinate refers to (latitude, longitude)", "\"Alabama\" and \"Illinois\" are both state; Ratio = Divide (Count(state = 'Alabama'), Count(state = 'Illinois'))"]}} {"set": {"query": "How many post offices are there in New York?", "pos": ["\"New York\" refers to state = 'NY' and name = 'New York'; 'Post Office' is the type"], "neg": ["the county of Hampden is located in the state of Massachusetts.", "\"NEW CASTLE\" is the county; 'Delaware' is the name of state", "population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';", "representative's full names refer to first_name, last_name; area which has highest population in 2020 refers to MAX(population_2020);", "highest number of females refers to Max(female_population)", "SUBTRACT(COUNT(type = 'P.O. Box Only'), COUNT(type = 'Post Office')) where area_code = 787;", "average household income refers to avg_income_per_household; city known as \"Danzig\" refers to bad_alias = 'Danzig';", "Savoy is the city;", "\"Puerto Rico\" refers to state = 'PR'", "central time zone refers to time_zone = 'Central'"]}} {"set": {"query": "For the county where DeSantis Ron is from, what is the average female median age?", "pos": ["average female median age refers to Divide (Sum(female_median_age), Count(county))"], "neg": ["location coordinate refers to (latitude, longitude)", "central time zone refers to time_zone = 'Central'", "AVG(elevation) where alias = 'Amherst';", "population_2020 > MULTIPLY(0.97, AVG(population_2020));", "coordinates refers to latitude, longitude; latitude = '18.090875; longitude = '-66.867756'", "\"Delaware\" is a county; implement daylight savings refers to daylight_saving = 'Yes'", "the county of Hampden is located in the state of Massachusetts.", "\"Lawrenceville\" is the bad_alias", "Greeneville is the city;", "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';"]}} {"set": {"query": "For the flight on 2018/8/1 that was delayed for the longest time, which was the destination airport of this flight?", "pos": ["on 2018/8/1 refers to FL_DATE = '2018/8/1';\u00a0 delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;"], "neg": ["flight numbers refers to OP_CARRIER_FL_NUM; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International';", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);", "shortest arrival time refers to MIN(ARR_TIME);", "percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';", "tail number refers to TAIL_NUM; arrived on time refers to ARR_DELAY < = 0; Meadows Field airport refers to Description = 'Bakersfield, CA: Meadows Field'; in August of 2018 refers to FL_DATE like '2018/8%';", "depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';"]}} {"set": {"query": "Which airline operated more flights on 2018/8/1, American Airlines Inc. or Endeavor Air Inc.?", "pos": ["SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';"], "neg": ["tail number refers to TAIL_NUM; arrived on time refers to ARR_DELAY < = 0; Meadows Field airport refers to Description = 'Bakersfield, CA: Meadows Field'; in August of 2018 refers to FL_DATE like '2018/8%';", "arriving at Miami refers to DEST = 'MIA';", "hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));", "flight numbers refers to OP_CARRIER_FL_NUM; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International';", "depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';"]}} {"set": {"query": "For the flight with the tail number 'N702SK', which air carrier does it belong to?", "pos": ["tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';"], "neg": ["shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "tail number refers to TAIL_NUM; arrived on time refers to ARR_DELAY < = 0; Meadows Field airport refers to Description = 'Bakersfield, CA: Meadows Field'; in August of 2018 refers to FL_DATE like '2018/8%';", "from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';", "origin airport id refers to ORIGIN_AIRPORT_ID; longest delay due to a late aircraft refers to MAX(LATE_AIRCRAFT_DELAY);", "flight numbers refers to OP_CARRIER_FL_NUM; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International';", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;"]}} {"set": {"query": "What is the actual departure time of JetBlue Airways with the plane's tail number N903JB to Fort Lauderdale-Hollywood International Airport on the 20th of August 2018?", "pos": ["actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';"], "neg": ["flight numbers refers to OP_CARRIER_FL_NUM; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International';", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "arriving at Miami refers to DEST = 'MIA';", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));", "shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);", "names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "fastest flight refers to MIN(SUBTRACT(ACTUAL_ELAPSED_TIME, CRS_ELAPSED_TIME));", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';"]}} {"set": {"query": "List the air carrier description and code of the flight with the shortest arrival time.", "pos": ["shortest arrival time refers to MIN(ARR_TIME);"], "neg": ["hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "Oklahoma as origin refers to Origin = 'OKC';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';"]}} {"set": {"query": "What is the only flight destination for flights from Albany?", "pos": ["flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';"], "neg": ["depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;", "landed on refers to DEST; Oakland Airport refers to Description which contains 'Oakland'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "Driftwood Bay, AK: Driftwood Bay Airport refers to Description = 'Driftwood Bay, AK: Driftwood Bay Airport';", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';"]}} {"set": {"query": "Provide the number of airplanes that landed on Oakland Airport on 2018/8/7.", "pos": ["landed on refers to DEST; Oakland Airport refers to Description which contains 'Oakland'; on 2018/8/7 refers to FL_DATE = '2018/8/7';"], "neg": ["name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "shortest arrival time refers to MIN(ARR_TIME);", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);"]}} {"set": {"query": "What is the name of the airline with the highest number of non-cancelled flights?", "pos": ["names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));"], "neg": ["arriving at Miami refers to DEST = 'MIA';", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';", "tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));", "on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;"]}} {"set": {"query": "How many flights of air carrier called JetBlue Airways: B6 have 0 new arrival delay?", "pos": ["JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;"], "neg": ["tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", "average departure delay time = DIVIDE(SUM(DEP_DELAY), COUNT(Code)); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';", "shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "shortest arrival time refers to MIN(ARR_TIME);", "Oklahoma as origin refers to Origin = 'OKC';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "flight numbers refers to OP_CARRIER_FL_NUM; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International';"]}} {"set": {"query": "Provide the origin of the flight that has the shortest actual elapsed time.", "pos": ["shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);"], "neg": ["tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "Oklahoma as origin refers to Origin = 'OKC';", "arriving at Miami refers to DEST = 'MIA';", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;"]}} {"set": {"query": "Which airport did Republic Airline fly the most from?", "pos": ["Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));"], "neg": ["fastest flight refers to MIN(SUBTRACT(ACTUAL_ELAPSED_TIME, CRS_ELAPSED_TIME));", "planes refers to TAIL_NUM; Southwest Airlines Co. refers to Description = 'Southwest Airlines Co.: WN';", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "cancelled flights refers to CANCELLED = 1;", "depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';"]}} {"set": {"query": "What is the average departure delay time of flights operated by American Airlines Inc.?", "pos": ["average departure delay time = DIVIDE(SUM(DEP_DELAY), COUNT(Code)); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';"], "neg": ["actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));", "depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "0 departure delay refers to DEP_DELAY = 0;", "Oklahoma as origin refers to Origin = 'OKC';", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "cancelled flights refers to CANCELLED = 1;", "code starting with the letter C refers to Code like 'C%';", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';"]}} {"set": {"query": "What is the total number of flights that flew on August 2, 2018 with air carrier described as Horizon Air?", "pos": ["on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';"], "neg": ["Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "on 2018/8/1 refers to FL_DATE = '2018/8/1'; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;"]}} {"set": {"query": "How many planes of Spirit Air Lines took off on 2018/8/7?", "pos": ["Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';"], "neg": ["American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;", "fastest flight refers to MIN(SUBTRACT(ACTUAL_ELAPSED_TIME, CRS_ELAPSED_TIME));", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';", "flight date refers to FL_DATE; Profit Airlines Inc.: XBH refers to Description = 'Profit Airlines Inc.: XBH'; actual elapsed time below 100 refers to ACTUAL_ELAPSED_TIME < 100;", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "shortest arrival time refers to MIN(ARR_TIME);", "arriving at Miami refers to DEST = 'MIA';", "from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';", "flights from refers to ORIGIN; San Diego International airport refers to Description = 'San Diego, CA: San Diego International'; flights to refers to DEST; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International';\u00a0in the August of 2018 refers to FL_DATE like '2018/8%';"]}} {"set": {"query": "How many flights from Charlotte Douglas International Airport to Austin - Bergstrom International Airport experienced serious reasons that cause flight cancellation?", "pos": ["from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';"], "neg": ["average departure delay time = DIVIDE(SUM(DEP_DELAY), COUNT(Code)); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "code starting with the letter C refers to Code like 'C%';", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "Driftwood Bay, AK: Driftwood Bay Airport refers to Description = 'Driftwood Bay, AK: Driftwood Bay Airport';", "tail number refers to TAIL_NUM; arrived on time refers to ARR_DELAY < = 0; Meadows Field airport refers to Description = 'Bakersfield, CA: Meadows Field'; in August of 2018 refers to FL_DATE like '2018/8%';"]}} {"set": {"query": "What is the percentage of flights from Los Angeles International airport that were cancelled due to a type C cancellation code?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';"], "neg": ["flights on average = DIVIDE(COUNT(Code), 31); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; every day in August, 2018 refers to FL_DATE like '2018/8%';", "cancelled flights refers to CANCELLED = 1;", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "average departure delay time = DIVIDE(SUM(DEP_DELAY), COUNT(Code)); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));"]}} {"set": {"query": "How many flights operated by American Airlines Inc. on 2018/8/1 were faster than scheduled?", "pos": ["American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;"], "neg": ["departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';", "shortest arrival time refers to MIN(ARR_TIME);", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;", "percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "flight date refers to FL_DATE; Profit Airlines Inc.: XBH refers to Description = 'Profit Airlines Inc.: XBH'; actual elapsed time below 100 refers to ACTUAL_ELAPSED_TIME < 100;"]}} {"set": {"query": "On August 2018, which day had the highest number of cancelled flights due to the most serious reasons in Dallas/Fort Worth International?", "pos": ["On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';", "on 2018/8/1 refers to FL_DATE = '2018/8/1';\u00a0 delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';", "average departure delay time = DIVIDE(SUM(DEP_DELAY), COUNT(Code)); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;"]}} {"set": {"query": "How many flights of Endeavor Air Inc. were faster than scheduled on 2018/8/31?", "pos": ["Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';"], "neg": ["on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "flights on average = DIVIDE(COUNT(Code), 31); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; every day in August, 2018 refers to FL_DATE like '2018/8%';", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", "flight date refers to FL_DATE; Profit Airlines Inc.: XBH refers to Description = 'Profit Airlines Inc.: XBH'; actual elapsed time below 100 refers to ACTUAL_ELAPSED_TIME < 100;", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "flights from refers to ORIGIN; San Diego International airport refers to Description = 'San Diego, CA: San Diego International'; flights to refers to DEST; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International';\u00a0in the August of 2018 refers to FL_DATE like '2018/8%';", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';"]}} {"set": {"query": "Among the flights with air carrier named Republic Airline, how many of the flights have departure delay of 30 minutes and above?", "pos": ["Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;"], "neg": ["Oklahoma as origin refers to Origin = 'OKC';", "names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';", "on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;", "Driftwood Bay, AK: Driftwood Bay Airport refers to Description = 'Driftwood Bay, AK: Driftwood Bay Airport';", "landed on refers to DEST; Oakland Airport refers to Description which contains 'Oakland'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';"]}} {"set": {"query": "List the tail numbers of all the aircraft that arrived on time at Meadows Field airport in August of 2018?", "pos": ["tail number refers to TAIL_NUM; arrived on time refers to ARR_DELAY < = 0; Meadows Field airport refers to Description = 'Bakersfield, CA: Meadows Field'; in August of 2018 refers to FL_DATE like '2018/8%';"], "neg": ["shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);", "shortest arrival time refers to MIN(ARR_TIME);", "0 departure delay refers to DEP_DELAY = 0;", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "flights on average = DIVIDE(COUNT(Code), 31); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; every day in August, 2018 refers to FL_DATE like '2018/8%';", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';"]}} {"set": {"query": "Among the flights departing from John F. Kennedy International, how many of them arrived earlier than scheduled?", "pos": ["departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;"], "neg": ["airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';", "Driftwood Bay, AK: Driftwood Bay Airport refers to Description = 'Driftwood Bay, AK: Driftwood Bay Airport';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "flights on average = DIVIDE(COUNT(Code), 31); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; every day in August, 2018 refers to FL_DATE like '2018/8%';", "on 2018/8/1 refers to FL_DATE = '2018/8/1';\u00a0 delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "origin airport id refers to ORIGIN_AIRPORT_ID; longest delay due to a late aircraft refers to MAX(LATE_AIRCRAFT_DELAY);", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);"]}} {"set": {"query": "List the air carrier's description of the flights with 0 departure delay.", "pos": ["0 departure delay refers to DEP_DELAY = 0;"], "neg": ["depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "shortest arrival time refers to MIN(ARR_TIME);", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;", "fastest flight refers to MIN(SUBTRACT(ACTUAL_ELAPSED_TIME, CRS_ELAPSED_TIME));", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';", "Oklahoma as origin refers to Origin = 'OKC';", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;"]}} {"set": {"query": "What is the tail number of the flight with air carrier named Iscargo Hf: ICQ and arrival time of 1000 and below?", "pos": ["tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;"], "neg": ["code starting with the letter C refers to Code like 'C%';", "0 departure delay refers to DEP_DELAY = 0;", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "flights on average = DIVIDE(COUNT(Code), 31); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; every day in August, 2018 refers to FL_DATE like '2018/8%';", "names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';"]}} {"set": {"query": "Among the flights with air carrier described as Asap Air Inc.: ASP, what is the tail number of the flight with the longest departure delay?", "pos": ["Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "on 2018/8/1 refers to FL_DATE = '2018/8/1';\u00a0 delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;", "on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;", "shortest arrival time refers to MIN(ARR_TIME);", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "planes refers to TAIL_NUM; Southwest Airlines Co. refers to Description = 'Southwest Airlines Co.: WN';", "names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';"]}} {"set": {"query": "How many flights on average does American Airlines Inc. operate every day in August, 2018?", "pos": ["flights on average = DIVIDE(COUNT(Code), 31); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; every day in August, 2018 refers to FL_DATE like '2018/8%';"], "neg": ["on 2018/8/1 refers to FL_DATE = '2018/8/1';\u00a0 delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "date of flight refers to FL_DATE; tail number of flight refers to TAIL_NUM; Ross Aviation Inc.: GWE refers to Description = 'Ross Aviation Inc.: GWE';", "planes refers to TAIL_NUM; Southwest Airlines Co. refers to Description = 'Southwest Airlines Co.: WN';", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';", "Oklahoma as origin refers to Origin = 'OKC';", "origin airport id refers to ORIGIN_AIRPORT_ID; longest delay due to a late aircraft refers to MAX(LATE_AIRCRAFT_DELAY);", "landed on refers to DEST; Oakland Airport refers to Description which contains 'Oakland'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "flight date refers to FL_DATE; Profit Airlines Inc.: XBH refers to Description = 'Profit Airlines Inc.: XBH'; actual elapsed time below 100 refers to ACTUAL_ELAPSED_TIME < 100;"]}} {"set": {"query": "List the flight date of flights with air carrier described as Profit Airlines Inc.: XBH which have an actual elapsed time below 100.", "pos": ["flight date refers to FL_DATE; Profit Airlines Inc.: XBH refers to Description = 'Profit Airlines Inc.: XBH'; actual elapsed time below 100 refers to ACTUAL_ELAPSED_TIME < 100;"], "neg": ["Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);", "on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;", "SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "arriving at Miami refers to DEST = 'MIA';", "tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "cancelled flights refers to CANCELLED = 1;", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;"]}} {"set": {"query": "How many flights were there from San Diego International airport to Los Angeles International airport in the August of 2018?", "pos": ["flights from refers to ORIGIN; San Diego International airport refers to Description = 'San Diego, CA: San Diego International'; flights to refers to DEST; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International';\u00a0in the August of 2018 refers to FL_DATE like '2018/8%';"], "neg": ["code starting with the letter C refers to Code like 'C%';", "0 departure delay refers to DEP_DELAY = 0;", "American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';"]}} {"set": {"query": "Give the number of planes that took off from Los Angeles International airport on 2018/8/27.", "pos": ["took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';"], "neg": ["tail number refers to TAIL_NUM; arrived on time refers to ARR_DELAY < = 0; Meadows Field airport refers to Description = 'Bakersfield, CA: Meadows Field'; in August of 2018 refers to FL_DATE like '2018/8%';", "origin airport id refers to ORIGIN_AIRPORT_ID; longest delay due to a late aircraft refers to MAX(LATE_AIRCRAFT_DELAY);", "shortest arrival time refers to MIN(ARR_TIME);", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "flights from refers to ORIGIN; San Diego International airport refers to Description = 'San Diego, CA: San Diego International'; flights to refers to DEST; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International';\u00a0in the August of 2018 refers to FL_DATE like '2018/8%';"]}} {"set": {"query": "Please list the flight numbers of all the flights operated by American Airlines Inc. that were scheduled to depart from John F. Kennedy International.", "pos": ["flight numbers refers to OP_CARRIER_FL_NUM; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International';"], "neg": ["Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "flight date refers to FL_DATE; Profit Airlines Inc.: XBH refers to Description = 'Profit Airlines Inc.: XBH'; actual elapsed time below 100 refers to ACTUAL_ELAPSED_TIME < 100;", "landed on refers to DEST; Oakland Airport refers to Description which contains 'Oakland'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;"]}} {"set": {"query": "How many hours in total did all of the Delta Air Lines aircraft were delayed due to a late aircraft in August of 2018? Identify the plane number of the aircraft with the highest delayed hours.", "pos": ["hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));"], "neg": ["code starting with the letter C refers to Code like 'C%';", "on 2018/8/1 refers to FL_DATE = '2018/8/1'; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "flights from refers to ORIGIN; San Diego International airport refers to Description = 'San Diego, CA: San Diego International'; flights to refers to DEST; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International';\u00a0in the August of 2018 refers to FL_DATE like '2018/8%';", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "date of flight refers to FL_DATE; tail number of flight refers to TAIL_NUM; Ross Aviation Inc.: GWE refers to Description = 'Ross Aviation Inc.: GWE';"]}} {"set": {"query": "Among the flights with air carrier \"Southwest Airlines Co.: WN\", provide the tail number of flights with an actual elapsed time lower than the 80% of the average actual elapsed time of listed flights.", "pos": ["Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);"], "neg": ["depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';", "date of flight refers to FL_DATE; tail number of flight refers to TAIL_NUM; Ross Aviation Inc.: GWE refers to Description = 'Ross Aviation Inc.: GWE';", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;", "code starting with the letter C refers to Code like 'C%';", "tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "on 2018/8/1 refers to FL_DATE = '2018/8/1';\u00a0 delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;", "flights from refers to ORIGIN; San Diego International airport refers to Description = 'San Diego, CA: San Diego International'; flights to refers to DEST; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International';\u00a0in the August of 2018 refers to FL_DATE like '2018/8%';", "arriving at Miami refers to DEST = 'MIA';"]}} {"set": {"query": "What is the air carrier's description of the cancelled flights?", "pos": ["cancelled flights refers to CANCELLED = 1;"], "neg": ["American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;", "origin airport id refers to ORIGIN_AIRPORT_ID; longest delay due to a late aircraft refers to MAX(LATE_AIRCRAFT_DELAY);", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;", "tail number refers to TAIL_NUM; arrived on time refers to ARR_DELAY < = 0; Meadows Field airport refers to Description = 'Bakersfield, CA: Meadows Field'; in August of 2018 refers to FL_DATE like '2018/8%';", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "date of flight refers to FL_DATE; tail number of flight refers to TAIL_NUM; Ross Aviation Inc.: GWE refers to Description = 'Ross Aviation Inc.: GWE';", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';"]}} {"set": {"query": "What is the total number of flights that have Oklahoma as their origin?", "pos": ["Oklahoma as origin refers to Origin = 'OKC';"], "neg": ["tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "cancelled flights refers to CANCELLED = 1;", "on 2018/8/1 refers to FL_DATE = '2018/8/1'; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "fastest flight refers to MIN(SUBTRACT(ACTUAL_ELAPSED_TIME, CRS_ELAPSED_TIME));", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';"]}} {"set": {"query": "How many flights on 2018/8/1 were operated by American Airlines Inc.?", "pos": ["on 2018/8/1 refers to FL_DATE = '2018/8/1'; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';"], "neg": ["tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "code starting with the letter C refers to Code like 'C%';", "planes refers to TAIL_NUM; Southwest Airlines Co. refers to Description = 'Southwest Airlines Co.: WN';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));", "shortest arrival time refers to MIN(ARR_TIME);", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';"]}} {"set": {"query": "How many flights departed on time on 8/1/2018?", "pos": ["departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';"], "neg": ["Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", "on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);", "depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';"]}} {"set": {"query": "Give the actual elapsed time of the flights with air carrier named Semo Aviation Inc.: SEM.", "pos": ["actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';"], "neg": ["names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "flight numbers refers to OP_CARRIER_FL_NUM; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International';", "flight date refers to FL_DATE; Profit Airlines Inc.: XBH refers to Description = 'Profit Airlines Inc.: XBH'; actual elapsed time below 100 refers to ACTUAL_ELAPSED_TIME < 100;", "American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;", "origin airport id refers to ORIGIN_AIRPORT_ID; longest delay due to a late aircraft refers to MAX(LATE_AIRCRAFT_DELAY);", "landed on refers to DEST; Oakland Airport refers to Description which contains 'Oakland'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';"]}} {"set": {"query": "What are the air carriers of the flights that flew on August 25, 2018 that have departure delay of -5?", "pos": ["on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;"], "neg": ["from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "flight numbers refers to OP_CARRIER_FL_NUM; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International';", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;", "depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;", "arriving at Miami refers to DEST = 'MIA';", "on 2018/8/1 refers to FL_DATE = '2018/8/1'; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "origin airport id refers to ORIGIN_AIRPORT_ID; longest delay due to a late aircraft refers to MAX(LATE_AIRCRAFT_DELAY);"]}} {"set": {"query": "What is the name of the airline that flew the most flights to Chicago Midway International?", "pos": ["name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));"], "neg": ["took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';", "cancelled flights refers to CANCELLED = 1;", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "landed on refers to DEST; Oakland Airport refers to Description which contains 'Oakland'; on 2018/8/7 refers to FL_DATE = '2018/8/7';"]}} {"set": {"query": "List the air carrier's description with arrival time lower than the 40% of the average arrival time of flights that flew to Phoenix.", "pos": ["arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';"], "neg": ["flight date refers to FL_DATE; Profit Airlines Inc.: XBH refers to Description = 'Profit Airlines Inc.: XBH'; actual elapsed time below 100 refers to ACTUAL_ELAPSED_TIME < 100;", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;", "tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", "planes refers to TAIL_NUM; Southwest Airlines Co. refers to Description = 'Southwest Airlines Co.: WN';", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "code starting with the letter C refers to Code like 'C%';", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;", "depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "date of flight refers to FL_DATE; tail number of flight refers to TAIL_NUM; Ross Aviation Inc.: GWE refers to Description = 'Ross Aviation Inc.: GWE';"]}} {"set": {"query": "How many flights depart to Hartsfield-Jackson Atlanta International from Chicago O'Hare International?", "pos": ["depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';"], "neg": ["airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';", "from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';", "Driftwood Bay, AK: Driftwood Bay Airport refers to Description = 'Driftwood Bay, AK: Driftwood Bay Airport';", "Oklahoma as origin refers to Origin = 'OKC';", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;", "American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; on 2018/8/1 refers to FL_DATE = '2018/8/1'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME;", "code starting with the letter C refers to Code like 'C%';", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';"]}} {"set": {"query": "List the tail number of flights that flew on August 17, 2018.", "pos": ["tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';"], "neg": ["0 departure delay refers to DEP_DELAY = 0;", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));", "depart to refers to DEST; Hartsfield-Jackson Atlanta International refers to Description = 'Atlanta, GA: Hartsfield-Jackson Atlanta International'; depart from refers to ORIGIN; Chicago O'Hare International refes to Description = 'Chicago, IL: Chicago O'Hare International';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;"]}} {"set": {"query": "How many planes does Southwest Airlines Co. have?", "pos": ["planes refers to TAIL_NUM; Southwest Airlines Co. refers to Description = 'Southwest Airlines Co.: WN';"], "neg": ["names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "date of flight refers to FL_DATE; tail number of flight refers to TAIL_NUM; Ross Aviation Inc.: GWE refers to Description = 'Ross Aviation Inc.: GWE';", "shortest arrival time refers to MIN(ARR_TIME);"]}} {"set": {"query": "What are the codes of the airport found in Ankara, Turkey?", "pos": ["airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';"], "neg": ["tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "on 2018/8/1 refers to FL_DATE = '2018/8/1';\u00a0 delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "Oklahoma as origin refers to Origin = 'OKC';", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';", "0 departure delay refers to DEP_DELAY = 0;", "arriving at Miami refers to DEST = 'MIA';", "tail number refers to TAIL_NUM; arrived on time refers to ARR_DELAY < = 0; Meadows Field airport refers to Description = 'Bakersfield, CA: Meadows Field'; in August of 2018 refers to FL_DATE like '2018/8%';", "shortest arrival time refers to MIN(ARR_TIME);", "flights on average = DIVIDE(COUNT(Code), 31); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; every day in August, 2018 refers to FL_DATE like '2018/8%';"]}} {"set": {"query": "Provide the air carrier description of the flight with a tail number N922US from Phoenix.", "pos": ["tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';"], "neg": ["Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "on August 25, 2018 refers to FL_DATE = '2018/8/25'; departure delay of -5 refers to DEP_DELAY = -5;", "cancelled flights refers to CANCELLED = 1;", "on 2018/8/1 refers to FL_DATE = '2018/8/1'; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "planes refers to TAIL_NUM; Southwest Airlines Co. refers to Description = 'Southwest Airlines Co.: WN';", "SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';", "Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));"]}} {"set": {"query": "Provide the date and tail number of flight with air carrier \"Ross Aviation Inc.: GWE\".", "pos": ["date of flight refers to FL_DATE; tail number of flight refers to TAIL_NUM; Ross Aviation Inc.: GWE refers to Description = 'Ross Aviation Inc.: GWE';"], "neg": ["Republic Airline refers to Description = 'Republic Airline: YX'; fly the most from refers to MAX(COUNT(ORIGIN));", "shortest arrival time refers to MIN(ARR_TIME);", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;", "landed on refers to DEST; Oakland Airport refers to Description which contains 'Oakland'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "0 departure delay refers to DEP_DELAY = 0;", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "shortest actual elapsed time refers to MIN(ACTUAL_ELAPSED_TIME);"]}} {"set": {"query": "What is the origin airport id that recorded the longest delay due to a late aircraft?", "pos": ["origin airport id refers to ORIGIN_AIRPORT_ID; longest delay due to a late aircraft refers to MAX(LATE_AIRCRAFT_DELAY);"], "neg": ["shortest arrival time refers to MIN(ARR_TIME);", "tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", "flights from refers to ORIGIN; San Diego International airport refers to Description = 'San Diego, CA: San Diego International'; flights to refers to DEST; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International';\u00a0in the August of 2018 refers to FL_DATE like '2018/8%';", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "Southwest Airlines Co.: WN refers to Description = 'Southwest Airlines Co.: WN'; tail number refers to TAIL_NUM; actual elapsed time lower than the 80% of the average actual elapsed time refers to ACTUAL_ELAPSED_TIME < (MULTIPLY AVG(ACTUAL_ELAPSED_TIME), 0.8);", "Oklahoma as origin refers to Origin = 'OKC';", "percentage = MULTIPLY(DIVIDE(SUM(CANCELLATION_CODE = 'C'), COUNT(Code)), 100); flights from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; cancelled refers to Cancelled = 1; cancelled due to a type C cancellation code refers to CANCELLATION_CODE = 'C';", "Republic Airline refers to Description which contains 'Republic Airline'; departure delay of 30 minutes and above refers to DEP_DELAY > 30;", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);"]}} {"set": {"query": "Provide the air carrier description of all flights arriving at Miami.", "pos": ["arriving at Miami refers to DEST = 'MIA';"], "neg": ["cancelled flights refers to CANCELLED = 1;", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));", "SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "took off from refers to ORIGIN; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International'; on 2018/8/27 refers to FL_DATE = '2018/8/27';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;", "from refers to ORIGIN; Charlotte Douglas International Airport refers to Description = 'Charlotte, NC: Charlotte Douglas International'; to refers to DEST; Austin - Bergstrom International Airport refers to Description = 'Austin, TX: Austin - Bergstrom International'; serious reasons refers to CANCELLATION_CODE = 'A';"]}} {"set": {"query": "Among the flights of the air carrier described as American Airlines, what is the percentage of the flights with earlier departure?", "pos": ["American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;"], "neg": ["flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "fastest flight refers to MIN(SUBTRACT(ACTUAL_ELAPSED_TIME, CRS_ELAPSED_TIME));", "names of the airlines refers to Description; highest number of non-cancelled flights refers to MAX(COUNT(CANCELLED = 0));", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "departing from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International'; arrived earlier than scheduled refers to ARR_DELAY < 0;", "Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';", "code starting with the letter C refers to Code like 'C%';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N922US'; from Phoenix refers to ORIGIN = 'PHX';", "on 2018/8/1 refers to FL_DATE = '2018/8/1'; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';"]}} {"set": {"query": "Which airline does the aircraft with the fastest flight belong to?", "pos": ["fastest flight refers to MIN(SUBTRACT(ACTUAL_ELAPSED_TIME, CRS_ELAPSED_TIME));"], "neg": ["SUM(Description = 'American Airlines Inc.: AA') > SUM(Description = 'Endeavor Air Inc.: 9E') means American Airlines Inc. operated more flights than\u00a0 Endeavor Air Inc; SUM(Description = 'American Airlines Inc.: AA') < SUM(Description = 'Endeavor Air Inc.: 9E') means Endeavor Air Inc. operated more flights than American Airlines Inc.; on 2018/8/1 refers to FL_DATE = '2018/8/1';", "Spirit Air Lines refers to Description = 'Spirit Air Lines: NK'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "flight numbers refers to OP_CARRIER_FL_NUM; American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; depart from refers to ORIGIN; John F. Kennedy International refers to Description = 'New York, NY: John F. Kennedy International';", "planes refers to TAIL_NUM; Southwest Airlines Co. refers to Description = 'Southwest Airlines Co.: WN';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));", "tail number refers to TAIL_NUM; Iscargo Hf: ICQ refers to Description = 'Iscargo Hf: ICQ'; arrival time of 1000 and below refers to ARR_TIME < = 1000;", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "actual departure time refers to DEP_TIME; JetBlue Airways refers to Description like '%JetBlue Airways%'; tail number refers to TAIL_NUM; TAIL_NUM = 'N903JB'; to refers to DEST; Fort Lauderdale-Hollywood International Airport refers to Description like '%Fort Lauderdale-Hollywood%'; on the 20th of August 2018 refers to FL_DATE = '2018/8/20';"]}} {"set": {"query": "How many airports have a code starting with the letter C?", "pos": ["code starting with the letter C refers to Code like 'C%';"], "neg": ["landed on refers to DEST; Oakland Airport refers to Description which contains 'Oakland'; on 2018/8/7 refers to FL_DATE = '2018/8/7';", "0 departure delay refers to DEP_DELAY = 0;", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", "Endeavor Air Inc. refers to Description = 'Endeavor Air Inc.: 9E'; faster than scheduled refers to ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME; on 2018/8/31 refers to FL_DATE = '2018/8/31';", "hours in total = DIVIDE(SUM(LATE_AIRCRAFT_DELAY), 60); Delta Air Lines refers to Description = 'Delta Air Lines Inc.: DL'; delayed due to a late aircraft refers to LATE_AIRCRAFT_DELAY; in August of 2018 refers to FL_DATE like '2018/8/%'; plane number refers to TAIL_NUM; highest delayed hours refers to MAX(DIVIDE(SUM(LATE_AIRCRAFT_DELAY),60));", "flight destination refers to DEST; from Albany refers to ORIGIN = 'ABY';", "origin airport id refers to ORIGIN_AIRPORT_ID; longest delay due to a late aircraft refers to MAX(LATE_AIRCRAFT_DELAY);", "arriving at Miami refers to DEST = 'MIA';", "JetBlue Airways refers to Description = '%JetBlue Airway%'; 0 new arrival delay refers to ARR_DELAY_NEW = 0;"]}} {"set": {"query": "How many flights of Alaska Airlines were delayed on 2018/8/2?", "pos": ["Alaska Airlines refers to Description = 'Alaska Airlines Inc.: AS'; delayed refers to DEP_DELAY > 0; on 2018/8/2 refers to FL_DATE = '2018/8/2';"], "neg": ["tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "on August 2, 2018 refers to FL_DATE = '2018/8/2'; Horizon Air refers to Description which includs 'Horizon Air';", "Asap Air Inc.: ASP refers to Description = 'Asap Air Inc.: ASP'; tail number refers to TAIL_NUM; longest departure delay refers to MAX(DEP_DELAY);", "Driftwood Bay, AK: Driftwood Bay Airport refers to Description = 'Driftwood Bay, AK: Driftwood Bay Airport';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "American Airlines can be found in Description which contains 'American Airlines'; percentage = MULTIPLY(DIVIDE(SUM(DEP_DELAY < 0), COUNT(DEP_DELAY)), 1.0); earlier departure refers to DEP_DELAY < 0;", "on 2018/8/1 refers to FL_DATE = '2018/8/1';\u00a0 delayed for the longest time refers to MAX(DEP_DELAY); destination airport refers to DEST;", "cancelled flights refers to CANCELLED = 1;", "On August 2018 refers to FL_DATE like '2018/8%'; day with the highest number of cancelled flights refers to MAX(COUNT(FL_DATE WHERE CANCELLED = 1)); cancelled due to the most serious reasons refers to CANCELLATION_CODE = 'A'; in Dallas/Fort Worth International refers to Description = 'Dallas/Fort Worth, TX: Dallas/Fort Worth International';", "departed on time refers to DEP_DELAY < = 0; on 8/1/2018 refers to FL_DATE = '2018/8/1';"]}} {"set": {"query": "Give the code of the airport described as Driftwood Bay, AK: Driftwood Bay Airport.", "pos": ["Driftwood Bay, AK: Driftwood Bay Airport refers to Description = 'Driftwood Bay, AK: Driftwood Bay Airport';"], "neg": ["tail number refers to TAIL_NUM; on August 17, 2018 refers to FL_DATE = '2018/8/17';", "flights on average = DIVIDE(COUNT(Code), 31); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA'; every day in August, 2018 refers to FL_DATE like '2018/8%';", "shortest arrival time refers to MIN(ARR_TIME);", "tail number refers to TAIL_NUM; TAIL_NUM = 'N702SK';", "airport found in Ankara, Turkey refers to Description like '%Ankara, Turkey%';", "average departure delay time = DIVIDE(SUM(DEP_DELAY), COUNT(Code)); American Airlines Inc. refers to Description = 'American Airlines Inc.: AA';", "arrival time lower than the 40% of the average arrival time refers to ARR_TIME < MULTIPLY(AVG(ARR_TIME), 0.4); flew to Phoenix refers to DEST = 'PHX';", "actual elapsed time refers to ACTUAL_ELAPSED_TIME; Semo Aviation Inc.: SEM. Refers to Description = 'Semo Aviation Inc.: SEM';", "flights from refers to ORIGIN; San Diego International airport refers to Description = 'San Diego, CA: San Diego International'; flights to refers to DEST; Los Angeles International airport refers to Description = 'Los Angeles, CA: Los Angeles International';\u00a0in the August of 2018 refers to FL_DATE like '2018/8%';", "name of the airline refers to Description; flights to refers to DEST; Chicago Midway International refers to Description = 'Chicago, IL: Chicago Midway International'; most flights to Chicago Midway International refers to MAX(COUNT(DEST WHERE Description = 'Chicago, IL: Chicago Midway International'));"]}} {"set": {"query": "What is the rating and the total Sentiment subjectivity score of \"Onefootball - Soccer Scores\"?", "pos": ["Onefootball - Soccer Scores refers to App = 'Onefootball - Soccer Scores';"], "neg": ["compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "average review = AVG(Review); application refers to app; Rating = 5;", "downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';", "lowest rating refers to Rating = 1;", "FALSE;", "FALSE;", "no comment refers to Translated_Review = 'nan'; most no comment reviews = (MAX(COUNT(Translated_Review = 'nan')));", "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;"]}} {"set": {"query": "What is the average download for entertainment apps with size no more than 1.0 M?", "pos": ["downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';"], "neg": ["most reviewed app refers to MAX(Reviews);", "app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "neutral reviews refers to Sentiment = 'Neutral';", "mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "FREEDOME VPN Unlimited anonymous Wifi Security is the App; percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*))), 100)", "FALSE;", "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;", "average price = AVG(Price);"]}} {"set": {"query": "List down application that have not been updated since 2015. What is the percentage of this application having more negative sentiment than positive sentiment?", "pos": ["percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';"], "neg": ["users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;", "multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "average review = AVG(Review); application refers to app; Rating = 5;", "Dragon Ball Legends is the app; users who dislikes the app refers to Sentiment_Polarity<-0.5;", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5", "most reviewed app refers to MAX(Reviews);", "FALSE;", "negative comment refers to Sentiment = 'Negative';"]}} {"set": {"query": "Which apps have been reviewed more than 75 000 000 times and the content is suitable for teenagers?", "pos": ["Reviews>75000000; suitable for teenagers refers to Content Rating = 'Teen';"], "neg": ["lowest rating refers to Rating = 1;", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "FALSE;", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');", "best selling app = MAX(MULTIPLY(Price, Installs));", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;"]}} {"set": {"query": "What percentage of no comment reviews are from \"Teen\" content rating apps?", "pos": ["no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));"], "neg": ["negative comment refers to Sentiment = 'Negative';", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "average review = AVG(Review); application refers to app; Rating = 5;", "mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", "Sentiment_Subjectivity<0.5; current version refers to Current Ver;", "average price = AVG(Price);", "FALSE;", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "neutral reviews refers to Sentiment = 'Neutral';"]}} {"set": {"query": "How many apps were last updated in January of 2018? Please write one translated review with positive sentiment for each app, if there's any.", "pos": ["updated in January of 2018 refers to Last Updated BETWEEN 'January 1, 2018' and 'January 31, 2018';"], "neg": ["no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "FALSE;", "average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');", "Reviews>75000000; suitable for teenagers refers to Content Rating = 'Teen';", "Sentiment_Subjectivity<0.5; current version refers to Current Ver;", "average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';", "FALSE;", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "lowest rating refers to Rating = 1;", "negative comment refers to Sentiment = 'Negative';"]}} {"set": {"query": "Which of the app is the best selling app and what is the sentiments polarity of it?", "pos": ["best selling app = MAX(MULTIPLY(Price, Installs));"], "neg": ["average review = AVG(Review); application refers to app; Rating = 5;", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", "FALSE;", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "FALSE;", "average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');"]}} {"set": {"query": "What is the average rating of comic category apps? How many users hold positive attitude towards this app?", "pos": ["average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');"], "neg": ["average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;", "FALSE;", "average review = AVG(Review); application refers to app; Rating = 5;", "lowest rating refers to Rating = 1;", "multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);", "downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "FALSE;", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';"]}} {"set": {"query": "What is the average review number for application with 5 rating?", "pos": ["average review = AVG(Review); application refers to app; Rating = 5;"], "neg": ["Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "Onefootball - Soccer Scores refers to App = 'Onefootball - Soccer Scores';", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "FALSE;", "downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "negative comment refers to Sentiment = 'Negative';", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);"]}} {"set": {"query": "Name the top 10 most reviewed apps.", "pos": ["most reviewed app refers to MAX(Reviews);"], "neg": ["Onefootball - Soccer Scores refers to App = 'Onefootball - Soccer Scores';", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "FREEDOME VPN Unlimited anonymous Wifi Security is the App; percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*))), 100)", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5", "average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "FALSE;", "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;"]}} {"set": {"query": "What is the percentage of application with 4.7 rating having more positives sentiment than negative sentiment?", "pos": ["percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';"], "neg": ["neutral reviews refers to Sentiment = 'Neutral';", "lowest rating refers to Rating = 1;", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5", "average review = AVG(Review); application refers to app; Rating = 5;", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;", "mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;", "FALSE;", "Reviews>75000000; suitable for teenagers refers to Content Rating = 'Teen';"]}} {"set": {"query": "Which 1,000,000,000+ intalls apps has the most no comment reviews?", "pos": ["no comment refers to Translated_Review = 'nan'; most no comment reviews = (MAX(COUNT(Translated_Review = 'nan')));"], "neg": ["FREEDOME VPN Unlimited anonymous Wifi Security is the App; percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*))), 100)", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", "FALSE;", "neutral reviews refers to Sentiment = 'Neutral';", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "Sentiment_Subjectivity<0.5; current version refers to Current Ver;", "downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';", "best selling app = MAX(MULTIPLY(Price, Installs));", "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;"]}} {"set": {"query": "What is the average price of games belonging in the arcade genre which has a content rating of Everyone 10+?", "pos": ["average price = AVG(Price);"], "neg": ["percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", "mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5", "downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';", "negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';", "Dragon Ball Legends is the app; users who dislikes the app refers to Sentiment_Polarity<-0.5;", "FALSE;", "negative comment refers to Sentiment = 'Negative';"]}} {"set": {"query": "Which Photography app has the highest total Sentiment subjectivity score?", "pos": ["Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));"], "neg": ["Onefootball - Soccer Scores refers to App = 'Onefootball - Soccer Scores';", "lowest rating refers to Rating = 1;", "average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;"]}} {"set": {"query": "How much is the average sentiment polarity score of Golf GPS Rangefinder: Golf Pad and what is it's rating in the Google Play Store?", "pos": ["average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;"], "neg": ["updated in January of 2018 refers to Last Updated BETWEEN 'January 1, 2018' and 'January 31, 2018';", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "lowest rating refers to Rating = 1;", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "average review = AVG(Review); application refers to app; Rating = 5;", "downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';", "most reviewed app refers to MAX(Reviews);", "no comment refers to Translated_Review = 'nan'; most no comment reviews = (MAX(COUNT(Translated_Review = 'nan')));"]}} {"set": {"query": "Indicate the number of installs and include the percentage of positive sentiments of FREEDOME VPN Unlimited anonymous Wifi Security.", "pos": ["FREEDOME VPN Unlimited anonymous Wifi Security is the App; percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*))), 100)"], "neg": ["compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "Reviews>75000000; suitable for teenagers refers to Content Rating = 'Teen';", "FALSE;", "negative comment refers to Sentiment = 'Negative';", "Onefootball - Soccer Scores refers to App = 'Onefootball - Soccer Scores';", "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;"]}} {"set": {"query": "How many apps have rating of 5?", "pos": ["FALSE;"], "neg": ["multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "FALSE;", "average price = AVG(Price);", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "Dragon Ball Legends is the app; users who dislikes the app refers to Sentiment_Polarity<-0.5;", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "lowest rating refers to Rating = 1;"]}} {"set": {"query": "What is the rating of Dragon Ball Legends and how many users dislike this App?", "pos": ["Dragon Ball Legends is the app; users who dislikes the app refers to Sentiment_Polarity<-0.5;"], "neg": ["FALSE;", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", "average review = AVG(Review); application refers to app; Rating = 5;", "mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;", "downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';", "app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';", "FREEDOME VPN Unlimited anonymous Wifi Security is the App; percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*))), 100)", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));"]}} {"set": {"query": "How many of the reviews for the app \"Brit + Co\" have a comment?", "pos": ["Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;"], "neg": ["Sentiment_Subjectivity<0.5; current version refers to Current Ver;", "Onefootball - Soccer Scores refers to App = 'Onefootball - Soccer Scores';", "Reviews>75000000; suitable for teenagers refers to Content Rating = 'Teen';", "Dragon Ball Legends is the app; users who dislikes the app refers to Sentiment_Polarity<-0.5;", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "FALSE;", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);"]}} {"set": {"query": "What is the average rating of Apps falling under the racing genre and what is the percentage ratio of positive sentiment reviews?", "pos": ["average rating = AVG(Rating); percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*)), 100));"], "neg": ["paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5", "Sentiment_Subjectivity<0.5; current version refers to Current Ver;", "multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "most reviewed app refers to MAX(Reviews);", "Dragon Ball Legends is the app; users who dislikes the app refers to Sentiment_Polarity<-0.5;", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "negative comment refers to Sentiment = 'Negative';", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';"]}} {"set": {"query": "How many negative comments are there in all the apps with 100,000,000+ installs?", "pos": ["negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';"], "neg": ["percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "FALSE;", "average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "best selling app = MAX(MULTIPLY(Price, Installs));", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "FREEDOME VPN Unlimited anonymous Wifi Security is the App; percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*))), 100)", "neutral reviews refers to Sentiment = 'Neutral';", "lowest rating refers to Rating = 1;", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));"]}} {"set": {"query": "List down the rating for the App Learn C++.", "pos": ["FALSE;"], "neg": ["negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';", "lowest rating refers to Rating = 1;", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');", "average rating = AVG(Rating); percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*)), 100));", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "negative comment refers to Sentiment = 'Negative';", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "neutral reviews refers to Sentiment = 'Neutral';", "app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';"]}} {"set": {"query": "How many neutral reviews does the app \"Dino War: Rise of Beasts\" have?", "pos": ["neutral reviews refers to Sentiment = 'Neutral';"], "neg": ["FALSE;", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "Onefootball - Soccer Scores refers to App = 'Onefootball - Soccer Scores';", "app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';", "FALSE;", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", "average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');"]}} {"set": {"query": "What are the content ratings for the apps that have \"gr8\" in their comments?", "pos": ["app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';"], "neg": ["neutral reviews refers to Sentiment = 'Neutral';", "average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');", "updated in January of 2018 refers to Last Updated BETWEEN 'January 1, 2018' and 'January 31, 2018';", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "Dragon Ball Legends is the app; users who dislikes the app refers to Sentiment_Polarity<-0.5;", "lowest rating refers to Rating = 1;", "negative comment refers to Sentiment = 'Negative';", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';"]}} {"set": {"query": "List out genre that have downloads more than 1000000000.", "pos": ["downloads and installs are synonyms; Installs = '1,000,000,000+';"], "neg": ["average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';", "average rating = AVG(Rating); percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*)), 100));", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "FALSE;", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "average price = AVG(Price);", "FALSE;", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "Sentiment_Subjectivity<0.5; current version refers to Current Ver;"]}} {"set": {"query": "Among the role playing game genre, how many are targeted to teens and what is their average sentiment polarity score?", "pos": ["targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);"], "neg": ["Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "most reviewed app refers to MAX(Reviews);", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "Reviews>75000000; suitable for teenagers refers to Content Rating = 'Teen';", "updated in January of 2018 refers to Last Updated BETWEEN 'January 1, 2018' and 'January 31, 2018';", "Sentiment_Subjectivity<0.5; current version refers to Current Ver;", "FREEDOME VPN Unlimited anonymous Wifi Security is the App; percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*))), 100)", "average price = AVG(Price);"]}} {"set": {"query": "How much is the size of Browser 4G and how many users have a pretty positive favorability on it?", "pos": ["Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5"], "neg": ["percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", "FALSE;", "FALSE;", "most reviewed app refers to MAX(Reviews);", "Sentiment_Subjectivity<0.5; current version refers to Current Ver;", "no comment refers to Translated_Review = 'nan'; most no comment reviews = (MAX(COUNT(Translated_Review = 'nan')));", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "updated in January of 2018 refers to Last Updated BETWEEN 'January 1, 2018' and 'January 31, 2018';", "lowest rating refers to Rating = 1;"]}} {"set": {"query": "What are the apps that users pretty like this app and how many installs amount of these apps?", "pos": ["users pretty much likes the app refers to Sentiment_Polarity = 'Positive';"], "neg": ["negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "neutral reviews refers to Sentiment = 'Neutral';", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);", "average review = AVG(Review); application refers to app; Rating = 5;", "app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;"]}} {"set": {"query": "Which apps have multiple genres and what is the total sentiment subjectivity of these apps?", "pos": ["multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);"], "neg": ["best selling app = MAX(MULTIPLY(Price, Installs));", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';", "updated in January of 2018 refers to Last Updated BETWEEN 'January 1, 2018' and 'January 31, 2018';", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "FALSE;", "average review = AVG(Review); application refers to app; Rating = 5;", "mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;", "negative comment refers to Sentiment = 'Negative';"]}} {"set": {"query": "List apps whose rating is 3.9 and state the translated review of each app.", "pos": ["lowest rating refers to Rating = 1;"], "neg": ["compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';", "Dragon Ball Legends is the app; users who dislikes the app refers to Sentiment_Polarity<-0.5;", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5"]}} {"set": {"query": "What is the rating for \"Garden Coloring Book\"? List all of its reviews.", "pos": ["Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;"], "neg": ["mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;", "app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5", "neutral reviews refers to Sentiment = 'Neutral';", "Dragon Ball Legends is the app; users who dislikes the app refers to Sentiment_Polarity<-0.5;", "negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';", "best selling app = MAX(MULTIPLY(Price, Installs));", "average review = AVG(Review); application refers to app; Rating = 5;"]}} {"set": {"query": "How many users mildly likes the 7 Minute Workout app and when was it last updated?", "pos": ["mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;"], "neg": ["Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5", "FALSE;", "lowest rating refers to Rating = 1;", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "FALSE;", "Sentiment_Subjectivity<0.5; current version refers to Current Ver;", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';"]}} {"set": {"query": "What is the average price for a dating application?", "pos": ["average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';"], "neg": ["percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "downloads and installs are synonyms; Installs = '1,000,000,000+';", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "neutral reviews refers to Sentiment = 'Neutral';", "multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);", "paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;", "negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';", "FALSE;", "lowest rating refers to Rating = 1;", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5"]}} {"set": {"query": "How many apps that are only compatible with Android ver 8.0 and above? List down the users' sentiment of these apps.", "pos": ["compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';"], "neg": ["app with gr8 in their comments refers to Translated_Review LIKE '%gr8%';", "average rating = AVG(Rating); percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*)), 100));", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "FREEDOME VPN Unlimited anonymous Wifi Security is the App; percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*))), 100)", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative')), SUM(Sentiment = 'Negative')) as percentage; having more positive sentiment than negative sentiment refers to Sentiment = 'Positive'>Sentiment = 'Negative';", "negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';"]}} {"set": {"query": "Name the Apps with a sentiment objectivity of 0.3 and include their number of installs.", "pos": ["FALSE;"], "neg": ["best selling app = MAX(MULTIPLY(Price, Installs));", "percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "most reviewed app refers to MAX(Reviews);", "FALSE;", "average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';", "users pretty much likes the app refers to Sentiment_Polarity = 'Positive';", "Sentiment_Subjectivity<0.5; current version refers to Current Ver;", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5"]}} {"set": {"query": "For the Akinator app, how many reviews have sentiment subjectivity of no more than 0.5 and what is its current version?", "pos": ["Sentiment_Subjectivity<0.5; current version refers to Current Ver;"], "neg": ["compatible with android refers to Android Ver; Android Ver\" = '8.0 and up';", "FALSE;", "Photography app refers to Genre = 'Photography'; highest total sentiment subjectivity score = MAX(sum(Sentiment_Subjectivity));", "best selling app = MAX(MULTIPLY(Price, Installs));", "lowest rating refers to Rating = 1;", "multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);", "average price = AVG(Price where Genre = 'Dating'); dating application refers to Genre = 'Dating';", "FALSE;", "average rating = AVG(Rating where Category = 'COMICS'); number of users who hold a positive attitude towards the app refers to SUM(Sentiment = 'Positive');", "negative comment refers to Sentiment = 'Negative'; Installs = '100,000,000+';"]}} {"set": {"query": "What is the percentage for free application with a rating 4.5 and above have not been updated since 2018?", "pos": ["paid refers to Type = 'Paid'; application refers to App; Rating>4.5; Last Updated>'2018; percentage = DIVIDE(SUM(Genres = 'Mature 17+' and Rating>4.5 and\u00a0substr(\"Last Updated\",-4,4)>'2018' )), (COUNT(App)) as percent;"], "neg": ["percentage = DIVIDE(SUBTRACT(SUM(Sentiment = 'Positive')), (SUM(Sentiment = 'Negative'))), (SUM(Sentiment = 'Negative')) as percent; Last Updated>'2015';", "multiple genres refers to COUNT(Genres>1; total sentiment subjectivity = Sum(Sentiment_Subjectivity);", "no comment refers to Translated_Review = 'nan'; percentage = DIVIDE((SUM(Content Rating = 'Teen')), COUNT(*));", "FALSE;", "Onefootball - Soccer Scores refers to App = 'Onefootball - Soccer Scores';", "lowest rating refers to Rating = 1;", "Reviews>75000000; suitable for teenagers refers to Content Rating = 'Teen';", "average rating = AVG(Rating); percentage = MULTIPLY(DIVIDE((SUM(Sentiment = 'Positive')), (COUNT(*)), 100));", "FALSE;", "Golfshot Plus: Golf GPS refers to App = 'Golfshot Plus: Golf GPS'; review refers to Translated_Review;"]}} {"set": {"query": "List all the negative comments on the \"Dog Run - Pet Dog Simulator\" app.", "pos": ["negative comment refers to Sentiment = 'Negative';"], "neg": ["best selling app = MAX(MULTIPLY(Price, Installs));", "downloads and installs are synonyms; entertainment apps refers to Category = 'ENTERTAINMENT';", "targeted to teen refers to Content Rating = 'Teen'; average = AVG(Sentiment_Polarity);", "average price = AVG(Price);", "Browser 4G is the App; pretty positive favorability refers to Sentiment_Polarity score = 0.5", "Brit + Co refers to App = 'Brit + Co'; comment refers to Translated Review NOT null;", "average review = AVG(Review); application refers to app; Rating = 5;", "FALSE;", "mildly likes the app refers to Sentiment_Polarity> = 0 and Sentiment_Polarity<0.5;", "average sentiment polarity score = AVG(Sentiment_Polarity); Golf GPS Rangefinder: Golf Pad\u00a0 is the App;"]}} {"set": {"query": "What is the full name of the journal that published the paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\"?", "pos": ["paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'"], "neg": ["in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "paper ID of 15 refers to PaperId = 15", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "don't have short name refers to ShortName is NULL OR ShortName = ''", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "'Joe Lograsso' is name of paper author", "topic is Sustainability refers to Keyword = 'Sustainability'", "'Mathematics of Program Construction' is the FullName of conference"]}} {"set": {"query": "How many journals do not have a website?", "pos": ["do not have a website refers to HomePage = ''"], "neg": ["'Jei Keon Chee' is the name of author;", "published in 2009 refers to Year = 2009", "'Joe Lograsso' is name of paper author", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' refers to Title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'", "'Zuliang Du' is the name of paper author; latest publication refers to MAX(Year)"]}} {"set": {"query": "What is the journal's short and full names that feature papers on the \"Materials\" topic?", "pos": ["papers on the \"Materials\" topic refers to Keyword = 'Materials'"], "neg": ["affiliated with Birkbeck University of London refers to Affiliation = 'Birkbeck University of London'", "published in 2009 refers to Year = 2009", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "'2004 YD5' is the title of paper", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation", "papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'", "NASA Langley Research Center is the Affiliation", "don't have short name refers to ShortName is NULL OR ShortName = ''", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;"]}} {"set": {"query": "What is the total number and conference's homepage of papers held in a conference with an ID of 187 during 1990 to 2000?", "pos": ["Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)"], "neg": ["year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "'Howard F. Lipson' is the name of author", "homepage URL refers to HomePage; 'Quality evaluation of long duration audiovisual content' is the Title", "'Joe Lograsso' is name of paper author", "after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "do not have a website refers to HomePage IS NULL OR HomePage = ''", "don't have short name refers to ShortName is NULL OR ShortName = ''", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;"]}} {"set": {"query": "In how many papers and in what years was the International Conference on Database Theory published?", "pos": ["the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0"], "neg": ["written by Andrew Cain refers to Name = 'Andrew Cain'", "author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "'Jei Keon Chee' is the name of author;", "'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)", "articles that are preprinted but not published refers to Year = 0", "from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage"]}} {"set": {"query": "State the name and affiliation of author for the 'Education, democracy and growth' paper?", "pos": ["Education, democracy and growth' refer to title of paper\n"], "neg": ["\"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is the title of paper; affiliated with refers to Affiliation; \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\" is the Affiliation organization", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "articles that are preprinted but not published refers to Year = 0", "paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' refers to Title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'", "\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10", "Published in 2008 refer to Year = 2008\n\n", "\"Area Effects in Cepaea\" is the title of paper", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100"]}} {"set": {"query": "How many papers were in the journal \"Iet Software/iee Proceedings - Software\"?", "pos": ["journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)"], "neg": ["'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "'Mathematics of Program Construction' is the FullName of conference", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "\"Area Effects in Cepaea\" is the title of paper", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "'Howard F. Lipson' is the name of author", "'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)"]}} {"set": {"query": "What are the three journals that the papers written by Andrew Cain were published in? Please provide your answer with the full name of each journal.", "pos": ["written by Andrew Cain refers to Name = 'Andrew Cain'"], "neg": ["affiliated with Birkbeck University of London refers to Affiliation = 'Birkbeck University of London'", "'2004 YD5' is the title of paper", "do not have a website refers to HomePage = ''", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "paper ID of 15 refers to PaperId = 15", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'"]}} {"set": {"query": "How many publications were published by author named 'Howard F. Lipson'?", "pos": ["'Howard F. Lipson' is the name of author"], "neg": ["\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "journal ID of 200 to 300 refers to JournalId BETWEEN 200 AND 300; short name starts with A refers to ShortName LIKE 'A%'; Percentage = Divide (Count(ConferenceId = 0), Count(ConferenceId)) * 100", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "\"Stitching videos streamed by mobile phones in real-time\" is the Title of paper; what the paper is about refers to Keywords", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'", "paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage"]}} {"set": {"query": "List the names of authors affiliated with the University of Oxford in alphabetical order.", "pos": ["affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'"], "neg": ["full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "'ICCI' is the ShortName of conference; URL refer to HomePage", "in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10", "\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)"]}} {"set": {"query": "Write down the author name, affiliation, jounal short name and full name of the paper \"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\".", "pos": ["\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper"], "neg": ["'University of Illinois Chicago' is an affiliation", "affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation", "full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "'Education, democracy and growth' is the title of a paper", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)"]}} {"set": {"query": "What are the keywords for the paper which was published on \"Modeling Identification and Control\" in 1994?", "pos": ["'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published"], "neg": ["published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "Jianli Hua is the author of a paper", "Education, democracy and growth' refer to title of paper\n", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "\"Stitching videos streamed by mobile phones in real-time\" is the Title of paper; what the paper is about refers to Keywords", "\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName", "\"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is the title of paper; affiliated with refers to Affiliation; \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\" is the Affiliation organization"]}} {"set": {"query": "What is the name of the co-authors of the paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'?", "pos": ["paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' refers to Title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'"], "neg": ["'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published", "years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)", "paper ID of 15 refers to PaperId = 15", "\"University of Oulu\" is the Affiliation Organization", "after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'", "\"Klaus Zimmermann\" is the name of author", "authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair."]}} {"set": {"query": "List all the titles and their publishing journals from the 60's.", "pos": ["from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n"], "neg": ["paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "'University of Illinois Chicago' is an affiliation", "NASA Langley Research Center is the Affiliation", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName", "'ICCI' is the ShortName of conference; URL refer to HomePage", "author refers to PaperAuthor.Name; 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus' is the title; 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' is an Affiliation", "all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'"]}} {"set": {"query": "Which journal was the paper \"Education, democracy and growth\" published on? Give the full name of the journal.", "pos": ["'Education, democracy and growth' is the title of a paper"], "neg": ["year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "'Joe Lograsso' is name of paper author", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "'Howard F. Lipson' is the name of author", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "do not have a website refers to HomePage = ''", "paper ID of 15 refers to PaperId = 15", "in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0", "\"Stitching videos streamed by mobile phones in real-time\" is the Title of paper; what the paper is about refers to Keywords"]}} {"set": {"query": "Among the authors of the paper \"Stitching videos streamed by mobile phones in real-time\", how many of them are affiliated with Cairo Microsoft Innovation Lab?", "pos": ["\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization"], "neg": ["published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = \u2019IEEE Computer\u2019", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "Conference ID of 0 refers to ConferenceId = 0; journal ID of less than 100 refers to JournalId < 100", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "papers on the \"Materials\" topic refers to Keyword = 'Materials'", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010"]}} {"set": {"query": "Among author ID of under 1000, who published the paper in affiliation with Zurich, ETH, provide paper ID, year and keyword if any.", "pos": ["author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation"], "neg": ["full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "written by Andrew Cain refers to Name = 'Andrew Cain'", "IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = \u2019IEEE Computer\u2019", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "'Jei Keon Chee' is the name of author;", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)", "Mark A. Musen refer to Author.Name;", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "A Case of Unilateral Ashy Dermatosis refer to Title"]}} {"set": {"query": "Please list the titles of the paper whose authors include Klaus Zimmermann.", "pos": ["\"Klaus Zimmermann\" is the name of author"], "neg": ["affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "articles that are preprinted but not published refers to Year = 0", "Published in 2008 refer to Year = 2008\n\n", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10", "\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))", "Otterbein University is an Affiliation", "\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "'Education, democracy and growth' is the title of a paper"]}} {"set": {"query": "What is the full name of the conference in which the paper \"2004 YD5\" was published?", "pos": ["'2004 YD5' is the title of paper"], "neg": ["url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "homepage URL refers to HomePage; 'Quality evaluation of long duration audiovisual content' is the Title", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "Conference ID of 0 refers to ConferenceId = 0; journal ID of less than 100 refers to JournalId < 100", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n", "authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.", "Otterbein University is an Affiliation", "\"Klaus Zimmermann\" is the name of author"]}} {"set": {"query": "What are the journal homepages and author ID of the papers published in 2000 to 2005 with a word \"social\" in its title?", "pos": ["in 2000 to 2005 refers to Year BETWEEN 2000 AND 2005; a word \"social\" in its title refers to Title = '%SOCIAL%'"], "neg": ["\"Stitching videos streamed by mobile phones in real-time\" is the Title of paper; what the paper is about refers to Keywords", "Shueh-Lin Yau is the name of author;", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "Mark A. Musen refer to Author.Name;", "journal ID of 200 to 300 refers to JournalId BETWEEN 200 AND 300; short name starts with A refers to ShortName LIKE 'A%'; Percentage = Divide (Count(ConferenceId = 0), Count(ConferenceId)) * 100", "Jianli Hua is the author of a paper", "\"International Symposium of Robotics Research\" is the FullName of conference;", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "\"University of Oulu\" is the Affiliation Organization"]}} {"set": {"query": "Please list the names of the authors of the paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\".", "pos": ["paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'"], "neg": ["the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "\"Klaus Zimmermann\" is the name of author", "\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "NASA Langley Research Center is the Affiliation", "'University of Illinois Chicago' is an affiliation", "\"IWC\" is the ShortName of journal;\u00a0 '2000' and '2010' are Year;\u00a0 Difference = Subtract(Count(Paper.Id(Year = 2000)), Count(Paper.Id(Year = 2010)))", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "with \"chemiluminescence\" in its title refers to Title LIKE 'chemiluminescence%'; journal ID from 245 to 250 refers to JournalId BETWEEN 245 AND 250"]}} {"set": {"query": "What is the average number of papers published in the journal \"Molecular Brain\" every year from 2008 to 2011?", "pos": ["\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)"], "neg": ["year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "Otterbein University is an Affiliation", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "'Mathematics of Program Construction' is the FullName of conference"]}} {"set": {"query": "Among papers that were published in 2005, provide the author name of paper with key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\".", "pos": ["in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'"], "neg": ["\"Area Effects in Cepaea\" is the title of paper", "don't have short name refers to ShortName is NULL OR ShortName = ''", "NASA Langley Research Center is the Affiliation", "'Zuliang Du' is the name of paper author; latest publication refers to MAX(Year)", "years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "\"University of Oulu\" is the Affiliation Organization"]}} {"set": {"query": "Between \"Standford University\" and \"Massachusetts Institute of Technolgy\", which organization had affiliated with more author.?", "pos": ["\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))"], "neg": ["'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage", "IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = \u2019IEEE Computer\u2019", "NASA Langley Research Center is the Affiliation", "paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "written by Andrew Cain refers to Name = 'Andrew Cain'", "Education, democracy and growth' refer to title of paper\n", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "'ICCI' is the ShortName of conference; URL refer to HomePage", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'"]}} {"set": {"query": "Please list all of the associations that the authors of the paper \"FIBER: A Generalized Framework for Auto-tuning Software\" are affiliated with.", "pos": ["paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation"], "neg": ["Mark A. Musen refer to Author.Name;", "\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))", "IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = \u2019IEEE Computer\u2019", "\"University of Oulu\" is the Affiliation Organization", "paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "published in 2009 refers to Year = 2009", "\"Cairo Microsoft Innovation Lab\" is the Affiliation organization", "paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'", "associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0"]}} {"set": {"query": "What is the paper \"Stitching videos streamed by mobile phones in real-time\" about?", "pos": ["\"Stitching videos streamed by mobile phones in real-time\" is the Title of paper; what the paper is about refers to Keywords"], "neg": ["'Howard F. Lipson' is the name of author", "in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "affiliated with Birkbeck University of London refers to Affiliation = 'Birkbeck University of London'", "A Case of Unilateral Ashy Dermatosis refer to Title", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "'2004 YD5' is the title of paper", "'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author"]}} {"set": {"query": "How many papers were preprinted between the years 1990 and 2000?", "pos": ["years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)"], "neg": ["'Jei Keon Chee' is the name of author;", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "'ICCI' is the ShortName of conference; URL refer to HomePage", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "'Mathematics of Program Construction' is the FullName of conference"]}} {"set": {"query": "Among the papers published in 2009, pick 10 and list down the conference's short name of these papers.", "pos": ["published in 2009 refers to Year = 2009"], "neg": ["paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "\"IWC\" is the ShortName of journal;\u00a0 '2000' and '2010' are Year;\u00a0 Difference = Subtract(Count(Paper.Id(Year = 2000)), Count(Paper.Id(Year = 2010)))", "paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "papers that Jundu has written refers to Name LIKE '%Jun du%'", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'", "paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)"]}} {"set": {"query": "Among the author who drafted the paper \"A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus\", which of them is/are affiliated with the Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea\n?", "pos": ["author refers to PaperAuthor.Name; 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus' is the title; 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' is an Affiliation"], "neg": ["\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "'Jei Keon Chee' is the name of author;", "written by Andrew Cain refers to Name = 'Andrew Cain'", "with \"chemiluminescence\" in its title refers to Title LIKE 'chemiluminescence%'; journal ID from 245 to 250 refers to JournalId BETWEEN 245 AND 250", "Ibm Journal of Research and Development refer to FullName\n\n'Ibm Journal of Research and Development' is the full name of paper", "\"International Symposium of Robotics Research\" is the FullName of conference;", "A Case of Unilateral Ashy Dermatosis refer to Title", "'Education, democracy and growth' is the title of a paper", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018"]}} {"set": {"query": "How many authors finished the paper \"An Improved Active Suspension Model for Attitude Control of Electric Vehicles\" together?", "pos": ["authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair."], "neg": ["full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "'Zuliang Du' is the name of paper author; latest publication refers to MAX(Year)", "topic is Sustainability refers to Keyword = 'Sustainability'", "\"Stitching videos streamed by mobile phones in real-time\" is the Title of paper; what the paper is about refers to Keywords", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)", "do not have a website refers to HomePage IS NULL OR HomePage = ''", "'Joe Lograsso' is name of paper author", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "'Education, democracy and growth' is the title of a paper", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation"]}} {"set": {"query": "Under the conference name of MICRO, calculate how many more paper is needed to published in 1971 to 1980 in average by yearly to get equivalent to the number of paper from 1991 to 2000. Write down the title and author name of the paper that were actually published during 1971 to 1980 with the conference name with MICRO.", "pos": ["\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10"], "neg": ["author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "journal ID of 200 to 300 refers to JournalId BETWEEN 200 AND 300; short name starts with A refers to ShortName LIKE 'A%'; Percentage = Divide (Count(ConferenceId = 0), Count(ConferenceId)) * 100", "'Jei Keon Chee' is the name of author;", "'Mathematics of Program Construction' is the FullName of conference", "\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "affiliated with Birkbeck University of London refers to Affiliation = 'Birkbeck University of London'", "\"Area Effects in Cepaea\" is the title of paper", "articles that are preprinted but not published refers to Year = 0"]}} {"set": {"query": "What is the name of the authors of papers in which conferences have been published whose full name includes the word Workshop?", "pos": ["full name includes the word Workshop refers to FullName LIKE '%Workshop%'"], "neg": ["'Mathematics of Program Construction' is the FullName of conference", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "'Howard F. Lipson' is the name of author", "year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "articles that are preprinted but not published refers to Year = 0", "paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' refers to Title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'"]}} {"set": {"query": "Please list the titles of the papers published in the journal \"Concepts in Magnetic Resonance Part A\" in 2008.", "pos": ["journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018"], "neg": ["'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published", "'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "Ibm Journal of Research and Development refer to FullName\n\n'Ibm Journal of Research and Development' is the full name of paper", "'ICCI' is the ShortName of conference; URL refer to HomePage", "affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "Jianli Hua is the author of a paper", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)"]}} {"set": {"query": "Identify by publication year in the paper database all journals that don't have short name.", "pos": ["don't have short name refers to ShortName is NULL OR ShortName = ''"], "neg": ["in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "Ibm Journal of Research and Development refer to FullName\n\n'Ibm Journal of Research and Development' is the full name of paper", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "'ICCI' is the ShortName of conference; URL refer to HomePage", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "do not have a website refers to HomePage = ''"]}} {"set": {"query": "How many authors were associated with the Microsoft Research when paper number 1 was written?", "pos": ["associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1"], "neg": ["'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "Mark A. Musen refer to Author.Name;", "IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = \u2019IEEE Computer\u2019", "homepage URL refers to HomePage; 'Quality evaluation of long duration audiovisual content' is the Title", "Year = 0 means this paper is preprint, or not published", "\"Klaus Zimmermann\" is the name of author", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "Otterbein University is an Affiliation"]}} {"set": {"query": "What is the average number of papers published in the World Computer Congress each year?", "pos": ["published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))"], "neg": ["\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0", "homepage URL refers to HomePage; 'Quality evaluation of long duration audiovisual content' is the Title", "NASA Langley Research Center is the Affiliation", "papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'"]}} {"set": {"query": "Write down the author's name and IDs who are affiliated with Univeristiy of Oulu.", "pos": ["\"University of Oulu\" is the Affiliation Organization"], "neg": ["published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "topic is Sustainability refers to Keyword = 'Sustainability'", "do not have a website refers to HomePage IS NULL OR HomePage = ''", "\"Klaus Zimmermann\" is the name of author", "articles that are preprinted but not published refers to Year = 0", "'Jei Keon Chee' is the name of author;", "'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "don't have short name refers to ShortName is NULL OR ShortName = ''", "Education, democracy and growth' refer to title of paper\n"]}} {"set": {"query": "How many author published papers in the 'IEEE Computer' journal?", "pos": ["IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = \u2019IEEE Computer\u2019"], "neg": ["\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "Education, democracy and growth' refer to title of paper\n", "'ICCI' is the ShortName of conference; URL refer to HomePage", "in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "published in 2009 refers to Year = 2009", "Shueh-Lin Yau is the name of author;", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author"]}} {"set": {"query": "Provide the number of publications published in the journal named 'Academic Medicine' between 2005 and 2010.", "pos": ["'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010"], "neg": ["published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "paper ID of 15 refers to PaperId = 15", "in 2000 to 2005 refers to Year BETWEEN 2000 AND 2005; a word \"social\" in its title refers to Title = '%SOCIAL%'", "papers that are either preprinted or unpublished along refers to Year = 0", "don't have short name refers to ShortName is NULL OR ShortName = ''", "year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "\"Area Effects in Cepaea\" is the title of paper", "'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization"]}} {"set": {"query": "Within the year of 2001 to 2010, find the paper published rate of 2001.", "pos": ["year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100"], "neg": ["Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))", "'Mathematics of Program Construction' is the FullName of conference", "Year = 0 means this paper is preprint, or not published", "paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "Jianli Hua is the author of a paper", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "with \"chemiluminescence\" in its title refers to Title LIKE 'chemiluminescence%'; journal ID from 245 to 250 refers to JournalId BETWEEN 245 AND 250"]}} {"set": {"query": "Identify by papers title those in which conferences have been published that do not have a website..", "pos": ["do not have a website refers to HomePage IS NULL OR HomePage = ''"], "neg": ["papers on the \"Materials\" topic refers to Keyword = 'Materials'", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "\"University of Oulu\" is the Affiliation Organization", "associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1", "\"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is the title of paper; affiliated with refers to Affiliation; \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\" is the Affiliation organization", "NASA Langley Research Center is the Affiliation", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper"]}} {"set": {"query": "What is the percentage of preprints of John Van Reenen's papers?", "pos": ["year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))"], "neg": ["'Jei Keon Chee' is the name of author;", "paper ID of 15 refers to PaperId = 15", "homepage URL refers to HomePage; 'Quality evaluation of long duration audiovisual content' is the Title", "published between 2000 and 2005 refers to Year BETWEEN 2000 AND 2005; include the topic optical properties refers to Keyword LIKE '%optical properties%'", "'Howard F. Lipson' is the name of author", "\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "author refers to PaperAuthor.Name; 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus' is the title; 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' is an Affiliation", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018"]}} {"set": {"query": "Describe the paper title, published year, conference's short name and included author names in the paper ID of 15.", "pos": ["paper ID of 15 refers to PaperId = 15"], "neg": ["articles that are preprinted but not published refers to Year = 0", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "do not have a website refers to HomePage IS NULL OR HomePage = ''", "\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "'Howard F. Lipson' is the name of author", "'Education, democracy and growth' is the title of a paper", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%"]}} {"set": {"query": "How many publications were published in relation to the conference 'Adaptive Multimedia Retrieval' in 2007?", "pos": ["'Adaptive Multimedia Retrieval is the FullName of paper; in 2007 refer to Year = 2007"], "neg": ["full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "'Education, democracy and growth' is the title of a paper", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "\"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is the title of paper; affiliated with refers to Affiliation; \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\" is the Affiliation organization", "published in 2009 refers to Year = 2009", "author refers to PaperAuthor.Name; 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus' is the title; 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' is an Affiliation", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)"]}} {"set": {"query": "Calculate the differences of the paper number with the journal name of IWC in 2000 and 2010.", "pos": ["\"IWC\" is the ShortName of journal;\u00a0 '2000' and '2010' are Year;\u00a0 Difference = Subtract(Count(Paper.Id(Year = 2000)), Count(Paper.Id(Year = 2010)))"], "neg": ["year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "papers that are either preprinted or unpublished along refers to Year = 0", "affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation", "paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName"]}} {"set": {"query": "What is the short name for the journal that published the paper \"A Case of Unilateral Ashy Dermatosis\"?", "pos": ["A Case of Unilateral Ashy Dermatosis refer to Title"], "neg": ["'Adaptive Multimedia Retrieval is the FullName of paper; in 2007 refer to Year = 2007", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "'Joe Lograsso' is name of paper author", "with \"chemiluminescence\" in its title refers to Title LIKE 'chemiluminescence%'; journal ID from 245 to 250 refers to JournalId BETWEEN 245 AND 250", "years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)", "\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10"]}} {"set": {"query": "List out the full name and URL link of ICCI?", "pos": ["'ICCI' is the ShortName of conference; URL refer to HomePage"], "neg": ["author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'", "'Howard F. Lipson' is the name of author", "\"Cairo Microsoft Innovation Lab\" is the Affiliation organization", "Ibm Journal of Research and Development refer to FullName\n\n'Ibm Journal of Research and Development' is the full name of paper", "IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = \u2019IEEE Computer\u2019", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword"]}} {"set": {"query": "What is the full name of the journals that are published in the database papers whose topic is Sustainability?", "pos": ["topic is Sustainability refers to Keyword = 'Sustainability'"], "neg": ["author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "do not have a website refers to HomePage = ''", "\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'", "full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1", "papers that are either preprinted or unpublished along refers to Year = 0"]}} {"set": {"query": "State the title of papers published in the Ibm Journal of Research and Development.", "pos": ["Ibm Journal of Research and Development refer to FullName\n\n'Ibm Journal of Research and Development' is the full name of paper"], "neg": ["journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170", "published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "'Joe Lograsso' is name of paper author", "A Case of Unilateral Ashy Dermatosis refer to Title", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "Conference ID of 0 refers to ConferenceId = 0; journal ID of less than 100 refers to JournalId < 100", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'"]}} {"set": {"query": "Please provide the full name of the conference where one of the papers of Jean-luc Hainaut were published.", "pos": ["papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'"], "neg": ["author refers to PaperAuthor.Name; 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus' is the title; 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' is an Affiliation", "Otterbein University is an Affiliation", "\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))", "'Zuliang Du' is the name of paper author; latest publication refers to MAX(Year)", "A Case of Unilateral Ashy Dermatosis refer to Title", "'Joe Lograsso' is name of paper author", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName", "don't have short name refers to ShortName is NULL OR ShortName = ''", "articles that are preprinted but not published refers to Year = 0"]}} {"set": {"query": "In papers with journal IDs from 200 to 300 and with its short name starts with A, what is the percentage of papers with conference ID of 0?", "pos": ["journal ID of 200 to 300 refers to JournalId BETWEEN 200 AND 300; short name starts with A refers to ShortName LIKE 'A%'; Percentage = Divide (Count(ConferenceId = 0), Count(ConferenceId)) * 100"], "neg": ["Shueh-Lin Yau is the name of author;", "affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "'Theoretical Computer Science' is the FullName; paper refers to Title; published in 2003 refers to Year = 2003", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "\"Klaus Zimmermann\" is the name of author"]}} {"set": {"query": "Please list the titles of any two papers that Jundu has written.", "pos": ["papers that Jundu has written refers to Name LIKE '%Jun du%'"], "neg": ["journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "\"IWC\" is the ShortName of journal;\u00a0 '2000' and '2010' are Year;\u00a0 Difference = Subtract(Count(Paper.Id(Year = 2000)), Count(Paper.Id(Year = 2010)))", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170", "'Theoretical Computer Science' is the FullName; paper refers to Title; published in 2003 refers to Year = 2003", "Mark A. Musen refer to Author.Name;", "'ICCI' is the ShortName of conference; URL refer to HomePage", "with \"chemiluminescence\" in its title refers to Title LIKE 'chemiluminescence%'; journal ID from 245 to 250 refers to JournalId BETWEEN 245 AND 250"]}} {"set": {"query": "Mention the titile of paper writen by Joe Lograsso.", "pos": ["'Joe Lograsso' is name of paper author"], "neg": ["published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'", "'University of Illinois Chicago' is an affiliation", "'Theoretical Computer Science' is the FullName; paper refers to Title; published in 2003 refers to Year = 2003", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "journal ID of 200 to 300 refers to JournalId BETWEEN 200 AND 300; short name starts with A refers to ShortName LIKE 'A%'; Percentage = Divide (Count(ConferenceId = 0), Count(ConferenceId)) * 100", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage"]}} {"set": {"query": "List all the title of the paper that Jianli Hua published.", "pos": ["Jianli Hua is the author of a paper"], "neg": ["journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "NASA Langley Research Center is the Affiliation", "do not have a website refers to HomePage IS NULL OR HomePage = ''", "'Zuliang Du' is the name of paper author; latest publication refers to MAX(Year)", "homepage URL refers to HomePage; 'Quality evaluation of long duration audiovisual content' is the Title", "papers on the \"Materials\" topic refers to Keyword = 'Materials'", "Mark A. Musen refer to Author.Name;", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper"]}} {"set": {"query": "For the paper which was presented by \"Zvezdan Proti\u0107\", was it preprinted?", "pos": ["Year = 0 means this paper is preprint, or not published"], "neg": ["published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "'Howard F. Lipson' is the name of author", "papers that are either preprinted or unpublished along refers to Year = 0", "NASA Langley Research Center is the Affiliation", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)", "Otterbein University is an Affiliation", "published in 2009 refers to Year = 2009", "in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization"]}} {"set": {"query": "List all of the conferences where a paper was published in 2008.", "pos": ["Published in 2008 refer to Year = 2008\n\n"], "neg": ["about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "NASA Langley Research Center is the Affiliation", "year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "'Zuliang Du' is the name of paper author; latest publication refers to MAX(Year)", "affiliated with Birkbeck University of London refers to Affiliation = 'Birkbeck University of London'", "\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018"]}} {"set": {"query": "What is the full name of the conference in which the paper titled \"Extended Fuzzy Regression Models\" was published?", "pos": ["'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName"], "neg": ["associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1", "NASA Langley Research Center is the Affiliation", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "\"Area Effects in Cepaea\" is the title of paper", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "\"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is the title of paper; affiliated with refers to Affiliation; \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\" is the Affiliation organization", "'Howard F. Lipson' is the name of author", "affiliated with Birkbeck University of London refers to Affiliation = 'Birkbeck University of London'", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)", "journal ID of 200 to 300 refers to JournalId BETWEEN 200 AND 300; short name starts with A refers to ShortName LIKE 'A%'; Percentage = Divide (Count(ConferenceId = 0), Count(ConferenceId)) * 100"]}} {"set": {"query": "Gives the home page of the conference where the paper \"Increasing the Concurrency in Estelle\" is presented.", "pos": ["'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;"], "neg": ["Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "articles that are preprinted but not published refers to Year = 0", "paper ID of 15 refers to PaperId = 15", "'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage", "associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1", "Year = 0 means this paper is preprint, or not published", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "Published in 2008 refer to Year = 2008\n\n", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "\"Klaus Zimmermann\" is the name of author"]}} {"set": {"query": "What percentage of authors of the paper about Charged particle multiplicity are affiliated with INFN?", "pos": ["about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%"], "neg": ["\"Area Effects in Cepaea\" is the title of paper", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "'Theoretical Computer Science' is the FullName; paper refers to Title; published in 2003 refers to Year = 2003", "don't have short name refers to ShortName is NULL OR ShortName = ''", "in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170", "\"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is the title of paper; affiliated with refers to Affiliation; \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\" is the Affiliation organization", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published"]}} {"set": {"query": "Provide the title of the latest publication published by it's author 'Zuliang Du'.", "pos": ["'Zuliang Du' is the name of paper author; latest publication refers to MAX(Year)"], "neg": ["Mark A. Musen refer to Author.Name;", "authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "paper ID of 15 refers to PaperId = 15", "homepage URL refers to HomePage; 'Quality evaluation of long duration audiovisual content' is the Title", "papers on the \"Materials\" topic refers to Keyword = 'Materials'", "'ICCI' is the ShortName of conference; URL refer to HomePage", "paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'", "from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name"]}} {"set": {"query": "Enumerate the paper and author ID of authors with affiliation with Cairo Microsoft Innovation Lab.", "pos": ["\"Cairo Microsoft Innovation Lab\" is the Affiliation organization"], "neg": ["papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "papers on the \"Materials\" topic refers to Keyword = 'Materials'", "'University of Illinois Chicago' is an affiliation", "Published in 2008 refer to Year = 2008\n\n", "associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1", "after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)", "'Adaptive Multimedia Retrieval is the FullName of paper; in 2007 refer to Year = 2007", "paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'"]}} {"set": {"query": "How many authors are affiliated with NASA Langley Research Center?", "pos": ["NASA Langley Research Center is the Affiliation"], "neg": ["\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "'Education, democracy and growth' is the title of a paper", "'Mathematics of Program Construction' is the FullName of conference", "all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'", "'Adaptive Multimedia Retrieval is the FullName of paper; in 2007 refer to Year = 2007", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "'Jei Keon Chee' is the name of author;"]}} {"set": {"query": "Among all publications containing keywords 'Turbulent Fluids', what percentage of them was published in the journal named 'Physics of Fluids'?", "pos": ["'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage"], "neg": ["'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "in 2000 to 2005 refers to Year BETWEEN 2000 AND 2005; a word \"social\" in its title refers to Title = '%SOCIAL%'", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "don't have short name refers to ShortName is NULL OR ShortName = ''", "Conference ID of 0 refers to ConferenceId = 0; journal ID of less than 100 refers to JournalId < 100", "'Theoretical Computer Science' is the FullName; paper refers to Title; published in 2003 refers to Year = 2003", "do not have a website refers to HomePage IS NULL OR HomePage = ''", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "'Education, democracy and growth' is the title of a paper"]}} {"set": {"query": "List the authors and journal short name of the papers with \"chemiluminescence\" in its title and has a journal ID from 245 to 250.", "pos": ["with \"chemiluminescence\" in its title refers to Title LIKE 'chemiluminescence%'; journal ID from 245 to 250 refers to JournalId BETWEEN 245 AND 250"], "neg": ["written by Andrew Cain refers to Name = 'Andrew Cain'", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)", "IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = \u2019IEEE Computer\u2019", "do not have a website refers to HomePage IS NULL OR HomePage = ''"]}} {"set": {"query": "List author name for articles that are preprinted but not published.", "pos": ["articles that are preprinted but not published refers to Year = 0"], "neg": ["'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "author refers to PaperAuthor.Name; 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus' is the title; 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' is an Affiliation", "do not have a website refers to HomePage IS NULL OR HomePage = ''", "'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage", "NASA Langley Research Center is the Affiliation", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100"]}} {"set": {"query": "What are the affiliations of the author \"Mark A. Musen\" written on and off paper?", "pos": ["Mark A. Musen refer to Author.Name;"], "neg": ["'Theoretical Computer Science' is the FullName; paper refers to Title; published in 2003 refers to Year = 2003", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "\"International Symposium of Robotics Research\" is the FullName of conference;", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "\"IWC\" is the ShortName of journal;\u00a0 '2000' and '2010' are Year;\u00a0 Difference = Subtract(Count(Paper.Id(Year = 2000)), Count(Paper.Id(Year = 2010)))", "all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName"]}} {"set": {"query": "List all the paper that the journal \"Theoretical Computer Science\n\" published in 2003.", "pos": ["'Theoretical Computer Science' is the FullName; paper refers to Title; published in 2003 refers to Year = 2003"], "neg": ["url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "'Howard F. Lipson' is the name of author", "do not have a website refers to HomePage IS NULL OR HomePage = ''", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'", "NASA Langley Research Center is the Affiliation", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName"]}} {"set": {"query": "Identify by conference full name all papers in which a journal was not published but a conference.", "pos": ["journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0"], "neg": ["journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "'ICCI' is the ShortName of conference; URL refer to HomePage", "published between 2000 and 2005 refers to Year BETWEEN 2000 AND 2005; include the topic optical properties refers to Keyword LIKE '%optical properties%'", "\"University of Oulu\" is the Affiliation Organization", "full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "Year = 0 means this paper is preprint, or not published", "from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n"]}} {"set": {"query": "What percentage of papers were preprinted after the year 2000?", "pos": ["after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))"], "neg": ["\"IWC\" is the ShortName of journal;\u00a0 '2000' and '2010' are Year;\u00a0 Difference = Subtract(Count(Paper.Id(Year = 2000)), Count(Paper.Id(Year = 2010)))", "\"International Symposium of Robotics Research\" is the FullName of conference;", "authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' refers to Title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'", "articles that are preprinted but not published refers to Year = 0", "topic is Sustainability refers to Keyword = 'Sustainability'", "full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation"]}} {"set": {"query": "Who is the author of the paper titled \"Open Sourcing Social Solutions (Building Communities of Change)\"?", "pos": ["'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name"], "neg": ["'ICCI' is the ShortName of conference; URL refer to HomePage", "papers that are either preprinted or unpublished along refers to Year = 0", "\"IWC\" is the ShortName of journal;\u00a0 '2000' and '2010' are Year;\u00a0 Difference = Subtract(Count(Paper.Id(Year = 2000)), Count(Paper.Id(Year = 2010)))", "\"University of Oulu\" is the Affiliation Organization", "paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "'Howard F. Lipson' is the name of author", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "written by Andrew Cain refers to Name = 'Andrew Cain'", "don't have short name refers to ShortName is NULL OR ShortName = ''"]}} {"set": {"query": "Give the Title and author's name of the books that were preprint in 1997.", "pos": ["in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0"], "neg": ["do not have a website refers to HomePage = ''", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "'2004 YD5' is the title of paper", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "'Zuliang Du' is the name of paper author; latest publication refers to MAX(Year)", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "'Jei Keon Chee' is the name of author;", "Mark A. Musen refer to Author.Name;", "associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1", "'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage"]}} {"set": {"query": "In the year 2012, which conference had the most papers presented? Give the short name of the conference.", "pos": ["Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName"], "neg": ["articles that are preprinted but not published refers to Year = 0", "'Education, democracy and growth' is the title of a paper", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "\"Area Effects in Cepaea\" is the title of paper", "in 2000 to 2005 refers to Year BETWEEN 2000 AND 2005; a word \"social\" in its title refers to Title = '%SOCIAL%'", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170"]}} {"set": {"query": "List the title of papers with a conference ID from 160 to 170, include their conference short name.", "pos": ["conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170"], "neg": ["Conference ID of 0 refers to ConferenceId = 0; journal ID of less than 100 refers to JournalId < 100", "paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10", "'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published", "papers that are either preprinted or unpublished along refers to Year = 0", "Mark A. Musen refer to Author.Name;", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "A Case of Unilateral Ashy Dermatosis refer to Title"]}} {"set": {"query": "Who are the authors of the paper \"Determination of Planetary Meteorology from Aerobot Flight Sensors\"?", "pos": ["'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper"], "neg": ["'University of Illinois Chicago' is an affiliation", "NASA Langley Research Center is the Affiliation", "in 2000 to 2005 refers to Year BETWEEN 2000 AND 2005; a word \"social\" in its title refers to Title = '%SOCIAL%'", "do not have a website refers to HomePage = ''", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "written by Andrew Cain refers to Name = 'Andrew Cain'", "Shueh-Lin Yau is the name of author;", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "Ibm Journal of Research and Development refer to FullName\n\n'Ibm Journal of Research and Development' is the full name of paper", "'Mathematics of Program Construction' is the FullName of conference"]}} {"set": {"query": "What is the url of the journal in which the paper \"Area Effects in Cepaea\" was published?", "pos": ["url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper"], "neg": ["years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)", "'Howard F. Lipson' is the name of author", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.", "topic is Sustainability refers to Keyword = 'Sustainability'", "year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "Ibm Journal of Research and Development refer to FullName\n\n'Ibm Journal of Research and Development' is the full name of paper"]}} {"set": {"query": "Among the papers with conference ID of 0, list down the authors of papers with a journal ID less than 100.", "pos": ["Conference ID of 0 refers to ConferenceId = 0; journal ID of less than 100 refers to JournalId < 100"], "neg": ["don't have short name refers to ShortName is NULL OR ShortName = ''", "after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "'2004 YD5' is the title of paper", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "Published in 2008 refer to Year = 2008\n\n", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "papers that Jundu has written refers to Name LIKE '%Jun du%'"]}} {"set": {"query": "How many authors is affiliated to the organization \"Otterbein University\"?", "pos": ["Otterbein University is an Affiliation"], "neg": ["about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "do not have a website refers to HomePage = ''", "paper ID of 15 refers to PaperId = 15", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName", "published in 2009 refers to Year = 2009"]}} {"set": {"query": "What was the topic of the article \"A Formal Approach to Service Component Architecture\" and when was it published?", "pos": ["article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword"], "neg": ["published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170", "do not have a website refers to HomePage = ''", "paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "'Zuliang Du' is the name of paper author; latest publication refers to MAX(Year)", "all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'", "affiliated with Birkbeck University of London refers to Affiliation = 'Birkbeck University of London'", "Year = 0 means this paper is preprint, or not published", "papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'", "'Joe Lograsso' is name of paper author"]}} {"set": {"query": "Among the author included in the paper of \"Inspection resistant memory: Architectural support for security from physical examination\", write down the author name and ID who were affiliated with Microsoft Research, USA.", "pos": ["\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation"], "neg": ["authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "\"Area Effects in Cepaea\" is the title of paper", "published in 2009 refers to Year = 2009", "papers that are either preprinted or unpublished along refers to Year = 0", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "Year = 0 means this paper is preprint, or not published", "published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName"]}} {"set": {"query": "List the paper title and journal ID which were published under the conference name of \"International Symposium of Robotics Research\".", "pos": ["\"International Symposium of Robotics Research\" is the FullName of conference;"], "neg": ["after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "paper ID of 15 refers to PaperId = 15", "published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "'Education, democracy and growth' is the title of a paper", "in 2000 to 2005 refers to Year BETWEEN 2000 AND 2005; a word \"social\" in its title refers to Title = '%SOCIAL%'", "topic is Sustainability refers to Keyword = 'Sustainability'", "from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n"]}} {"set": {"query": "How many authors have written paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \"?", "pos": ["paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'"], "neg": ["papers that are either preprinted or unpublished along refers to Year = 0", "all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'", "years 1990 and 2000 refers to Year BETWEEN '1990' AND '2000'; papers refers to COUNT(id)", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName"]}} {"set": {"query": "What are the conference name and journal name of paper written by Shueh-Lin Yau? List down the name of co-authors and provide the title of that paper.", "pos": ["Shueh-Lin Yau is the name of author;"], "neg": ["url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "'Joe Lograsso' is name of paper author", "papers that are either preprinted or unpublished along refers to Year = 0", "Year = 0 means this paper is preprint, or not published", "\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.", "with \"chemiluminescence\" in its title refers to Title LIKE 'chemiluminescence%'; journal ID from 245 to 250 refers to JournalId BETWEEN 245 AND 250", "full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n"]}} {"set": {"query": "List the names of all authors affiliated with Birkbeck University of London.", "pos": ["affiliated with Birkbeck University of London refers to Affiliation = 'Birkbeck University of London'"], "neg": ["'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' refers to Title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "'2004 YD5' is the title of paper", "from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n", "papers that are either preprinted or unpublished along refers to Year = 0", "published in 2009 refers to Year = 2009", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published"]}} {"set": {"query": "Please list the names of the authors of the paper \"Area Effects in Cepaea\".", "pos": ["\"Area Effects in Cepaea\" is the title of paper"], "neg": ["Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "\"Stitching videos streamed by mobile phones in real-time\" is the Title of paper; what the paper is about refers to Keywords", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "don't have short name refers to ShortName is NULL OR ShortName = ''", "all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10", "do not have a website refers to HomePage IS NULL OR HomePage = ''", "'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to FullName", "full name includes the word Workshop refers to FullName LIKE '%Workshop%'"]}} {"set": {"query": "What is the homepage address for paper \"Energy-efficiency bounds for noise-tolerant dynamic circuits\"?", "pos": ["\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper"], "neg": ["'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "don't have short name refers to ShortName is NULL OR ShortName = ''", "A Case of Unilateral Ashy Dermatosis refer to Title", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "'ICCI' is the ShortName of conference; URL refer to HomePage", "Published in 2008 refer to Year = 2008\n\n"]}} {"set": {"query": "Write down homepage URL of journal for paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\".", "pos": ["paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'"], "neg": ["after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;", "papers that are either preprinted or unpublished along refers to Year = 0", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "'Adaptive Multimedia Retrieval is the FullName of paper; in 2007 refer to Year = 2007", "\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "A Case of Unilateral Ashy Dermatosis refer to Title", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170", "in 1997 refers to Year = 1997; books that were preprint refers to ConferenceId = 0 AND JournalId = 0"]}} {"set": {"query": "How many papers are published under the conference \"Mathematics of Program Construction\n\"?", "pos": ["'Mathematics of Program Construction' is the FullName of conference"], "neg": ["author refers to PaperAuthor.Name; 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus' is the title; 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' is an Affiliation", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName", "paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' refers to Title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "Year = 0 means this paper is preprint, or not published", "Otterbein University is an Affiliation", "author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'"]}} {"set": {"query": "What is the title of the paper with the most authors?", "pos": ["paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)"], "neg": ["paper ID of 15 refers to PaperId = 15", "papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage", "IEEE Computer refer to FullName; How many author published papers refer to COUNT(PaperAuthor.Name) where FullName = \u2019IEEE Computer\u2019", "\"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is the title of paper; affiliated with refers to Affiliation; \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\" is the Affiliation organization", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "Mark A. Musen refer to Author.Name;", "'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published"]}} {"set": {"query": "Give the title and author's name of the papers published between 2000 and 2005 that include the topic optical properties.", "pos": ["published between 2000 and 2005 refers to Year BETWEEN 2000 AND 2005; include the topic optical properties refers to Keyword LIKE '%optical properties%'"], "neg": ["'Jei Keon Chee' is the name of author;", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "\"Inspection resistant memory: Architectural support for security from physical examination\" is the title of paper;\u00a0 'Microsoft Research, USA' is the Affiliation", "about Charged particle multiplicity refers to Title which contains 'Charged particle multiplicity'; affiliated with INFN refers to Affiliation LIKE '%INFN%' ; percentage refers to DIVIDE(COUNT(Affiliation LIKE '%INFN%' ), COUNT(AuthorId)) * 100%", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "'Mathematics of Program Construction' is the FullName of conference", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170", "with \"chemiluminescence\" in its title refers to Title LIKE 'chemiluminescence%'; journal ID from 245 to 250 refers to JournalId BETWEEN 245 AND 250"]}} {"set": {"query": "How many papers were presented at 'ECSQARU' in 2003?", "pos": ["Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'"], "neg": ["\"FIBER: A Generalized Framework for Auto-tuning Software\" is the Title of paper; affiliated refers to Affiliation;\u00a0 University of Tokyo is the affiliation organization", "Conference ID of 0 refers to ConferenceId = 0; journal ID of less than 100 refers to JournalId < 100", "Published in 2008 refer to Year = 2008\n\n", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "\"Stitching videos streamed by mobile phones in real-time\" is the Title of paper; what the paper is about refers to Keywords", "paper \"FIBER: A Generalized Framework for Auto-tuning Software\" refers to Title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to Affiliation", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name"]}} {"set": {"query": "How many more papers in total were published in the journal \"Cases Journal\" than in the journal \"Molecular Brain\" in percentage?", "pos": ["\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100"], "neg": ["Published in 2008 refer to Year = 2008\n\n", "journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "\"Klaus Zimmermann\" is the name of author", "\"International Symposium of Robotics Research\" is the FullName of conference;", "paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)", "\"Standford University\" and \"Massachusetts Institute of Technolgy\" are affiliation organization; affiliated with more author refers to Max(Count(Id))", "NASA Langley Research Center is the Affiliation", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "topic is Sustainability refers to Keyword = 'Sustainability'"]}} {"set": {"query": "Which author of the paper \"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is affiliated with National Taiwan University Department of Computer Science and Information Engineering Taiwan?", "pos": ["\"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is the title of paper; affiliated with refers to Affiliation; \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\" is the Affiliation organization"], "neg": ["journal \"Concepts in Magnetic Resonance Part A\" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018", "journal ID of 200 to 300 refers to JournalId BETWEEN 200 AND 300; short name starts with A refers to ShortName LIKE 'A%'; Percentage = Divide (Count(ConferenceId = 0), Count(ConferenceId)) * 100", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "Year = 0 means this paper is preprint, or not published", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "journal \"Iet Software/iee Proceedings - Software\" refers to FullName = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(JournalId)", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'", "affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation"]}} {"set": {"query": "What is the conference homepage URL of the paper titled \"Quality evaluation of long duration audiovisual content\"?", "pos": ["homepage URL refers to HomePage; 'Quality evaluation of long duration audiovisual content' is the Title"], "neg": ["Ibm Journal of Research and Development refer to FullName\n\n'Ibm Journal of Research and Development' is the full name of paper", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "in 2000 to 2005 refers to Year BETWEEN 2000 AND 2005; a word \"social\" in its title refers to Title = '%SOCIAL%'", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "Education, democracy and growth' refer to title of paper\n", "paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'", "don't have short name refers to ShortName is NULL OR ShortName = ''", "affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation", "'Theoretical Computer Science' is the FullName; paper refers to Title; published in 2003 refers to Year = 2003", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170"]}} {"set": {"query": "Which paper published by the \"TUBERCLE LUNG DIS\" journal is the oldest?", "pos": ["paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)"], "neg": ["'Physics of Fluids' is the FullName of journal; percentage = DIVIDE(SUM(Keyword = 'Turbulent Fluids'), SUM(FullName = 'Physics of Fluids')) as percentage", "in 2000 to 2005 refers to Year BETWEEN 2000 AND 2005; a word \"social\" in its title refers to Title = '%SOCIAL%'", "\"MICRO\" is the ShortName of conference; in 1971 to 1980 refers to Year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to Year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(PaperId(Year BETWEEN '1991' AND '2000')), Count(PaperId(Year BETWEEN '1971' AND '1980')))/10", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "NASA Langley Research Center is the Affiliation", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'"]}} {"set": {"query": "List the short name and home page URL of all the international conferences on artificial intelligence.", "pos": ["all the international conferences on artificial intelligence refers to FullName LIKE 'International Conference on Artificial Intelligence%'"], "neg": ["from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal", "journal was not published but a conference refers to ConferenceId ! = 0 And JournalId = 0 Year ! = 0", "the International Conference on Database Theory refers to FullName = 'International Conference on Database Theory'; published refers to year ! = 0", "'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "'Jei Keon Chee' is the name of author;", "do not have a website refers to HomePage IS NULL OR HomePage = ''"]}} {"set": {"query": "Who are the co-authors for Jei Keon Chae and what is the title of paper written by them?", "pos": ["'Jei Keon Chee' is the name of author;"], "neg": ["published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "paper \"364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results\" refers to Title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'", "Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "journal ID of 200 to 300 refers to JournalId BETWEEN 200 AND 300; short name starts with A refers to ShortName LIKE 'A%'; Percentage = Divide (Count(ConferenceId = 0), Count(ConferenceId)) * 100", "Jianli Hua is the author of a paper", "'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published", "Published in 2008 refer to Year = 2008\n\n", "\"IWC\" is the ShortName of journal;\u00a0 '2000' and '2010' are Year;\u00a0 Difference = Subtract(Count(Paper.Id(Year = 2000)), Count(Paper.Id(Year = 2010)))", "associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1"]}} {"set": {"query": "What is the title of the paper published in 1995 and whose author included Thomas Wiegand?", "pos": ["published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author"], "neg": ["year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' refers to Title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'", "in 2005 refers to Year = '2005'; key words of \"LOAD; IDE; SNP; haplotype; asso- ciation studies\" refers to Keyword = 'LOAD; IDE; SNP; haplotype; asso- ciation studies'", "don't have short name refers to ShortName is NULL OR ShortName = ''", "\"Cairo Microsoft Innovation Lab\" is the Affiliation organization", "\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "Shueh-Lin Yau is the name of author;", "authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.", "Id of 187 refers to ConferenceId = 187; during 1990 to 2000 refers to Year BETWEEN 1990 and 2000; total number of conference refers to Count(ConferenceId = 187)", "\"Area Effects in Cepaea\" is the title of paper"]}} {"set": {"query": "How many papers whose authors include Thomas Wiegand were published in 1995?", "pos": ["published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author"], "neg": ["'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is \"0\", it means this paper is preprint, or not published", "author ID of under 100 refers to AuthorId < 100; 'Zurich, ETH' is the Affiliation", "don't have short name refers to ShortName is NULL OR ShortName = ''", "'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to PaperAuthor.Name", "papers on the \"Materials\" topic refers to Keyword = 'Materials'", "papers of Jean-luc Hainaut refers to Name = 'Jean-luc Hainaut'", "published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author", "affiliated with the University of Oxford refers to Affiliation = 'University of Oxford'", "\"Molecular Brain\" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100"]}} {"set": {"query": "Please provide the titles of any two papers that are either preprinted or unpublished along with the full name of the journal to which those papers belong.", "pos": ["papers that are either preprinted or unpublished along refers to Year = 0"], "neg": ["\"Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web\" is the title of paper; affiliated with refers to Affiliation; \"National Taiwan University Department of Computer Science and Information Engineering Taiwan\" is the Affiliation organization", "with \"chemiluminescence\" in its title refers to Title LIKE 'chemiluminescence%'; journal ID from 245 to 250 refers to JournalId BETWEEN 245 AND 250", "associated with the Microsoft Research refers to Affiliation contains 'Microsoft Research'; paper number 1 refers to PaperId = 1", "'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "'Joe Lograsso' is name of paper author", "written by Andrew Cain refers to Name = 'Andrew Cain'", "'University of Illinois Chicago' is an affiliation", "NASA Langley Research Center is the Affiliation", "'ICCI' is the ShortName of conference; URL refer to HomePage", "paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)"]}} {"set": {"query": "How many papers were published in 2011 in the journal whose short name is \"Mol Brain\"?", "pos": ["in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal"], "neg": ["'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper", "paper \"Multiple paternity in a natural population of a salamander with long-term sperm storage\" refers to Title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'", "'Jei Keon Chee' is the name of author;", "'Joe Lograsso' is name of paper author", "paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "journal ID of 200 to 300 refers to JournalId BETWEEN 200 AND 300; short name starts with A refers to ShortName LIKE 'A%'; Percentage = Divide (Count(ConferenceId = 0), Count(ConferenceId)) * 100", "after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "published between 2000 and 2005 refers to Year BETWEEN 2000 AND 2005; include the topic optical properties refers to Keyword LIKE '%optical properties%'", "from the 60\u2019s refer to Year 1960 BETWEEN 1970\n\n", "\"IWC\" is the ShortName of journal;\u00a0 '2000' and '2010' are Year;\u00a0 Difference = Subtract(Count(Paper.Id(Year = 2000)), Count(Paper.Id(Year = 2010)))"]}} {"set": {"query": "List the name of the author that affiliated with University of Illinois Chicago?", "pos": ["'University of Illinois Chicago' is an affiliation"], "neg": ["published in the World Computer Congress refers to FullName = 'World Computer Congress'; average refers to DIVIDE(COUNT(FullName = 'World Computer Congress'), COUNT(Id))", "article \"A Formal Approach to Service Component Architecture\" refers to Title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to Keyword", "Otterbein University is an Affiliation", "paper \"145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: \" refers to Title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%'", "'Joe Lograsso' is name of paper author", "year of 2001 to 2010 refers to Year BETWEEN 2001 AND 2010; Percentage = Divide(Count (PaperId(Year = 2001)), Count (PaperID(Year BETWEEN 2001 AND 2010))) * 100", "full name includes the word Workshop refers to FullName LIKE '%Workshop%'", "year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND\u00a0 JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))", "\"Cases Journal\" and \"Molecular Brain\" are FullName of journal; more paper in percentage = Subtract(Count(Id(FullName = 'Cases Journal')), Count(Id(FullName = 'Molecular Brain')))/ Count(Id(FullNmae = 'Molecular Brain')) * 100", "do not have a website refers to HomePage = ''"]}} {"set": {"query": "How many authors are affiliated with University of California Berkeley?", "pos": ["affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation"], "neg": ["after the year 2000 refers to Year > 2000; preprinted refers to ConferenceId = 0 AND JournalId = 0; percentage refers to DIVIDE(COUNT(ConferenceId = 0 AND JournalId = 0 AND Year > 2000), COUNT(Id))", "paper \"Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers\" refers to Title = 'Hypermethylation of the TPEF/HPP1 Gene in Primary and Metastatic Colorectal Cancers'", "\"Area Effects in Cepaea\" is the title of paper", "'Academic Medicine' is the FullName of journal; between 2005 and 2010 refer to Year 2005 BETWEEN 2010", "\"Energy-efficiency bounds for noise-tolerant dynamic circuits\" is the Title of paper", "url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper", "'Howard F. Lipson' is the name of author", "\"Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats\" is the Title of paper", "conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170", "\"Stitching videos streamed by mobile phones in real-time\" is the Title of paper; what the paper is about refers to Keywords"]}} {"set": {"query": "Which brewery does the most purchased root beer in 2016 belong to?", "pos": ["most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';"], "neg": ["brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate);", "full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10;", "stars refers to StarRating; Frostie refers to BrandName = 'Frostie';", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "FALSE;"]}} {"set": {"query": "What is the precise location of all paying customers with American Express?", "pos": ["precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';"], "neg": ["between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "Thomas Kemper refers to BrandName = 'Thomas Kemper';\u00a0 latitude the beer is consumed the most refers to MAX(COUNT(Latitude));", "California refers to State = 'CA';", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;", "percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;", "difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'"]}} {"set": {"query": "Which brewery brewed the most sold root beer in 2015?", "pos": ["brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';"], "neg": ["name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "users permit the company to send regular emails to them refers to subscribedtoemaillist = 'TRUE'; Visa card refers to creditcardtype = 'Visa'; in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "precise location = Latitude, Longitude;", "brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';", "visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0);", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';"]}} {"set": {"query": "How many transactions were made in Sac State Union using the American Express credit card in 2014?", "pos": ["Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';"], "neg": ["AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);", "stars refers to StarRating; Frostie refers to BrandName = 'Frostie';", "brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0);", "average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10';", "transaction no. refers to TransactionID; TransactionID = 103545;", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;"]}} {"set": {"query": "What brand of beer has been the worst rated most times?", "pos": ["brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));"], "neg": ["AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "full name = First, Last; customers who have purchased at least one root beer refers to CustomerID > = 1; produced by AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "FALSE;", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "stars refers to StarRating; Frostie refers to BrandName = 'Frostie';", "California refers to State = 'CA';", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));"]}} {"set": {"query": "Please list the brands of all the root beer that Frank-Paul Santangelo had purchased on 2014/7/7.", "pos": ["brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';"], "neg": ["5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "FALSE;", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "percentage = \u00a0 MULTIPLY(DIVIDE(SUM(LocationName = 'Sac State American River Courtyard'), COUNT(LocationID)), 1.0); Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "star rating is more than 3 refers to StarRating > 3;"]}} {"set": {"query": "Among the root beer purchased in 2014, what percentage were sold in cans?", "pos": ["in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';"], "neg": ["most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "California refers to State = 'CA';", "precise location = Latitude, Longitude;", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';", "do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);", "5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "star rating is more than 3 refers to StarRating > 3;"]}} {"set": {"query": "Which of the root beer brand have the lowest purchase?", "pos": ["root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));"], "neg": ["difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'", "name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';", "3 star rating refers to StarRating = 3; Frostie refers to\u00a0 BrandName = 'Frostie'; if SubscribedToEmailList = 'TRUE', it means the user permit the company to send regular emails to him/her; if SubscribedToEmailList = FALSE', it means the user did not permit the company to send regular emails to him/her; rating on 2014/4/24 refers to ReviewDate = '2014-04-24';", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));"]}} {"set": {"query": "Among the male customers in Sacramento, what percentage bought Dominion root beer in 2013?", "pos": ["male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;"], "neg": ["September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "FALSE;", "available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';", "average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10';", "brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));"]}} {"set": {"query": "What are the full names of the customer who gave River City a 5-star?", "pos": ["full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;"], "neg": ["root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);", "non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';"]}} {"set": {"query": "What is the email address of the customer who made a purchase in transaction 100016?", "pos": ["email address refers to Email; transaction 100016 refers to TransactionID = 100016;"], "neg": ["brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "FALSE;", "do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';", "California refers to State = 'CA';"]}} {"set": {"query": "List the brands of root beer produced by Dr Pepper Snapple Group and calculate their percentage of purchases between 2014 to 2016.", "pos": ["brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;"], "neg": ["name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "email address refers to Email; transaction 100016 refers to TransactionID = 100016;", "type of card refers to CreditCardType;", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M';", "Australia refers to Country = 'Australia';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';"]}} {"set": {"query": "Among the transactions, what percentage is done by using a visa card?", "pos": ["visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0);"], "neg": ["root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10';", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "FALSE;", "transaction no. refers to TransactionID; TransactionID = 103545;", "Australia refers to Country = 'Australia';", "name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';"]}} {"set": {"query": "How many transactions were made at Sac State Union?", "pos": ["Sac State Union refers to LocationName = 'Sac State Union';"], "neg": ["between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "precise location = Latitude, Longitude;", "users permit the company to send regular emails to them refers to subscribedtoemaillist = 'TRUE'; Visa card refers to creditcardtype = 'Visa'; in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';", "A&W refers to BrandName = 'A&W';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';"]}} {"set": {"query": "For the root beer brand with the most 5 star ratings, what is the name of the brewery?", "pos": ["most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;"], "neg": ["Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';", "brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);", "FALSE;", "average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10';", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate);", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));"]}} {"set": {"query": "Please list the dates on which a male customer has purchased more than 3 root beers.", "pos": ["dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3;"], "neg": ["in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';", "percentage = \u00a0 MULTIPLY(DIVIDE(SUM(LocationName = 'Sac State American River Courtyard'), COUNT(LocationID)), 1.0); Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';", "visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0);", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;"]}} {"set": {"query": "Which city does the customer who finished transaction no.103545 live in?", "pos": ["transaction no. refers to TransactionID; TransactionID = 103545;"], "neg": ["review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "Sac State Union refers to LocationName = 'Sac State Union';", "MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';", "Australia refers to Country = 'Australia';"]}} {"set": {"query": "How many sweet bottled root beers that do not contain cane sugar were purchased in 2015 through the selling company located in Sac State American River Courtyard?", "pos": ["sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';"], "neg": ["stars refers to StarRating; Frostie refers to BrandName = 'Frostie';", "star rating is more than 3 refers to StarRating > 3;", "visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0);", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';"]}} {"set": {"query": "Between Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer?", "pos": ["Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));"], "neg": ["transaction no. refers to TransactionID; TransactionID = 103545;", "brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "FALSE;", "California refers to State = 'CA';", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "FALSE;", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';"]}} {"set": {"query": "What star rating is the most common for beers containing corn syrup?", "pos": ["most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';"], "neg": ["in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M';", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "Thomas Kemper refers to BrandName = 'Thomas Kemper';\u00a0 latitude the beer is consumed the most refers to MAX(COUNT(Latitude));", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';"]}} {"set": {"query": "How many root beers of the Bulldog were purchased in August, 2014?", "pos": ["Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';"], "neg": ["Australia refers to Country = 'Australia';", "FALSE;", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "users permit the company to send regular emails to them refers to subscribedtoemaillist = 'TRUE'; Visa card refers to creditcardtype = 'Visa'; in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "email address refers to Email; transaction 100016 refers to TransactionID = 100016;", "full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10;", "in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';"]}} {"set": {"query": "List out the root beers bought by Tim Ocel and Dawn Childress.", "pos": ["FALSE;"], "neg": ["brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';", "FALSE;", "bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express';", "full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';", "5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "email address refers to Email; transaction 100016 refers to TransactionID = 100016;", "Sac State Union refers to LocationName = 'Sac State Union';"]}} {"set": {"query": "Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages?", "pos": ["sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';"], "neg": ["lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "California refers to State = 'CA';", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';", "5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';"]}} {"set": {"query": "What is the description of the root beer brand A&W?", "pos": ["A&W refers to BrandName = 'A&W';"], "neg": ["5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';", "brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';", "brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "3 star rating refers to StarRating = 3; Frostie refers to\u00a0 BrandName = 'Frostie'; if SubscribedToEmailList = 'TRUE', it means the user permit the company to send regular emails to him/her; if SubscribedToEmailList = FALSE', it means the user did not permit the company to send regular emails to him/her; rating on 2014/4/24 refers to ReviewDate = '2014-04-24';", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;", "users permit the company to send regular emails to them refers to subscribedtoemaillist = 'TRUE'; Visa card refers to creditcardtype = 'Visa'; in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);", "name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));"]}} {"set": {"query": "List the brand IDs of the beers whose star rating is more than 3.", "pos": ["star rating is more than 3 refers to StarRating > 3;"], "neg": ["bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express';", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;", "brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';"]}} {"set": {"query": "Please list the names of all the root beer brands that are advertised on facebook.", "pos": ["name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;"], "neg": ["percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';", "September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "3 star rating refers to StarRating = 3; Frostie refers to\u00a0 BrandName = 'Frostie'; if SubscribedToEmailList = 'TRUE', it means the user permit the company to send regular emails to him/her; if SubscribedToEmailList = FALSE', it means the user did not permit the company to send regular emails to him/her; rating on 2014/4/24 refers to ReviewDate = '2014-04-24';", "full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate);", "FALSE;", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));"]}} {"set": {"query": "How many transactions had Frank-Paul Santangelo made in July, 2014?", "pos": ["in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';"], "neg": ["non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "FALSE;", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';"]}} {"set": {"query": "Which brand of root beer was highly rated by customers?", "pos": ["brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));"], "neg": ["percentage = \u00a0 MULTIPLY(DIVIDE(SUM(LocationName = 'Sac State American River Courtyard'), COUNT(LocationID)), 1.0); Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "star rating is more than 3 refers to StarRating > 3;", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "type of card refers to CreditCardType;", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';"]}} {"set": {"query": "For the customer who leaves the review content of \"Tastes like Australia.\", when was his/her first purchase date?", "pos": ["review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';"], "neg": ["non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "brand of root beer refers to BrandName; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); ID of the customer refers to CustomerID; highest number of purchases refers to MAX(COUNT(CustomerID));", "do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "type of card refers to CreditCardType;", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "transaction no. refers to TransactionID; TransactionID = 103545;", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));"]}} {"set": {"query": "List down the brand names of root beer that gained a 5-star rating from a customer's review in 2013. Calculate the unit profit available to wholesalers for each brand.", "pos": ["5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);"], "neg": ["full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;", "FALSE;", "bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express';", "3 star rating refers to StarRating = 3; Frostie refers to\u00a0 BrandName = 'Frostie'; if SubscribedToEmailList = 'TRUE', it means the user permit the company to send regular emails to him/her; if SubscribedToEmailList = FALSE', it means the user did not permit the company to send regular emails to him/her; rating on 2014/4/24 refers to ReviewDate = '2014-04-24';", "brand of root beer refers to BrandName; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); ID of the customer refers to CustomerID; highest number of purchases refers to MAX(COUNT(CustomerID));", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));"]}} {"set": {"query": "How many transactions have been made to purchase a root beer brand from California?", "pos": ["California refers to State = 'CA';"], "neg": ["between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "California refers to State = 'CA';", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';", "full name = First, Last; customers who have purchased at least one root beer refers to CustomerID > = 1; produced by AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "transaction no. refers to TransactionID; TransactionID = 103545;"]}} {"set": {"query": "How many brands of root beers are available in cans and contain corn syrup and artificial sweeteners?", "pos": ["available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';"], "neg": ["Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "Australia refers to Country = 'Australia';", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "type of card refers to CreditCardType;", "FALSE;", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';"]}} {"set": {"query": "What is the precise location of zip code 95819?", "pos": ["precise location = Latitude, Longitude;"], "neg": ["Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';", "email address refers to Email; transaction 100016 refers to TransactionID = 100016;", "brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));", "A&W refers to BrandName = 'A&W';", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));", "brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';", "Australia refers to Country = 'Australia';", "difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'"]}} {"set": {"query": "Which location sold more bottles of beer?", "pos": ["location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));"], "neg": ["brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "transaction no. refers to TransactionID; TransactionID = 103545;", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "star rating is more than 3 refers to StarRating > 3;", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);"]}} {"set": {"query": "Which brand has the lowest star rating with a \"Too spicy!\" review?", "pos": ["lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';"], "neg": ["September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);", "non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "California refers to State = 'CA';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "full name = First, Last; customers who have purchased at least one root beer refers to CustomerID > = 1; produced by AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);"]}} {"set": {"query": "List the full name and phone number of male customers from Fair Oaks who are subscribed to the email list.", "pos": ["full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';"], "neg": ["most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M';", "brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "California refers to State = 'CA';", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "FALSE;", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';"]}} {"set": {"query": "Among the root beers sold in bottles, how many are sold at the location 38.559615, -121.42243?", "pos": ["in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;"], "neg": ["Thomas Kemper refers to BrandName = 'Thomas Kemper';\u00a0 latitude the beer is consumed the most refers to MAX(COUNT(Latitude));", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';"]}} {"set": {"query": "How many transactions were paid through MasterCard in 2014?", "pos": ["MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';"], "neg": ["female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));", "email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';"]}} {"set": {"query": "Please list the full names of the customers who have purchased at least one root beer produced by AJ Stephans Beverages.", "pos": ["full name = First, Last; customers who have purchased at least one root beer refers to CustomerID > = 1; produced by AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';"], "neg": ["difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "FALSE;", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M';", "brand of root beer refers to BrandName; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); ID of the customer refers to CustomerID; highest number of purchases refers to MAX(COUNT(CustomerID));", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "precise location = Latitude, Longitude;"]}} {"set": {"query": "Please name all of the cities in California.", "pos": ["California refers to State = 'CA';"], "neg": ["Thomas Kemper refers to BrandName = 'Thomas Kemper';\u00a0 latitude the beer is consumed the most refers to MAX(COUNT(Latitude));", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "type of card refers to CreditCardType;", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';", "FALSE;", "3 star rating refers to StarRating = 3; Frostie refers to\u00a0 BrandName = 'Frostie'; if SubscribedToEmailList = 'TRUE', it means the user permit the company to send regular emails to him/her; if SubscribedToEmailList = FALSE', it means the user did not permit the company to send regular emails to him/her; rating on 2014/4/24 refers to ReviewDate = '2014-04-24';", "in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;"]}} {"set": {"query": "What is the name of the brand of the beer with the shortest brewed history?", "pos": ["name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);"], "neg": ["brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3;", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "FALSE;", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express';", "full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10;", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;"]}} {"set": {"query": "From which cities are the customers who gave 5 stars in their reviews in November 2012?", "pos": ["5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';"], "neg": ["email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';", "California refers to State = 'CA';", "percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;", "September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';"]}} {"set": {"query": "Which customer has the most reviews? State the full name.", "pos": ["customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;"], "neg": ["Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express';", "brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);", "brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate);", "California refers to State = 'CA';", "FALSE;"]}} {"set": {"query": "Which brand of root beer did Jayne Collins give the lowest rating?", "pos": ["brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);"], "neg": ["5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';", "stars refers to StarRating; Frostie refers to BrandName = 'Frostie';", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "Sac State Union refers to LocationName = 'Sac State Union';", "brand of root beer refers to BrandName; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); ID of the customer refers to CustomerID; highest number of purchases refers to MAX(COUNT(CustomerID));", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "California refers to State = 'CA';", "FALSE;", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "percentage = \u00a0 MULTIPLY(DIVIDE(SUM(LocationName = 'Sac State American River Courtyard'), COUNT(LocationID)), 1.0); Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';"]}} {"set": {"query": "In which city is the brewery AJ Stephans Beverages located?", "pos": ["AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';"], "neg": ["5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));", "full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate);", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));"]}} {"set": {"query": "Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014?", "pos": ["do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';"], "neg": ["name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);", "non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "type of card refers to CreditCardType;", "brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);", "root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "FALSE;", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';", "email address refers to Email; transaction 100016 refers to TransactionID = 100016;"]}} {"set": {"query": "What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015?", "pos": ["average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10';"], "neg": ["5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));", "5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';", "dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3;", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "FALSE;", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';"]}} {"set": {"query": "What is the average cost of root beers purchased for more than 2 dollars and sold in bottles?", "pos": ["average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';"], "neg": ["not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "users permit the company to send regular emails to them refers to subscribedtoemaillist = 'TRUE'; Visa card refers to creditcardtype = 'Visa'; in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "California refers to State = 'CA';", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "FALSE;"]}} {"set": {"query": "Among the users that permit the company to send regular emails to them, how many of them had made a transaction with a Visa card in July, 2014?", "pos": ["users permit the company to send regular emails to them refers to subscribedtoemaillist = 'TRUE'; Visa card refers to creditcardtype = 'Visa'; in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';"], "neg": ["California refers to State = 'CA';", "California refers to State = 'CA';", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10;", "A&W refers to BrandName = 'A&W';", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';"]}} {"set": {"query": "What is the percentage difference of River City sale compare to Frostie?", "pos": ["percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';"], "neg": ["Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';", "Sac State Union refers to LocationName = 'Sac State Union';", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "California refers to State = 'CA';", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;"]}} {"set": {"query": "How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015?", "pos": ["bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';"], "neg": ["most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "Sac State Union refers to LocationName = 'Sac State Union';", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "star rating is more than 3 refers to StarRating > 3;", "full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';"]}} {"set": {"query": "How many breweries are there in Australia?", "pos": ["Australia refers to Country = 'Australia';"], "neg": ["FALSE;", "precise location = Latitude, Longitude;", "A&W refers to BrandName = 'A&W';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "California refers to State = 'CA';", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3;"]}} {"set": {"query": "Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand.", "pos": ["brand of root beer refers to BrandName; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); ID of the customer refers to CustomerID; highest number of purchases refers to MAX(COUNT(CustomerID));"], "neg": ["do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "transaction no. refers to TransactionID; TransactionID = 103545;", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';", "FALSE;", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "FALSE;", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;"]}} {"set": {"query": "What is the credit card type used by Kenneth Walton?", "pos": ["FALSE;"], "neg": ["bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express';", "stars refers to StarRating; Frostie refers to BrandName = 'Frostie';", "difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'", "FALSE;", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "star rating is more than 3 refers to StarRating > 3;", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';"]}} {"set": {"query": "In the reviews of September 2014. Which brand of beers obtained the highest star ratings?", "pos": ["September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);"], "neg": ["email address refers to Email; transaction 100016 refers to TransactionID = 100016;", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "transaction no. refers to TransactionID; TransactionID = 103545;", "brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "star rating is more than 3 refers to StarRating > 3;", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "percentage = \u00a0 MULTIPLY(DIVIDE(SUM(LocationName = 'Sac State American River Courtyard'), COUNT(LocationID)), 1.0); Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);", "difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'"]}} {"set": {"query": "How many root beers did Tom Hanks purchase between 2015 to 2016?", "pos": ["between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';"], "neg": ["non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express';", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10';", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';", "Australia refers to Country = 'Australia';"]}} {"set": {"query": "Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014.", "pos": ["email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';"], "neg": ["in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'", "average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10';", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';"]}} {"set": {"query": "Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened?", "pos": ["non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';"], "neg": ["brand of root beer refers to BrandName; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); ID of the customer refers to CustomerID; highest number of purchases refers to MAX(COUNT(CustomerID));", "California refers to State = 'CA';", "FALSE;", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';"]}} {"set": {"query": "Among the transactions made in July, 2014, how many of them were made by a male customer?", "pos": ["in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M';"], "neg": ["in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;", "stars refers to StarRating; Frostie refers to BrandName = 'Frostie';", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE';"]}} {"set": {"query": "Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review?", "pos": ["not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);"], "neg": ["difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5));", "email address refers to Email; transaction 100016 refers to TransactionID = 100016;", "precise location = Latitude, Longitude;", "difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;"]}} {"set": {"query": "Find the root beer with the most and least amount of profit per unit and list the container types in which these root beers are sold.", "pos": ["most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));"], "neg": ["brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);", "full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate);", "bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express';", "3 star rating refers to StarRating = 3; Frostie refers to\u00a0 BrandName = 'Frostie'; if SubscribedToEmailList = 'TRUE', it means the user permit the company to send regular emails to him/her; if SubscribedToEmailList = FALSE', it means the user did not permit the company to send regular emails to him/her; rating on 2014/4/24 refers to ReviewDate = '2014-04-24';", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "star rating is more than 3 refers to StarRating > 3;", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;", "email address refers to Email; transaction 100016 refers to TransactionID = 100016;", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';"]}} {"set": {"query": "What is the amount difference between the bottles of root beer sold from Louisiana and Missouri?", "pos": ["difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';"], "neg": ["brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "Sac State Union refers to LocationName = 'Sac State Union';", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';", "full name = First, Last; customers who have purchased at least one root beer refers to CustomerID > = 1; produced by AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));"]}} {"set": {"query": "Find and list the full name and email of the customers who used American Express cards in Sac State Union.", "pos": ["full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';"], "neg": ["Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M';", "brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "location refers to LocationName; bottle of beer refers to ContainerType = 'Bottle'; location that sold more bottles of beer refers to MAX(COUNT(LocationID WHERE ContainerType = 'Bottle'));", "in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;"]}} {"set": {"query": "What is the container type, brand name and star rating for root beer ID 10054?", "pos": ["FALSE;"], "neg": ["sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "California refers to State = 'CA';", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating);", "do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "brand of root beer refers to BrandName; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); ID of the customer refers to CustomerID; highest number of purchases refers to MAX(COUNT(CustomerID));", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;"]}} {"set": {"query": "How many transactions were made to purchase a bottle of beer using American Express?", "pos": ["bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express';"], "neg": ["Sac State Union refers to LocationName = 'Sac State Union';", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31';", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate);", "brewery refers to BreweryName; most sold root beer refers to MAX(COUNT(BrandID)); in 2015 refers to TransactionDate > = '2015-01-01' AND TransactionDate < = '2015-12-31';", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';"]}} {"set": {"query": "In the female customers, how many bought root beer that contains artificial sweetener?", "pos": ["female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';"], "neg": ["percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';", "5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';", "brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));", "full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10;", "September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);", "5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);"]}} {"set": {"query": "What is the name of all the customers who have ever given a 5-star review?", "pos": ["name of the customer = First, Last; 5-star review refers to StarRating = 5;"], "neg": ["Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M';", "name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1));", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "Sac State Union refers to LocationName = 'Sac State Union';", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3;"]}} {"set": {"query": "How many stars did Urijah Faber rate for Frostie?", "pos": ["stars refers to StarRating; Frostie refers to BrandName = 'Frostie';"], "neg": ["not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0);", "5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';", "FALSE;", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';", "users permit the company to send regular emails to them refers to subscribedtoemaillist = 'TRUE'; Visa card refers to creditcardtype = 'Visa'; in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';", "full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10;", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));"]}} {"set": {"query": "What is the difference in the average number of sales per day of root beer brands that contain honey and that don\u2019t contain honey.", "pos": ["difference in the average = SUBTRACT(DIVIDE(MULTIPLY(SUM(Honey = 'TRUE'), 1.0), COUNT(TransactionDate)), DIVIDE(MULTIPLY(SUM(Honey = 'FALSE'), 1.0), COUNT(TransactionDate))); contain honey refers to Honey = 'TRUE'; don\u2019t contain honey refers to Honey = 'FALSE'"], "neg": ["male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;", "full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union';", "FALSE;", "brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';", "full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "type of card refers to CreditCardType;", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear);", "FALSE;", "most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE';"]}} {"set": {"query": "What are the full names of the first top 10 customers?", "pos": ["full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10;"], "neg": ["average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "email address refers to Email; transaction 100016 refers to TransactionID = 100016;", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;", "visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0);", "bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26';", "users permit the company to send regular emails to them refers to subscribedtoemaillist = 'TRUE'; Visa card refers to creditcardtype = 'Visa'; in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));", "precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express';", "FALSE;"]}} {"set": {"query": "Tell the number of reviews given by James House.", "pos": ["FALSE;"], "neg": ["in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;", "full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10;", "dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3;", "September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating);", "A&W refers to BrandName = 'A&W';", "5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';"]}} {"set": {"query": "Which type of card did Dick Ruthven use to pay for all of his transactions?", "pos": ["type of card refers to CreditCardType;"], "neg": ["visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0);", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10';", "difference = SUBTRACT(COUNT(ContainerType = 'Bottle' WHERE State = 'LA'), COUNT(ContainerType = 'Bottle' State = 'MO')); bottles refers to ContainerType = 'Bottle'; Louisiana refers to State = 'LA'; Missouri refers to State = 'MO';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie';", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';"]}} {"set": {"query": "Which brand in 2012 has the lowest star rating and contains cane sugar as well as honey?", "pos": ["brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';"], "neg": ["full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5;", "FALSE;", "transaction no. refers to TransactionID; TransactionID = 103545;", "3 star rating refers to StarRating = 3; Frostie refers to\u00a0 BrandName = 'Frostie'; if SubscribedToEmailList = 'TRUE', it means the user permit the company to send regular emails to him/her; if SubscribedToEmailList = FALSE', it means the user did not permit the company to send regular emails to him/her; rating on 2014/4/24 refers to ReviewDate = '2014-04-24';", "available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';", "brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';", "customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last;", "AJ Stephans refers to BreweryName = 'AJ Stephans Beverages';", "non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE';", "email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';"]}} {"set": {"query": "Give me the full name of the first customer, and tell me how long ago he or she wrote his or her first review since making his or her first purchase.", "pos": ["full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate);"], "neg": ["Between Sac State Union and Sac State American River Courtyard refers to LocationName IN('Sac State American River Courtyard', 'Sac State Union'); Dog n Suds refers to BrandName = 'Dog n Suds'; sold the most root beer refers to MAX(COUNT(BrandID));", "Sac State Union refers to LocationName = 'Sac State Union';", "full name = First, Last; customers who have purchased at least one root beer refers to CustomerID > = 1; produced by AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost));", "California refers to State = 'CA';", "5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%';", "Thomas Kemper refers to BrandName = 'Thomas Kemper';\u00a0 latitude the beer is consumed the most refers to MAX(COUNT(Latitude));", "FALSE;", "name of the customer = First, Last; 5-star review refers to StarRating = 5;", "FALSE;"]}} {"set": {"query": "At what latitude is the Thomas Kemper brand beer consumed the most?", "pos": ["Thomas Kemper refers to BrandName = 'Thomas Kemper';\u00a0 latitude the beer is consumed the most refers to MAX(COUNT(Latitude));"], "neg": ["FALSE;", "between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31';", "sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';", "available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';", "brand refers to BrandName; in 2012 refers to ReviewDate LIKE '2012%'; lowest star rating refers to MIN(StarRating); contains cane sugar as well as honey refers to CaneSugar = 'TRUE' AND Honey = 'TRUE';", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;", "precise location = Latitude, Longitude;", "Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';"]}} {"set": {"query": "Calculate the percentage of sales done at Sac State American River Courtyard.", "pos": ["percentage = \u00a0 MULTIPLY(DIVIDE(SUM(LocationName = 'Sac State American River Courtyard'), COUNT(LocationID)), 1.0); Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';"], "neg": ["email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';", "Sac State Union refers to LocationName = 'Sac State Union'; American Express credit card refers to CreditCardType = 'American Express'; in 2014 refers to TransactionDate LIKE '2014%';", "type of card refers to CreditCardType;", "average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "average cost = DIVIDE(SUM(PurchasePrice > 2), COUNT(RootBeerID) WHERE PurchasePrice > 2); more than 2 dollars refers to PurchasePrice > 2; in bottles refers to ContainerType = 'Bottle';", "sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages';", "brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';", "star rating is more than 3 refers to StarRating > 3;", "do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';"]}} {"set": {"query": "Please name any three root beer brands that have the highest market evaluation and acceptance.", "pos": ["root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));"], "neg": ["sweet refers to Honey = 'TRUE'; bottled refers to ContainerType = 'Bottle'; do not contain cane sugar refers to CaneSugar = 'FALSE'; in 2015 refers to PurchaseDate < = '2015-12-31'; Sac State American River Courtyard refers to LocationName = 'Sac State American River Courtyard';", "brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "FALSE;", "dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3;", "review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "in bottles refers to ContainerType = 'Bottle';\u00a0 location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243;", "email address refers to Email; transaction 100016 refers to TransactionID = 100016;", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';"]}} {"set": {"query": "For the customer who gave a 3 star rating to Frostie brand on 2014/4/24, did the user permit the company to send regular emails to him/her?", "pos": ["3 star rating refers to StarRating = 3; Frostie refers to\u00a0 BrandName = 'Frostie'; if SubscribedToEmailList = 'TRUE', it means the user permit the company to send regular emails to him/her; if SubscribedToEmailList = FALSE', it means the user did not permit the company to send regular emails to him/her; rating on 2014/4/24 refers to ReviewDate = '2014-04-24';"], "neg": ["review content of \"Tastes like Australia.\" refers to Review = 'Tastes like Australia.';", "lowest star rating refers to MIN(StarRating); \"Too spicy!\" review refers to Review = 'Too Spicy!';", "type of card refers to CreditCardType;", "5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost);", "brand of root beer refers to BrandName; produced by Dr Pepper Snapple Group refers to BreweryName = 'Dr Pepper Snapple Group'; percentage of purchases = MULTIPLY(DIVIDE(SUM(BrandID WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31'), COUNT(BrandID) WHERE BreweryName = 'Dr Pepper Snapple Group'), 1.0); between 2014 to 2016 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2016-12-31;", "most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName;", "root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID));", "available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE';", "female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE';", "email addresses refers to Email; Sacramento refers to City = 'Sacramento'; star rating of more than 3 refers to StarRating > 3; in 2014 refers to ReviewDate LIKE '2014%';"]}} {"set": {"query": "How many times did Anna Himes use her Mastercard when paying between 12/25/2014 and 5/20/2016 ?", "pos": ["Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20';"], "neg": ["A&W refers to BrandName = 'A&W';", "visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0);", "root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5));", "in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can';", "male customers refers to Gender = 'M'; Sacramento refers to City = 'Sacramento'; percentage = MULTIPLY(DIVIDE(SUM(BrandID WHERE BrandName = 'Dominion'), COUNT(BrandID) WHERE City = 'Sacramento'), 1.0); Dominion refers to BrandName = 'Dominion'; in 2013 refers to TransactionDate > = 2013-01-01 AND TransactionDate < 2014-01-01;", "transaction no. refers to TransactionID; TransactionID = 103545;", "most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31';", "Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08';", "users permit the company to send regular emails to them refers to subscribedtoemaillist = 'TRUE'; Visa card refers to creditcardtype = 'Visa'; in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07';", "name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL;"]}} {"set": {"query": "What is the average duration of trips that ended on a foggy day?", "pos": ["ended on a foggy day refers to end_date where events = 'fog'; average duration = DIVIDE(SUM(duration), COUNT(duration));"], "neg": ["hottest temperature refers to max_temperatutre_f; coldest temperature refers to min_temperature_f; difference = SUBTRACT(max_temperature_f, min_temperature_f); date = '8/29/2013'", "intercity trip refers to start_station_name! = end_station_name; total travel duration to hour = DIVIDE(SUM(duration), 3600) AS hour;", "37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;", "the maximum dew point in Fahrenheit degree refers to max_dew_point_f; date = '7/15/2014';", "South Van Ness at Market refers to start_station_name; subscriber refers to subscription_type; start_date = '12/1/2013'; the shortest duration refers to MIN(duration); which station was the bike returned to refers to end_station_name;", "customer refers to subscription_type = 'Customer'; subscribers refers to subscription_type = 'Subscriber'; difference = SUBTRACT(SUM(subscription_type = 'Subscriber' t), SUM(subscription_type = 'Customer')); trip in June 2013 refers to start_date BETWEEN '6/1/2013 0:00'AND '6/31/2013 12:59';", "average duration = DIVIDE(SUM(duration), COUNT(id)); hottest temperature refers to max_temperature_f; in 2014 refers to date LIKE '%2014';", "starting stations refers to start_station_name; above average duration trips = DIVIDE(SUM(duration), COUNT(main_trip.id))0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "least used bike refers to bike_id with MIN(COUNT(main_trip.id)); start station refers to start_station_name; end station refers to end_station_name; total duration in hour = DIVIDE(duration, 3600) AS hour;", "San Jose is the name of the city; 2014 refers to installation_date between '1/1/2014' and '12/31/2014';", "start and end station are similar refers to start_station_name = end_station_name; latitude and longitude coordinates can be used to indicate a location;", "start station refers to start_station_id; end station refers to end_station_id; start station and end station are the same refers to start_station_id = end_station_id;", "average duration = DIVIDE(SUM(duration), COUNT(id)); hottest temperature refers to max_temperature_f; in 2014 refers to date LIKE '%2014';"]}} {"set": {"query": "What is the longest duration for a bike trip starting on a day with a fog in 2013?", "pos": ["longest duration refers to MAX(duration); starting on a day with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013';"], "neg": ["rain of more than 0.8 inches refers to events = rain where precipitation_inches>0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "started at refers to start_station_name; start_station_name = 'Steuart at Market'; ended at refers to end_station_name; end_station_name = 'Embarcadero at Sansome'; rides in July 2004 refers to start_date = '7/1/2014 0:00'AND end_date = '7/31/2014 12:59';average ride time = DIVIDE(SUM(duration), COUNT(id))", "coldest temperature refers to min_temperature_f; average coldest temperature refers = AVG(min_temperature_f); stations refers to name; latitude refers to lat; longitude refers to long;", "ended on a foggy day refers to end_date where events = 'fog'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;", "San Jose is the name of the city; 2014 refers to installation_date between '1/1/2014' and '12/31/2014';", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;", "events = 'Rain'; year refers to YEAR(date);"]}} {"set": {"query": "Which day in the month of November, 2014 have a foggy weather in the zip code 94301 and in total, how many bikes were borrowed by subscribers from all of the stations in the said day?", "pos": ["day in the month of November, 2014 refers to start_date between '11/1/2014' and '11/30/2014'; foggy weather refers to events = 'Fog'; subscriber refers to subscription_type; all of the stations bikes were borrowed from refer to start_station_name;"], "neg": ["installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';", "bike was borrowed from refers to start_station_id; when the bike station was installed refers to installation_date;", "less than 5 minutes refers to duration<300 in seconds; the station where the bike was borrowed refers to start_station_name; the station where the bike was returned refers to end_station_name; mean temperature refers to min_temperature_f;", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "San Jose is the name of the city; 2014 refers to installation_date between '1/1/2014' and '12/31/2014';", "end station refers to end_station_id; docks that were left refers to docks_available;", "subscription_type = 'Subscriber'; DIVIDE(COUNT(id where subscription_type = 'Subscriber'), COUNT(id)) as percentage;", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "station refers to name;"]}} {"set": {"query": "On 11/3/2013, which stations are often empty? Indicate the names of the stations.", "pos": ["time = '11/3/2013'; which stations are empty refers to bikes_available = '0';"], "neg": ["installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';", "start and end station are similar refers to start_station_name = end_station_name; latitude and longitude coordinates can be used to indicate a location;", "started at refers to start_station_name; start_station_name = 'Mountain View City Hall'; ended on a rainy day refers to end_date where events = 'rain';", "hottest temperature refers to MAX(max_temperature_f);", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;", "hottest temperature refers to max_temperatutre_f; in 2014 refers to date LIKE '%2014'; started from station refers to start_station_name; start_station_name = '2nd at Folsom';", "in 2015 refers to end_date like '%2015%'; percentage = DIVIDE(COUNT(events = 'Rain'), COUNT(events));", "Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';", "in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';"]}} {"set": {"query": "How many bike stations were installed in San Jose in 2014? Indicate the names of the stations.", "pos": ["San Jose is the name of the city; 2014 refers to installation_date between '1/1/2014' and '12/31/2014';"], "neg": ["Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "end station refers to end_station_name; starting from refers to start_station_name; start_station_name = '2nd at South Park';", "the station with the most borrowed bikes refers to MAX(start_station);", "in 2015 refers to end_date like '%2015%'; percentage = DIVIDE(COUNT(events = 'Rain'), COUNT(events));", "start station refers to start_station_id; end station refers to end_station_id; start station and end station are the same refers to start_station_id = end_station_id;", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;", "bike was borrowed from refers to start_station_id; San Francisco refers to city = 'San Francisco'; subscriber refers to subscription_type = 'Subscriber';", "day in the month of November, 2014 refers to start_date between '11/1/2014' and '11/30/2014'; foggy weather refers to events = 'Fog'; subscriber refers to subscription_type; all of the stations bikes were borrowed from refer to start_station_name;"]}} {"set": {"query": "Calculate the difference between the number of customers and the number of subscribers who did the trip in June 2013.", "pos": ["customer refers to subscription_type = 'Customer'; subscribers refers to subscription_type = 'Subscriber'; difference = SUBTRACT(SUM(subscription_type = 'Subscriber' t), SUM(subscription_type = 'Customer')); trip in June 2013 refers to start_date BETWEEN '6/1/2013 0:00'AND '6/31/2013 12:59';"], "neg": ["no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;", "total trip duration to hour = DIVIDE(SUM(duration), 3600);", "Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';", "bike is borrowed from refers to start_station_id;", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "shortest duration refers to MIN(duration); started at the station refers to start_station_name; can hold 15 bikes refers to dock_count = 15;", "less than 5 minutes refers to duration<300 in seconds; the station where the bike was borrowed refers to start_station_name; the station where the bike was returned refers to end_station_name; mean temperature refers to min_temperature_f;", "installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';", "bike was borrowed from refers to start_station_id; when the bike station was installed refers to installation_date;", "San Francico is the name of the city; can hold more than 20 bikes implies dock's capacity and refers to dock_count\u226520;"]}} {"set": {"query": "Find the average ride duration during the rain of more than 0.8 inches.", "pos": ["rain of more than 0.8 inches refers to events = rain where precipitation_inches>0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));"], "neg": ["total number of bikes that can be hold = MAX(dock_count); before 2014 refers to year(installation_date)<2014;", "shortest duration refers to MIN(duration); started at the station refers to start_station_name; can hold 15 bikes refers to dock_count = 15;", "less than 5 minutes refers to duration<300 in seconds; the station where the bike was borrowed refers to start_station_name; the station where the bike was returned refers to end_station_name; mean temperature refers to min_temperature_f;", "longest trip refers to MAX(duration); started on the day refers to start_date; maximum wind speed refers to max_wind_speed_mph; max_wind_speed_mph = 30;", "Powell Street refers to start_station_name; bike 496 refers to bike_id = '496'; start_date = '8/29/2013';", "installed on refers to installation_date; installation_date = '8/16/2013'; customers refers to subscription_type = customers;", "coldest temperature refers to min_temperature_f; average coldest temperature refers = AVG(min_temperature_f); stations refers to name; latitude refers to lat; longitude refers to long;", "day in the month of November, 2014 refers to start_date between '11/1/2014' and '11/30/2014'; foggy weather refers to events = 'Fog'; subscriber refers to subscription_type; all of the stations bikes were borrowed from refer to start_station_name;", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "hottest temperature refers to MAX(max_temperature_f);"]}} {"set": {"query": "Among the trips in August 2013, how many bikes were borrowed from Redwood City.", "pos": ["Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';"], "neg": ["no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;", "longest duration refers to MAX(duration); starting on a day with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013';", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "started at refers to start_station_name; start_station_name = 'Steuart at Market'; ended at refers to end_station_name; end_station_name = 'Embarcadero at Sansome'; rides in July 2004 refers to start_date = '7/1/2014 0:00'AND end_date = '7/31/2014 12:59';average ride time = DIVIDE(SUM(duration), COUNT(id))", "in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';", "started on the days in September, 2013 refers to date LIKE'9%'AND date LIKE'%2013' hottest temperature over 70 degrees Fahrenheit refers to max_temperature_f>70;", "least used bike refers to bike_id with MIN(COUNT(main_trip.id)); start station refers to start_station_name; end station refers to end_station_name; total duration in hour = DIVIDE(duration, 3600) AS hour;", "intercity trip refers to start_station_name! = end_station_name; total travel duration to hour = DIVIDE(SUM(duration), 3600) AS hour;", "the station with the most borrowed bikes refers to MAX(start_station);", "start station refers to start_station_name; end station refers to end_station_name;"]}} {"set": {"query": "How many bike trips started on the days in September, 2013 with the hottest temperature over 70 degrees Fahrenheit in the area where the zip code is 94107?", "pos": ["started on the days in September, 2013 refers to date LIKE'9%'AND date LIKE'%2013' hottest temperature over 70 degrees Fahrenheit refers to max_temperature_f>70;"], "neg": ["in 2015 refers to end_date like '%2015%'; percentage = DIVIDE(COUNT(events = 'Rain'), COUNT(events));", "end station refers to end_station_id; docks that were left refers to docks_available;", "start station refers to start_station_id; end station refers to end_station_id; start station and end station are the same refers to start_station_id = end_station_id;", "hottest temperature refers to max_temperatutre_f; coldest temperature refers to min_temperature_f; difference = SUBTRACT(max_temperature_f, min_temperature_f); date = '8/29/2013'", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "day in the month of November, 2014 refers to start_date between '11/1/2014' and '11/30/2014'; foggy weather refers to events = 'Fog'; subscriber refers to subscription_type; all of the stations bikes were borrowed from refer to start_station_name;", "start station refers to start_station_name; end station refers to end_station_name;", "South Van Ness at Market refers to start_station_name; subscriber refers to subscription_type; start_date = '12/1/2013'; the shortest duration refers to MIN(duration); which station was the bike returned to refers to end_station_name;", "hottest temperature refers to max_temperatutre_f; in 2014 refers to date LIKE '%2014'; started from station refers to start_station_name; start_station_name = '2nd at Folsom';", "in 2013 refers to year(date) = 2013; rain and fog ocurred together refers to events = 'Fog-Rain'; id of bikes refers to biked_id;"]}} {"set": {"query": "What is the maximum dew point in Fahrenheit degree on 7/15/2014 in the area with a zip code of 94301?", "pos": ["the maximum dew point in Fahrenheit degree refers to max_dew_point_f; date = '7/15/2014';"], "neg": ["San Jose is the name of the city; 2014 refers to installation_date between '1/1/2014' and '12/31/2014';", "in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "longest duration refers to MAX(duration); start station refers to start_station_name;", "started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);", "hottest temperature refers to MAX(max_temperature_f);", "started refers to start_date; the hottest day refers to max_temperature_f;", "longest duration refers to MAX(duration); starting on a day with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013';", "subscription_type = 'Subscriber'; DIVIDE(COUNT(id where subscription_type = 'Subscriber'), COUNT(id)) as percentage;", "temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;"]}} {"set": {"query": "How many subscribers are in the zip code of 94301 and what is the hottest temperature recorded on that zip code?", "pos": ["hottest temperature refers to MAX(max_temperature_f);"], "neg": ["37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "started on the days in September, 2013 refers to date LIKE'9%'AND date LIKE'%2013' hottest temperature over 70 degrees Fahrenheit refers to max_temperature_f>70;", "average duration = DIVIDE(SUM(duration), COUNT(id)); subscribers refers to subscription_type = 'subscriptions'; started and ended their trip at Mountain View City Hall refers to start_station_name = 'Mountain View City Hall' and end_station_name = 'Mountain View City Hall'; when the station was first installed refers to installation_date;", "final station refers to end_station_name where MAX(end_date);", "started at station refers to start_station_name; San Francisco refers to city = 'San Francisco'; year that had the most number of trips refers to MAX(year(start_date));", "total number of bikes that can be hold = MAX(dock_count); before 2014 refers to year(installation_date)<2014;", "started at refers to start_station_name; start_station_name = 'Mountain View City Hall'; ended on a rainy day refers to end_date where events = 'rain';", "bike was borrowed from refers to start_station_id; when the bike station was installed refers to installation_date;", "least used bike refers to bike_id with MIN(COUNT(main_trip.id)); start station refers to start_station_name; end station refers to end_station_name; total duration in hour = DIVIDE(duration, 3600) AS hour;"]}} {"set": {"query": "What is the percentage of the trip were done by a subscriber?", "pos": ["subscription_type = 'Subscriber'; DIVIDE(COUNT(id where subscription_type = 'Subscriber'), COUNT(id)) as percentage;"], "neg": ["bike is borrowed from refers to start_station_id;", "37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "station refers to name;", "shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;", "total trip duration to hour = DIVIDE(SUM(duration), 3600);", "end station refers to end_station_name; starting from refers to start_station_name; start_station_name = '2nd at South Park';", "started at refers to start_station_name; start_station_name = 'Mountain View City Hall'; ended on a rainy day refers to end_date where events = 'rain';", "the station with the most borrowed bikes refers to MAX(start_station);", "the hottest temperature refers to max_temperature_f;"]}} {"set": {"query": "Which station did the user who started at Market at 4th station ended their trip at the time of 12:45:00 PM and the date of 8/29/2013 and what is the location coordinates of the ending station?", "pos": ["started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);"], "neg": ["start and end station are similar refers to start_station_name = end_station_name; latitude and longitude coordinates can be used to indicate a location;", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "subscription_type = 'Subscriber'; DIVIDE(COUNT(id where subscription_type = 'Subscriber'), COUNT(id)) as percentage;", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "station refers to name;", "total trip duration to hour = DIVIDE(SUM(duration), 3600);", "hottest temperature refers to max_temperatutre_f; coldest temperature refers to min_temperature_f; difference = SUBTRACT(max_temperature_f, min_temperature_f); date = '8/29/2013'", "bike was borrowed from refers to start_station_id; San Francisco refers to city = 'San Francisco'; subscriber refers to subscription_type = 'Subscriber';", "end station refers to end_station_id; docks that were left refers to docks_available;"]}} {"set": {"query": "Convert all temperature recorded at San Francisco city during August 2013 into degree Celsius.", "pos": ["temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;"], "neg": ["trips refer to id; DIVIDE(SUM(duration where start_station_name = 'Adobe on Almaden', end_station_name = 'Ryland Park'), COUNT(id));", "longest trip refers to MAX(duration); started on the day refers to start_date; maximum wind speed refers to max_wind_speed_mph; max_wind_speed_mph = 30;", "the station with the most borrowed bikes refers to MAX(start_station);", "rain of more than 0.8 inches refers to events = rain where precipitation_inches>0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "bike was borrowed from refers to start_station_id; when the bike station was installed refers to installation_date;", "average duration = DIVIDE(SUM(duration), COUNT(id)); hottest temperature refers to max_temperature_f; in 2014 refers to date LIKE '%2014';", "total trip duration to hour = DIVIDE(SUM(duration), 3600);", "South Van Ness at Market refers to start_station_name; subscriber refers to subscription_type; start_date = '12/1/2013'; the shortest duration refers to MIN(duration); which station was the bike returned to refers to end_station_name;", "started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);", "San Francico is the name of the city; can hold more than 20 bikes implies dock's capacity and refers to dock_count\u226520;"]}} {"set": {"query": "List all trips where bikes were returned at location 37.331415, -121.8932. State the date the bike was borrowed.", "pos": ["37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;"], "neg": ["station refers to name;", "bike is borrowed from refers to start_station_id;", "started at station refers to start_station_name; San Francisco refers to city = 'San Francisco'; year that had the most number of trips refers to MAX(year(start_date));", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "trips refer to id; DIVIDE(SUM(duration where start_station_name = 'Adobe on Almaden', end_station_name = 'Ryland Park'), COUNT(id));", "time = '11/3/2013'; which stations are empty refers to bikes_available = '0';", "events = 'Rain'; year refers to YEAR(date);", "end station refers to end_station_id; docks that were left refers to docks_available;", "rain of more than 0.8 inches refers to events = rain where precipitation_inches>0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;"]}} {"set": {"query": "Which bicycle is the least used bike. Check if the start and end station are from the same city and calculate the total duration travelled by the bicycle in hours for a trip made within the same city.", "pos": ["least used bike refers to bike_id with MIN(COUNT(main_trip.id)); start station refers to start_station_name; end station refers to end_station_name; total duration in hour = DIVIDE(duration, 3600) AS hour;"], "neg": ["ended on a foggy day refers to end_date where events = 'fog'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "station refers to name;", "starting stations refers to start_station_name; above average duration trips = DIVIDE(SUM(duration), COUNT(main_trip.id))70;", "37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;", "shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;", "total trip duration to hour = DIVIDE(SUM(duration), 3600);", "start and end station are similar refers to start_station_name = end_station_name; latitude and longitude coordinates can be used to indicate a location;", "intercity trip refers to start_station_name! = end_station_name; total travel duration to hour = DIVIDE(SUM(duration), 3600) AS hour;"]}} {"set": {"query": "List out all end stations for a bicycle that were making a trip starting from 2nd at South Park station? Only retain the unique value.", "pos": ["end station refers to end_station_name; starting from refers to start_station_name; start_station_name = '2nd at South Park';"], "neg": ["start and end station are similar refers to start_station_name = end_station_name; latitude and longitude coordinates can be used to indicate a location;", "trips refer to id; DIVIDE(SUM(duration where start_station_name = 'Adobe on Almaden', end_station_name = 'Ryland Park'), COUNT(id));", "rain of more than 0.8 inches refers to events = rain where precipitation_inches>0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "events = 'Rain'; year refers to YEAR(date);", "hottest temperature refers to MAX(max_temperature_f);", "customer refers to subscription_type = 'Customer'; subscribers refers to subscription_type = 'Subscriber'; difference = SUBTRACT(SUM(subscription_type = 'Subscriber' t), SUM(subscription_type = 'Customer')); trip in June 2013 refers to start_date BETWEEN '6/1/2013 0:00'AND '6/31/2013 12:59';", "installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';", "start station refers to start_station_name; end station refers to end_station_name;", "station refers to name;", "time = '11/3/2013'; which stations are empty refers to bikes_available = '0';"]}} {"set": {"query": "Among the bike trips started on the days with a fog in 2013, how many of those trips started from the station \"2nd at Townsend\"?", "pos": ["started on the days with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013'; started from station refers to start_station_name; start_station_name = '2nd at Townsend';"], "neg": ["station refers to name;", "average duration = DIVIDE(SUM(duration), COUNT(id)); subscribers refers to subscription_type = 'subscriptions'; started and ended their trip at Mountain View City Hall refers to start_station_name = 'Mountain View City Hall' and end_station_name = 'Mountain View City Hall'; when the station was first installed refers to installation_date;", "Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';", "started refers to start_date; the hottest day refers to max_temperature_f;", "coldest temperature refers to min_temperature_f; average coldest temperature refers = AVG(min_temperature_f); stations refers to name; latitude refers to lat; longitude refers to long;", "end station refers to end_station_id; docks that were left refers to docks_available;", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "rain of more than 0.8 inches refers to events = rain where precipitation_inches>0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "number of bikes a station can hold refers to SUM(dock_count); Evelyn Park and Ride refers to name = 'Evelyn Park and Ride'; started on the station refers to start_station_name; subscribers refers to subscription_type = 'subscriber';", "start and end station are similar refers to start_station_name = end_station_name; latitude and longitude coordinates can be used to indicate a location;"]}} {"set": {"query": "Are all stations with zip code 94107 located in San Francisco city?", "pos": ["station refers to name;"], "neg": ["total trip duration to hour = DIVIDE(SUM(duration), 3600);", "start station refers to start_station_id; end station refers to end_station_id; start station and end station are the same refers to start_station_id = end_station_id;", "started at refers to start_station_name; start_station_name = 'Mountain View City Hall'; ended on a rainy day refers to end_date where events = 'rain';", "longest trip refers to MAX(duration); started on the day refers to start_date; maximum wind speed refers to max_wind_speed_mph; max_wind_speed_mph = 30;", "started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);", "no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "hottest temperature refers to max_temperatutre_f; coldest temperature refers to min_temperature_f; difference = SUBTRACT(max_temperature_f, min_temperature_f); date = '8/29/2013'", "ended in refers to end_station_name;", "San Jose is the name of the city; 2014 refers to installation_date between '1/1/2014' and '12/31/2014';"]}} {"set": {"query": "List down the trips in which their start and end station are similar. Give me their trip IDs and location coordinates.", "pos": ["start and end station are similar refers to start_station_name = end_station_name; latitude and longitude coordinates can be used to indicate a location;"], "neg": ["bike was borrowed from refers to start_station_id; when the bike station was installed refers to installation_date;", "shortest duration refers to MIN(duration); started at the station refers to start_station_name; can hold 15 bikes refers to dock_count = 15;", "coldest temperature refers to min_temperature_f; average coldest temperature refers = AVG(min_temperature_f); stations refers to name; latitude refers to lat; longitude refers to long;", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "day in the month of November, 2014 refers to start_date between '11/1/2014' and '11/30/2014'; foggy weather refers to events = 'Fog'; subscriber refers to subscription_type; all of the stations bikes were borrowed from refer to start_station_name;", "installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';", "the hottest temperature refers to max_temperature_f;", "in 2015 refers to end_date like '%2015%'; percentage = DIVIDE(COUNT(events = 'Rain'), COUNT(events));", "in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';", "hottest temperature refers to MAX(max_temperature_f);"]}} {"set": {"query": "What is the route that has the longest duration? Indicate the city of where the stations are located.", "pos": ["route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);"], "neg": ["shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;", "number of bikes a station can hold refers to SUM(dock_count); Evelyn Park and Ride refers to name = 'Evelyn Park and Ride'; started on the station refers to start_station_name; subscribers refers to subscription_type = 'subscriber';", "starting stations refers to start_station_name; above average duration trips = DIVIDE(SUM(duration), COUNT(main_trip.id))2013; in San Jose refers to city = 'San Jose';", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "started at refers to start_station_name; start_station_name = 'Steuart at Market'; ended at refers to end_station_name; end_station_name = 'Embarcadero at Sansome'; rides in July 2004 refers to start_date = '7/1/2014 0:00'AND end_date = '7/31/2014 12:59';average ride time = DIVIDE(SUM(duration), COUNT(id))", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "started at refers to start_station_name; start_station_name = 'Mountain View City Hall'; ended on a rainy day refers to end_date where events = 'rain';"]}} {"set": {"query": "Please calculate the average duration of trips started at South Van Ness at Market in 2015.", "pos": ["started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));"], "neg": ["37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;", "final station refers to end_station_name where MAX(end_date);", "total trip duration to hour = DIVIDE(SUM(duration), 3600);", "station refers to name;", "start station refers to start_station_id; end station refers to end_station_id; start station and end station are the same refers to start_station_id = end_station_id;", "no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;", "hottest temperature refers to max_temperatutre_f; in 2014 refers to date LIKE '%2014'; started from station refers to start_station_name; start_station_name = '2nd at Folsom';", "least used bike refers to bike_id with MIN(COUNT(main_trip.id)); start station refers to start_station_name; end station refers to end_station_name; total duration in hour = DIVIDE(duration, 3600) AS hour;", "the hottest temperature refers to max_temperature_f;", "number of bikes a station can hold refers to SUM(dock_count); Evelyn Park and Ride refers to name = 'Evelyn Park and Ride'; started on the station refers to start_station_name; subscribers refers to subscription_type = 'subscriber';"]}} {"set": {"query": "In which city's station is a bike borrowed on trip ID4069?", "pos": ["bike is borrowed from refers to start_station_id;"], "neg": ["hottest temperature refers to max_temperatutre_f; coldest temperature refers to min_temperature_f; difference = SUBTRACT(max_temperature_f, min_temperature_f); date = '8/29/2013'", "started at refers to start_station_name; start_station_name = 'Mountain View City Hall'; ended on a rainy day refers to end_date where events = 'rain';", "events = 'Rain'; year refers to YEAR(date);", "no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;", "start station refers to start_station_id; end station refers to end_station_id; start station and end station are the same refers to start_station_id = end_station_id;", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "average duration = DIVIDE(SUM(duration), COUNT(id)); subscribers refers to subscription_type = 'subscriptions'; started and ended their trip at Mountain View City Hall refers to start_station_name = 'Mountain View City Hall' and end_station_name = 'Mountain View City Hall'; when the station was first installed refers to installation_date;", "in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';", "longest trip refers to MAX(duration); started on the day refers to start_date; maximum wind speed refers to max_wind_speed_mph; max_wind_speed_mph = 30;", "started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);"]}} {"set": {"query": "How many bike stations are installed after August, 2013 in San Jose?", "pos": ["installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';"], "neg": ["starting stations refers to start_station_name; above average duration trips = DIVIDE(SUM(duration), COUNT(main_trip.id))0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "Powell Street refers to start_station_name; bike 496 refers to bike_id = '496'; start_date = '8/29/2013';", "shortest duration refers to MIN(duration); started at the station refers to start_station_name; can hold 15 bikes refers to dock_count = 15;", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "longest trip refers to MAX(duration); started on the day refers to start_date; maximum wind speed refers to max_wind_speed_mph; max_wind_speed_mph = 30;", "mean temperature in Fahrenheit refers to mean_temperature_f; on 8/29/2013 refers to date = '8/29/2013';", "the maximum dew point in Fahrenheit degree refers to max_dew_point_f; date = '7/15/2014';", "subscription_type = 'Subscriber'; DIVIDE(COUNT(id where subscription_type = 'Subscriber'), COUNT(id)) as percentage;"]}} {"set": {"query": "What is the average duration of trips which are started at Adobe on Almaden station to Ryland Park?", "pos": ["trips refer to id; DIVIDE(SUM(duration where start_station_name = 'Adobe on Almaden', end_station_name = 'Ryland Park'), COUNT(id));"], "neg": ["started at refers to start_station_name; start_station_name = 'Steuart at Market'; ended at refers to end_station_name; end_station_name = 'Embarcadero at Sansome'; rides in July 2004 refers to start_date = '7/1/2014 0:00'AND end_date = '7/31/2014 12:59';average ride time = DIVIDE(SUM(duration), COUNT(id))", "started on the days in September, 2013 refers to date LIKE'9%'AND date LIKE'%2013' hottest temperature over 70 degrees Fahrenheit refers to max_temperature_f>70;", "installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';", "start station refers to start_station_id; end station refers to end_station_id; start station and end station are the same refers to start_station_id = end_station_id;", "longest duration refers to MAX(duration); starting on a day with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013';", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "longest trip refers to MAX(duration); started on the day refers to start_date; maximum wind speed refers to max_wind_speed_mph; max_wind_speed_mph = 30;", "Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';", "no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;", "hottest temperature refers to max_temperatutre_f; coldest temperature refers to min_temperature_f; difference = SUBTRACT(max_temperature_f, min_temperature_f); date = '8/29/2013'"]}} {"set": {"query": "Write down the times when there is no available bike to borrow in a station. List down the stations name and location coordinate.", "pos": ["no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;"], "neg": ["started on the days in September, 2013 refers to date LIKE'9%'AND date LIKE'%2013' hottest temperature over 70 degrees Fahrenheit refers to max_temperature_f>70;", "San Jose is the name of the city; 2014 refers to installation_date between '1/1/2014' and '12/31/2014';", "San Francico is the name of the city; can hold more than 20 bikes implies dock's capacity and refers to dock_count\u226520;", "started at station refers to start_station_name; San Francisco refers to city = 'San Francisco'; year that had the most number of trips refers to MAX(year(start_date));", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "average duration = DIVIDE(SUM(duration), COUNT(id)); subscribers refers to subscription_type = 'subscriptions'; started and ended their trip at Mountain View City Hall refers to start_station_name = 'Mountain View City Hall' and end_station_name = 'Mountain View City Hall'; when the station was first installed refers to installation_date;", "hottest temperature refers to MAX(max_temperature_f);", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "ended in refers to end_station_name;"]}} {"set": {"query": "What was duration of the longest trip started on the day that has a maximum wind speed of 30 mph?", "pos": ["longest trip refers to MAX(duration); started on the day refers to start_date; maximum wind speed refers to max_wind_speed_mph; max_wind_speed_mph = 30;"], "neg": ["average duration = DIVIDE(SUM(duration), COUNT(id)); hottest temperature refers to max_temperature_f; in 2014 refers to date LIKE '%2014';", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "longest duration refers to MAX(duration); starting on a day with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013';", "started on the days in September, 2013 refers to date LIKE'9%'AND date LIKE'%2013' hottest temperature over 70 degrees Fahrenheit refers to max_temperature_f>70;", "trips refer to id; DIVIDE(SUM(duration where start_station_name = 'Adobe on Almaden', end_station_name = 'Ryland Park'), COUNT(id));", "rain of more than 0.8 inches refers to events = rain where precipitation_inches>0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "mean temperature refers to mean_temperature_f;\u00a0mean temperature of 20 degree Celsius refers to DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.8) = 20; in 2014 refers to date LIKE'%2015%';", "Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';", "temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;", "started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);"]}} {"set": {"query": "When was the hottest temperature recorded? If there are multiple dates with the hottest temperature, indicate all of the dates.", "pos": ["the hottest temperature refers to max_temperature_f;"], "neg": ["rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "the station with the most borrowed bikes refers to MAX(start_station);", "average duration = DIVIDE(SUM(duration), COUNT(id)); hottest temperature refers to max_temperature_f; in 2014 refers to date LIKE '%2014';", "temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;", "ended in refers to end_station_name;", "hottest temperature refers to max_temperatutre_f; in 2014 refers to date LIKE '%2014'; started from station refers to start_station_name; start_station_name = '2nd at Folsom';", "total number of bikes that can be hold = MAX(dock_count); before 2014 refers to year(installation_date)<2014;", "starting stations refers to start_station_name; above average duration trips = DIVIDE(SUM(duration), COUNT(main_trip.id))70;", "Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';", "less than 5 minutes refers to duration<300 in seconds; the station where the bike was borrowed refers to start_station_name; the station where the bike was returned refers to end_station_name; mean temperature refers to min_temperature_f;", "started at refers to start_station_name; start_station_name = 'Mountain View City Hall'; ended on a rainy day refers to end_date where events = 'rain';", "installed on refers to installation_date; installation_date = '8/16/2013'; customers refers to subscription_type = customers;", "in 2015 refers to end_date like '%2015%'; percentage = DIVIDE(COUNT(events = 'Rain'), COUNT(events));"]}} {"set": {"query": "List the days in 2013 when rain and fog occurred together and find the id of bikes borrowed on these days.", "pos": ["in 2013 refers to year(date) = 2013; rain and fog ocurred together refers to events = 'Fog-Rain'; id of bikes refers to biked_id;"], "neg": ["final station refers to end_station_name where MAX(end_date);", "total trip duration to hour = DIVIDE(SUM(duration), 3600);", "installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';", "bike was borrowed from refers to start_station_id; when the bike station was installed refers to installation_date;", "starting stations refers to start_station_name; above average duration trips = DIVIDE(SUM(duration), COUNT(main_trip.id))0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "ended in refers to end_station_name;", "trips refer to id; DIVIDE(SUM(duration where start_station_name = 'Adobe on Almaden', end_station_name = 'Ryland Park'), COUNT(id));", "longest trip refers to MAX(duration); started on the day refers to start_date; maximum wind speed refers to max_wind_speed_mph; max_wind_speed_mph = 30;", "customer refers to subscription_type = 'Customer'; subscribers refers to subscription_type = 'Subscriber'; difference = SUBTRACT(SUM(subscription_type = 'Subscriber' t), SUM(subscription_type = 'Customer')); trip in June 2013 refers to start_date BETWEEN '6/1/2013 0:00'AND '6/31/2013 12:59';", "in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';", "station refers to name;", "hottest temperature refers to MAX(max_temperature_f);", "in 2013 refers to year(date) = 2013; rain and fog ocurred together refers to events = 'Fog-Rain'; id of bikes refers to biked_id;"]}} {"set": {"query": "Which trip id had the longest duration and the start station is in Redwood City?", "pos": ["longest duration refers to MAX(duration); start station refers to start_station_name;"], "neg": ["temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;", "total trip duration to hour = DIVIDE(SUM(duration), 3600);", "mean temperature in Fahrenheit refers to mean_temperature_f; on 8/29/2013 refers to date = '8/29/2013';", "shortest duration refers to MIN(duration); started at the station refers to start_station_name; can hold 15 bikes refers to dock_count = 15;", "started on the days with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013'; started from station refers to start_station_name; start_station_name = '2nd at Townsend';", "the station with the most borrowed bikes refers to MAX(start_station);", "started at refers to start_station_name; start_station_name = 'Steuart at Market'; ended at refers to end_station_name; end_station_name = 'Embarcadero at Sansome'; rides in July 2004 refers to start_date = '7/1/2014 0:00'AND end_date = '7/31/2014 12:59';average ride time = DIVIDE(SUM(duration), COUNT(id))", "trips refer to id; DIVIDE(SUM(duration where start_station_name = 'Adobe on Almaden', end_station_name = 'Ryland Park'), COUNT(id));", "installed on refers to installation_date; installation_date = '8/16/2013'; customers refers to subscription_type = customers;", "ended in refers to end_station_name;"]}} {"set": {"query": "Calculate the average duration travelled by subscribers that both started and ended their trip in Mountain View City Hall and indicate the date when the station was first installed.", "pos": ["average duration = DIVIDE(SUM(duration), COUNT(id)); subscribers refers to subscription_type = 'subscriptions'; started and ended their trip at Mountain View City Hall refers to start_station_name = 'Mountain View City Hall' and end_station_name = 'Mountain View City Hall'; when the station was first installed refers to installation_date;"], "neg": ["bike was borrowed from refers to start_station_id; San Francisco refers to city = 'San Francisco'; subscriber refers to subscription_type = 'Subscriber';", "installed on refers to installation_date; installation_date = '8/16/2013'; customers refers to subscription_type = customers;", "the station with the most borrowed bikes refers to MAX(start_station);", "shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "shortest duration refers to MIN(duration); started at the station refers to start_station_name; can hold 15 bikes refers to dock_count = 15;", "total trip duration to hour = DIVIDE(SUM(duration), 3600);", "started at station refers to start_station_name; San Francisco refers to city = 'San Francisco'; year that had the most number of trips refers to MAX(year(start_date));", "end station refers to end_station_name; starting from refers to start_station_name; start_station_name = '2nd at South Park';", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);"]}} {"set": {"query": "In 2006, how many trips ended at stations in Mountain View?", "pos": ["in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';"], "neg": ["mean temperature refers to mean_temperature_f;\u00a0mean temperature of 20 degree Celsius refers to DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.8) = 20; in 2014 refers to date LIKE'%2015%';", "end station refers to end_station_name; starting from refers to start_station_name; start_station_name = '2nd at South Park';", "intercity trip refers to start_station_name! = end_station_name; total travel duration to hour = DIVIDE(SUM(duration), 3600) AS hour;", "started refers to start_date; the hottest day refers to max_temperature_f;", "end station refers to end_station_id; docks that were left refers to docks_available;", "started at refers to start_station_name; start_station_name = 'Steuart at Market'; ended at refers to end_station_name; end_station_name = 'Embarcadero at Sansome'; rides in July 2004 refers to start_date = '7/1/2014 0:00'AND end_date = '7/31/2014 12:59';average ride time = DIVIDE(SUM(duration), COUNT(id))", "South Van Ness at Market refers to start_station_name; subscriber refers to subscription_type; start_date = '12/1/2013'; the shortest duration refers to MIN(duration); which station was the bike returned to refers to end_station_name;", "total number of bikes that can be hold = MAX(dock_count); before 2014 refers to year(installation_date)<2014;", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;"]}} {"set": {"query": "Which year experienced the most rain?", "pos": ["events = 'Rain'; year refers to YEAR(date);"], "neg": ["San Jose is the name of the city; 2014 refers to installation_date between '1/1/2014' and '12/31/2014';", "trips refer to id; DIVIDE(SUM(duration where start_station_name = 'Adobe on Almaden', end_station_name = 'Ryland Park'), COUNT(id));", "37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;", "customer refers to subscription_type = 'Customer'; subscribers refers to subscription_type = 'Subscriber'; difference = SUBTRACT(SUM(subscription_type = 'Subscriber' t), SUM(subscription_type = 'Customer')); trip in June 2013 refers to start_date BETWEEN '6/1/2013 0:00'AND '6/31/2013 12:59';", "installed on refers to installation_date; installation_date = '8/16/2013'; customers refers to subscription_type = customers;", "station refers to name;", "started at refers to start_station_name; start_station_name = 'South Van Ness at Market'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;"]}} {"set": {"query": "Does the bike with Id number 16 making any intercity trip? If yes, calculate the total travel duration during all the intercity trip. Convert the duration to hour.", "pos": ["intercity trip refers to start_station_name! = end_station_name; total travel duration to hour = DIVIDE(SUM(duration), 3600) AS hour;"], "neg": ["customer refers to subscription_type = 'Customer'; subscribers refers to subscription_type = 'Subscriber'; difference = SUBTRACT(SUM(subscription_type = 'Subscriber' t), SUM(subscription_type = 'Customer')); trip in June 2013 refers to start_date BETWEEN '6/1/2013 0:00'AND '6/31/2013 12:59';", "number of bikes a station can hold refers to SUM(dock_count); Evelyn Park and Ride refers to name = 'Evelyn Park and Ride'; started on the station refers to start_station_name; subscribers refers to subscription_type = 'subscriber';", "in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';", "temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;", "start station refers to start_station_name; end station refers to end_station_name;", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "Powell Street refers to start_station_name; bike 496 refers to bike_id = '496'; start_date = '8/29/2013';", "mean temperature refers to mean_temperature_f;\u00a0mean temperature of 20 degree Celsius refers to DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.8) = 20; in 2014 refers to date LIKE'%2015%';", "Redwood City is the name of the city; trips in August 2013 refers to start_date like '8%2013%';", "time = '11/3/2013'; which stations are empty refers to bikes_available = '0';"]}} {"set": {"query": "Among the rides during the rainy days, which ride was the longest? List the start station, end station, and duration of this ride.", "pos": ["rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;"], "neg": ["started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);", "started on the days in September, 2013 refers to date LIKE'9%'AND date LIKE'%2013' hottest temperature over 70 degrees Fahrenheit refers to max_temperature_f>70;", "in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';", "end station refers to end_station_name; starting from refers to start_station_name; start_station_name = '2nd at South Park';", "started on the days with a fog refers to start_date where events = 'fog'; in 2013 refers to date LIKE '%2013'; started from station refers to start_station_name; start_station_name = '2nd at Townsend';", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "bike was borrowed from refers to start_station_id; when the bike station was installed refers to installation_date;", "intercity trip refers to start_station_name! = end_station_name; total travel duration to hour = DIVIDE(SUM(duration), 3600) AS hour;", "end station refers to end_station_id; docks that were left refers to docks_available;", "South Van Ness at Market refers to start_station_name; subscriber refers to subscription_type; start_date = '12/1/2013'; the shortest duration refers to MIN(duration); which station was the bike returned to refers to end_station_name;"]}} {"set": {"query": "List the name and city of starting stations which has an above-average duration trips.", "pos": ["starting stations refers to start_station_name; above average duration trips = DIVIDE(SUM(duration), COUNT(main_trip.id))0.8; average ride duration = DIVIDE(SUM(duration), COUNT(duration));", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "ended on a foggy day refers to end_date where events = 'fog'; average duration = DIVIDE(SUM(duration), COUNT(duration));", "subscription_type = 'Subscriber'; DIVIDE(COUNT(id where subscription_type = 'Subscriber'), COUNT(id)) as percentage;", "shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;", "started at refers to start_station_name; start_station_name = 'Steuart at Market'; ended at refers to end_station_name; end_station_name = 'Embarcadero at Sansome'; rides in July 2004 refers to start_date = '7/1/2014 0:00'AND end_date = '7/31/2014 12:59';average ride time = DIVIDE(SUM(duration), COUNT(id))", "started refers to start_date; the hottest day refers to max_temperature_f;"]}} {"set": {"query": "What is the maximum humidity in Powell Street BART when bike 496 was borrowed from the station on 8/29/2013?", "pos": ["Powell Street refers to start_station_name; bike 496 refers to bike_id = '496'; start_date = '8/29/2013';"], "neg": ["day in the month of November, 2014 refers to start_date between '11/1/2014' and '11/30/2014'; foggy weather refers to events = 'Fog'; subscriber refers to subscription_type; all of the stations bikes were borrowed from refer to start_station_name;", "started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);", "San Francico is the name of the city; can hold more than 20 bikes implies dock's capacity and refers to dock_count\u226520;", "final station refers to end_station_name where MAX(end_date);", "time = '11/3/2013'; which stations are empty refers to bikes_available = '0';", "37.331415 and -121.8932 are latitude (lat) and longitude (long) coordinates indicating location; returned at refers to end_station_name; the date the bike was borrowed refers to start_date;", "hottest temperature refers to MAX(max_temperature_f);", "route implies a course taken in getting from start_station_name to end_station_name; the longest duration refers to MAX(duration);", "when the station was first installed refers to installation_date;", "temperature refers to max_temperature_f; March 2013 refers to date like '3/%/2013'; conversion to Celcius = DIVIDE(SUBTRACT(max_temperature_f, 32), 1.800) as Celsius1; DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.800) as Celsius2; DIVIDE(SUBTRACT(min_temperature_f, 32), 1.800) as Celcius3;"]}} {"set": {"query": "List out all stations name that having a mean temperature 20 degree Celsius in year 2014.", "pos": ["mean temperature refers to mean_temperature_f;\u00a0mean temperature of 20 degree Celsius refers to DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.8) = 20; in 2014 refers to date LIKE'%2015%';"], "neg": ["starting stations refers to start_station_name; above average duration trips = DIVIDE(SUM(duration), COUNT(main_trip.id))70;", "Powell Street refers to start_station_name; bike 496 refers to bike_id = '496'; start_date = '8/29/2013';", "end station refers to end_station_id; docks that were left refers to docks_available;", "shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;", "hottest temperature refers to MAX(max_temperature_f);", "no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;"]}} {"set": {"query": "Which year had the most number of trips that started at stations in San Francisco?", "pos": ["started at station refers to start_station_name; San Francisco refers to city = 'San Francisco'; year that had the most number of trips refers to MAX(year(start_date));"], "neg": ["started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);", "coldest temperature refers to min_temperature_f; average coldest temperature refers = AVG(min_temperature_f); stations refers to name; latitude refers to lat; longitude refers to long;", "in 2013 refers to year(date) = 2013; rain and fog ocurred together refers to events = 'Fog-Rain'; id of bikes refers to biked_id;", "started at refers to start_station_name; start_station_name = 'Mountain View City Hall'; ended on a rainy day refers to end_date where events = 'rain';", "South Van Ness at Market refers to start_station_name; subscriber refers to subscription_type; start_date = '12/1/2013'; the shortest duration refers to MIN(duration); which station was the bike returned to refers to end_station_name;", "customer refers to subscription_type = 'Customer'; subscribers refers to subscription_type = 'Subscriber'; difference = SUBTRACT(SUM(subscription_type = 'Subscriber' t), SUM(subscription_type = 'Customer')); trip in June 2013 refers to start_date BETWEEN '6/1/2013 0:00'AND '6/31/2013 12:59';", "in 2015 refers to end_date like '%2015%'; percentage = DIVIDE(COUNT(events = 'Rain'), COUNT(events));", "San Francico is the name of the city; can hold more than 20 bikes implies dock's capacity and refers to dock_count\u226520;", "hottest temperature refers to max_temperatutre_f; in 2014 refers to date LIKE '%2014'; started from station refers to start_station_name; start_station_name = '2nd at Folsom';", "in 2006 refers to start_date LIKE'%2006%'; ended at station refers to end_station_name; Mountain View refers to city = 'Mountain View';"]}} {"set": {"query": "What is the mean temperature in Fahrenheit on 8/29/2013 for the area where the zip code is 94107?", "pos": ["mean temperature in Fahrenheit refers to mean_temperature_f; on 8/29/2013 refers to date = '8/29/2013';"], "neg": ["started at refers to start_station_name; start_station_name = 'Steuart at Market'; ended at refers to end_station_name; end_station_name = 'Embarcadero at Sansome'; rides in July 2004 refers to start_date = '7/1/2014 0:00'AND end_date = '7/31/2014 12:59';average ride time = DIVIDE(SUM(duration), COUNT(id))", "the maximum dew point in Fahrenheit degree refers to max_dew_point_f; date = '7/15/2014';", "Powell Street refers to start_station_name; bike 496 refers to bike_id = '496'; start_date = '8/29/2013';", "subsscriber refers to subscription_type = subscriber; started their trips in refers to start_station_name; start_station_name = 'Market at 4th';", "installed after August, 2013 refers to year(installation_date)>2013; in San Jose refers to city = 'San Jose';", "number of bikes a station can hold refers to SUM(dock_count); Evelyn Park and Ride refers to name = 'Evelyn Park and Ride'; started on the station refers to start_station_name; subscribers refers to subscription_type = 'subscriber';", "intercity trip refers to start_station_name! = end_station_name; total travel duration to hour = DIVIDE(SUM(duration), 3600) AS hour;", "longest duration refers to MAX(duration); start station refers to start_station_name;", "start and end station are similar refers to start_station_name = end_station_name; latitude and longitude coordinates can be used to indicate a location;", "hottest temperature refers to MAX(max_temperature_f);"]}} {"set": {"query": "On the day with the hottest temperature ever in 2014, how many bike trips started from the station 2nd at Folsom?", "pos": ["hottest temperature refers to max_temperatutre_f; in 2014 refers to date LIKE '%2014'; started from station refers to start_station_name; start_station_name = '2nd at Folsom';"], "neg": ["ended in refers to end_station_name;", "shortest duration refers to MIN(duration); started at the station refers to start_station_name; can hold 15 bikes refers to dock_count = 15;", "started at refers to start_station_name; start_station_name = 'Market at 4th'; location coordinates refers to (lat, long);", "starting stations refers to start_station_name; above average duration trips = DIVIDE(SUM(duration), COUNT(main_trip.id))70;", "no available bike to borrow refers to bikes_available = 0; latitude and longitude coordinates can be used to indicate a location;", "bike was borrowed from refers to start_station_id; when the bike station was installed refers to installation_date;", "started at refers to start_station_name; start_station_name = 'Steuart at Market'; ended at refers to end_station_name; end_station_name = 'Embarcadero at Sansome'; rides in July 2004 refers to start_date = '7/1/2014 0:00'AND end_date = '7/31/2014 12:59';average ride time = DIVIDE(SUM(duration), COUNT(id))"]}} {"set": {"query": "What is the average duration of a bike trip made on the day with the hottest temperature ever in 2014?", "pos": ["average duration = DIVIDE(SUM(duration), COUNT(id)); hottest temperature refers to max_temperature_f; in 2014 refers to date LIKE '%2014';"], "neg": ["less than 5 minutes refers to duration<300 in seconds; the station where the bike was borrowed refers to start_station_name; the station where the bike was returned refers to end_station_name; mean temperature refers to min_temperature_f;", "San Francico is the name of the city; can hold more than 20 bikes implies dock's capacity and refers to dock_count\u226520;", "Powell Street refers to start_station_name; bike 496 refers to bike_id = '496'; start_date = '8/29/2013';", "end station refers to end_station_id; docks that were left refers to docks_available;", "rainy days refers to events = 'rain'; longest ride refers to MAX(duration); start station refers to start_station_name; end station refers to end_station_name; duration of the ride refers to duration;", "shortest trip refers to MIN(duration); starting from refers to start_station_name; start_station_name = 'Franklin at Maple'; maximum wind speed refers to max_wind_Speed_mph;", "hottest temperature refers to MAX(max_temperature_f);", "in 2015 refers to end_date like '%2015%'; percentage = DIVIDE(COUNT(events = 'Rain'), COUNT(events));", "subscription_type = 'Subscriber'; DIVIDE(COUNT(id where subscription_type = 'Subscriber'), COUNT(id)) as percentage;", "mean temperature refers to mean_temperature_f;\u00a0mean temperature of 20 degree Celsius refers to DIVIDE(SUBTRACT(mean_temperature_f, 32), 1.8) = 20; in 2014 refers to date LIKE'%2015%';"]}} {"set": {"query": "Please give more detailed information about the first three books that sell the best.", "pos": ["qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)"], "neg": ["qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "French publisher means publisher in France where country = 'France'", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "publisher name refers to pub_name", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "order happened on refers to ord_date", "name the publisher refers to pub_name", "Remulade is a city; sales in the store refers to ord_num", "Massachusetts is a state; business books refers to type = 'business'"]}} {"set": {"query": "What's on the notes for the order happened on 1994/9/14?", "pos": ["order happened on refers to ord_date"], "neg": ["highest job level refers to MAX(job_lvl)", "lowest job level refers to MIN(job_lvl)", "publisher refers to pub_name; about the title refers to notes", "job level refers to job_lvl", "publisher name refers to pub_name;", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "Massachusetts is a state; business books refers to type = 'business'", "Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)"]}} {"set": {"query": "Name the title and publisher for title ID BU 2075. Provide all the royalty percentage for all ranges.", "pos": ["name the publisher refers to pub_name"], "neg": ["publisher name refers to pub_name;", "qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "not located at USA refers to country! = 'USA'", "highest job level refers to MAX(job_lvl)", "Massachusetts is a state; business books refers to type = 'business'", "Remulade is a city; sales in the store refers to ord_num", "store name refers to stor_name", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991"]}} {"set": {"query": "List the title name, type, and price of the titles published by New Moon Books. Arrange the list in ascending order of price.", "pos": ["Eric the Read Books is a publisher which refers to pub_name;"], "neg": ["Remulade is a city; sales in the store refers to ord_num", "Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "published by refers to pub_name", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991", "lowest job level refers to MIN(job_lvl)", "highest job level refers to MAX(job_lvl)", "business title refers to title under business where type = 'business'", "publisher name refers to pub_name"]}} {"set": {"query": "What is the average quantity of each order for the book \"Life Without Fear\"?", "pos": ["qty is abbreviation for quantity; average quantity order = AVG(qty)"], "neg": ["Life Without Fear is book title", "Eric the Read Books is a publisher which refers to pub_name;", "qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "publisher refers to pub_name; about the title refers to notes", "Massachusetts is a state", "highest job level refers to MAX(job_lvl); hired the earliest refers to MIN(hire_date)", "Chief Financial Offer is a job description which refers to job_desc", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "order happened on refers to ord_date", "lowest job level refers to MIN(job_lvl)"]}} {"set": {"query": "For each publisher, state the type of titles they published order by the publisher name.", "pos": ["publisher name refers to pub_name"], "neg": ["US publisher refers publisher in the US where country = 'USA';", "name the publisher refers to pub_name", "Life Without Fear is book title", "French publisher means publisher in France where country = 'France'", "business title refers to title under business where type = 'business'", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "are over $15 refers to price>15", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "highest job level refers to MAX(job_lvl); hired the earliest refers to MIN(hire_date)"]}} {"set": {"query": "Which title is about helpful hints on how to use your electronic resources, which publisher published it and what is the price of this book?", "pos": ["publisher refers to pub_name; about the title refers to notes"], "neg": ["name the publisher refers to pub_name", "order happened on refers to ord_date", "store name refers to stor_name", "highest job level refers to MAX(job_lvl)", "Massachusetts is a state", "job level refers to job_lvl; YEAR(hire_date) between 1990 and 1995", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "not located at USA refers to country! = 'USA'", "French publisher means publisher in France where country = 'France'", "year to date sales refers to ytd_sales; on contract refers to contract = 1"]}} {"set": {"query": "State the royalty percentage for the most year to date sale title within the 20000 range.", "pos": ["most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000"], "neg": ["publisher name refers to pub_name", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "name the publisher refers to pub_name", "job level refers to job_lvl; YEAR(hire_date) between 1990 and 1995", "job level refers to job_lvl", "Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "published by refers to pub_name", "publisher refers to pub_name; about the title refers to notes", "publisher name refers to pub_name;"]}} {"set": {"query": "Tell me about the information of the French publisher.", "pos": ["French publisher means publisher in France where country = 'France'"], "neg": ["max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "lowest job level refers to MIN(job_lvl)", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "Massachusetts is a state", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "are over $15 refers to price>15", "Chief Financial Offer is a job description which refers to job_desc", "name the publisher refers to pub_name", "published by refers to pub_name", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)"]}} {"set": {"query": "List all titles which have year to date sales higher than the average order by pubisher name.", "pos": ["year to date sales refers to ytd_sales; average order = AVG(ytd_sales)"], "neg": ["qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "publication date refers to pubdate; payment terms refers to payterms; payterms = 'ON invoice'", "job title means job description which refers to job_desc", "name the publisher refers to pub_name", "highest job level refers to MAX(job_lvl)", "French publisher means publisher in France where country = 'France'", "publisher name refers to pub_name", "published by refers to pub_name", "publisher refers to pub_name; about the title refers to notes", "are over $15 refers to price>15"]}} {"set": {"query": "What is the publisher that has published the most expensive book?", "pos": ["most expensive book refers to MAX(price)"], "neg": ["publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "sold on refers to ord_date", "publisher refers to pub_name; about the title refers to notes", "business title refers to title under business where type = 'business'", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "Eric the Read Books is a publisher which refers to pub_name;", "publisher name refers to pub_name", "Life Without Fear is book title", "job level refers to job_lvl; YEAR(hire_date) between 1990 and 1995", "lowest job level refers to MIN(job_lvl)"]}} {"set": {"query": "Name all the authors for all business titles.", "pos": ["business title refers to title under business where type = 'business'"], "neg": ["most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "name the publisher refers to pub_name", "Massachusetts is a state; business books refers to type = 'business'", "sold on refers to ord_date", "Chief Financial Offer is a job description which refers to job_desc", "are over $15 refers to price>15", "qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "highest job level refers to MAX(job_lvl)"]}} {"set": {"query": "Calculate the average level difference between the Marketing editors hired by the US and non-US publishers?", "pos": ["Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)"], "neg": ["qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "year to date sales refers to ytd_sales; average order = AVG(ytd_sales)", "most expensive book refers to MAX(price)", "publication date refers to pubdate; payment terms refers to payterms; payterms = 'ON invoice'", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "Remulade is a city; sales in the store refers to ord_num", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "lowest job level refers to MIN(job_lvl)", "job level refers to job_lvl"]}} {"set": {"query": "Which employee has the lowest job level. State the first name, last name and when he /she was hired.", "pos": ["lowest job level refers to MIN(job_lvl)"], "neg": ["publisher refers to pub_name; about the title refers to notes", "qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "at least 10% royalty refers to royalty > = 10; minimum range is synonym for low range which refers to lorange; without minimum range amount refers to lorange <> 0", "Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)", "qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "publication date refers to pubdate; payment terms refers to payterms; payterms = 'ON invoice'", "Massachusetts is a state", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "hired before year 1990 refers to YEAR(hire_date)<1990", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000"]}} {"set": {"query": "In which country is the publisher of the book \"Life Without Fear\" located?", "pos": ["Life Without Fear is book title"], "neg": ["most expensive book refers to MAX(price)", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991", "Remulade is a city; sales in the store refers to ord_num", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "are over $15 refers to price>15", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "year to date sales refers to ytd_sales; on contract refers to contract = 1", "at least 10% royalty refers to royalty > = 10; minimum range is synonym for low range which refers to lorange; without minimum range amount refers to lorange <> 0", "Chief Financial Offer is a job description which refers to job_desc", "order happened on refers to ord_date"]}} {"set": {"query": "Among the publishers in the USA, how many of them have published books that are over $15?", "pos": ["are over $15 refers to price>15"], "neg": ["store name refers to stor_name", "publisher name refers to pub_name;", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "job title means job description which refers to job_desc", "year to date sales refers to ytd_sales; on contract refers to contract = 1", "order happened on refers to ord_date", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "year to date sales refers to ytd_sales; about the title refers to notes", "year to date sales refers to ytd_sales; average order = AVG(ytd_sales)", "Eric the Read Books is a publisher which refers to pub_name;"]}} {"set": {"query": "Who are the employees working for publisher not located in USA? State the employee's name and publisher name.", "pos": ["not located at USA refers to country! = 'USA'"], "neg": ["lowest job level refers to MIN(job_lvl)", "Massachusetts is a state", "year to date sales refers to ytd_sales; about the title refers to notes", "US publisher refers publisher in the US where country = 'USA';", "Eric the Read Books is a publisher which refers to pub_name;", "publisher refers to pub_name; about the title refers to notes", "at least 10% royalty refers to royalty > = 10; minimum range is synonym for low range which refers to lorange; without minimum range amount refers to lorange <> 0", "are over $15 refers to price>15", "highest job level refers to MAX(job_lvl)", "name the publisher refers to pub_name"]}} {"set": {"query": "What is the highest level of job to get to for the employee who got hired the earliest?", "pos": ["highest job level refers to MAX(job_lvl); hired the earliest refers to MIN(hire_date)"], "neg": ["most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "order happened on refers to ord_date", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "Life Without Fear is book title", "year to date sales refers to ytd_sales; average order = AVG(ytd_sales)", "publisher refers to pub_name; about the title refers to notes", "name the publisher refers to pub_name", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "Massachusetts is a state"]}} {"set": {"query": "What's Pedro S Afonso's job title?", "pos": ["job title means job description which refers to job_desc"], "neg": ["Chief Financial Offer is a job description which refers to job_desc", "at least 10% royalty refers to royalty > = 10; minimum range is synonym for low range which refers to lorange; without minimum range amount refers to lorange <> 0", "publisher refers to pub_name; about the title refers to notes", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991", "published by refers to pub_name", "qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "job level refers to job_lvl; YEAR(hire_date) between 1990 and 1995", "year to date sales refers to ytd_sales; average order = AVG(ytd_sales)", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "not located at USA refers to country! = 'USA'"]}} {"set": {"query": "What is the title that have at least 10% royalty without minimum range amount.", "pos": ["at least 10% royalty refers to royalty > = 10; minimum range is synonym for low range which refers to lorange; without minimum range amount refers to lorange <> 0"], "neg": ["not located at USA refers to country! = 'USA'", "job title means job description which refers to job_desc", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "French publisher means publisher in France where country = 'France'", "qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "US publisher refers publisher in the US where country = 'USA';", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "sold on refers to ord_date", "Life Without Fear is book title", "year to date sales refers to ytd_sales; about the title refers to notes"]}} {"set": {"query": "Which job level is O'Rourke at?", "pos": ["job level refers to job_lvl"], "neg": ["lowest job level refers to MIN(job_lvl)", "order happened on refers to ord_date", "store name refers to stor_name", "qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "not located at USA refers to country! = 'USA'", "qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "year to date sales refers to ytd_sales; about the title refers to notes", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "business title refers to title under business where type = 'business'", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991"]}} {"set": {"query": "For all authors from CA who are not on contract, which title of his/hers has the most year to date sales.", "pos": ["year to date sales refers to ytd_sales; on contract refers to contract = 1"], "neg": ["most expensive book refers to MAX(price)", "Remulade is a city; sales in the store refers to ord_num", "year to date sales refers to ytd_sales; average order = AVG(ytd_sales)", "year to date sales refers to ytd_sales; about the title refers to notes", "sold on refers to ord_date", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "store name refers to stor_name", "publication date refers to pubdate; payment terms refers to payterms; payterms = 'ON invoice'", "French publisher means publisher in France where country = 'France'", "hired before year 1990 refers to YEAR(hire_date)<1990"]}} {"set": {"query": "Name the title with the highest price published by 'Binnet & Hardley'.", "pos": ["published by refers to pub_name"], "neg": ["max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "Life Without Fear is book title", "are over $15 refers to price>15", "qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "order happened on refers to ord_date", "US publisher refers publisher in the US where country = 'USA';", "Chief Financial Offer is a job description which refers to job_desc", "most expensive book refers to MAX(price)", "Massachusetts is a state; business books refers to type = 'business'"]}} {"set": {"query": "Name all employees who were hired before year 1990.", "pos": ["hired before year 1990 refers to YEAR(hire_date)<1990"], "neg": ["qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "published by refers to pub_name", "order happened on refers to ord_date", "job level refers to job_lvl", "publication date refers to pubdate; payment terms refers to payterms; payterms = 'ON invoice'", "year to date sales refers to ytd_sales; about the title refers to notes"]}} {"set": {"query": "Among the stores that have ordered the book \"Life Without Fear\", how many of them are located in Massachusetts?", "pos": ["Massachusetts is a state"], "neg": ["most expensive book refers to MAX(price)", "published by refers to pub_name", "Massachusetts is a state; business books refers to type = 'business'", "not located at USA refers to country! = 'USA'", "name the publisher refers to pub_name", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "job level refers to job_lvl; YEAR(hire_date) between 1990 and 1995", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "Life Without Fear is book title"]}} {"set": {"query": "List the title, price and publication date for all sales with 'ON invoice' payment terms.", "pos": ["publication date refers to pubdate; payment terms refers to payterms; payterms = 'ON invoice'"], "neg": ["year to date sales refers to ytd_sales; about the title refers to notes", "store name refers to stor_name", "Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "name the publisher refers to pub_name", "year to date sales refers to ytd_sales; on contract refers to contract = 1", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "publisher name refers to pub_name", "are over $15 refers to price>15", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)"]}} {"set": {"query": "What is the price of the book that sells the best?", "pos": ["qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)"], "neg": ["year to date sales refers to ytd_sales; about the title refers to notes", "highest job level refers to MAX(job_lvl)", "sold on refers to ord_date", "Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "job level refers to job_lvl; YEAR(hire_date) between 1990 and 1995", "not located at USA refers to country! = 'USA'", "at least 10% royalty refers to royalty > = 10; minimum range is synonym for low range which refers to lorange; without minimum range amount refers to lorange <> 0", "US publisher refers publisher in the US where country = 'USA';", "Remulade is a city; sales in the store refers to ord_num"]}} {"set": {"query": "How many levels are there left for Diego W Roel to reach if he/she could go to the max level for his/her position?", "pos": ["max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)"], "neg": ["most expensive book refers to MAX(price)", "Eric the Read Books is a publisher which refers to pub_name;", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "sold on refers to ord_date", "hired before year 1990 refers to YEAR(hire_date)<1990", "lowest job level refers to MIN(job_lvl)", "publisher refers to pub_name; about the title refers to notes", "year to date sales refers to ytd_sales; average order = AVG(ytd_sales)", "publisher name refers to pub_name", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991"]}} {"set": {"query": "How many sales did the store in Remulade make?", "pos": ["Remulade is a city; sales in the store refers to ord_num"], "neg": ["not located at USA refers to country! = 'USA'", "lowest job level refers to MIN(job_lvl)", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "job level refers to job_lvl", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "Eric the Read Books is a publisher which refers to pub_name;", "publisher refers to pub_name; about the title refers to notes"]}} {"set": {"query": "Please list the stores that ordered the book \"Life Without Fear\".", "pos": ["store name refers to stor_name"], "neg": ["US publisher refers publisher in the US where country = 'USA';", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "sold on refers to ord_date", "Massachusetts is a state", "business title refers to title under business where type = 'business'", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "order happened on refers to ord_date", "highest job level refers to MAX(job_lvl); hired the earliest refers to MIN(hire_date)", "job level refers to job_lvl; YEAR(hire_date) between 1990 and 1995"]}} {"set": {"query": "How many books on business have the bookstores in Massachusetts ordered?", "pos": ["Massachusetts is a state; business books refers to type = 'business'"], "neg": ["published by refers to pub_name", "not located at USA refers to country! = 'USA'", "year to date sales refers to ytd_sales; about the title refers to notes", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "highest job level refers to MAX(job_lvl); hired the earliest refers to MIN(hire_date)", "business title refers to title under business where type = 'business'", "most expensive book refers to MAX(price)", "job level refers to job_lvl; YEAR(hire_date) between 1990 and 1995", "publisher refers to pub_name; about the title refers to notes"]}} {"set": {"query": "What's the royalty for the bestseller book?", "pos": ["qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)"], "neg": ["are over $15 refers to price>15", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "job title means job description which refers to job_desc", "publisher name refers to pub_name;", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "store name refers to stor_name", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "name the publisher refers to pub_name", "business title refers to title under business where type = 'business'"]}} {"set": {"query": "List the type of the book for the order which was sold on 1993/5/29.", "pos": ["sold on refers to ord_date"], "neg": ["lowest job level refers to MIN(job_lvl)", "qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "job level refers to job_lvl", "highest job level refers to MAX(job_lvl)", "Chief Financial Offer is a job description which refers to job_desc", "most expensive book refers to MAX(price)", "US publisher refers publisher in the US where country = 'USA';", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\"", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000"]}} {"set": {"query": "Name the top five titles that sold more than average and list them in descending order of the number of sales in California stores?", "pos": ["qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\""], "neg": ["not located at USA refers to country! = 'USA'", "most expensive book refers to MAX(price)", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "publisher name refers to pub_name;", "Chief Financial Offer is a job description which refers to job_desc", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "French publisher means publisher in France where country = 'France'", "year to date sales refers to ytd_sales; average order = AVG(ytd_sales)", "Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)", "Life Without Fear is book title"]}} {"set": {"query": "List all titles published in year 1991. Also provide notes details of the title and the publisher's name.", "pos": ["publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991"], "neg": ["job title means job description which refers to job_desc", "order happened on refers to ord_date", "hired before year 1990 refers to YEAR(hire_date)<1990", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "Massachusetts is a state; business books refers to type = 'business'", "published by refers to pub_name", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "lowest job level refers to MIN(job_lvl)", "US publisher refers publisher in the US where country = 'USA';", "qty is abbreviation for quantity; average quantity order = AVG(qty)"]}} {"set": {"query": "Name the publisher which has the most titles published in 1991.", "pos": ["most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991"], "neg": ["Remulade is a city; sales in the store refers to ord_num", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "name the publisher refers to pub_name", "publisher name refers to pub_name;", "not located at USA refers to country! = 'USA'", "qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991", "business title refers to title under business where type = 'business'", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "at least 10% royalty refers to royalty > = 10; minimum range is synonym for low range which refers to lorange; without minimum range amount refers to lorange <> 0"]}} {"set": {"query": "Which publisher had the highest job level? Give his/her full name.", "pos": ["highest job level refers to MAX(job_lvl)"], "neg": ["hired before year 1990 refers to YEAR(hire_date)<1990", "sold on refers to ord_date", "Marketing manager is a job description which refers to job_desc; US publisher refers publisher in the US where country = 'USA'; non-US publishers refers publisher not in the US where country! = 'USA'; job level refers to job_lvl; average level = AVG(job_lvl)", "Remulade is a city; sales in the store refers to ord_num", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "US publisher refers publisher in the US where country = 'USA';", "not located at USA refers to country! = 'USA'", "year to date sales refers to ytd_sales; about the title refers to notes", "Massachusetts is a state", "publisher name refers to pub_name; publication date refers to pubdate; published in year 1991 refers to YEAR(pubdate) = 1991"]}} {"set": {"query": "Name the Chief Executive Officer and when he/she was hired.", "pos": ["Chief Financial Offer is a job description which refers to job_desc"], "neg": ["Life Without Fear is book title", "publisher name refers to pub_name", "French publisher means publisher in France where country = 'France'", "published by refers to pub_name", "publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)", "qty is abbreviation for quantity; average quantity order = AVG(qty)", "US publisher refers publisher in the US where country = 'USA';", "most year to date sales refers to MAX(ytd_sales); range limit means high range which refers to hirange; the 20000 range refers to hirange<20000", "year to date sales refers to ytd_sales; on contract refers to contract = 1", "publisher name refers to pub_name;"]}} {"set": {"query": "Find and list the full name of employees who were hired between 1990 and 1995. Also, arrange them in the descending order of job level.", "pos": ["job level refers to job_lvl; YEAR(hire_date) between 1990 and 1995"], "neg": ["qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "publisher name refers to pub_name;", "Remulade is a city; sales in the store refers to ord_num", "name the publisher refers to pub_name", "hired before year 1990 refers to YEAR(hire_date)<1990", "Massachusetts is a state; business books refers to type = 'business'", "US publisher refers publisher in the US where country = 'USA';", "year to date sales refers to ytd_sales; average order = AVG(ytd_sales)", "Chief Financial Offer is a job description which refers to job_desc", "highest job level refers to MAX(job_lvl); hired the earliest refers to MIN(hire_date)"]}} {"set": {"query": "In the books published by US publishers, which book has the highest royalty? List these books in the descending order of royalty.", "pos": ["US publisher refers publisher in the US where country = 'USA';"], "neg": ["Massachusetts is a state", "year to date sales refers to ytd_sales; on contract refers to contract = 1", "order happened on refers to ord_date", "sold on refers to ord_date", "year to date sales refers to ytd_sales; about the title refers to notes", "publication date refers to pubdate; payment terms refers to payterms; payterms = 'ON invoice'", "most title published refers to MAX(count(title_id); published in 1991 refers to YEAR(pubdate) = 1991", "Life Without Fear is book title", "highest job level refers to MAX(job_lvl)", "job title means job description which refers to job_desc"]}} {"set": {"query": "State the publisher name for publisher ID 877? Calculate its average year to date sales.", "pos": ["publisher id refers to pub_id; publisher name refers to pub_name; average year to date sales = AVG(ytd_sales)"], "neg": ["highest job level refers to MAX(job_lvl)", "year to date sales refers to ytd_sales; on contract refers to contract = 1", "publication date refers to pubdate; payment terms refers to payterms; payterms = 'ON invoice'", "store name refers to stor_name", "at least 10% royalty refers to royalty > = 10; minimum range is synonym for low range which refers to lorange; without minimum range amount refers to lorange <> 0", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "highest job level refers to MAX(job_lvl); hired the earliest refers to MIN(hire_date)", "business title refers to title under business where type = 'business'", "are over $15 refers to price>15", "qty is abbreviation for quantity; sold more than average refers to qty > AVG(qty); california refers to state = 'CA\""]}} {"set": {"query": "Provide a list of titles together with its publisher name for all publishers located in the USA.", "pos": ["publisher name refers to pub_name;"], "neg": ["at least 10% royalty refers to royalty > = 10; minimum range is synonym for low range which refers to lorange; without minimum range amount refers to lorange <> 0", "not located at USA refers to country! = 'USA'", "publication date refers to pubdate; payment terms refers to payterms; payterms = 'ON invoice'", "Remulade is a city; sales in the store refers to ord_num", "job title means job description which refers to job_desc", "Life Without Fear is book title", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "business title refers to title under business where type = 'business'", "publisher name refers to pub_name"]}} {"set": {"query": "Of the titles, which title is about the Carefully researched study of the effects of strong emotions on the body, which state-based publisher published this book, and what is the year-to-date sale?", "pos": ["year to date sales refers to ytd_sales; about the title refers to notes"], "neg": ["qty is abbreviation for quantity; bestseller means with the most sales quantity; MAX(qty)", "Remulade is a city; sales in the store refers to ord_num", "Massachusetts is a state", "Massachusetts is a state; business books refers to type = 'business'", "job title means job description which refers to job_desc", "publisher name refers to pub_name;", "Life Without Fear is book title", "qty is abbreviation for quantity; sells the best mean with the most sales quantity; MAX(qty)", "max level for his position refers to max_lvl; job level refers to job_lvl; level left to reach the max = SUBTRACT(max_lvl, job_lvl)", "order happened on refers to ord_date"]}} {"set": {"query": "List all the titles of the Spanish books published by Alfaguara.", "pos": ["\"Spanish\" is the language_name; 'Alfaguara' is the publisher_name"], "neg": ["book with the most pages refers to Max(num_pages)", "\"Fantasmas\" is the title of the book; customer names refers to first_name, last_name", "ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", "\"\u017dirovnica\" is the city; country refers to country_name", "books with the most number of pages refers to Max(num_pages)", "\"ADV Manga\" is the publisher_name; books refers to title", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "\"Ace Book\" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100"]}} {"set": {"query": "In books published by Ace Book, what is the percentage of English books published?", "pos": ["\"Ace Book\" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100"], "neg": ["ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "\"\u017dirovnica\" is the city; country refers to country_name", "order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100", "books in English refers to language_name = 'English'", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name"]}} {"set": {"query": "Indicate the ISBN13 of all the books that have less than 140 pages and more than 135.", "pos": ["ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;"], "neg": ["under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "name of publisher refers to publisher_name", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "most order refers to Max(Count(order_id)); customer refers to first_name, last_name", "number of pages refers to num_pages", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'", "\"The Servant Leader\" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'", "\"El plan infinito\" is the title of the book; language refers to language_name"]}} {"set": {"query": "Indicate the complete address of customers located in Lazaro Cardenas.", "pos": ["complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city"], "neg": ["\"The Prophet\" is the title of the book: who wrote refers to author_name", "\"Anleitung zum Zickigsein\" is the title of the book", "\"Arabic\" is the language_name; book refers to title", "full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'", "books cost 19 dollars and above refers to price > = 19", "number of pages refers to num_pages", "\"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\" is the title of the book; publisher refers to publisher_name", "\"A.R. Braunmuller\" is the author_name", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'"]}} {"set": {"query": "Give the author's name of the books that cost 19 dollars and above.", "pos": ["books cost 19 dollars and above refers to price > = 19"], "neg": ["priority method refers to method_name = 'Priority'", "order returned refers to status_value = 'Returned'", "under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name", "\"O Xar\u00e1\" is the title of the book", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "\"AK Press\" is the publisher_name", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "average spend on book orders = AVG (price)", "country refers to country_name", "full name refers to first_name, last_name; 'Baiyin' is the city"]}} {"set": {"query": "How many orders were delivered in 2021?", "pos": ["delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'"], "neg": ["\"The Little House\" is the title of book; cheapest order price refers to Min(price)", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "\"O Xar\u00e1\" is the title of the book", "most order refers to Max(Count(order_id)); customer refers to first_name, last_name", "\"The Servant Leader\" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'", "Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name", "\"Costa Rica\" is the country_name", "book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "average spend on book orders = AVG (price)"]}} {"set": {"query": "Which books were released by Orson Scott Card in 2001?", "pos": ["\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title"], "neg": ["\"The Servant Leader\" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "book with the most pages refers to Max(num_pages)", "publisher refers to publisher_name;\u00a0 oldest book refers to Min(publication_date)", "\"British English\" is the language_name of the book", "\"British English\" is the language_name of the book", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "order returned refers to status_value = 'Returned'", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name"]}} {"set": {"query": "Identify by their id all the orders that have been cancelled.", "pos": ["have been cancelled refers to status_value = 'cancelled'; id refers to order_id"], "neg": ["language written in refers to language_name;", "\"Dallas\" is the city; streets refers to street_name", "books with the most number of pages refers to Max(num_pages)", "\"Birlinn\" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'", "\"A.R. Braunmuller\" is the author_name", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;", "in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'", "\"ADV Manga\" is the publisher_name; books refers to title", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name"]}} {"set": {"query": "Which customer has the most addresses?", "pos": ["customer refers to first_name, last_name; the most address refers to Max(count(address_id))"], "neg": ["ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "total price refers to Sum(price)", "\"2398\" is the order_id; time = \u00a0 Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS \"year\" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS \"month\", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS \"day\"", "\"The Servant Leader\" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'", "books cost 19 dollars and above refers to price > = 19", "\"O Xar\u00e1\" is the title of the book", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))", "\"Akira Watanabe\" is the author_name"]}} {"set": {"query": "What is the address that received the most orders?", "pos": ["address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))"], "neg": ["shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "books with the most number of pages refers to Max(num_pages)", "ISBN refers to isbn13;", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "author named 'George' refers to author_name = 'George%'", "\"Costa Rica\" is the country_name", "\"23755004321\" is the isbn13; language refers to language_name", "published at least 30 books refers to Count(book_id) > = 30", "\"The Prophet\" is the title of the book: who wrote refers to author_name", "\"Seaward\" is the title of the book; pages refers to num_pages"]}} {"set": {"query": "Name the streets in Dallas.", "pos": ["\"Dallas\" is the city; streets refers to street_name"], "neg": ["street refers to street_name; last number of each street refers to Substr (street_number, -1)", "\"2398\" is the order_id; time = \u00a0 Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS \"year\" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS \"month\", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS \"day\"", "complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city", "language written in refers to language_name;", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "number of pages refers to num_pages", "books cost 19 dollars and above refers to price > = 19", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name"]}} {"set": {"query": "List all of the books that were published in 1995.", "pos": ["published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title"], "neg": ["delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "\"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\" is the title of the book; publisher refers to publisher_name", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "average spend on book orders = AVG (price)", "number of pages refers to num_pages", "cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname", "current address refers to address_status = 1; address refers to street_number, street_name, city", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name", "\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)"]}} {"set": {"query": "What is the percentage of books that cost greater than $10 and were ordered by customer Ruthanne Vatini?", "pos": ["cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname"], "neg": ["books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "\"Akira Watanabe\" is the author_name", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'", "average spend on book orders = AVG (price)", "\"Dallas\" is the city; streets refers to street_name", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "\"aalleburtonkc@yellowbook.com\" is the email of customer; full name refers to first_name, last_name", "\"Anleitung zum Zickigsein\" is the title of the book", "\"The Prophet\" is the title of the book: total price refers to Sum(price)"]}} {"set": {"query": "What is the publisher name of the book titled The Illuminati?", "pos": ["\"The Illuminati\" is the title of book"], "neg": ["delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "\"First Things First\" is the title of the book; author refers to author_name", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "average spend on book orders = AVG (price)", "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", "under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name", "\"The Prophet\" is the title of the book; highest price refers to Max(price)", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "\"El plan infinito\" is the title of the book; language refers to language_name", "\"\u017dirovnica\" is the city; country refers to country_name"]}} {"set": {"query": "How many books were published by Brava in 2006?", "pos": ["\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'"], "neg": ["international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "number of pages refers to num_pages", "\"The Little House\" is the title of book; cheapest order price refers to Min(price)", "book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "priority method refers to method_name = 'Priority'", "number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))", "\"Anleitung zum Zickigsein\" is the title of the book", "\"Fantasmas\" is the title of the book; customer names refers to first_name, last_name"]}} {"set": {"query": "How many orders does the book \"O Xar\u00e1\" have?", "pos": ["\"O Xar\u00e1\" is the title of the book"], "neg": ["have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "books cost 19 dollars and above refers to price > = 19", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "\"The Prophet\" is the title of the book; highest price refers to Max(price)", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "ISBN refers to isbn13;", "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))", "\"Kensington\" is the publisher_name;", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "\"Dallas\" is the city; streets refers to street_name"]}} {"set": {"query": "Which publisher published Barry Eisler's book?", "pos": ["\"Barry Eisler\" is the author_name; publisher refers to publisher_name"], "neg": ["book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", "book with the most pages refers to Max(num_pages)", "\"British English\" is the language_name of the book", "International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;", "book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'", "\"A.J. Ayer\" is the author_name;", "total price refers to Sum(price)"]}} {"set": {"query": "List all the names of the books written by Danielle Steel.", "pos": ["\"Danielle Steel\" is the author_name; name of books refers to title"], "neg": ["in 2021 refers to order_date LIKE '2021%'", "country refers to country_name", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))", "priority method refers to method_name = 'Priority'", "\"British English\" is the language_name of the book", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "via international shipping refers to method_name = 'International'", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100"]}} {"set": {"query": "What is the average number of pages of David Coward's books?", "pos": ["number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))"], "neg": ["\"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\" is the title of the book; publisher refers to publisher_name", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "name of publisher refers to publisher_name", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "number of pages refers to num_pages"]}} {"set": {"query": "In which cities are the customers of Costa Rica located?", "pos": ["\"Costa Rica\" is the country_name"], "neg": ["books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "ISBN refers to isbn13;", "\"Seaward\" is the title of the book; pages refers to num_pages", "published at least 30 books refers to Count(book_id) > = 30", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "\"A.R. Braunmuller\" is the author_name", "\"Dallas\" is the city; streets refers to street_name"]}} {"set": {"query": "Please list the titles of all the books in British English.", "pos": ["\"British English\" is the language_name of the book"], "neg": ["\"Abrams\" is the publisher_name; author's name refers to author_name", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "authors named Adam refers to author_name LIKE 'Adam'", "\"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\" is the title of the book; publisher refers to publisher_name", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "most order refers to Max(Count(order_id)); customer refers to first_name, last_name", "street refers to street_name; last number of each street refers to Substr (street_number, -1)", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "\"Danielle Steel\" is the author_name; name of books refers to title", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)"]}} {"set": {"query": "Among the books published in 2004, list the name of the publisher of books with number of pages greater than 70% of the average number of pages of all books.", "pos": ["published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name"], "neg": ["name of publisher refers to publisher_name", "full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book", "\"Costa Rica\" is the country_name", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "\"O Xar\u00e1\" is the title of the book", "\"The Illuminati\" is the title of book", "complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city", "\"The Prophet\" is the title of the book: who wrote refers to author_name", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))"]}} {"set": {"query": "List all books published by ADV Manga.", "pos": ["\"ADV Manga\" is the publisher_name; books refers to title"], "neg": ["number of pages refers to num_pages", "\"9780763628321\" is the isbn13", "full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book", "\"A.J. Ayer\" is the author_name;", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "\"Anleitung zum Zickigsein\" is the title of the book", "full name refers to first_name, last_name; 'Baiyin' is the city"]}} {"set": {"query": "How many books were published by publisher \"Thomas Nelson\"?", "pos": ["\"Thomas Nelson\" is the publisher_name"], "neg": ["full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book", "street refers to street_name; last number of each street refers to Substr (street_number, -1)", "oldest book refers to Min(publiation_date)", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "order returned refers to status_value = 'Returned'", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "\"Ace Book\" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100", "complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city"]}} {"set": {"query": "Provide the email of the customers that purchased books with a price range of 3 to 5 dollars.", "pos": ["books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5"], "neg": ["average spend on book orders = AVG (price)", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "\"O Xar\u00e1\" is the title of the book", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "number of pages refers to num_pages", "complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city", "cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname"]}} {"set": {"query": "Write the full name of the customers whose address is at 55 Dorton Pass, Huangqiao.", "pos": ["full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city"], "neg": ["\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "in Japanese refers to language_name = 'Japanese", "International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100", "\"The Little House\" is the title of book; cheapest order price refers to Min(price)", "average spend on book orders = AVG (price)", "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", "complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city"]}} {"set": {"query": "Which country does Malina Johnson live in?", "pos": ["country refers to country_name"], "neg": ["in 2021 refers to order_date LIKE '2021%'", "ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name", "\"British English\" is the language_name of the book", "average spend on book orders = AVG (price)", "in Japanese refers to language_name = 'Japanese", "ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'"]}} {"set": {"query": "Which customer has made the most orders? Show his/her full name.", "pos": ["most order refers to Max(Count(order_id)); customer refers to first_name, last_name"], "neg": ["\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "\"Akira Watanabe\" is the author_name", "\"9780763628321\" is the isbn13", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "\"Dallas\" is the city; streets refers to street_name", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "\"\u017dirovnica\" is the city; country refers to country_name", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "total price refers to Sum(price)", "in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'"]}} {"set": {"query": "How much time does it take to update the status of order \"2398\"?", "pos": ["\"2398\" is the order_id; time = \u00a0 Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS \"year\" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS \"month\", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS \"day\""], "neg": ["\"Seaward\" is the title of the book; pages refers to num_pages", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "\"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\" is the title of the book; publisher refers to publisher_name", "\"A.J. Ayer\" is the author_name;", "total price refers to Sum(price)", "\"9780763628321\" is the isbn13", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "most order refers to Max(Count(order_id)); customer refers to first_name, last_name", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "street refers to street_name; last number of each street refers to Substr (street_number, -1)"]}} {"set": {"query": "Provide the ISBN and price of the book with book ID 7160.", "pos": ["ISBN refers to isbn13;"], "neg": ["\"The Prophet\" is the title of the book: who wrote refers to author_name", "\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "\"Akira Watanabe\" is the author_name", "under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name", "full name refers to first_name, last_name; 'Baiyin' is the city", "\"El plan infinito\" is the title of the book; language refers to language_name", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)"]}} {"set": {"query": "Provide the title of the books published in British-English.", "pos": ["\"British English\" is the language_name of the book"], "neg": ["International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "\"Alan Lee\" is the author_name; publisher's name refers to publisher_name", "authors refers to author_name; more than 3000 pages refers to num_pages > 3000", "\"Arabic\" is the language_name; book refers to title", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "\"The Little House\" is the title of book; cheapest order price refers to Min(price)", "\"9780763628321\" is the isbn13", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "\"British English\" is the language_name of the book", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city"]}} {"set": {"query": "List all books written in Arabic.", "pos": ["\"Arabic\" is the language_name; book refers to title"], "neg": ["book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "\"Ace Hardcover\" is the publisher_name", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "oldest book refers to Min(publiation_date)", "current address refers to address_status = 1; address refers to street_number, street_name, city", "\"Anleitung zum Zickigsein\" is the title of the book", "\"Danielle Steel\" is the author_name; name of books refers to title", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'"]}} {"set": {"query": "Among the books ordered by Lucas Wyldbore, what is the percentage of those books over $13?", "pos": ["books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100"], "neg": ["in Japanese refers to language_name = 'Japanese", "order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100", "\"Anleitung zum Zickigsein\" is the title of the book", "\"Akira Watanabe\" is the author_name", "published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "\"The Prophet\" is the title of the book: who wrote refers to author_name", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "\"Ace Book\" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100"]}} {"set": {"query": "What is the language of the book with ISBN 23755004321?", "pos": ["\"23755004321\" is the isbn13; language refers to language_name"], "neg": ["\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "published at least 30 books refers to Count(book_id) > = 30", "authors refers to author_name; more than 3000 pages refers to num_pages > 3000", "\"Danielle Steel\" is the author_name; name of books refers to title", "authors named Adam refers to author_name LIKE 'Adam'", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "\"Seaward\" is the title of the book; pages refers to num_pages", "\"ADV Manga\" is the publisher_name; books refers to title", "\"British English\" is the language_name of the book", "via international shipping refers to method_name = 'International'"]}} {"set": {"query": "How many pages does 'Seaward' have?", "pos": ["\"Seaward\" is the title of the book; pages refers to num_pages"], "neg": ["\"Barry Eisler\" is the author_name; publisher refers to publisher_name", "\"ADV Manga\" is the publisher_name; books refers to title", "International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100", "book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "author named 'George' refers to author_name = 'George%'", "street refers to street_name; last number of each street refers to Substr (street_number, -1)", "\"Danielle Steel\" is the author_name; name of books refers to title", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "\"El plan infinito\" is the title of the book; language refers to language_name", "\"aalleburtonkc@yellowbook.com\" is the email of customer; full name refers to first_name, last_name"]}} {"set": {"query": "Indicate the last number of each street.", "pos": ["street refers to street_name; last number of each street refers to Substr (street_number, -1)"], "neg": ["\"76092025986\" is the isbn13", "\"Costa Rica\" is the country_name", "order returned refers to status_value = 'Returned'", "\"Alan Lee\" is the author_name; publisher's name refers to publisher_name", "books with the most number of pages refers to Max(num_pages)", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "name of publisher refers to publisher_name", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "\"23755004321\" is the isbn13; language refers to language_name", "\"Fantasmas\" is the title of the book; customer names refers to first_name, last_name"]}} {"set": {"query": "List the author's name of the books published by Abrams.", "pos": ["\"Abrams\" is the publisher_name; author's name refers to author_name"], "neg": ["complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "country refers to country_name", "author named 'George' refers to author_name = 'George%'", "in Japanese refers to language_name = 'Japanese", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "language written in refers to language_name;", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "authors named Adam refers to author_name LIKE 'Adam'"]}} {"set": {"query": "Who is the publisher of Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic?", "pos": ["\"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\" is the title of the book; publisher refers to publisher_name"], "neg": ["full name refers to first_name, last_name; 'Baiyin' is the city", "full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name", "published at least 30 books refers to Count(book_id) > = 30", "full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book", "\"Akira Watanabe\" is the author_name", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))"]}} {"set": {"query": "How many books were published by Ace Hardcover?", "pos": ["\"Ace Hardcover\" is the publisher_name"], "neg": ["\"Anleitung zum Zickigsein\" is the title of the book", "oldest book refers to Min(publiation_date)", "authors refers to author_name; more than 3000 pages refers to num_pages > 3000", "ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "\"\u017dirovnica\" is the city; country refers to country_name", "\"Kensington\" is the publisher_name;", "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))", "\"23755004321\" is the isbn13; language refers to language_name"]}} {"set": {"query": "Who is the author of First Things First?", "pos": ["\"First Things First\" is the title of the book; author refers to author_name"], "neg": ["books in English refers to language_name = 'English'", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "\"A.J. Ayer\" is the author_name;", "author named 'George' refers to author_name = 'George%'", "oldest book refers to Min(publiation_date)", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name", "\"Costa Rica\" is the country_name", "published at least 30 books refers to Count(book_id) > = 30", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "current address refers to address_status = 1; address refers to street_number, street_name, city"]}} {"set": {"query": "How many orders did Marcelia Goering place in 2021 that uses the Priority Shipping method?", "pos": ["in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'"], "neg": ["books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "published at least 30 books refers to Count(book_id) > = 30", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "via international shipping refers to method_name = 'International'", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name", "full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title", "\"Kensington\" is the publisher_name;", "publisher have the word 'book' refers to publisher_name LIKE '%book%'"]}} {"set": {"query": "What is the email of the customers who place their orders with priority method?", "pos": ["priority method refers to method_name = 'Priority'"], "neg": ["book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "country refers to country_name", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "\"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\" is the title of the book; publisher refers to publisher_name", "books refers to title; the most orders refers to Max(Count(order_id))", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "\"Spanish\" is the language_name; 'Alfaguara' is the publisher_name", "in Japanese refers to language_name = 'Japanese"]}} {"set": {"query": "Among all orders updated in 2022, identify the percentage that has been returned.", "pos": ["order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100"], "neg": ["cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname", "\"The Illuminati\" is the title of book", "author named 'George' refers to author_name = 'George%'", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "country refers to country_name", "publisher refers to publisher_name;\u00a0 oldest book refers to Min(publication_date)", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))"]}} {"set": {"query": "What is the current address of customer Kandy?", "pos": ["current address refers to address_status = 1; address refers to street_number, street_name, city"], "neg": ["\"Costa Rica\" is the country_name", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "\"A.J. Ayer\" is the author_name;", "\"Ace Hardcover\" is the publisher_name", "most order refers to Max(Count(order_id)); customer refers to first_name, last_name", "\"Dallas\" is the city; streets refers to street_name", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100"]}} {"set": {"query": "What is the title of the most expensive book?", "pos": ["most expensive book refers to Max(price)"], "neg": ["oldest book refers to Min(publiation_date)", "books refers to title; the most orders refers to Max(Count(order_id))", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'", "\"Barry Eisler\" is the author_name; publisher refers to publisher_name"]}} {"set": {"query": "Among the books published by publisher \"Thomas Nelson\", how many of them have over 300 pages?", "pos": ["\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300"], "neg": ["\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "published at least 30 books refers to Count(book_id) > = 30", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "\"Thomas Nelson\" is the publisher_name", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "language written in refers to language_name;", "via international shipping refers to method_name = 'International'", "\"Abrams\" is the publisher_name; author's name refers to author_name"]}} {"set": {"query": "What is the status of the orders placed on 04/10/2022?", "pos": ["placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value"], "neg": ["shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "average spend on book orders = AVG (price)", "current address refers to address_status = 1; address refers to street_number, street_name, city", "publisher refers to publisher_name;\u00a0 oldest book refers to Min(publication_date)", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "books cost 19 dollars and above refers to price > = 19", "street refers to street_name; last number of each street refers to Substr (street_number, -1)", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)", "full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'"]}} {"set": {"query": "What is the total shipping cost of all the orders made by Page Holsey? Indicate how many of the said orders were ordered in 2022.", "pos": ["shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'"], "neg": ["\"2398\" is the order_id; time = \u00a0 Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS \"year\" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS \"month\", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS \"day\"", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "book with the most pages refers to Max(num_pages)", "books with the most number of pages refers to Max(num_pages)", "International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100", "\"Thomas Nelson\" is the publisher_name", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'", "total price refers to Sum(price)", "books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name"]}} {"set": {"query": "How many percent of orders in 2020 used international shipping?", "pos": ["international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100"], "neg": ["\"aalleburtonkc@yellowbook.com\" is the email of customer; full name refers to first_name, last_name", "International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city", "book with the most pages refers to Max(num_pages)", "priority method refers to method_name = 'Priority'", "\"2398\" is the order_id; time = \u00a0 Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS \"year\" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS \"month\", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS \"day\"", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "\"Danielle Steel\" is the author_name; name of books refers to title"]}} {"set": {"query": "What is the order price of the book \"The Servant Leader\" in 2003?", "pos": ["\"The Servant Leader\" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'"], "neg": ["\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300", "full name refers to first_name, last_name; 'Baiyin' is the city", "\"A.R. Braunmuller\" is the author_name", "\"AK Press\" is the publisher_name", "have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "\"ADV Manga\" is the publisher_name; books refers to title", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "\"Spanish\" is the language_name; 'Alfaguara' is the publisher_name", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))"]}} {"set": {"query": "What is the name of the publisher with publisher ID 22?", "pos": ["name of publisher refers to publisher_name"], "neg": ["\"Dallas\" is the city; streets refers to street_name", "\"\u017dirovnica\" is the city; country refers to country_name", "most order refers to Max(Count(order_id)); customer refers to first_name, last_name", "\"76092025986\" is the isbn13", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "\"Seaward\" is the title of the book; pages refers to num_pages", "\"El plan infinito\" is the title of the book; language refers to language_name", "\"Anleitung zum Zickigsein\" is the title of the book", "books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name", "\"Arabic\" is the language_name; book refers to title"]}} {"set": {"query": "How many orders have been cancelled in 2022?", "pos": ["cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'"], "neg": ["\"Danielle Steel\" is the author_name; name of books refers to title", "books cost 19 dollars and above refers to price > = 19", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "\"Ace Book\" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100", "in Japanese refers to language_name = 'Japanese", "\"The Prophet\" is the title of the book; highest price refers to Max(price)", "average spend on book orders = AVG (price)", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "\"Spanish\" is the language_name; 'Alfaguara' is the publisher_name"]}} {"set": {"query": "List the title of the earliest published Japanese book.", "pos": ["Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)"], "neg": ["average spend on book orders = AVG (price)", "\"2398\" is the order_id; time = \u00a0 Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS \"year\" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS \"month\", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS \"day\"", "books refers to title; the most orders refers to Max(Count(order_id))", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "\"Seaward\" is the title of the book; pages refers to num_pages", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "authors refers to author_name; more than 3000 pages refers to num_pages > 3000"]}} {"set": {"query": "Give the publisher's name of the books authored by Alan Lee.", "pos": ["\"Alan Lee\" is the author_name; publisher's name refers to publisher_name"], "neg": ["ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name", "published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title", "in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'", "country refers to country_name", "\"British English\" is the language_name of the book", "\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300", "cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname", "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name"]}} {"set": {"query": "What is the publication date of the book with the most pages?", "pos": ["book with the most pages refers to Max(num_pages)"], "neg": ["returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "number of pages refers to num_pages", "priority method refers to method_name = 'Priority'", "\"Thomas Nelson\" is the publisher_name", "ISBN refers to isbn13;", "\"Abrams\" is the publisher_name; author's name refers to author_name", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "\"23755004321\" is the isbn13; language refers to language_name", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'"]}} {"set": {"query": "Calculate the percentage of the International shipping orders on 2022/11/10.", "pos": ["International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100"], "neg": ["Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "\"First Things First\" is the title of the book; author refers to author_name", "name of publisher refers to publisher_name", "\"O Xar\u00e1\" is the title of the book", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name"]}} {"set": {"query": "Who wrote \"The Prophet\"?", "pos": ["\"The Prophet\" is the title of the book: who wrote refers to author_name"], "neg": ["priority method refers to method_name = 'Priority'", "\"aalleburtonkc@yellowbook.com\" is the email of customer; full name refers to first_name, last_name", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "\"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\" is the title of the book; publisher refers to publisher_name", "books refers to title; the most orders refers to Max(Count(order_id))", "under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name", "\"Anleitung zum Zickigsein\" is the title of the book", "in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'"]}} {"set": {"query": "Sum the total price of the orders for The Prophet book.", "pos": ["\"The Prophet\" is the title of the book: total price refers to Sum(price)"], "neg": ["\"aalleburtonkc@yellowbook.com\" is the email of customer; full name refers to first_name, last_name", "\"Seaward\" is the title of the book; pages refers to num_pages", "\"Thomas Nelson\" is the publisher_name", "Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'", "books in English refers to language_name = 'English'", "\"Danielle Steel\" is the author_name; name of books refers to title", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'", "\"Arabic\" is the language_name; book refers to title", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "\"9780763628321\" is the isbn13"]}} {"set": {"query": "What is the full name of the customer who owns the \"aalleburtonkc@yellowbook.com\" e-mail address?", "pos": ["\"aalleburtonkc@yellowbook.com\" is the email of customer; full name refers to first_name, last_name"], "neg": ["returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "\"A.R. Braunmuller\" is the author_name", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "author named 'George' refers to author_name = 'George%'", "authors refers to author_name; more than 3000 pages refers to num_pages > 3000", "street refers to street_name; last number of each street refers to Substr (street_number, -1)", "placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value"]}} {"set": {"query": "What is the number of pages of the book in the order ID 1167?", "pos": ["number of pages refers to num_pages"], "neg": ["Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "most expensive book refers to Max(price)", "published at least 30 books refers to Count(book_id) > = 30", "priority method refers to method_name = 'Priority'", "books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name", "\"El plan infinito\" is the title of the book; language refers to language_name", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "\"23755004321\" is the isbn13; language refers to language_name", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "book with the most pages refers to Max(num_pages)"]}} {"set": {"query": "Which language is 'El plan infinito' written in?", "pos": ["\"El plan infinito\" is the title of the book; language refers to language_name"], "neg": ["\"Abrams\" is the publisher_name; author's name refers to author_name", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "\"A.J. Ayer\" is the author_name;", "total price refers to Sum(price)", "\"The Illuminati\" is the title of book", "in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'", "\"Ace Book\" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100", "via international shipping refers to method_name = 'International'"]}} {"set": {"query": "What is the cheapest order price of the book \"The Little House\"?", "pos": ["\"The Little House\" is the title of book; cheapest order price refers to Min(price)"], "neg": ["most order refers to Max(Count(order_id)); customer refers to first_name, last_name", "\"El plan infinito\" is the title of the book; language refers to language_name", "\"Costa Rica\" is the country_name", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "\"Seaward\" is the title of the book; pages refers to num_pages", "\"2398\" is the order_id; time = \u00a0 Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS \"year\" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS \"month\", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS \"day\"", "\"Barry Eisler\" is the author_name; publisher refers to publisher_name", "\"Arabic\" is the language_name; book refers to title", "\"AK Press\" is the publisher_name"]}} {"set": {"query": "What is the most expensive price paid by a customer for the book \"Bite Me If You Can (Argeneau #6)\"?", "pos": ["\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)"], "neg": ["\"The Prophet\" is the title of the book; highest price refers to Max(price)", "number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))", "\"AK Press\" is the publisher_name", "\"Costa Rica\" is the country_name", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "books cost 19 dollars and above refers to price > = 19", "\"First Things First\" is the title of the book; author refers to author_name", "most expensive book refers to Max(price)", "country refers to country_name", "\"Ace Hardcover\" is the publisher_name"]}} {"set": {"query": "How many books were published by Kensington?", "pos": ["\"Kensington\" is the publisher_name;"], "neg": ["international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "oldest book refers to Min(publiation_date)", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "\"Anleitung zum Zickigsein\" is the title of the book", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city", "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))", "name of publisher refers to publisher_name", "\"Birlinn\" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'"]}} {"set": {"query": "How many orders were returned in the year 2020?", "pos": ["returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'"], "neg": ["books in English refers to language_name = 'English'", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "\"Danielle Steel\" is the author_name; name of books refers to title", "books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name", "full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name"]}} {"set": {"query": "Indicate the full name of all customers whose last name begins with the letter K.", "pos": ["full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'"], "neg": ["published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "authors named Adam refers to author_name LIKE 'Adam'", "order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100", "Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'", "books in English refers to language_name = 'English'", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "\"Abrams\" is the publisher_name; author's name refers to author_name", "country refers to country_name"]}} {"set": {"query": "How many books did A.R. Braunmuller write?", "pos": ["\"A.R. Braunmuller\" is the author_name"], "neg": ["returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "authors refers to author_name; more than 3000 pages refers to num_pages > 3000", "\"Arabic\" is the language_name; book refers to title", "priority method refers to method_name = 'Priority'", "\"The Little House\" is the title of book; cheapest order price refers to Min(price)", "ISBN refers to isbn13;", "\"The Prophet\" is the title of the book: who wrote refers to author_name", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "books with the most number of pages refers to Max(num_pages)", "average spend on book orders = AVG (price)"]}} {"set": {"query": "Identify the cost difference between Priority and Express shipping methods.", "pos": ["\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))"], "neg": ["\"Alan Lee\" is the author_name; publisher's name refers to publisher_name", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "author named 'George' refers to author_name = 'George%'", "\"76092025986\" is the isbn13", "\"British English\" is the language_name of the book", "authors named Adam refers to author_name LIKE 'Adam'", "full name refers to first_name, last_name; last name begin with the letter 'K' refers to last_name LIKE 'K%'", "\"Fantasmas\" is the title of the book; customer names refers to first_name, last_name", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100"]}} {"set": {"query": "What is the total price of all the books ordered by Lucas Wyldbore?", "pos": ["total price refers to Sum(price)"], "neg": ["\"Danielle Steel\" is the author_name; name of books refers to title", "books with the most number of pages refers to Max(num_pages)", "\"O Xar\u00e1\" is the title of the book", "\"Costa Rica\" is the country_name", "\"Spanish\" is the language_name; 'Alfaguara' is the publisher_name", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100", "\"aalleburtonkc@yellowbook.com\" is the email of customer; full name refers to first_name, last_name", "ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))"]}} {"set": {"query": "What is the full name of the customers who live in Baiyin city?", "pos": ["full name refers to first_name, last_name; 'Baiyin' is the city"], "neg": ["\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "books in English refers to language_name = 'English'", "have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "country refers to country_name", "most expensive book refers to Max(price)", "book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "oldest book refers to Min(publiation_date)", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)"]}} {"set": {"query": "How many books under 300 pages has HarperCollins Publishers published?", "pos": ["under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name"], "neg": ["average spend on book orders = AVG (price)", "\"Spanish\" is the language_name; 'Alfaguara' is the publisher_name", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "most expensive book refers to Max(price)", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city"]}} {"set": {"query": "List the title of books published by AK Press.", "pos": ["\"AK Press\" is the publisher_name"], "neg": ["\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "\"The Servant Leader\" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'", "\"Dallas\" is the city; streets refers to street_name", "\"Abrams\" is the publisher_name; author's name refers to author_name", "\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)", "\"The Little House\" is the title of book; cheapest order price refers to Min(price)", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'"]}} {"set": {"query": "What percentage of the orders placed by Kaleena were shipped by the international method?", "pos": ["shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100"], "neg": ["\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))", "total price refers to Sum(price)", "number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))", "street refers to street_name; last number of each street refers to Substr (street_number, -1)", "\"El plan infinito\" is the title of the book; language refers to language_name", "authors refers to author_name; more than 3000 pages refers to num_pages > 3000", "in 2021 refers to order_date LIKE '2021%'", "average spend on book orders = AVG (price)", "\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)"]}} {"set": {"query": "What are the names of all the publishers who have published at least 30 books?", "pos": ["published at least 30 books refers to Count(book_id) > = 30"], "neg": ["shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "most order refers to Max(Count(order_id)); customer refers to first_name, last_name", "in 2021 refers to order_date LIKE '2021%'", "publisher refers to publisher_name;\u00a0 oldest book refers to Min(publication_date)", "have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "\"British English\" is the language_name of the book", "\"Akira Watanabe\" is the author_name", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'"]}} {"set": {"query": "How many books are in English?", "pos": ["books in English refers to language_name = 'English'"], "neg": ["order returned refers to status_value = 'Returned'", "\"Anleitung zum Zickigsein\" is the title of the book", "\"The Little House\" is the title of book; cheapest order price refers to Min(price)", "order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "book with the most pages refers to Max(num_pages)", "in 2021 refers to order_date LIKE '2021%'", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100"]}} {"set": {"query": "Name the title of the book with the most number of pages that was published from 1990 to 2000 by publisher Free Press.", "pos": ["books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name"], "neg": ["authors named Adam refers to author_name LIKE 'Adam'", "in 2021 refers to order_date LIKE '2021%'", "cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname", "\"British English\" is the language_name of the book", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "\"Birlinn\" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "\"Alan Lee\" is the author_name; publisher's name refers to publisher_name", "ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name"]}} {"set": {"query": "Provide the customers' names who ordered the Fantasmas.", "pos": ["\"Fantasmas\" is the title of the book; customer names refers to first_name, last_name"], "neg": ["language written in refers to language_name;", "\"British English\" is the language_name of the book", "\"Seaward\" is the title of the book; pages refers to num_pages", "\"AK Press\" is the publisher_name", "\"76092025986\" is the isbn13", "\"Ace Hardcover\" is the publisher_name", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name", "\"Kensington\" is the publisher_name;", "in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'"]}} {"set": {"query": "Which book has the most number of pages?", "pos": ["books with the most number of pages refers to Max(num_pages)"], "neg": ["via international shipping refers to method_name = 'International'", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "\"Anleitung zum Zickigsein\" is the title of the book", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "number of pages refers to num_pages", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "\"Costa Rica\" is the country_name", "most expensive book refers to Max(price)"]}} {"set": {"query": "Provide the authors and titles of the books which have more than 3000 pages.", "pos": ["authors refers to author_name; more than 3000 pages refers to num_pages > 3000"], "neg": ["priority method refers to method_name = 'Priority'", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "street refers to street_name; last number of each street refers to Substr (street_number, -1)", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))"]}} {"set": {"query": "How many authors are named Adam?", "pos": ["authors named Adam refers to author_name LIKE 'Adam'"], "neg": ["country refers to country_name", "\"The Prophet\" is the title of the book; highest price refers to Max(price)", "\"The Prophet\" is the title of the book: who wrote refers to author_name", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "language written in refers to language_name;", "\"Dallas\" is the city; streets refers to street_name", "\"Arabic\" is the language_name; book refers to title", "priority method refers to method_name = 'Priority'", "complete address refers to street_number, street_name, city, country; \"Lazaro Cardenas\" is the city", "\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300"]}} {"set": {"query": "Provide the number of orders by Daisey Lamball in 2021.", "pos": ["in 2021 refers to order_date LIKE '2021%'"], "neg": ["\"Ace Book\" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "\"Girls' Night In\" is the title of the book; publisher is the publisher_name", "\"A.R. Braunmuller\" is the author_name", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100", "\"Alan Lee\" is the author_name; publisher's name refers to publisher_name", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "\"Akira Watanabe\" is the author_name"]}} {"set": {"query": "What is the name of the publisher who published Agatha Christie's first book?", "pos": ["\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)"], "neg": ["books in English refers to language_name = 'English'", "total price refers to Sum(price)", "\"\u017dirovnica\" is the city; country refers to country_name", "street refers to street_name; last number of each street refers to Substr (street_number, -1)", "International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book", "\"British English\" is the language_name of the book", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "\"Spanish\" is the language_name; 'Alfaguara' is the publisher_name", "publisher refers to publisher_name;\u00a0 oldest book refers to Min(publication_date)", "oldest book refers to Min(publiation_date)"]}} {"set": {"query": "How many books written by Akira Watanabe are available on Gravity?", "pos": ["\"Akira Watanabe\" is the author_name"], "neg": ["\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'", "language written in refers to language_name;", "\"O Xar\u00e1\" is the title of the book", "\"aalleburtonkc@yellowbook.com\" is the email of customer; full name refers to first_name, last_name", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "\"Seaward\" is the title of the book; pages refers to num_pages", "\"British English\" is the language_name of the book", "\"\u017dirovnica\" is the city; country refers to country_name", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100"]}} {"set": {"query": "Among Daisey Lamball's orders, how many were shipped via International shipping?", "pos": ["via international shipping refers to method_name = 'International'"], "neg": ["\"Barry Eisler\" is the author_name; publisher refers to publisher_name", "\"Kensington\" is the publisher_name;", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book", "\"Fantasmas\" is the title of the book; customer names refers to first_name, last_name", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'", "\"\u017dirovnica\" is the city; country refers to country_name", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "\"Birlinn\" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'", "\"First Things First\" is the title of the book; author refers to author_name"]}} {"set": {"query": "What is the book with the most orders?", "pos": ["books refers to title; the most orders refers to Max(Count(order_id))"], "neg": ["have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname", "average spend on book orders = AVG (price)", "\"A.J. Ayer\" is the author_name;", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "\"Danielle Steel\" is the author_name; name of books refers to title", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "\"Kensington\" is the publisher_name;", "street refers to street_name; last number of each street refers to Substr (street_number, -1)"]}} {"set": {"query": "What is the shipping method ordered by Nicolette Sadler at 6/29/2020 7:40:07 PM?", "pos": ["ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name"], "neg": ["street refers to street_name; last number of each street refers to Substr (street_number, -1)", "in Japanese refers to language_name = 'Japanese", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "\"aalleburtonkc@yellowbook.com\" is the email of customer; full name refers to first_name, last_name", "order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "\"A.R. Braunmuller\" is the author_name", "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))"]}} {"set": {"query": "Provide the full name of the customers who have ordered the book The Sorrows of Young Werther.", "pos": ["full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book"], "neg": ["full name refers to first_name, last_name; 'Baiyin' is the city", "\"Barry Eisler\" is the author_name; publisher refers to publisher_name", "ISBN refers to isbn13;", "\"76092025986\" is the isbn13", "\"The Servant Leader\" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "\"O Xar\u00e1\" is the title of the book", "\"Anleitung zum Zickigsein\" is the title of the book", "books refers to title; the most orders refers to Max(Count(order_id))", "\"9780763628321\" is the isbn13"]}} {"set": {"query": "How many orders did Antonia Poltun return?", "pos": ["order returned refers to status_value = 'Returned'"], "neg": ["\"AK Press\" is the publisher_name", "\"Ace Book\" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100", "books cost 19 dollars and above refers to price > = 19", "\"Alan Lee\" is the author_name; publisher's name refers to publisher_name", "\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)", "under 300 pages refers to num_pages < 300; 'HarperCollins Publishers\" is the publisher_name", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "number of pages refers to num_pages", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))"]}} {"set": {"query": "Among the books published by Birlinn in 2008, how many books have pages around 600 to 700?", "pos": ["\"Birlinn\" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'"], "neg": ["\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)", "\"The Little House\" is the title of book; cheapest order price refers to Min(price)", "\"British English\" is the language_name of the book", "\"Fantasmas\" is the title of the book; customer names refers to first_name, last_name", "\"Akira Watanabe\" is the author_name", "International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100", "\"The Illuminati\" is the title of book", "placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value", "published at least 30 books refers to Count(book_id) > = 30", "\"Thomas Nelson\" is the publisher_name"]}} {"set": {"query": "What is the average number of book pages written by Zilpha Keatley Snyder?", "pos": ["\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)"], "neg": ["\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "country refers to country_name", "books cost 19 dollars and above refers to price > = 19", "book with the most pages refers to Max(num_pages)", "most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "in Japanese refers to language_name = 'Japanese", "\"Fantasmas\" is the title of the book; customer names refers to first_name, last_name", "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", "authors named Adam refers to author_name LIKE 'Adam'", "\"Alan Lee\" is the author_name; publisher's name refers to publisher_name"]}} {"set": {"query": "List all the authors named \"George\".", "pos": ["author named 'George' refers to author_name = 'George%'"], "neg": ["via international shipping refers to method_name = 'International'", "\"Anleitung zum Zickigsein\" is the title of the book", "current address refers to address_status = 1; address refers to street_number, street_name, city", "ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "\"British English\" is the language_name of the book", "\"Barry Eisler\" is the author_name; publisher refers to publisher_name", "\"\u017dirovnica\" is the city; country refers to country_name"]}} {"set": {"query": "How many orders in 2022 have Iran as their destinations?", "pos": ["Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'"], "neg": ["book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "order returned refers to status_value = 'Returned'", "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", "\"The Prophet\" is the title of the book: who wrote refers to author_name", "\"British English\" is the language_name of the book", "\"The Servant Leader\" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100"]}} {"set": {"query": "Which book by Hirohiko Araki was published on 6/6/2006?", "pos": ["\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title"], "neg": ["international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "\"O Xar\u00e1\" is the title of the book", "\"Birlinn\" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'", "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "in Japanese refers to language_name = 'Japanese", "\"9780763628321\" is the isbn13", "country refers to country_name", "books in English refers to language_name = 'English'", "\"Akira Watanabe\" is the author_name"]}} {"set": {"query": "Name the title of books written by author A.J.Ayer.", "pos": ["\"A.J. Ayer\" is the author_name;"], "neg": ["published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title", "\"Costa Rica\" is the country_name", "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))", "\"O Xar\u00e1\" is the title of the book", "have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "\"Barry Eisler\" is the author_name; publisher refers to publisher_name", "\"British English\" is the language_name of the book", "\"Hirohiko Araki\" is the author_name; on 6/6/2006 refers to publication_date = '2006-06-06'; which book refers to title", "\"Birlinn\" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name"]}} {"set": {"query": "What percentage of books written by Hirohiko make up the number of books published by Viz Media?", "pos": ["\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100"], "neg": ["full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))", "\"Ace Book\" is the publisher_name; English book refers to language_name = 'English'; percentage = Divide (Count(book_id where language_name = 'English'), Count(book_id)) * 100", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "books in English refers to language_name = 'English'", "books with the most number of pages refers to Max(num_pages)", "\"Akira Watanabe\" is the author_name", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "\"Kensington\" is the publisher_name;"]}} {"set": {"query": "Which country does \u017dirovnica city belong to?", "pos": ["\"\u017dirovnica\" is the city; country refers to country_name"], "neg": ["most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "\"The Illuminati\" is the title of book", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "shipping cost refers to cost; ordered in 2022 refers to order_date LIKE '2022%'", "ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title", "\"Barry Eisler\" is the author_name; publisher refers to publisher_name", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100"]}} {"set": {"query": "How much money on average does Lucas Wyldbore spend on book orders?", "pos": ["average spend on book orders = AVG (price)"], "neg": ["full name refers to first_name, last_name; 'Baiyin' is the city", "full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book", "oldest book refers to Min(publiation_date)", "\"The Illuminati\" is the title of book", "\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300", "ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name", "books cost 19 dollars and above refers to price > = 19", "\"Anleitung zum Zickigsein\" is the title of the book", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "in 2021 refers to substr(order_date, 1, 4) = '2021'; priority shipping method refers to method_name = 'Priority'"]}} {"set": {"query": "What is the price of the book with ISBN 9780763628321?", "pos": ["\"9780763628321\" is the isbn13"], "neg": ["\"O Xar\u00e1\" is the title of the book", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "name of publisher refers to publisher_name", "\"2398\" is the order_id; time = \u00a0 Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS \"year\" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS \"month\", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS \"day\"", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "placed on 04/10/2022 refers to SUBSTR(order_date, 1, 10) = '2022-04-10'; status of order refers to status_value", "publisher refers to publisher_name;\u00a0 oldest book refers to Min(publication_date)", "\"Ace Hardcover\" is the publisher_name", "\"Barry Eisler\" is the author_name; publisher refers to publisher_name", "\"Seaward\" is the title of the book; pages refers to num_pages"]}} {"set": {"query": "What is the most common domain for the email address among all the customers?", "pos": ["most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))"], "neg": ["number of pages refers to num_pages", "via international shipping refers to method_name = 'International'", "authors named Adam refers to author_name LIKE 'Adam'", "current address refers to address_status = 1; address refers to street_number, street_name, city", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "number of pages refers to num_pages; average = Divide (Sum(num_pages), Count(book_id))", "\"Thomas Nelson\" is the publisher_name", "\"Anleitung zum Zickigsein\" is the title of the book", "books with the most number of pages refers to Max(num_pages)", "ISBN refers to isbn13;"]}} {"set": {"query": "Which shipping method is preferred by customers the most?", "pos": ["shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name"], "neg": ["publisher refers to publisher_name;\u00a0 oldest book refers to Min(publication_date)", "book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "address refers to street_name, city; received the most orders refers to Max(count(dest_address_id))", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "\"The Illuminati\" is the title of book", "\"The Prophet\" is the title of the book: who wrote refers to author_name", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "order returned refers to status_value = 'Returned'", "via international shipping refers to method_name = 'International'"]}} {"set": {"query": "How many books have been published in Japanese?", "pos": ["in Japanese refers to language_name = 'Japanese"], "neg": ["\"ADV Manga\" is the publisher_name; books refers to title", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "\"A.J. Ayer\" is the author_name;", "published in 1995 refers to publication_date LIKE '1995%'; ; list of book refers to title", "\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300", "ISBN13 refers to isbn13; less than 140 pages and more than 135 refers to num_pages > 135 AND num_pages < 140;", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100", "\"Arabic\" is the language_name; book refers to title", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)"]}} {"set": {"query": "Among the books purchased by less than 1 dollar, what is the difference between the number of books with less than 500 pages and books with greater than 500 pages?", "pos": ["book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))"], "neg": ["\"The Illuminati\" is the title of book", "\"O Xar\u00e1\" is the title of the book", "\"Hitchhiker's Guide To The Galaxy: The Filming of the Douglas Adams classic\" is the title of the book; publisher refers to publisher_name", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "books refers to title; the most orders refers to Max(Count(order_id))", "\"The Servant Leader\" is the title of the book; book in 2003 refers to SUBSTR(publication_date, 1, 4) = '2003'", "\"Costa Rica\" is the country_name", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "books in English refers to language_name = 'English'"]}} {"set": {"query": "How many customers ordered the book titled \"Anleitung zum Zickigsein\"", "pos": ["\"Anleitung zum Zickigsein\" is the title of the book"], "neg": ["\"Birlinn\" is the publisher_name; books have pages around 600 to 700 refers to num_pages BETWEEN 600 AND 700; in 2008 refers to SUBSTR(publication_date, 1, 4) = '2008'", "authors named Adam refers to author_name LIKE 'Adam'", "country refers to country_name", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "street refers to street_name; last number of each street refers to Substr (street_number, -1)", "\"Kensington\" is the publisher_name;", "publisher refers to publisher_name;\u00a0 oldest book refers to Min(publication_date)", "\"British English\" is the language_name of the book", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "\"Costa Rica\" is the country_name"]}} {"set": {"query": "Provide the publisher name of the book with ISBN 76092025986.", "pos": ["\"76092025986\" is the isbn13"], "neg": ["order updated in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'; has been returned refers to status_value = 'Returned'; percentage = Divide (Count(status_value = 'Returned'), Count(status_value)) * 100", "average spend on book orders = AVG (price)", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))", "\"2398\" is the order_id; time = \u00a0 Subtract(strftime('%Y', status_date), strftime('%Y', order_date)) AS \"year\" , Subtract(strftime('%m', status_date), strftime('%m', order_date)) AS \"month\", Subtract (strftime('%d', status_date), strftime('%d', order_date)) AS \"day\"", "\"Fantasmas\" is the title of the book; customer names refers to first_name, last_name", "\"Dallas\" is the city; streets refers to street_name", "\"First Things First\" is the title of the book; author refers to author_name", "ISBN refers to isbn13;", "in Japanese refers to language_name = 'Japanese"]}} {"set": {"query": "What is the highest price at which a customer bought the book 'The Prophet'?", "pos": ["\"The Prophet\" is the title of the book; highest price refers to Max(price)"], "neg": ["Iran as their destination refers to country_name = 'Iran'; orders in 2022 refers to order_date LIKE '2022%'", "books with the most number of pages refers to Max(num_pages); published from 1990 to 2000 refers to SUBSTR(publication_date, 1, 4) BETWEEN '1990' AND '2000'; 'Free Press' is the publisher_name", "books with the most number of pages refers to Max(num_pages)", "total price refers to Sum(price)", "International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100", "via international shipping refers to method_name = 'International'", "\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13", "most order refers to Max(Count(order_id)); customer refers to first_name, last_name", "\"The Prophet\" is the title of the book: who wrote refers to author_name", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)"]}} {"set": {"query": "What is the average of English books among all books published by Carole Marsh Mysteries?", "pos": ["English book refers to language_name = 'English'; 'Carole Marsh Mysteries' is the publisher_name; average = Divide (Count(language_name = 'English'), Count(book_id))"], "neg": ["total price refers to Sum(price)", "have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "\"Hirohiko Araki\" is the author_name; 'Viz Media' is the publisher_name; percentage = Divide (Count(author_name = 'Hirohiko Araki'), Count(book_id)) * 100", "\"23755004321\" is the isbn13; language refers to language_name", "\"9780763628321\" is the isbn13", "\"Bite Me If You Can (Argeneau #6)\" is the title of the book; most expensive price refers to Max(price)", "\"The Prophet\" is the title of the book; highest price refers to Max(price)", "authors named Adam refers to author_name LIKE 'Adam'", "\"British English\" is the language_name of the book", "\"The Illuminati\" is the title of book"]}} {"set": {"query": "Identify the publisher of the book Girls' Night In.", "pos": ["\"Girls' Night In\" is the title of the book; publisher is the publisher_name"], "neg": ["\"A.R. Braunmuller\" is the author_name", "books with a price range of 3 to 5 dollars refers to price BETWEEN 3 AND 5", "published in 2004 refers to publication_date LIKE '2004%'; books with number of pages greater than 70% of the average number of pages refers to num_pages > Multiply(Avg(num_pages), 0.7); name of publisher refers to publisher_name", "book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "full name refers to first_name, last_name; '55' is the street_number, 'Dorton Pass' is the street_name; 'Huangqiao' is the city", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "\"9780763628321\" is the isbn13", "shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100"]}} {"set": {"query": "Name the publisher of the oldest book.", "pos": ["publisher refers to publisher_name;\u00a0 oldest book refers to Min(publication_date)"], "neg": ["most common domain for the email refers to Max(Count(SUBSTR(email, CHARINDEX('@', email) + 1, length(email) - charindex('@', email))))", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "book purchased by less than 1 dollar refers to price < 1; books with less than 500 pages refers to num_pages < 500; greater than 500 pages refers to num_pages > 500; Difference = Subtract (Count(book_id where num_pages < 500), Count(book_id where num_pages > 500))", "number of pages refers to num_pages", "full name refers to first_name, last_name; 'The Sorrows of Young Werther' is the title of the book", "\"76092025986\" is the isbn13", "\"British English\" is the language_name of the book", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'", "\"A.R. Braunmuller\" is the author_name", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)"]}} {"set": {"query": "List down the ISBN of the books purchased by the customer with an email of fsier3e@ihg.com.", "pos": ["\"fsier3e@ihg.com\" is the email of customer; ISBN refers to isbn13"], "neg": ["\"Thomas Nelson\" is the publisher_name; books with over 300 pages refers to num_pages > 300", "\"British English\" is the language_name of the book", "\"Priority\" and \"Express\" are both method_name; cost difference = Subtract (Sum(cost where method_name = 'Express'), Sum(cost where method_name 'Priority'))", "cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname", "\"The Illuminati\" is the title of book", "\"\u017dirovnica\" is the city; country refers to country_name", "\"ADV Manga\" is the publisher_name; books refers to title", "have been cancelled refers to status_value = 'cancelled'; id refers to order_id", "authors named Adam refers to author_name LIKE 'Adam'", "\"Akira Watanabe\" is the author_name"]}} {"set": {"query": "How many publishers have the word \"book\" in their name?", "pos": ["publisher have the word 'book' refers to publisher_name LIKE '%book%'"], "neg": ["\"ADV Manga\" is the publisher_name; books refers to title", "International shipping order refers to method_name = 'International'; orders on 2022/11/10 refers to order_date LIKE '2022-11-10%'; percentage = Divide (Sum(order_id\u00a0 where method_name = 'International'), Count(order_id)) * 100", "books over $13 refers to price > 13; percentage = Divide (Sum (order_id where price > 13), Count (order_id)) * 100", "cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname", "author named 'George' refers to author_name = 'George%'", "shipping method preferred the most by customers refers to method_id where Max(Count(method_id)); which shipping method refers to method_name", "Japanese book refers to language_name = 'Japanese'; earliest published refers to Min(publication_date)", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "cancelled refers to status_value = 'Cancelled'; in 2022 refers to SUBSTR(status_date, 1, 4) = '2022'", "number of pages refers to num_pages"]}} {"set": {"query": "Who ordered the book with the cheapest price?", "pos": ["book with cheapest price refers to Min(price); who order means name of customer which refers to first_name, last_name"], "neg": ["via international shipping refers to method_name = 'International'", "publisher have the word 'book' refers to publisher_name LIKE '%book%'", "average spend on book orders = AVG (price)", "priority method refers to method_name = 'Priority'", "\"British English\" is the language_name of the book", "customer refers to first_name, last_name; the most address refers to Max(count(address_id))", "\"Thomas Nelson\" is the publisher_name", "books refers to title; the most orders refers to Max(Count(order_id))", "\"\u017dirovnica\" is the city; country refers to country_name", "\"Danielle Steel\" is the author_name; name of books refers to title"]}} {"set": {"query": "How many customers ordered the oldest book?", "pos": ["oldest book refers to Min(publiation_date)"], "neg": ["\"O Xar\u00e1\" is the title of the book", "full name refers to first_name, last_name; 'Baiyin' is the city", "author named 'George' refers to author_name = 'George%'", "\"Danielle Steel\" is the author_name; name of books refers to title", "name of publisher refers to publisher_name", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "\"Agatha Christie\" is the author_name; name of publisher refers to publisher_name; first book refers to Min(publication_date)", "\"Akira Watanabe\" is the author_name", "cost greater than $10 refers to price > 10; percentage = Divide (Count(book_id where price >10), Count(book_id)) * 100; full name refers to the composition of first name, lastname", "via international shipping refers to method_name = 'International'"]}} {"set": {"query": "Which language was book id 1405 written in?", "pos": ["language written in refers to language_name;"], "neg": ["\"Zilpha Keatley Snyder\" is the author_name; average number of book pages refers to AVG(num_pages)", "\"First Things First\" is the title of the book; author refers to author_name", "\"AK Press\" is the publisher_name", "full name refers to first_name, last_name; 'Baiyin' is the city", "delivered refers to status_value = 'Delivered'; in 2021 refers to status_date LIKE '2021%'", "\"The Prophet\" is the title of the book: total price refers to Sum(price)", "books refers to title; the most orders refers to Max(Count(order_id))", "current address refers to address_status = 1; address refers to street_number, street_name, city", "\"Costa Rica\" is the country_name", "total price refers to Sum(price)"]}} {"set": {"query": "Provide the International Standard Book Number of the book The Mystery in the Rocky Mountains.", "pos": ["International Standard Book Number refers to isbn13; 'The Mystery in the Rocky Mountains' is the title of the book"], "neg": ["shipped by international method refers to method_name = 'International'; percentage = Divide (Sum(method_name = 'International'), Count(method_name)) * 100", "language written in refers to language_name;", "returned refers to status_value = 'Returned'; in the year 2020 refers to status_date LIKE '%2020%'", "\"Brava\" is the publisher_name; in 2006 refers to SUBSTR(publication_date, 1, 4) = '2006'", "number of pages refers to num_pages", "current address refers to address_status = 1; address refers to street_number, street_name, city", "\"Orson Scott Card\" is the author_name; released in 2001 refers to publication_date LIKE '2001%'; books refers to title", "\"9780763628321\" is the isbn13", "ordered at 6/29/2020 7:40:07 PM refers to order_date = '2020-06-29 19:40:07'; shipping method refers to method_name", "international shipping refers to method_name = 'International'; orders in 2020 refers to order_date = '2020%'; percentage = Divide (Sum(method_name = 'International'), Count(order_id)) * 100"]}} {"set": {"query": "Of all the classic cars, with a product scale of 1:18, which product is the most ordered product by customers?", "pos": ["classic car is a product line; most ordered product refers to MAX(quantityOrdered);"], "neg": ["DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "Australia is a country; creditLimit < 20000;", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "Pay in total refers to SUM(amount);", "reportsTO' is the leader of the 'employeeNumber';", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "Still processing refers to status = 'In Process';", "country = 'USA'"]}} {"set": {"query": "Please calculate the total payment amount of customers who come from the USA.", "pos": ["USA is a country; total amount payment refers to SUM(amount);"], "neg": ["DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;", "staff of refers to reportsTO; San Francisco is a city;", "Employee 1370 refers to employeeNumber = '1370';", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;"]}} {"set": {"query": "How many Sales Manager who are working in Sydney? List out their email.", "pos": ["Sales Manager is a job title; Sydney is a city;"], "neg": ["President refers to the jobTitle;", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "Credit card does not have a limit refers to creditLimit = 45300;", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "Australia is a country; creditLimit < 20000;", "The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);", "reportsTO' is the leader of the 'employeeNumber';", "Address comprises addressLine1 and addressLine2;", "Employee 1370 refers to employeeNumber = '1370';", "Steve Patterson is an employee;"]}} {"set": {"query": "What are the total payments of customers with no credit limit in 2003?", "pos": ["total payment refers to SUM(amount); no credit limit refers to creditLimit = 0; year(paymentDate) = '2003';"], "neg": ["average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "VP Sales refers to jobTitle", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'", "German is a nationality of country = 'Germany'; CREDITLIMIT = 0", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); "]}} {"set": {"query": "How many customers have an employee who reports to William Patterson as their sales representitive?", "pos": ["reportsTO' is the leader of the 'employeeNumber';"], "neg": ["Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "Australia is a country; creditLimit < 20000;", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "code of employee refers to employeeNumber; United States of America refers to country = 'USA';", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));", "The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach))."]}} {"set": {"query": "List all customer names with orders that are disputed.", "pos": ["Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName."], "neg": ["Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "Employee 1370 refers to employeeNumber = '1370';", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;", "The lowest amount of orders refers to MIN(quantityOrdered);", "reportsTO' is the leader of the 'employeeNumber';", "SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';"]}} {"set": {"query": "What is the full address of the office where the employee who is a sales representative for the customer whose business is located in the city of New York works?", "pos": ["full address = addressLine1 + addressLine2; NYC is a shortname of New York City."], "neg": ["average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';", "inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';", "1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; ", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "Planes is a product line;", "The lowest amount of orders refers to MIN(quantityOrdered);", "code of employee refers to employeeNumber; United States of America refers to country = 'USA';", "President refers to the jobTitle;", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';"]}} {"set": {"query": "How many Planes orders were there?", "pos": ["Planes is a product line;"], "neg": ["country = 'USA'", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';", "payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';", "staff of refers to reportsTO; San Francisco is a city;", "Credit card does not have a limit refers to creditLimit = 45300;"]}} {"set": {"query": "What is the percentage of the payment amount in 2004 was made by Atelier graphique?", "pos": ["DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;"], "neg": ["The lowest amount of orders refers to MIN(quantityOrdered);", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "Sales Rep is a job title; Tokyo is a city; full name = firstName+lastName;", "German is a nationality of country = 'Germany'; CREDITLIMIT = 0", "Steve Patterson is an employee;", "Address comprises addressLine1 and addressLine2;", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;"]}} {"set": {"query": "How do I contact the President of the company?", "pos": ["President refers to the jobTitle;"], "neg": ["Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "average amount payment = AVG(amount);", "Pay in total refers to SUM(amount);", "full name = firstName+LastName; Paris is a city;", "country = 'USA'", "Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'", "Steve Patterson is an employee;", "SUM(MULTIPLY(quantityOrdered, priceEach)"]}} {"set": {"query": "What is the full address of the office where 4 people work and one of them is Sales Representation?", "pos": ["full address = addressLine1+addressLine2; Sales Manager is a job title;"], "neg": ["Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'", "Planes is a product line;", "average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "amount of payment refers to amount;", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';"]}} {"set": {"query": "What's the postal code of the office the VP Sales is at?", "pos": ["VP Sales refers to jobTitle"], "neg": ["President refers to the jobTitle;", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "Pay in total refers to SUM(amount);", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "The lowest amount of orders refers to MIN(quantityOrdered);", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).", "Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';", "Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.", "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;"]}} {"set": {"query": "From which branch does the sales representative employee who made the most sales in 2005? Please indicates its full address and phone number.", "pos": ["orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;"], "neg": ["cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.", "The highest unit price refers to MAX(priceEach)", "Credit card does not have a limit refers to creditLimit = 45300;", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;", "full name = contactFirstName, contactLastName; Boston is a city;", "VP Sales refers to jobTitle", "Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;"]}} {"set": {"query": "List out sale rep that has sold 1969 Harley Davidson Ultimate Chopper. List out their names and quantity sold throughout the year.", "pos": ["1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; "], "neg": ["payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "Address comprises addressLine1 and addressLine2;", "average amount payment = AVG(amount);", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered)."]}} {"set": {"query": "How many French customers does Gerard Hernandez take care of?", "pos": ["Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'"], "neg": ["SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; ", "full name = firstName+LastName; Paris is a city;", "Sales Manager is a job title; Sydney is a city;", "DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); ", "average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;"]}} {"set": {"query": "State 10 emails of UK Sales Rep who have the lowest credit limit.", "pos": ["UK is a country; Sales Rep is a job title;"], "neg": ["country = 'USA'", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "amount of payment refers to amount;", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "Australia is a country; creditLimit < 20000;"]}} {"set": {"query": "When were the products ordered by Cruz & Sons Co. on 2003-03-03 shipped?", "pos": ["Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;"], "neg": ["Steve Patterson is an employee;", "plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "Still processing refers to status = 'In Process';", "UK is a country; Sales Rep is a job title;", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)"]}} {"set": {"query": "For the order has the most product ordered, name the customer who placed the order.", "pos": ["The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach))."], "neg": ["paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "amount of payment refers to amount;", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';", "VP Sales refers to jobTitle", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "code of employee refers to employeeNumber; United States of America refers to country = 'USA';", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "reportsTO' is the leader of the 'employeeNumber';"]}} {"set": {"query": "From 2003 to 2004, how many customers have paid more than three times?", "pos": ["paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);"], "neg": ["Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'", "USA is a country; total amount payment refers to SUM(amount);", "Still processing refers to status = 'In Process';", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "Steve Patterson is an employee;", "payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';", "Address comprises addressLine1 and addressLine2;", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; "]}} {"set": {"query": "Please list the order number of the customer whose credit card has a limit of 45300.", "pos": ["Credit card does not have a limit refers to creditLimit = 45300;"], "neg": ["The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "The highest unit price refers to MAX(priceEach)", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);", "Employee 1370 refers to employeeNumber = '1370';", "UK is a country; Sales Rep is a job title;"]}} {"set": {"query": "Which sales representatives in New York city whose leader is Anthony Bow with the employee number is 1143? Indicate their employee numbers.", "pos": ["reportsTO' is the leader of the 'employeeNumber';"], "neg": ["Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.", "UK is a country; Sales Rep is a job title;", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "staff of refers to reportsTO; San Francisco is a city;", "Steve Patterson is an employee;", "reportsTO' is the leader of the 'employeeNumber';", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';"]}} {"set": {"query": "Which is the most ordered quantity product? What is its expected profit margin per piece?", "pos": ["The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);"], "neg": ["shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)", "average amount payment = AVG(amount);", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;", "UK is a country; Sales Rep is a job title;", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "Australia is a country; creditLimit < 20000;"]}} {"set": {"query": "List out full name of employees who are working in Boston?", "pos": ["full name = contactFirstName, contactLastName; Boston is a city;"], "neg": ["German is a nationality of country = 'Germany'; CREDITLIMIT = 0", "reportsTO' is the leader of the 'employeeNumber';", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "The lowest amount of orders refers to MIN(quantityOrdered);", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "Still processing refers to status = 'In Process';", "Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); "]}} {"set": {"query": "Who is the sales agent of the customer who has made the highest payment? Include the full names of employee and his/her supervisor.", "pos": ["payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';"], "neg": ["German is a nationality of country = 'Germany'; CREDITLIMIT = 0", "Australia is a country; creditLimit < 20000;", "The highest unit price refers to MAX(priceEach)", "USA is a country; total amount payment refers to SUM(amount);", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "reportsTO' is the leader of the 'employeeNumber';", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "Sales Manager is a job title; Sydney is a city;", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';"]}} {"set": {"query": "What is the average actual profit by 1937 Lincoln Berline?", "pos": ["average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;"], "neg": ["Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "Employee 1370 refers to employeeNumber = '1370';", "Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;", "reportsTO' is the leader of the 'employeeNumber';", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City."]}} {"set": {"query": "Which customer ordered 1939 'Chevrolet Deluxe Coupe' at the highest price?", "pos": ["1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)"], "neg": ["The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);", "reportsTO' is the leader of the 'employeeNumber';", "staff of refers to reportsTO; San Francisco is a city;", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "Address comprises addressLine1 and addressLine2;", "VP Sales refers to jobTitle", "UK is a country; Sales Rep is a job title;", "1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; ", "total payment refers to SUM(amount); no credit limit refers to creditLimit = 0; year(paymentDate) = '2003';", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';"]}} {"set": {"query": "How many checks were issued by Euro+ Shopping Channel in the year 2004?", "pos": ["Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';"], "neg": ["Credit card does not have a limit refers to creditLimit = 45300;", "Address comprises addressLine1 and addressLine2;", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "The highest unit price refers to MAX(priceEach)", "SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';", "The lowest amount of orders refers to MIN(quantityOrdered);"]}} {"set": {"query": "Of all the orders placed and shipped throughout the year 2005, what percentage of those orders corresponds to customer number 186?", "pos": ["shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;"], "neg": ["DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;", "code of employee refers to employeeNumber; United States of America refers to country = 'USA';", "reportsTO' is the leader of the 'employeeNumber';", "USA is a country; total amount payment refers to SUM(amount);", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "Employee 1370 refers to employeeNumber = '1370';", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City."]}} {"set": {"query": "State the email of those who are staff of Murphy Diane whose number is 1002 and living in San Francisco", "pos": ["staff of refers to reportsTO; San Francisco is a city;"], "neg": ["full name = firstName+LastName; Paris is a city;", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "full name = contactFirstName, contactLastName; Boston is a city;", "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "The lowest amount of orders refers to MIN(quantityOrdered);", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;", "President refers to the jobTitle;", "average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);"]}} {"set": {"query": "How many employees who are living in Australia and have the credit limit under 200000? State their email address and countries where they are working.", "pos": ["Australia is a country; creditLimit < 20000;"], "neg": ["cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "President refers to the jobTitle;", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "Planes is a product line;", "full name = firstName+LastName; Paris is a city;", "country = 'USA'"]}} {"set": {"query": "Of the clients whose businesses are located in the city of Boston, calculate which of them has a higher average amount of payment.", "pos": ["average amount payment = AVG(amount);"], "neg": ["The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "USA is a country; total amount payment refers to SUM(amount);", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City."]}} {"set": {"query": "How many motorcycles have been ordered in 2004?", "pos": ["Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;"], "neg": ["full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "President refers to the jobTitle;", "average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';", "Planes is a product line;", "SUM(MULTIPLY(quantityOrdered, priceEach)", "Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'", "Australia is a country; creditLimit < 20000;", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;"]}} {"set": {"query": "List all the name of customers who have orders that are still processing.", "pos": ["Still processing refers to status = 'In Process';"], "neg": ["SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); ", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';", "plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "Steve Patterson is an employee;"]}} {"set": {"query": "List out 3 best seller products during year 2003 with their total quantity sold during 2003.", "pos": ["Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;"], "neg": ["Employee 1370 refers to employeeNumber = '1370';", "President refers to the jobTitle;", "Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)", "The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);", "average amount payment = AVG(amount);", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "reportsTO' is the leader of the 'employeeNumber';", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);"]}} {"set": {"query": "Please list the top three product names with the highest unit price.", "pos": ["The highest unit price refers to MAX(priceEach)"], "neg": ["1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "Sales Manager is a job title; Sydney is a city;", "reportsTO' is the leader of the 'employeeNumber';", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';", "Australia is a country; creditLimit < 20000;", "Pay in total refers to SUM(amount);", "full name = contactFirstName, contactLastName; Boston is a city;"]}} {"set": {"query": "What is the phone number of all companies where the last name of the contact person starts with the letter M and are not from Germany?", "pos": ["last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';"], "neg": ["paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);", "1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; ", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); ", "Steve Patterson is an employee;", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'", "average amount payment = AVG(amount);"]}} {"set": {"query": "Which product did Cruz & Sons Co. order on 2003/3/3?", "pos": ["Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;"], "neg": ["Still processing refers to status = 'In Process';", "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "average amount payment = AVG(amount);", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "President refers to the jobTitle;", "full name = firstName+LastName; Paris is a city;", "The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;"]}} {"set": {"query": "How many transactions payment made by customer that is lower than 10000. Group the result by year.", "pos": ["Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)"], "neg": ["E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "German is a nationality of country = 'Germany'; CREDITLIMIT = 0", "SUM(MULTIPLY(quantityOrdered, priceEach)", "Steve Patterson is an employee;", "SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';", "The lowest amount of orders refers to MIN(quantityOrdered);", "average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';"]}} {"set": {"query": "For Which order was the most profitable, please list the customer name of the order and the profit of the order.", "pos": ["Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice))."], "neg": ["Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "VP Sales refers to jobTitle", "reportsTO' is the leader of the 'employeeNumber';"]}} {"set": {"query": "How much did customer 103 pay in total?", "pos": ["Pay in total refers to SUM(amount);"], "neg": ["full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "Australia is a country; creditLimit < 20000;", "The lowest amount of orders refers to MIN(quantityOrdered);", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "Still processing refers to status = 'In Process';", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "Sales Manager is a job title; Sydney is a city;", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "code of employee refers to employeeNumber; United States of America refers to country = 'USA';"]}} {"set": {"query": "What is the full address of the customer who commented that DHL be used for the order that was shipped on April 4, 2005?", "pos": ["full address = addressLine1+addressLine2; shippedDate = '2005-04-04';"], "neg": ["Pay in total refers to SUM(amount);", "Still processing refers to status = 'In Process';", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "The highest unit price refers to MAX(priceEach)", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "classic car is a product line; most ordered product refers to MAX(quantityOrdered);", "1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; ", "Planes is a product line;", "Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)"]}} {"set": {"query": "What is the total price of the order 10100?", "pos": ["SUM(MULTIPLY(quantityOrdered, priceEach)"], "neg": ["full name = contactFirstName, contactLastName; Boston is a city;", "reportsTO' is the leader of the 'employeeNumber';", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "President refers to the jobTitle;", "The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);", "USA is a country; total amount payment refers to SUM(amount);", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';"]}} {"set": {"query": "Name the product from the 'Classic Cars' production line that has the greatest expected profit.", "pos": ["The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);"], "neg": ["Still processing refers to status = 'In Process';", "The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;", "full name = firstName+LastName; Paris is a city;", "Australia is a country; creditLimit < 20000;", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';", "Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'", "country = 'USA'", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';"]}} {"set": {"query": "Calculate the total price of shipped orders belonging to Land of Toys Inc. under the classic car line of products.", "pos": ["SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';"], "neg": ["average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;", "classic car is a product line; most ordered product refers to MAX(quantityOrdered);", "SUM(MULTIPLY(quantityOrdered, priceEach)", "German is a nationality of country = 'Germany'; CREDITLIMIT = 0", "average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "USA is a country; total amount payment refers to SUM(amount);", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);"]}} {"set": {"query": "What is the percentage of employees are in Paris office?", "pos": ["DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;"], "neg": ["staff of refers to reportsTO; San Francisco is a city;", "code of employee refers to employeeNumber; United States of America refers to country = 'USA';", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "VP Sales refers to jobTitle", "USA is a country; total amount payment refers to SUM(amount);", "Australia is a country; creditLimit < 20000;", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "German is a nationality of country = 'Germany'; CREDITLIMIT = 0"]}} {"set": {"query": "How many Sales Rep who are working in Tokyo? List out email and full name of those employees.", "pos": ["Sales Rep is a job title; Tokyo is a city; full name = firstName+lastName;"], "neg": ["The highest unit price refers to MAX(priceEach)", "average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "Still processing refers to status = 'In Process';", "Address comprises addressLine1 and addressLine2;", "The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);", "amount of payment refers to amount;", "average amount payment = AVG(amount);", "Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';"]}} {"set": {"query": "Please calculate the average total price of shipped orders from German customers.", "pos": ["average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';"], "neg": ["Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered).", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "Employee 1370 refers to employeeNumber = '1370';", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); ", "SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';", "The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach))."]}} {"set": {"query": "Among the customers of empolyee 1370, who has the highest credit limit?Please list the full name of the contact person.", "pos": ["Employee 1370 refers to employeeNumber = '1370';"], "neg": ["orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "average amount payment = AVG(amount);", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "Credit card does not have a limit refers to creditLimit = 45300;", "UK is a country; Sales Rep is a job title;", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "SUM(MULTIPLY(quantityOrdered, priceEach)", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;"]}} {"set": {"query": "Among the German customers, how many of the them has credit limit of zero?", "pos": ["German is a nationality of country = 'Germany'; CREDITLIMIT = 0"], "neg": ["SUM(MULTIPLY(quantityOrdered, priceEach)", "Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;", "plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));", "staff of refers to reportsTO; San Francisco is a city;", "The highest unit price refers to MAX(priceEach)", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "UK is a country; Sales Rep is a job title;", "full name = contactFirstName, contactLastName; Boston is a city;"]}} {"set": {"query": "For the planes which has the hightest total price, how much it exceeds the average?", "pos": ["plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));"], "neg": ["classic car is a product line; most ordered product refers to MAX(quantityOrdered);", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "staff of refers to reportsTO; San Francisco is a city;", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "Motorcycles refer to productLine = 'motorcycles'; ordered in 2004 refers to year(orderDate) = 2004;", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered)."]}} {"set": {"query": "Which product did Cruz & Sons Co. ask for the biggest amount in a single order?", "pos": ["Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered)."], "neg": ["average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "reportsTO' is the leader of the 'employeeNumber';"]}} {"set": {"query": "For the product No. S18_3482 in the Order No.10108, how much discount did the customer have?", "pos": ["DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'"], "neg": ["reportsTO' is the leader of the 'employeeNumber';", "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';", "classic car is a product line; most ordered product refers to MAX(quantityOrdered);", "2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); "]}} {"set": {"query": "List out 3 customer numbers who have highest amount payment", "pos": ["amount of payment refers to amount;"], "neg": ["Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "VP Sales refers to jobTitle", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.", "average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;", "full name = contactFirstName, contactLastName; Boston is a city;", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';"]}} {"set": {"query": "Compared with the orders happened on 2005-04-08 and two days later, which day's order had a higher value?", "pos": ["2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); "], "neg": ["SUM(MULTIPLY(quantityOrdered, priceEach)) where productLine = 'Classic Cars'; status = 'Shipped'; customername = 'Land of Toys Inc';", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "country = 'USA'", "Address comprises addressLine1 and addressLine2;", "average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "full address = addressLine1+addressLine2; Sales Manager is a job title;", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice))."]}} {"set": {"query": "Determine the email and Code of employee who are working at United State, state MA", "pos": ["code of employee refers to employeeNumber; United States of America refers to country = 'USA';"], "neg": ["plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));", "German is a nationality of country = 'Germany'; CREDITLIMIT = 0", "Steve Patterson is an employee;", "Employee 1370 refers to employeeNumber = '1370';", "average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';", "USA is a country; total amount payment refers to SUM(amount);", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "country = 'USA'", "average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;", "VP Sales refers to jobTitle"]}} {"set": {"query": "If Dragon Souveniers, Ltd. aren't satisfied with their order and want to send a complain e-mail, which e-mail address should they send to?", "pos": ["E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';"], "neg": ["2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); ", "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.", "VP Sales refers to jobTitle", "Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "average amount payment = AVG(amount);", "reportsTO' is the leader of the 'employeeNumber';", "Sales Rep is a job title; Tokyo is a city; full name = firstName+lastName;"]}} {"set": {"query": "When was the product with the highest unit price shipped?", "pos": ["The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;"], "neg": ["Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';", "payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';", "Pay in total refers to SUM(amount);", "code of employee refers to employeeNumber; United States of America refers to country = 'USA';", "average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;", "The lowest amount of orders refers to MIN(quantityOrdered);", "reportsTO' is the leader of the 'employeeNumber';", "country = 'USA'", "President refers to the jobTitle;"]}} {"set": {"query": "How many sales representitives are based in the offices in the USA?", "pos": ["Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';"], "neg": ["staff of refers to reportsTO; San Francisco is a city;", "Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'", "plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));", "USA is a country; total amount payment refers to SUM(amount);", "Orders that are disputed refer to status = 'Disputed'; the sales representative means employees; names refers to firstName, lastName.", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "The largest order in terms of total price refers to MAX(SUM(MULTIPLY(quantityOrdered, priceEach)).", "Best selling products refer to products with MAX(quantityOrdered); 2003 refers to year(orderDate) = 2003;", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "VP Sales refers to jobTitle"]}} {"set": {"query": "How many products with the highest expected profits were sold in total?", "pos": ["Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);"], "neg": ["DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "full address = addressLine1 + addressLine2; NYC is a shortname of New York City.", "President refers to the jobTitle;", "The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);", "The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "staff of refers to reportsTO; San Francisco is a city;", "The greatest expected profit refers to MAX(SUBTRACT(MSRP, buyPrice);", "cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "reportsTO' is the leader of the 'employeeNumber';"]}} {"set": {"query": "Between 8/1/2003 and 8/30/2004, how many checks were issued by Mini Gifts Distributors Ltd.? Please list their check numbers.", "pos": ["paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;"], "neg": ["average total price = DIVIDE(MULTIPLY(quantityOrdered, priceEach)), COUNT(orderNumber)); German is a nationality of country = 'Germany'; shipped orders refers to status = 'Shipped';", "staff of refers to reportsTO; San Francisco is a city;", "1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; ", "Cruz & Sons Co. is name of customer; ordered on 2003-03-03 refers to orderDate;", "SUM(MULTIPLY(quantityOrdered, priceEach)", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "USA is a country; total amount payment refers to SUM(amount);", "The lowest amount of orders refers to MIN(quantityOrdered);", "The highest unit price refers to MAX(priceEach)", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;"]}} {"set": {"query": "If I'm from the Muscle Machine Inc, to which e-mail adress should I write a letter if I want to reach the superior of my sales representitive?", "pos": ["Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'"], "neg": ["1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; ", "VP Sales refers to jobTitle", "Sales Manager is a job title; Sydney is a city;", "Products refer to productCode; Expected profits = SUBTRACT(MSRP, buyPrice);", "classic car is a product line; most ordered product refers to MAX(quantityOrdered);", "total payment refers to SUM(amount); no credit limit refers to creditLimit = 0; year(paymentDate) = '2003';", "Credit card does not have a limit refers to creditLimit = 45300;", "UK is a country; Sales Rep is a job title;", "inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';", "Cruz & Sons Co. is name of customer; the biggest amount refers to MAX(quantityOrdered)."]}} {"set": {"query": "How many customers with a canceled shipment have a credit limit greater than 115,000?", "pos": ["cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;"], "neg": ["average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "reportsTO' is the leader of the 'employeeNumber';", "Australia is a country; creditLimit < 20000;", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;", "1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; ", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "reportsTO' is the leader of the 'employeeNumber';"]}} {"set": {"query": "Please list all the customers that have Steve Patterson as their sales representitive.", "pos": ["Steve Patterson is an employee;"], "neg": ["cancelled shipment refers to status = 'cancelled'; creditLimit > 115000;", "full name = contactFirstName, contactLastName; Boston is a city;", "President refers to the jobTitle;", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "Employee 1370 refers to employeeNumber = '1370';", "Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "Sales Manager is a job title; Sydney is a city;", "DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;"]}} {"set": {"query": "How many countries from the USA have an In Process order status?", "pos": ["country = 'USA'"], "neg": ["DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;", "2005-04-08 and two days later refer to orderDate = '2005-04-08' and orderDate = '2005-04-10'; order with a higher value refers to MAX(Total price) = MULTIPLY(quantityOrdered, priceEach); ", "full address = addressLine1+addressLine2; shippedDate = '2005-04-04';", "inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';", "plane is a product line; total price = MULTIPLY(quantityOrdered, priceEach); how much the total price exceeds the average = SUBTRACT(MAX(MULTIPLY(quantityOrdered, priceEach))), AVG(priceEach));", "reportsTO' is the leader of the 'employeeNumber';", "The highest unit price refers to MAX(priceEach)", "Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;"]}} {"set": {"query": "List out full name and email of employees who are working in Paris?", "pos": ["full name = firstName+LastName; Paris is a city;"], "neg": ["Euro+ Shopping Channel is a customer name; year(paymentDate) = '2004';", "Gerakd Hermandez is an employee; French customer refers to customer from France where country = 'France'", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "The highest unit price refers to MAX(priceEach)", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "E-mail address belongs to employee; customerName = 'Dragon Souveniers, Ltd.';", "inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';"]}} {"set": {"query": "Calculate the average amount of payments made by customers during the first half of 2004.", "pos": ["average amount of payments = DIVIDE(SUM(amount), COUNT(customerNumber); first half of 2014 refers to paymentDate > = '2004-01-01' AND paymentDate < '2004-07-01;"], "neg": ["Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "The highest unit price refers to MAX(priceEach); when shipped refers to shippedDate;", "SUM(MULTIPLY(quantityOrdered, priceEach)", "Employee 1370 refers to employeeNumber = '1370';", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "Pay in total refers to SUM(amount);", "Transactions payment lower than 10000 refer to COUNT(amount) < 1000; by year refers to YEAR(paymentDate)", "President refers to the jobTitle;", "full name = firstName+LastName; Paris is a city;"]}} {"set": {"query": "To whom does the employee have to inform that is the sales representative of the French customer?", "pos": ["inform refers to reportsTo; 'reportsTO' is the leader of the 'employeeNumber'; France is a country; country = 'France';"], "neg": ["Pay in total refers to SUM(amount);", "Most profitable order can be computed as MAX(MULTIPLY(quantityOrdered, SUBTRACT(priceEach, buyPrice)).", "payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';", "President refers to the jobTitle;", "country = 'USA'", "reportsTO' is the leader of the 'employeeNumber';", "Cruz & Sons Co. is name of customer; 2003/3/3 refers to orderDate;", "paymentDate BETWEEN '2003-08-01' AND '2004-08-30'; Mini Gifts Distributors Ltd. Is a customer name;", "paymentdate BETWEEN '2003-01-01' AND '2004-12-31'; customers who have paid more than three times refers to (COUNT(customernumber)>3);", "Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'"]}} {"set": {"query": "Where was the order No. 10383 shipped to? Show me the address.", "pos": ["Address comprises addressLine1 and addressLine2;"], "neg": ["average amount payment = AVG(amount);", "Muscle Machine Inc is name of customer; superior refers to 'reportsTO', who is the leader of the 'employeeNumber'", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "code of employee refers to employeeNumber; United States of America refers to country = 'USA';", "country = 'USA'", "DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;", "DIVIDE(SUBTRACT(MSRP, priceEach)), MSRP); product No. S18_3482 refers to productCode = 'S18_3482'", "orderDate between '2005-01-01' and '2005-12-31'; full address = addressLine1+addressLine2;", "1939 'Chevrolet Deluxe Coupe' refers to productName; the highest price refers to MAX(priceEach)", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';"]}} {"set": {"query": "Which 5 products has the lowest amount of orders? List the product names.", "pos": ["The lowest amount of orders refers to MIN(quantityOrdered);"], "neg": ["1969 Harley Davidson Ultimate Chopper refers to the name of the product; sale rep refers to employee; 2003 refers to year(orderDate) = 2003; quantity sold refers to quantityOrdered; their names refer to the name of customers; ", "full name = firstName+LastName; Paris is a city;", "last name of contact person starts with M refers to lastName LIKE 'M%'; Germany is a country; not from Germany refers to country<>'Germany';", "Steve Patterson is an employee;", "German is a nationality of country = 'Germany'; CREDITLIMIT = 0", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "DIVIDE(COUNT(employeeNumber) when city = 'Paris'), (COUNT(employeeNumber)) as percentage;", "USA is a country; total amount payment refers to SUM(amount);", "average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;", "VP Sales refers to jobTitle"]}} {"set": {"query": "Please calculate the average total price of orders from Exoto Designs Vendor in 2005.", "pos": ["average total price = DIVIDE(SUM(MULTIPLY(quantityOrdered, priceEach))), COUNT(orderNumber)); year(orderDate) = '2005';"], "neg": ["Pay in total refers to SUM(amount);", "shipped orders refers to status = 'shipped'; year(shippedDate) = 2005; percentage = DIVIDE(SUM(customerNumber = 186)), COUNT(orderNumber)) as percentage;", "payment refers to amount; full name = firstName+lastName; supervisor refers to reportsTO; 'reportsTO' is the leader of the 'employeeNumber';", "average actual profit = AVG(SUBTRACT(priceEach, buyPrice)); 1937 Lincoln Berline is a product name;", "staff of refers to reportsTO; San Francisco is a city;", "USA is a country; total amount payment refers to SUM(amount);", "Sales representative refers to jobTitle = 'Sales Rep'; country = 'USA';", "country = 'USA'", "DIVIDE(SUM(amount) where customerName = 'Atelier graphique'), (SUM(amount)) as percentage where year(paymentDate) = 2004;", "The most ordered quantity product refers to productName where Max(quantityOrdered); SUBTRACT(MSRP, buyPrice);"]}} {"set": {"query": "Tell the origin country of car no.382.", "pos": ["origin country refers to country; car no.382 refers to ID = 382"], "neg": ["year refers to model_year; Chevrolet Impala refers to car_name = 'chevrolet impala'", "Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "produced in Japan refers to country = 'Japan'; average price per car = avg(price) where country = 'Japan'", "country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'", "the car named Subaru Dl refers to car_name = 'subaru dl'", "cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000", "the best crash protection refers to max(weight); cost refers to price", "the lowest mileage per gallon refers to min(mpg)", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'"]}} {"set": {"query": "Which car is the cheapest? Provide its acceleration, number of cylinders, and producing year.", "pos": ["the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year"], "neg": ["Chevrolet Bel Air refers to car_name = 'chevrolet bel air'", "American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12", "the cheapest car refers to min(price)", "the highest number of cars refers to max(country); annual average number = divide(count(ID), count(model_year))", "consumes fuel the most refers to min(mpg); has the highest price refers to max(price)", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)", "miles per square hour refers to acceleration; the cheapest refers to min(price); produced by the USA refers to country = 'USA'", "produced in Japan refers to country = 'Japan'; average price per car = avg(price) where country = 'Japan'"]}} {"set": {"query": "What years did the Buick Skylark 320 get in production?", "pos": ["year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'"], "neg": ["the car named Subaru Dl refers to car_name = 'subaru dl'", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "the most expensive refers to max(price)", "with 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)", "produced by Japan refers to country = 'Japan'; a sweep volume of no less than 30 refers to divide(displacement, cylinders) > 30; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100% where divide(displacement, cylinders) > 30", "origin country refers to country; car no.382 refers to ID = 382", "from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)", "the heaviest refers to max(weight)", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "the lowest mileage per gallon refers to min(mpg)"]}} {"set": {"query": "What is the average weight of Japanese cars with 4 cylinders that were produced from 1975 to 1980?", "pos": ["Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)"], "neg": ["introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "the lowest mileage per gallon refers to min(mpg)", "introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "the car named Subaru Dl refers to car_name = 'subaru dl'", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'"]}} {"set": {"query": "How much is the Volkswagen Dasher with 14.1 mph acceleration?", "pos": ["cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1"], "neg": ["the most fuel-efficient refers to max(mpg)", "cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000", "Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)", "from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)", "introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'", "American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "the cheapest car refers to min(price)", "the most expensive refers to max(price); in 1970 refers to model_year = 1970", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449"]}} {"set": {"query": "Among the cars with 8 cylinders, what is the name of the one that's the most expensive?", "pos": ["with 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)"], "neg": ["sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "from Europe refers to country = 'Europe'; average price = avg(price) where country = 'Europe'", "the lowest mileage per gallon refers to min(mpg)", "origin country refers to country; car no.382 refers to ID = 382", "the most fuel-efficient refers to max(mpg)", "Chevy C20 refers to car_name = 'chevy c20'", "American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%", "the most expensive refers to max(price)", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name"]}} {"set": {"query": "Which country produced the highest number of cars? Calculate the annual average number of cars that the said country produced from the very start to the present.", "pos": ["the highest number of cars refers to max(country); annual average number = divide(count(ID), count(model_year))"], "neg": ["introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "year refers to model_year; Chevrolet Impala refers to car_name = 'chevrolet impala'", "miles per gallon refers to mpg; the most expensive refers to max(price)", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "the cheapest car refers to min(price)", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "origin country refers to country; the $44274.40748 car refers to price = 44274.40748"]}} {"set": {"query": "Please list the weights of all the cars with the price over $40000.", "pos": ["price over $40000 refers to price > 40000"], "neg": ["produced in 1975 refers to model_year = 1975; names refers to car_name; producing countries refers to country; the maximum number of cylinders refers to max(cylinders)", "American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'", "engine displacement of no less than 400 cubic millimeter refers to displacement > 400; cost at least 30,000 refers to price > 30000", "the most expensive refers to max(price)", "the lowest price refers to min(price)", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12", "the most expensive refers to max(price); in 1970 refers to model_year = 1970"]}} {"set": {"query": "What is the maximum sweep volume of a car that costs less than $30000?", "pos": ["cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000"], "neg": ["car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "origin country refers to country; the $44274.40748 car refers to price = 44274.40748", "produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "miles per gallon refers to mpg; the most expensive refers to max(price)", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "with 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)", "the $32650.65157 car refers to price = 32650.65157; year refers to model", "produced in 1975 refers to model_year = 1975; names refers to car_name; producing countries refers to country; the maximum number of cylinders refers to max(cylinders)", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "consumes fuel the most refers to min(mpg); has the highest price refers to max(price)"]}} {"set": {"query": "Show the origin country of Chevrolet Malibu.", "pos": ["origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'"], "neg": ["horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975", "price over $40000 refers to price > 40000", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "Chevrolet Bel Air refers to car_name = 'chevrolet bel air'", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "with 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)", "the car named Subaru Dl refers to car_name = 'subaru dl'", "miles per gallon refers to mpg; the most expensive refers to max(price)", "the most expensive refers to max(price)", "the lowest price refers to min(price)"]}} {"set": {"query": "Among the cars produced in year 1973, how many of the cars have horsepower less than 100?", "pos": ["produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100"], "neg": ["the car named Subaru Dl refers to car_name = 'subaru dl'", "the lowest price refers to min(price)", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'", "cost refers to price; Peugeot 505s Turbo Diesel refers to car_name = 'peugeot 505s turbo diesel'", "introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "the heaviest refers to max(weight)", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "consumes fuel the most refers to min(mpg); has the highest price refers to max(price)"]}} {"set": {"query": "What is the acceleration of the most expensive car?", "pos": ["the most expensive refers to max(price)"], "neg": ["the lowest mileage per gallon refers to min(mpg)", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "the most expensive refers to max(price); in 1970 refers to model_year = 1970", "engine displacement of no less than 400 cubic millimeter refers to displacement > 400; cost at least 30,000 refers to price > 30000", "Chevrolet Bel Air refers to car_name = 'chevrolet bel air'", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000", "horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975"]}} {"set": {"query": "What is the price of a Chevrolet Bel Air?", "pos": ["Chevrolet Bel Air refers to car_name = 'chevrolet bel air'"], "neg": ["American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12", "consumes fuel the most refers to min(mpg); has the highest price refers to max(price)", "American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%", "model 70 refers to model = 70; average price = avg(price) where model = 70", "from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "origin country refers to country; car no.382 refers to ID = 382"]}} {"set": {"query": "Provide the engine displacement status of the $37443.85589 car.", "pos": ["engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589"], "neg": ["the highest number of cars refers to max(country); annual average number = divide(count(ID), count(model_year))", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name", "consumes fuel the most refers to min(mpg); has the highest price refers to max(price)", "the car named Subaru Dl refers to car_name = 'subaru dl'", "Chevy C20 refers to car_name = 'chevy c20'", "price over $40000 refers to price > 40000", "origin country refers to country; the $44274.40748 car refers to price = 44274.40748", "with 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year"]}} {"set": {"query": "Among the cars with an engine displacement of no less than 400 cubic millimeter, how many cars cost at least 30,000?", "pos": ["engine displacement of no less than 400 cubic millimeter refers to displacement > 400; cost at least 30,000 refers to price > 30000"], "neg": ["horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975", "the lowest price refers to min(price)", "price over $40000 refers to price > 40000", "the most expensive refers to max(price); in 1970 refers to model_year = 1970", "cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000", "Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name", "country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'", "the highest number of cars refers to max(country); annual average number = divide(count(ID), count(model_year))", "the heaviest refers to max(weight)", "Chevrolet Bel Air refers to car_name = 'chevrolet bel air'"]}} {"set": {"query": "Which country produced the car with the lowest mileage per gallon?", "pos": ["the lowest mileage per gallon refers to min(mpg)"], "neg": ["the most fuel-efficient refers to max(mpg)", "Chevrolet Bel Air refers to car_name = 'chevrolet bel air'", "consumes fuel the most refers to min(mpg); has the highest price refers to max(price)", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "the highest number of cars refers to max(country); annual average number = divide(count(ID), count(model_year))", "cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1", "price over $40000 refers to price > 40000", "cost refers to price; Peugeot 505s Turbo Diesel refers to car_name = 'peugeot 505s turbo diesel'", "origin country refers to country; car no.382 refers to ID = 382", "horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975"]}} {"set": {"query": "What is the percentage of cars that was produced by Japan among those that have a sweep volume of no less than 30?", "pos": ["produced by Japan refers to country = 'Japan'; a sweep volume of no less than 30 refers to divide(displacement, cylinders) > 30; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100% where divide(displacement, cylinders) > 30"], "neg": ["American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "Chevy C20 refers to car_name = 'chevy c20'", "Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)", "the car named Subaru Dl refers to car_name = 'subaru dl'", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "the best crash protection refers to max(weight); cost refers to price", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "the $32650.65157 car refers to price = 32650.65157; year refers to model", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)"]}} {"set": {"query": "Among the cars produced in 1975, provide IDs, names, and producing countries of the cars with the maximum number of cylinders.", "pos": ["produced in 1975 refers to model_year = 1975; names refers to car_name; producing countries refers to country; the maximum number of cylinders refers to max(cylinders)"], "neg": ["the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "the best crash protection refers to max(weight); cost refers to price", "the $32650.65157 car refers to price = 32650.65157; year refers to model", "introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'"]}} {"set": {"query": "List the car's name with a price worth greater than 85% of the average price of all cars.", "pos": ["car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)"], "neg": ["price over $40000 refers to price > 40000", "Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)", "American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'", "origin country refers to country; car no.382 refers to ID = 382", "the most expensive refers to max(price)", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "the best crash protection refers to max(weight); cost refers to price", "the cheapest car refers to min(price)"]}} {"set": {"query": "Calculate the swept volume of the $34538.97449 car.", "pos": ["sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449"], "neg": ["produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "with 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'", "the most expensive refers to max(price); in 1970 refers to model_year = 1970", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "cost refers to price; Peugeot 505s Turbo Diesel refers to car_name = 'peugeot 505s turbo diesel'", "model 70 refers to model = 70; average price = avg(price) where model = 70", "American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%", "the lowest price refers to min(price)"]}} {"set": {"query": "Please list the names of all the car models whose origin country is the USA.", "pos": ["name of car model refers to car_name; origin country is the USA refers to country = 'USA'"], "neg": ["produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "year refers to model_year; Chevrolet Impala refers to car_name = 'chevrolet impala'", "the best crash protection refers to max(weight); cost refers to price", "Chevy C20 refers to car_name = 'chevy c20'", "miles per square hour refers to acceleration; the cheapest refers to min(price); produced by the USA refers to country = 'USA'", "cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "model 70 refers to model = 70; average price = avg(price) where model = 70", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'"]}} {"set": {"query": "Calculate the average price of cars from Europe.", "pos": ["from Europe refers to country = 'Europe'; average price = avg(price) where country = 'Europe'"], "neg": ["produced in Japan refers to country = 'Japan'; average price per car = avg(price) where country = 'Japan'", "miles per gallon refers to mpg; the most expensive refers to max(price)", "price over $40000 refers to price > 40000", "introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "produced by Japan refers to country = 'Japan'; a sweep volume of no less than 30 refers to divide(displacement, cylinders) > 30; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100% where divide(displacement, cylinders) > 30", "the cheapest car refers to min(price)"]}} {"set": {"query": "When was the $32650.65157 car introduced to the market? State the year.", "pos": ["the $32650.65157 car refers to price = 32650.65157; year refers to model"], "neg": ["horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975", "Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)", "the heaviest refers to max(weight)", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%", "the lowest mileage per gallon refers to min(mpg)", "the most expensive refers to max(price); in 1970 refers to model_year = 1970", "cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000", "the best crash protection refers to max(weight); cost refers to price", "origin country refers to country; the $44274.40748 car refers to price = 44274.40748"]}} {"set": {"query": "Which Dodge car is the cheapest?", "pos": ["Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name"], "neg": ["engine displacement of no less than 400 cubic millimeter refers to displacement > 400; cost at least 30,000 refers to price > 30000", "Chevrolet Bel Air refers to car_name = 'chevrolet bel air'", "Chevy C20 refers to car_name = 'chevy c20'", "produced by Japan refers to country = 'Japan'; a sweep volume of no less than 30 refers to divide(displacement, cylinders) > 30; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100% where divide(displacement, cylinders) > 30", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "the lowest price refers to min(price)"]}} {"set": {"query": "Which car consumes fuel the most and has the highest price?", "pos": ["consumes fuel the most refers to min(mpg); has the highest price refers to max(price)"], "neg": ["produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "the car named Subaru Dl refers to car_name = 'subaru dl'", "horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975", "origin country refers to country; the $44274.40748 car refers to price = 44274.40748", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "Chevrolet Bel Air refers to car_name = 'chevrolet bel air'", "year refers to model_year; Chevrolet Impala refers to car_name = 'chevrolet impala'"]}} {"set": {"query": "How many cylinders does the cheapest car have?", "pos": ["the cheapest car refers to min(price)"], "neg": ["the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "price over $40000 refers to price > 40000", "produced in 1975 refers to model_year = 1975; names refers to car_name; producing countries refers to country; the maximum number of cylinders refers to max(cylinders)", "horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975", "origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'", "the most expensive refers to max(price)", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "cost refers to price; Peugeot 505s Turbo Diesel refers to car_name = 'peugeot 505s turbo diesel'", "model 70 refers to model = 70; average price = avg(price) where model = 70", "produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100"]}} {"set": {"query": "Among the cars originated from Japan, what is the name of the car with the highest price?", "pos": ["from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)"], "neg": ["Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)", "produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "the lowest mileage per gallon refers to min(mpg)", "American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%", "the lowest price refers to min(price)", "cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000", "year refers to model_year; Chevrolet Impala refers to car_name = 'chevrolet impala'", "Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name", "the best crash protection refers to max(weight); cost refers to price", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'"]}} {"set": {"query": "Among the cars introduced in 1977, provide the names and the horse powers of cars from Europe.", "pos": ["introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'"], "neg": ["cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1", "origin country refers to country; car no.382 refers to ID = 382", "the lowest price refers to min(price)", "price over $40000 refers to price > 40000", "Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name", "the most expensive refers to max(price); in 1970 refers to model_year = 1970", "the most expensive refers to max(price)", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year"]}} {"set": {"query": "Which country produced the most expensive car in 1970?", "pos": ["the most expensive refers to max(price); in 1970 refers to model_year = 1970"], "neg": ["from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)", "the car named Subaru Dl refers to car_name = 'subaru dl'", "the $32650.65157 car refers to price = 32650.65157; year refers to model", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name", "miles per square hour refers to acceleration; the cheapest refers to min(price); produced by the USA refers to country = 'USA'", "the lowest mileage per gallon refers to min(mpg)", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'"]}} {"set": {"query": "Which country produced the car with the lowest price?", "pos": ["the lowest price refers to min(price)"], "neg": ["American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12", "produced in Japan refers to country = 'Japan'; average price per car = avg(price) where country = 'Japan'", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'", "the $32650.65157 car refers to price = 32650.65157; year refers to model", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "model 70 refers to model = 70; average price = avg(price) where model = 70", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name", "year refers to model_year; Chevrolet Impala refers to car_name = 'chevrolet impala'"]}} {"set": {"query": "Give the model year of the heaviest car.", "pos": ["the heaviest refers to max(weight)"], "neg": ["cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000", "origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'", "the most expensive refers to max(price)", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "price over $40000 refers to price > 40000", "introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'", "the lowest mileage per gallon refers to min(mpg)", "produced by Japan refers to country = 'Japan'; a sweep volume of no less than 30 refers to divide(displacement, cylinders) > 30; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100% where divide(displacement, cylinders) > 30", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "the most expensive refers to max(price); in 1970 refers to model_year = 1970"]}} {"set": {"query": "How many American cars have an acceleration time of less than 12 seconds?", "pos": ["American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12"], "neg": ["country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'", "miles per gallon refers to mpg; the most expensive refers to max(price)", "Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "produced in Japan refers to country = 'Japan'; average price per car = avg(price) where country = 'Japan'", "from Europe refers to country = 'Europe'; average price = avg(price) where country = 'Europe'", "cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "the most expensive refers to max(price)"]}} {"set": {"query": "Calculate the percentage of American cars among all cars.", "pos": ["American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%"], "neg": ["introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "the lowest mileage per gallon refers to min(mpg)", "Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name", "the cheapest car refers to min(price)", "miles per square hour refers to acceleration; the cheapest refers to min(price); produced by the USA refers to country = 'USA'", "introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "produced in 1975 refers to model_year = 1975; names refers to car_name; producing countries refers to country; the maximum number of cylinders refers to max(cylinders)", "from Europe refers to country = 'Europe'; average price = avg(price) where country = 'Europe'", "model 70 refers to model = 70; average price = avg(price) where model = 70"]}} {"set": {"query": "What is the miles per square hour of the cheapest car produced by the USA?", "pos": ["miles per square hour refers to acceleration; the cheapest refers to min(price); produced by the USA refers to country = 'USA'"], "neg": ["the $32650.65157 car refers to price = 32650.65157; year refers to model", "the best crash protection refers to max(weight); cost refers to price", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "the most expensive refers to max(price)", "cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1", "country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'", "engine displacement of no less than 400 cubic millimeter refers to displacement > 400; cost at least 30,000 refers to price > 30000", "origin country refers to country; the $44274.40748 car refers to price = 44274.40748", "the lowest price refers to min(price)", "Dodge car refers to car_name LIKE 'dodge%'; the cheapest refers to min(price); name of the car refers to car_name"]}} {"set": {"query": "Which country produced the most fuel-efficient car?", "pos": ["the most fuel-efficient refers to max(mpg)"], "neg": ["from Europe refers to country = 'Europe'; average price = avg(price) where country = 'Europe'", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "produced by Japan refers to country = 'Japan'; a sweep volume of no less than 30 refers to divide(displacement, cylinders) > 30; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100% where divide(displacement, cylinders) > 30", "miles per gallon refers to mpg; the most expensive refers to max(price)", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000", "price over $40000 refers to price > 40000", "produced in 1975 refers to model_year = 1975; names refers to car_name; producing countries refers to country; the maximum number of cylinders refers to max(cylinders)"]}} {"set": {"query": "How many cars with horsepower greater than 200 were produced in 1975?", "pos": ["horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975"], "neg": ["cost refers to price; Peugeot 505s Turbo Diesel refers to car_name = 'peugeot 505s turbo diesel'", "engine displacement of no less than 400 cubic millimeter refers to displacement > 400; cost at least 30,000 refers to price > 30000", "cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "the cheapest car refers to min(price)", "price over $40000 refers to price > 40000", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589"]}} {"set": {"query": "What is the average price of model 70 cars?", "pos": ["model 70 refers to model = 70; average price = avg(price) where model = 70"], "neg": ["the lowest price refers to min(price)", "the $32650.65157 car refers to price = 32650.65157; year refers to model", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "price over $40000 refers to price > 40000", "the heaviest refers to max(weight)", "introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "miles per gallon refers to mpg; the most expensive refers to max(price)"]}} {"set": {"query": "What are the miles per gallon of the most expensive car?", "pos": ["miles per gallon refers to mpg; the most expensive refers to max(price)"], "neg": ["Chevrolet Bel Air refers to car_name = 'chevrolet bel air'", "produced in 1975 refers to model_year = 1975; names refers to car_name; producing countries refers to country; the maximum number of cylinders refers to max(cylinders)", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "year refers to model_year; Chevrolet Impala refers to car_name = 'chevrolet impala'", "American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12", "cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'", "the most expensive refers to max(price); in 1970 refers to model_year = 1970", "cost less than $30000 refers to price < 30000; the maximum sweep volume = max(divide(displacement, cylinders)) where price < 30000"]}} {"set": {"query": "What is the horsepower and model year of the car named Subaru Dl?", "pos": ["the car named Subaru Dl refers to car_name = 'subaru dl'"], "neg": ["origin country refers to country; the $44274.40748 car refers to price = 44274.40748", "the heaviest refers to max(weight)", "Chevy C20 refers to car_name = 'chevy c20'", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "the lowest mileage per gallon refers to min(mpg)", "the highest number of cars refers to max(country); annual average number = divide(count(ID), count(model_year))", "Chevrolet Bel Air refers to car_name = 'chevrolet bel air'", "the cheapest car refers to min(price)", "the lowest price refers to min(price)"]}} {"set": {"query": "What is the fastest car made by Japan?", "pos": ["the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name"], "neg": ["from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)", "the most expensive refers to max(price)", "the heaviest refers to max(weight)", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "price over $40000 refers to price > 40000", "the most fuel-efficient refers to max(mpg)", "American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12", "model 70 refers to model = 70; average price = avg(price) where model = 70", "produced in 1975 refers to model_year = 1975; names refers to car_name; producing countries refers to country; the maximum number of cylinders refers to max(cylinders)", "year refers to model_year; Chevrolet Impala refers to car_name = 'chevrolet impala'"]}} {"set": {"query": "Provide the price and country origin of the car named Ford Maverick.", "pos": ["country origin refers to country; Ford Maverick refers to car_name = 'ford maverick'"], "neg": ["Japanese car refers to country = 'Japan'; with 4 cylinders refers to cylinders = 4; produced from 1975 to 1980 refers to model_year BETWEEN 1975 AND 1980; average weight = avg(weight)", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "the lowest price refers to min(price)", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "the heaviest refers to max(weight)", "origin country refers to country; the $44274.40748 car refers to price = 44274.40748", "the best crash protection refers to max(weight); cost refers to price", "the car named Subaru Dl refers to car_name = 'subaru dl'", "produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981"]}} {"set": {"query": "What is the average price per car produced in Japan?", "pos": ["produced in Japan refers to country = 'Japan'; average price per car = avg(price) where country = 'Japan'"], "neg": ["name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'", "miles per gallon refers to mpg; the most expensive refers to max(price)", "produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "the highest number of cars refers to max(country); annual average number = divide(count(ID), count(model_year))", "origin country refers to country; the $44274.40748 car refers to price = 44274.40748", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "consumes fuel the most refers to min(mpg); has the highest price refers to max(price)"]}} {"set": {"query": "Which car in the database provides the best crash protection based on its weight? How much is it?", "pos": ["the best crash protection refers to max(weight); cost refers to price"], "neg": ["the lowest mileage per gallon refers to min(mpg)", "with 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "Chevy C20 refers to car_name = 'chevy c20'", "the cheapest car refers to min(price)", "the lowest price refers to min(price)", "consumes fuel the most refers to min(mpg); has the highest price refers to max(price)", "origin country refers to country; the $44274.40748 car refers to price = 44274.40748", "the $32650.65157 car refers to price = 32650.65157; year refers to model", "from Europe refers to country = 'Europe'; average price = avg(price) where country = 'Europe'"]}} {"set": {"query": "How much is the Peugeot 505s Turbo Diesel?", "pos": ["cost refers to price; Peugeot 505s Turbo Diesel refers to car_name = 'peugeot 505s turbo diesel'"], "neg": ["produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "the most expensive refers to max(price); in 1970 refers to model_year = 1970", "name of car model refers to car_name; origin country is the USA refers to country = 'USA'", "cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1", "horsepower greater than 200 refers to horsepower > 200; in 1975 refers to model_year = 1975", "American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12", "the most fuel-efficient refers to max(mpg)", "model 70 refers to model = 70; average price = avg(price) where model = 70", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "origin country refers to country; car no.382 refers to ID = 382"]}} {"set": {"query": "Please list all the years in which the car model Chevrolet Impala was introduced in the market.", "pos": ["year refers to model_year; Chevrolet Impala refers to car_name = 'chevrolet impala'"], "neg": ["engine displacement of no less than 400 cubic millimeter refers to displacement > 400; cost at least 30,000 refers to price > 30000", "origin country refers to country; car no.382 refers to ID = 382", "model 70 refers to model = 70; average price = avg(price) where model = 70", "price over $40000 refers to price > 40000", "produced by Japan refers to country = 'Japan'; a sweep volume of no less than 30 refers to divide(displacement, cylinders) > 30; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100% where divide(displacement, cylinders) > 30", "the cheapest car refers to min(price)", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'", "from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589"]}} {"set": {"query": "How many cars were released in the USA in 1981?", "pos": ["in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981"], "neg": ["Chevrolet Bel Air refers to car_name = 'chevrolet bel air'", "cost refers to price; Volkswagen Dasher refers to car_name = 'volkswagen dasher'; 14.1 mph acceleration refers to acceleration = 14.1", "the most fuel-efficient refers to max(mpg)", "price over $40000 refers to price > 40000", "origin country refers to country; Chevrolet Malibu refers to car_name = 'chevrolet malibu'", "produced in year 1973 refers to model_year = 1973; have horsepower less than 100 refers to horsepower < 100", "produced by Japan refers to country = 'Japan'; a sweep volume of no less than 30 refers to divide(displacement, cylinders) > 30; percentage = divide(count(ID where country = 'Japan'), count(ID)) * 100% where divide(displacement, cylinders) > 30", "the car named Subaru Dl refers to car_name = 'subaru dl'", "the cheapest refers to min(price); number of cylinders refers to cylinders; producing year refers to model_year", "miles per gallon refers to mpg; the most expensive refers to max(price)"]}} {"set": {"query": "Provide the price of the only Toyota Corona hardtop in the database.", "pos": ["Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'"], "neg": ["origin country refers to country; car no.382 refers to ID = 382", "cost refers to price; Peugeot 505s Turbo Diesel refers to car_name = 'peugeot 505s turbo diesel'", "the best crash protection refers to max(weight); cost refers to price", "from Japan refers to country = 'Japan'; name of the car refers to car_name; the highest price refers to max(price)", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "the $32650.65157 car refers to price = 32650.65157; year refers to model", "the most expensive refers to max(price)", "Chevy C20 refers to car_name = 'chevy c20'", "from Europe refers to country = 'Europe'; average price = avg(price) where country = 'Europe'"]}} {"set": {"query": "Which is the origin country of the $44274.40748 car?", "pos": ["origin country refers to country; the $44274.40748 car refers to price = 44274.40748"], "neg": ["the car named Subaru Dl refers to car_name = 'subaru dl'", "car's name refers to car_name; a price worth greater than 85% of the average price of all cars refers to price > multiply(avg(price), 0.85)", "produced in 1975 refers to model_year = 1975; names refers to car_name; producing countries refers to country; the maximum number of cylinders refers to max(cylinders)", "origin country refers to country; car no.382 refers to ID = 382", "the fastest refers to max(horsepower); made by Japan refers to country = 'Japan'; name of the car refers to car_name", "model 70 refers to model = 70; average price = avg(price) where model = 70", "year refers to model_year; Buick Skylark 320 refers to car_name = 'buick skylark 320'", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "the most expensive refers to max(price); in 1970 refers to model_year = 1970", "American car refers to country = 'USA'; percentage = divide(count(ID where country = 'USA'), count(ID)) * 100%"]}} {"set": {"query": "Which country does Chevy C20 come from?", "pos": ["Chevy C20 refers to car_name = 'chevy c20'"], "neg": ["miles per square hour refers to acceleration; the cheapest refers to min(price); produced by the USA refers to country = 'USA'", "cost refers to price; Peugeot 505s Turbo Diesel refers to car_name = 'peugeot 505s turbo diesel'", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "miles per gallon refers to mpg; the most expensive refers to max(price)", "the most fuel-efficient refers to max(mpg)", "the heaviest refers to max(weight)", "American car refers to country = 'USA'; an acceleration time of less than 12 seconds refers to acceleration < 12", "produced in Japan refers to country = 'Japan'; average price per car = avg(price) where country = 'Japan'", "with 8 cylinders refers to cylinders = 8; name of the car refers to car_name; the most expensive refers to max(price)", "the $32650.65157 car refers to price = 32650.65157; year refers to model"]}} {"set": {"query": "Among the car models introduced in the market in 1970, how many of them have the USA as their origin country?", "pos": ["introduced in the market in 1970 refers to model_year = 1970; have the USA as origin country refers to country = 'USA'"], "neg": ["the heaviest refers to max(weight)", "in the USA refers to country = 'USA'; in 1981 refers to model_year = 1981", "Chevy C20 refers to car_name = 'chevy c20'", "introduced in 1977 refers to model_year = 1977; car's name refers to car_name; from Europe refers to country = 'Europe'", "engine displacement status refers to displacement; the $37443.85589 car refers to price = 37443.85589", "the highest number of cars refers to max(country); annual average number = divide(count(ID), count(model_year))", "sweep volume = divide(displacement, cylinders); the $34538.97449 car refers to price = 34538.97449", "produced in Japan refers to country = 'Japan'; average price per car = avg(price) where country = 'Japan'", "the lowest price refers to min(price)", "Toyota Corona hardtop refers to car_name = 'toyota corona hardtop'"]}} {"set": {"query": "What is the district address associated with the case JB107731?", "pos": ["case JB107731 refers to case_number = 'JB107731'"], "neg": ["\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "the most population refers to max(population)", "location refers to latitude, longitude; deceptive practice refers to primary_description = 'DECEPTIVE PRACTICE'; unlawful use of recorded sound refers to secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'", "crime against society refers to crime_against = 'Society'", "FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'", "the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'", "email address refers to email; Central Chicago refers to district_name = 'Central'"]}} {"set": {"query": "Please name three communities that experience the fraud incident.", "pos": ["communities refers to community_area_name; 'Fraud Incident' is the title of crime"], "neg": ["most crowded ward refers to Max(Population)", "severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "\"Homicide 1st & 2nd Degree\" is the title", "\"unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person\" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))", "\"23778\" is the report_no; FBI description refers to description", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))"]}} {"set": {"query": "Among the incidents reported in Harrison, what percentage are disorderly conduct?", "pos": ["\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no"], "neg": ["incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; \"BATTERY\" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "name of neighborhood refers to neighborhood_name; the most population refers to max(population)", "index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "no arrest has been made refers to arrest = 'FALSE'", "crime case against persons refers to crime_against = 'Persons'", "\"unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person\" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))", "\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime", "community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'"]}} {"set": {"query": "List down the neighborhood areas of Douglas.", "pos": ["neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'"], "neg": ["the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "index code refers to iucr_no; case JB296775 refers to case_number = 'JB296775'", "community with highest number of neighborhoods refers to Max(Count(community_area_no)); community refers to community_area_name", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "\"Robert A. Rubio\" is the commander", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude"]}} {"set": {"query": "Find the ward office's address and phone number of the ward where the most crimes without arrest occurred.", "pos": ["the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address"], "neg": ["no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'", "\"Homicide 1st & 2nd Degree\" is the title", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "the least population refers = min(sum(population))", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%", "\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime", "the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'", "simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'"]}} {"set": {"query": "Which alderman represents the ward with the most number of crimes in January, 2018? Please give his or her full name.", "pos": ["in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix"], "neg": ["FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", " in May 2018 refers to date LIKE '5/%/2018%'", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "in the street refers to location_description = 'STREET'", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'", "report number refers report_no; 'Jill M. Stevens\" is the commander", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "population below 52000 refers to population < 52000; beat greater than the 90% of the average beat refers to beat > multiply(avg(beat), 0.9) where population < 52000"]}} {"set": {"query": "What is the average population of the wards where apartment crimes have been reported without arrests?", "pos": ["apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)"], "neg": ["in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "location coordinates refers to latitude, longitude", "Central Chicago refers to district_name = 'Central'", "more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name", "domestic violence refers to domestic = 'TRUE'; in an abandoned building refers to location_description = 'ABANDONED BUILDING'; in 2018 refers to date LIKE '%2018%'", "vandalism refers to title = 'Vandalism'; arrested refers to arrest = 'TRUE'", "most crowded ward refers to Max(Population)", "least populated refers to Min(Population); community refers to community_area_no; most common location refers to Max(Count(location_description))", "average = Divide(Count(ward_no), Count(side))", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'"]}} {"set": {"query": "What is the legislative district's office address where 010XX W LAKE ST is located?", "pos": ["the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'"], "neg": ["most crowded ward refers to Max(Population)", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'", "\"RECKLESS HOMICIDE\" is the secondary_description; average = Divide (Count(report_no), Count(district_name))", "name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "case JB107731 refers to case_number = 'JB107731'", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", "population below 52000 refers to population < 52000; beat greater than the 90% of the average beat refers to beat > multiply(avg(beat), 0.9) where population < 52000", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'"]}} {"set": {"query": "Among all the crimes that had happened in Central Chicago, how many of them were cases of domestic violence?", "pos": ["Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'"], "neg": ["most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "case No.JB134191 refers to case_number = 'JB134191'", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'", "no arrest has been made refers to arrest = 'FALSE'", "\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "communities refers to community_area_name; 'Fraud Incident' is the title of crime", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "January, 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; had more incidents refers to Max(Count(ward_no))"]}} {"set": {"query": "Among the crimes, what percentage are severe?", "pos": ["severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%"], "neg": ["simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no", "most crowded ward refers to Max(Population)", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "name of neighborhood refers to neighborhood_name; the most population refers to max(population)", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'", "the Far North side refers to side = 'Far North'"]}} {"set": {"query": "Which crime was committed the most by criminals?", "pos": ["crime refers to title; committed the most refers to max(fbi_code_no)"], "neg": ["report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "the Far North side refers to side = 'Far North'", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'", "the highest population refers to max(population); report number refers to report_no; the highest beat refers to max(beat)", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no", "full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)", "community with highest number of neighborhoods refers to Max(Count(community_area_no)); community refers to community_area_name", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'"]}} {"set": {"query": "Please list the names of all the neighborhoods in the community area with the most population.", "pos": ["name of neighborhood refers to neighborhood_name; the most population refers to max(population)"], "neg": ["Central Chicago refers to district_name = 'Central'", "the highest population refers to max(population); report number refers to report_no; the highest beat refers to max(beat)", "West Englewood community refers to community_area_name = 'West Englewood'", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'", "crime refers to title; committed the most refers to max(fbi_code_no)", "\"Criminal Sexual Abuse\" is the title of crime"]}} {"set": {"query": "Who is the crime against criminal sexual abuse?", "pos": ["\"Criminal Sexual Abuse\" is the title of crime"], "neg": ["arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)", "the most population refers to max(population)", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; 'Robert A. Rubio' and 'Glenn White' are both commander; responsible for more incident refers to Max(count(ward_no))", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'", "case JB107731 refers to case_number = 'JB107731'", "average = Divide(Count(ward_no), Count(side))", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'"]}} {"set": {"query": "What is the beat and location description of the case JB112212?", "pos": ["case JB112212 refers to case_number = 'JB112212'"], "neg": ["crime case against persons refers to crime_against = 'Persons'", "Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude", "the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no", "index code refers to iucr_no; case JB296775 refers to case_number = 'JB296775'", "location coordinates refers to latitude, longitude", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "least populated refers to Min(Population); community refers to community_area_no; most common location refers to Max(Count(location_description))", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter"]}} {"set": {"query": "Provide the occurrence date and location of the deceptive practice due to the unlawful use of recorded sound.", "pos": ["location refers to latitude, longitude; deceptive practice refers to primary_description = 'DECEPTIVE PRACTICE'; unlawful use of recorded sound refers to secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'"], "neg": ["most crowded ward refers to Max(Population)", "email address refers to email; Central Chicago refers to district_name = 'Central'", "\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "most reported crime refers to max(Count(secondary_description))", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "the most population refers to max(population)", "location coordinates refers to latitude, longitude", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'", "crime case against persons refers to crime_against = 'Persons'"]}} {"set": {"query": "How many of the crimes that happened in the street have FBI title \"Homicide 1st & 2nd Degree\"?", "pos": ["in the street refers to location_description = 'STREET'"], "neg": ["domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)", "Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'", "the Northwest refers to side = 'Northwest'", "case No.JB134191 refers to case_number = 'JB134191'", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "location coordinates refers to latitude, longitude", "domestic violence refers to domestic = 'TRUE'; in an abandoned building refers to location_description = 'ABANDONED BUILDING'; in 2018 refers to date LIKE '%2018%'"]}} {"set": {"query": "How many crimes described as 'The theft of a motor vehicle' by the FBI have taken place in the Lake View community?", "pos": ["lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description"], "neg": ["Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; 'Robert A. Rubio' and 'Glenn White' are both commander; responsible for more incident refers to Max(count(ward_no))", "the Far North side refers to side = 'Far North'", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "the Northwest refers to side = 'Northwest'", "more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)"]}} {"set": {"query": "What is the email address to contact the administrator of Central Chicago?", "pos": ["email address refers to email; Central Chicago refers to district_name = 'Central'"], "neg": ["domestic violence refers to domestic = 'TRUE'; in an abandoned building refers to location_description = 'ABANDONED BUILDING'; in 2018 refers to date LIKE '%2018%'", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "\"Robert A. Rubio\" is the commander", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'", "the Far North side refers to side = 'Far North'", "precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; arson by explosive refers to primary_description = 'ARSON' AND secondary_description = 'BY EXPLOSIVE'"]}} {"set": {"query": "What is the percentage of severe cases that are related to sexual assault?", "pos": ["related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100"], "neg": ["neighborhood refers to neighborhood_name; '23778' is the report_no", "location coordinates refers to latitude, longitude", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; 'Robert A. Rubio' and 'Glenn White' are both commander; responsible for more incident refers to Max(count(ward_no))", "the highest population refers to max(population); report number refers to report_no; the highest beat refers to max(beat)", "Central Chicago refers to district_name = 'Central'", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "average = Divide(Count(ward_no), Count(side))"]}} {"set": {"query": "Please list the location coordinates of all the incidents that had happened in the ward represented by alderman Pat Dowell.", "pos": ["location coordinates refers to latitude, longitude"], "neg": ["West Englewood community refers to community_area_name = 'West Englewood'", "name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "\"23778\" is the report_no; FBI description refers to description", "in the street refers to location_description = 'STREET'", "case JB112212 refers to case_number = 'JB112212'", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "crime case against persons refers to crime_against = 'Persons'", "neighborhood refers to neighborhood_name; '23778' is the report_no"]}} {"set": {"query": "How many arrests have been made due to forcible entry burglary that took place in a day care center?", "pos": ["\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'"], "neg": ["index code refers to iucr_no; case JB296775 refers to case_number = 'JB296775'", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "location coordinates refers to latitude, longitude", "name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "email address refers to email; Central Chicago refers to district_name = 'Central'"]}} {"set": {"query": "Among all the incidents with no arrest made, what is the percentage of them having a generic description of \"BATTERY\" in the IUCR classification?", "pos": ["incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; \"BATTERY\" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100"], "neg": ["crime against society refers to crime_against = 'Society'", "community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "Morgan Park district refers to district_name = 'Morgan Park'", "case JB112212 refers to case_number = 'JB112212'"]}} {"set": {"query": "Which district is the community area Lincoln Square grouped into?", "pos": ["district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'"], "neg": ["\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no", "more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "name of neighborhood refers to neighborhood_name; the most population refers to max(population)", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no", "severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address"]}} {"set": {"query": "Provide case numbers, aldermen's full names, and district names of the crimes that happened in 0000X N FRANCISCO AVE.", "pos": ["aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'"], "neg": ["in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "most reported crime refers to max(Count(secondary_description))", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "crime case against persons refers to crime_against = 'Persons'", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%", "name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)"]}} {"set": {"query": "What is the weekly average number of fraud incidents that were reported in January 2018? Provide the description of the location where the majority of fraud incidents occurred in the said month.", "pos": ["fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))"], "neg": ["solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "location coordinates refers to latitude, longitude", "the most population refers to max(population)", "location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'", "index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'", "email address refers to email; Central Chicago refers to district_name = 'Central'", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "the Northwest refers to side = 'Northwest'"]}} {"set": {"query": "How many severe crime incidents were reported at coordinate 41.64820151, -87.54430496?", "pos": ["coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'"], "neg": ["the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'", "Misc Non-Index Offense refers to title = 'Misc Non-Index Offense'", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'", "average = Divide(Count(ward_no), Count(side))", "fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)"]}} {"set": {"query": "What is the full name of the alderman of ward no.21?", "pos": ["full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix"], "neg": ["severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%", "more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%", "email address refers to email; Central Chicago refers to district_name = 'Central'", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "crime case against persons refers to crime_against = 'Persons'", "Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude", "name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%"]}} {"set": {"query": "Give the case number and coordinates of the places where child abduction is reported.", "pos": ["\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude"], "neg": ["fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "Central refers to side = 'Central'; larceny refers to title = 'Larceny'; percentage = divide(count(report_no where title = 'Larceny'), count(report_no)) where side = 'Central' * 100%", "\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime", "\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))", "more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "community with highest number of neighborhoods refers to Max(Count(community_area_no)); community refers to community_area_name", "community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'", "population below 52000 refers to population < 52000; beat greater than the 90% of the average beat refers to beat > multiply(avg(beat), 0.9) where population < 52000"]}} {"set": {"query": "Which community has the highest number of neighborhoods?", "pos": ["community with highest number of neighborhoods refers to Max(Count(community_area_no)); community refers to community_area_name"], "neg": ["the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'", "most reported crime refers to max(Count(secondary_description))", "index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'", "\"23778\" is the report_no; FBI description refers to description", "index code refers to iucr_no; case JB296775 refers to case_number = 'JB296775'", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'", "community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'", "incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; \"BATTERY\" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100", "no arrest has been made refers to arrest = 'FALSE'"]}} {"set": {"query": "Which district had the most number of first degree murders? Give the district number.", "pos": ["the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no"], "neg": ["crime case against persons refers to crime_against = 'Persons'", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "least populated refers to Min(Population); community refers to community_area_no; most common location refers to Max(Count(location_description))", "\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "no arrest has been made refers to arrest = 'FALSE'", "index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'", "\"Robert A. Rubio\" is the commander"]}} {"set": {"query": "Where is the coordinate (41.66236555, -87.63470194) located? Give the name of the district.", "pos": ["coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name"], "neg": ["\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "the Northwest refers to side = 'Northwest'", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", " in May 2018 refers to date LIKE '5/%/2018%'", "Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "\"Criminal Sexual Abuse\" is the title of crime", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name"]}} {"set": {"query": "Please list all of the contact information for the police district Near West.", "pos": ["\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter"], "neg": ["district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "crime case against persons refers to crime_against = 'Persons'", "Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'", "commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'", "most crowded ward refers to Max(Population)", "\"RECKLESS HOMICIDE\" is the secondary_description; average = Divide (Count(report_no), Count(district_name))", "report number refers report_no; 'Jill M. Stevens\" is the commander", "in the street refers to location_description = 'STREET'", "\"Lincoln\" is the district_name; responsible for crime case refers to commander", "the least population refers = min(sum(population))"]}} {"set": {"query": "What is the short description of the crime committed the most by criminals in the least populated community?", "pos": ["short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)"], "neg": ["the Northwest refers to side = 'Northwest'", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "\"Criminal Sexual Abuse\" is the title of crime", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", "Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude", "Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "case No.JB134191 refers to case_number = 'JB134191'"]}} {"set": {"query": "How many incidents of domestic violence occurred in an abandoned building in 2018?", "pos": ["domestic violence refers to domestic = 'TRUE'; in an abandoned building refers to location_description = 'ABANDONED BUILDING'; in 2018 refers to date LIKE '%2018%'"], "neg": ["specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", "commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'", "report number refers report_no; 'Jill M. Stevens\" is the commander", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "\"unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person\" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "case JB107731 refers to case_number = 'JB107731'", "the Northwest refers to side = 'Northwest'", "1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'"]}} {"set": {"query": "In Albany Park, how many arrests were made in an apartment due to criminal sexual abuse?", "pos": ["Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'"], "neg": ["case JB107731 refers to case_number = 'JB107731'", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)", "neighborhood refers to neighborhood_name; '23778' is the report_no", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name"]}} {"set": {"query": "What is the alderman's full name of the most crowded ward?", "pos": ["alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)"], "neg": ["case JB112212 refers to case_number = 'JB112212'", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude", "precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)", "\"unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person\" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))", "Central Chicago refers to district_name = 'Central'", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'"]}} {"set": {"query": "What kind of location in Austin reported the most number of crimes?", "pos": ["\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description"], "neg": ["\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'"]}} {"set": {"query": "What are the general and specific descriptions of the most common crime incidents that happened in an aircraft?", "pos": ["in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))"], "neg": ["case JB107731 refers to case_number = 'JB107731'", "the Far North side refers to side = 'Far North'", "in the street refers to location_description = 'STREET'", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "name of neighborhood refers to neighborhood_name; the most population refers to max(population)", "the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'", "1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'"]}} {"set": {"query": "Calculate the percentage of the domestic violence cases handled by Christopher Taliaferro. Among them, list report numbers of cases that happened in the bank.", "pos": ["domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%"], "neg": ["alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "community with highest number of neighborhoods refers to Max(Count(community_area_no)); community refers to community_area_name", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)", "precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "least populated refers to Min(Population); community refers to community_area_no; most common location refers to Max(Count(location_description))", "West Englewood community refers to community_area_name = 'West Englewood'", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'"]}} {"set": {"query": "Among the crimes in the ward with the most population, how many of them are cases of domestic violence?", "pos": ["most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'"], "neg": ["\"Criminal Sexual Abuse\" is the title of crime", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))", "the most population refers to max(population)", "crime refers to title; committed the most refers to max(fbi_code_no)", "community with highest number of neighborhoods refers to Max(Count(community_area_no)); community refers to community_area_name", "most reported crime refers to max(Count(secondary_description))", "crime case against persons refers to crime_against = 'Persons'", "communities refers to community_area_name; 'Fraud Incident' is the title of crime", "Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'", "incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; \"BATTERY\" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100"]}} {"set": {"query": "How severe was case JB296775? Give the index code for severity.", "pos": ["index code refers to iucr_no; case JB296775 refers to case_number = 'JB296775'"], "neg": ["the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no", "location coordinates refers to latitude, longitude", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "\"Lincoln\" is the district_name; responsible for crime case refers to commander", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no", "crime against society refers to crime_against = 'Society'", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "\"Robert A. Rubio\" is the commander", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description"]}} {"set": {"query": "In the least populated community, what is the most common location of all the reported crime incidents?", "pos": ["least populated refers to Min(Population); community refers to community_area_no; most common location refers to Max(Count(location_description))"], "neg": ["in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "average = Divide(Count(ward_no), Count(side))", "in the street refers to location_description = 'STREET'", "incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; \"BATTERY\" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "Morgan Park district refers to district_name = 'Morgan Park'"]}} {"set": {"query": "To which community area does the neighborhood Albany Park belong?", "pos": ["community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'"], "neg": ["case No.JB134191 refers to case_number = 'JB134191'", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no", " in May 2018 refers to date LIKE '5/%/2018%'", "location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "average = Divide(Count(ward_no), Count(side))", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "location coordinates refers to latitude, longitude"]}} {"set": {"query": "How many community areas are in the Far North side?", "pos": ["the Far North side refers to side = 'Far North'"], "neg": ["crime refers to title; committed the most refers to max(fbi_code_no)", "\"RECKLESS HOMICIDE\" is the secondary_description; average = Divide (Count(report_no), Count(district_name))", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", " in May 2018 refers to date LIKE '5/%/2018%'", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "Misc Non-Index Offense refers to title = 'Misc Non-Index Offense'", "the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'", "email address refers to email; Central Chicago refers to district_name = 'Central'"]}} {"set": {"query": "How many solicit on public way prostitution crimes were arrested in West Garfield Park?", "pos": ["solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'"], "neg": ["simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'", "Central Chicago refers to district_name = 'Central'", "\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'", "location coordinates refers to latitude, longitude", "coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name", " in May 2018 refers to date LIKE '5/%/2018%'", "Morgan Park district refers to district_name = 'Morgan Park'", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "case No.JB134191 refers to case_number = 'JB134191'"]}} {"set": {"query": "The ward represented by which alderman had more incidents in January, 2018, Pat Dowell or Sophia King?", "pos": ["January, 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; had more incidents refers to Max(Count(ward_no))"], "neg": ["the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "report number refers report_no; 'Jill M. Stevens\" is the commander", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "neighborhood refers to neighborhood_name; '23778' is the report_no", "fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no"]}} {"set": {"query": "What is the name of the community that has the highest number of crimes related to prostitution?", "pos": ["name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'"], "neg": ["no arrest has been made refers to arrest = 'FALSE'", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no", "most crowded ward refers to Max(Population)", "\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude", "\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no"]}} {"set": {"query": "List the location descriptions and aldermen's full names of the arson by explosive.", "pos": ["aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; arson by explosive refers to primary_description = 'ARSON' AND secondary_description = 'BY EXPLOSIVE'"], "neg": ["report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", " in May 2018 refers to date LIKE '5/%/2018%'", "Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "Central refers to side = 'Central'; larceny refers to title = 'Larceny'; percentage = divide(count(report_no where title = 'Larceny'), count(report_no)) where side = 'Central' * 100%", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "\"Robert A. Rubio\" is the commander", "email address refers to email; Central Chicago refers to district_name = 'Central'", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)"]}} {"set": {"query": "List the case number of the crimes in wards with population below 52000 that have beat greater than the 90% of the average beat of all crimes.", "pos": ["population below 52000 refers to population < 52000; beat greater than the 90% of the average beat refers to beat > multiply(avg(beat), 0.9) where population < 52000"], "neg": ["domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'", "the Far North side refers to side = 'Far North'", "communities refers to community_area_name; 'Fraud Incident' is the title of crime", "case JB112212 refers to case_number = 'JB112212'", "coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name", "\"Robert A. Rubio\" is the commander", "no arrest has been made refers to arrest = 'FALSE'", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no"]}} {"set": {"query": "Where did case No. JB100065 happen? Give the name of the district.", "pos": ["case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name"], "neg": ["more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "Misc Non-Index Offense refers to title = 'Misc Non-Index Offense'", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "no arrest has been made refers to arrest = 'FALSE'", "\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime", "Central refers to side = 'Central'; larceny refers to title = 'Larceny'; percentage = divide(count(report_no where title = 'Larceny'), count(report_no)) where side = 'Central' * 100%", "1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'", "index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'"]}} {"set": {"query": "How many percent of domestic violence cases were arrested in West Pullman?", "pos": ["domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%"], "neg": ["the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))", "community with highest number of neighborhoods refers to Max(Count(community_area_no)); community refers to community_area_name", "case JB112212 refers to case_number = 'JB112212'", "severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100"]}} {"set": {"query": "Give the FBI code description of case No.JB134191.", "pos": ["case No.JB134191 refers to case_number = 'JB134191'"], "neg": ["Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "Central refers to side = 'Central'; larceny refers to title = 'Larceny'; percentage = divide(count(report_no where title = 'Larceny'), count(report_no)) where side = 'Central' * 100%", "email address refers to email; Central Chicago refers to district_name = 'Central'", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142"]}} {"set": {"query": "Who is responsible for crime cases in district Lincoln?", "pos": ["\"Lincoln\" is the district_name; responsible for crime case refers to commander"], "neg": ["no arrest has been made refers to arrest = 'FALSE'", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no", "case JB112212 refers to case_number = 'JB112212'", "\"23778\" is the report_no; FBI description refers to description", "most crowded ward refers to Max(Population)", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "location refers to latitude, longitude; deceptive practice refers to primary_description = 'DECEPTIVE PRACTICE'; unlawful use of recorded sound refers to secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'", "\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude", "FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'"]}} {"set": {"query": "What is the population of the district with the least population?", "pos": ["the least population refers = min(sum(population))"], "neg": ["more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name", "Central Chicago refers to district_name = 'Central'", "the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; \"BATTERY\" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100", "no arrest has been made refers to arrest = 'FALSE'"]}} {"set": {"query": "How many crime cases have been classified as \"Weapons Violation\" by the FBI?", "pos": ["\"Weapons Violation\" is the title of crime; crime cases refers to report_no;"], "neg": ["alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))", "most crowded ward refers to Max(Population)", "the least population refers = min(sum(population))", "index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; arson by explosive refers to primary_description = 'ARSON' AND secondary_description = 'BY EXPLOSIVE'", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'"]}} {"set": {"query": "Who is the person responsible for the crime cases in Central Chicago?", "pos": ["the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'"], "neg": ["lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "report number refers report_no; 'Jill M. Stevens\" is the commander", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%", "coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name", "simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'", "more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name", "\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", "Central Chicago refers to district_name = 'Central'"]}} {"set": {"query": "How many crimes had happened in Central Chicago?", "pos": ["Central Chicago refers to district_name = 'Central'"], "neg": ["crime refers to title; committed the most refers to max(fbi_code_no)", "January, 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; had more incidents refers to Max(Count(ward_no))", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "population below 52000 refers to population < 52000; beat greater than the 90% of the average beat refers to beat > multiply(avg(beat), 0.9) where population < 52000", "no arrest has been made refers to arrest = 'FALSE'", "the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude"]}} {"set": {"query": "How many simple assaults happened on 2018/9/8?", "pos": ["simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'"], "neg": ["the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "crime case against persons refers to crime_against = 'Persons'", "coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "in the street refers to location_description = 'STREET'", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "Misc Non-Index Offense refers to title = 'Misc Non-Index Offense'", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'", "the Northwest refers to side = 'Northwest'"]}} {"set": {"query": "How many crimes were Misc Non-Index Offense?", "pos": ["Misc Non-Index Offense refers to title = 'Misc Non-Index Offense'"], "neg": ["Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "neighborhood refers to neighborhood_name; '23778' is the report_no", "fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "\"Robert A. Rubio\" is the commander", "larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%", "commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'", "the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'", "more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)", "crime against society refers to crime_against = 'Society'", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%"]}} {"set": {"query": "What is the FBI description of the crime for report number 23778?", "pos": ["\"23778\" is the report_no; FBI description refers to description"], "neg": ["\"Robert A. Rubio\" is the commander", "crime against society refers to crime_against = 'Society'", "communities refers to community_area_name; 'Fraud Incident' is the title of crime", "precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'", "simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'", "\"Criminal Sexual Abuse\" is the title of crime", "most crowded ward refers to Max(Population)", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "\"Lincoln\" is the district_name; responsible for crime case refers to commander", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'"]}} {"set": {"query": "Among the crimes reported to the ward located at 1958 N. Milwaukee Ave., list down the report number of the crimes happened inside the apartment.", "pos": ["1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'"], "neg": ["location refers to latitude, longitude; deceptive practice refers to primary_description = 'DECEPTIVE PRACTICE'; unlawful use of recorded sound refers to secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'", "\"RECKLESS HOMICIDE\" is the secondary_description; average = Divide (Count(report_no), Count(district_name))", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "the highest population refers to max(population); report number refers to report_no; the highest beat refers to max(beat)", "larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))", "short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)", "location coordinates refers to latitude, longitude", "report number refers report_no; 'Jill M. Stevens\" is the commander", "index code refers to iucr_no; case JB296775 refers to case_number = 'JB296775'"]}} {"set": {"query": "What is the name of the district with the highest number of domestic violence cases?", "pos": ["domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name"], "neg": ["aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "neighborhood refers to neighborhood_name; '23778' is the report_no", "\"unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person\" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", " in May 2018 refers to date LIKE '5/%/2018%'", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", "coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name"]}} {"set": {"query": "Among the crimes in all the districts in Chicago, what is the percentage of them happening in the Central district?", "pos": ["the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%"], "neg": ["Morgan Park district refers to district_name = 'Morgan Park'", "email address refers to email; Central Chicago refers to district_name = 'Central'", "\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no", "\"Lincoln\" is the district_name; responsible for crime case refers to commander", "in the street refers to location_description = 'STREET'", "location refers to latitude, longitude; deceptive practice refers to primary_description = 'DECEPTIVE PRACTICE'; unlawful use of recorded sound refers to secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'", "1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; arson by explosive refers to primary_description = 'ARSON' AND secondary_description = 'BY EXPLOSIVE'", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'"]}} {"set": {"query": "Name the neighborhood of the community area in crime with report number 23843?", "pos": ["neighborhood refers to neighborhood_name; '23778' is the report_no"], "neg": ["Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "the most population refers to max(population)", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", "\"Robert A. Rubio\" is the commander", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'"]}} {"set": {"query": "In the most populated ward, how many incidents of domestic violence were reported in a bar or tavern?", "pos": ["the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'"], "neg": ["coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "population below 52000 refers to population < 52000; beat greater than the 90% of the average beat refers to beat > multiply(avg(beat), 0.9) where population < 52000", "more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)", " in May 2018 refers to date LIKE '5/%/2018%'", "the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'", "\"Lincoln\" is the district_name; responsible for crime case refers to commander", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "most reported crime refers to max(Count(secondary_description))", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))"]}} {"set": {"query": "Among the crimes in Woodlawn, how many of them happened in January, 2018?", "pos": ["Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'"], "neg": ["\"Criminal Sexual Abuse\" is the title of crime", "the most population refers to max(population)", "FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'", "the Northwest refers to side = 'Northwest'", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'", "incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; \"BATTERY\" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100", "more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no"]}} {"set": {"query": "Among the crimes with no arrest made, how many of them happened in the ward represented by alderman Pat Dowell?", "pos": ["no arrest has been made refers to arrest = 'FALSE'"], "neg": ["average = Divide(Count(ward_no), Count(side))", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "crime against society refers to crime_against = 'Society'", "commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "\"Criminal Sexual Abuse\" is the title of crime", "\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime", "more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name"]}} {"set": {"query": "Among the cases reported in the ward with Edward Burke as the alderman and happened in the community area with the highest population, provide the report number of the crime with the highest beat.", "pos": ["the highest population refers to max(population); report number refers to report_no; the highest beat refers to max(beat)"], "neg": ["most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "communities refers to community_area_name; 'Fraud Incident' is the title of crime", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no"]}} {"set": {"query": "How many crimes had happened in the community area with the most population?", "pos": ["the most population refers to max(population)"], "neg": ["the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "\"23778\" is the report_no; FBI description refers to description", "Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'", "\"Lincoln\" is the district_name; responsible for crime case refers to commander", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'", "the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'", "full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "most reported crime refers to max(Count(secondary_description))", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'"]}} {"set": {"query": "What is the average number of reckless homicides that happened in a district?", "pos": ["\"RECKLESS HOMICIDE\" is the secondary_description; average = Divide (Count(report_no), Count(district_name))"], "neg": ["fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude", "neighborhood refers to neighborhood_name; '23778' is the report_no", "\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'", "1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "most reported crime refers to max(Count(secondary_description))", "location coordinates refers to latitude, longitude"]}} {"set": {"query": "Who is the commander of Morgan Park district?", "pos": ["Morgan Park district refers to district_name = 'Morgan Park'"], "neg": ["the most population refers to max(population)", "location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "Central Chicago refers to district_name = 'Central'", "the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no", " in May 2018 refers to date LIKE '5/%/2018%'", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'"]}} {"set": {"query": "What is the most reported crime in the Northwest side?", "pos": ["most reported crime refers to max(Count(secondary_description))"], "neg": ["domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "communities refers to community_area_name; 'Fraud Incident' is the title of crime", "the highest population refers to max(population); report number refers to report_no; the highest beat refers to max(beat)", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))", "\"RECKLESS HOMICIDE\" is the secondary_description; average = Divide (Count(report_no), Count(district_name))", "\"23778\" is the report_no; FBI description refers to description", "West Englewood community refers to community_area_name = 'West Englewood'", "\"Criminal Sexual Abuse\" is the title of crime"]}} {"set": {"query": "List the case numbers of domestic violence crimes reported in Lincoln Square.", "pos": ["domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'"], "neg": ["case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "case JB112212 refers to case_number = 'JB112212'", "vandalism refers to title = 'Vandalism'; arrested refers to arrest = 'TRUE'", "in the street refers to location_description = 'STREET'", "population below 52000 refers to population < 52000; beat greater than the 90% of the average beat refers to beat > multiply(avg(beat), 0.9) where population < 52000", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "\"Homicide 1st & 2nd Degree\" is the title", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter"]}} {"set": {"query": "Describe the specific description and case locations under IUCR 142.", "pos": ["specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142"], "neg": ["precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'", "crime case against persons refers to crime_against = 'Persons'", "the Northwest refers to side = 'Northwest'", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "West Englewood community refers to community_area_name = 'West Englewood'", "most crowded ward refers to Max(Population)", "coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name", "Central Chicago refers to district_name = 'Central'", "January, 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; had more incidents refers to Max(Count(ward_no))"]}} {"set": {"query": "What is the first name of the aldermen of wards with more than 50,000 inhabitants?", "pos": ["more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name"], "neg": ["average = Divide(Count(ward_no), Count(side))", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "vandalism refers to title = 'Vandalism'; arrested refers to arrest = 'TRUE'", "the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'"]}} {"set": {"query": "Please list the case numbers of all the crimes with no arrest made in Central Chicago.", "pos": ["no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'"], "neg": ["\"Robert A. Rubio\" is the commander", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "the Far North side refers to side = 'Far North'", "more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name", "\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'", "name of neighborhood refers to neighborhood_name; the most population refers to max(population)", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime"]}} {"set": {"query": "List down the titles and descriptions of the crimes cases against persons.", "pos": ["crime case against persons refers to crime_against = 'Persons'"], "neg": ["Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'", "communities refers to community_area_name; 'Fraud Incident' is the title of crime", "name of neighborhood refers to neighborhood_name; the most population refers to max(population)", "coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name", "\"Homicide 1st & 2nd Degree\" is the title", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "the least population refers = min(sum(population))", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "Morgan Park district refers to district_name = 'Morgan Park'"]}} {"set": {"query": "In the South side community, what is the name of the community with the most reported incidents of unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person?", "pos": ["\"unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person\" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))"], "neg": ["in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", "short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'", "name of neighborhood refers to neighborhood_name; the most population refers to max(population)", "larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)", "precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'"]}} {"set": {"query": "List the report number of crimes reported in a community area in the far north side with a population greater than 60,000.", "pos": ["report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'"], "neg": ["neighborhood refers to neighborhood_name; '23778' is the report_no", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "location coordinates refers to latitude, longitude", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))", "the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;"]}} {"set": {"query": "How many neighborhoods can be found in the Forest Glen community area?", "pos": ["\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name"], "neg": ["in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "most reported crime refers to max(Count(secondary_description))", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "average = Divide(Count(ward_no), Count(side))", "Central Chicago refers to district_name = 'Central'", "Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude", "the highest population refers to max(population); report number refers to report_no; the highest beat refers to max(beat)"]}} {"set": {"query": "Give the neighborhood name of West Englewood community.", "pos": ["West Englewood community refers to community_area_name = 'West Englewood'"], "neg": ["name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION'", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; arson by explosive refers to primary_description = 'ARSON' AND secondary_description = 'BY EXPLOSIVE'", "case No.JB134191 refers to case_number = 'JB134191'", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no", "short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'", "severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%", "the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'"]}} {"set": {"query": "Out of all the incidents of domestic violence reported at the ward represented by alderman Walter Burnett Jr., how many were arrested?", "pos": ["domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'"], "neg": ["communities refers to community_area_name; 'Fraud Incident' is the title of crime", "the most population refers to max(population)", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'", "the least population refers = min(sum(population))", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "\"23778\" is the report_no; FBI description refers to description", "in the street refers to location_description = 'STREET'"]}} {"set": {"query": "List down the report number of crimes associated with the district commander named Jill M. Stevens.", "pos": ["report number refers report_no; 'Jill M. Stevens\" is the commander"], "neg": ["most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)", "specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142", "severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%", "Morgan Park district refers to district_name = 'Morgan Park'", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime", "\"unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person\" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'"]}} {"set": {"query": "Please list the precise location coordinates of all the crimes in Central Chicago.", "pos": ["location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'"], "neg": ["average = Divide(Count(ward_no), Count(side))", "larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%", "index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'", "simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'", "community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'", "case JB107731 refers to case_number = 'JB107731'", "the Far North side refers to side = 'Far North'", "\"unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person\" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%", "the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'"]}} {"set": {"query": "List the community area names in the Northwest.", "pos": ["the Northwest refers to side = 'Northwest'"], "neg": ["coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "crime against society refers to crime_against = 'Society'", "the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'", "\"Robert A. Rubio\" is the commander", "in the street refers to location_description = 'STREET'", "community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'", "the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST'", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "the Far North side refers to side = 'Far North'", "FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'"]}} {"set": {"query": "Please list the case numbers of all the crimes whose short description of the kind of crime is \"Homicide 1st & 2nd Degree\" in the FBI classification.", "pos": ["\"Homicide 1st & 2nd Degree\" is the title"], "neg": ["domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))", "1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)", "case JB112212 refers to case_number = 'JB112212'", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "the Far North side refers to side = 'Far North'", "communities refers to community_area_name; 'Fraud Incident' is the title of crime", "the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'"]}} {"set": {"query": "In which ward of more than 55,000 inhabitants are there more crimes of intimidation with extortion?", "pos": ["more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)"], "neg": ["crime case against persons refers to crime_against = 'Persons'", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "\"23778\" is the report_no; FBI description refers to description", "domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'", "neighborhood refers to neighborhood_name; '23778' is the report_no", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "January, 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; had more incidents refers to Max(Count(ward_no))", "fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%"]}} {"set": {"query": "Among the crimes in the Central, calculate the percentage of larceny incidents.", "pos": ["Central refers to side = 'Central'; larceny refers to title = 'Larceny'; percentage = divide(count(report_no where title = 'Larceny'), count(report_no)) where side = 'Central' * 100%"], "neg": ["fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "\"23778\" is the report_no; FBI description refers to description", "West Englewood community refers to community_area_name = 'West Englewood'", "\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no", "Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%'", "case JB112212 refers to case_number = 'JB112212'", "email address refers to email; Central Chicago refers to district_name = 'Central'", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'"]}} {"set": {"query": "How many arrests were made in 2018 in an animal hospital under FBI code 08B?", "pos": ["arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'"], "neg": ["\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "in the street refers to location_description = 'STREET'", "neighborhood refers to neighborhood_name; '23778' is the report_no", "full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)", "the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "name of neighborhood refers to neighborhood_name; the most population refers to max(population)"]}} {"set": {"query": "List the IUCR numbers and index status of homicide incidents.", "pos": ["index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'"], "neg": ["severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "report number refers report_no; 'Jill M. Stevens\" is the commander", "fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "case JB107731 refers to case_number = 'JB107731'", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'"]}} {"set": {"query": "What is the percentage of larceny cases among all cases that happened in Edgewater community?", "pos": ["larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%"], "neg": ["commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'", "location coordinates refers to latitude, longitude", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'", "incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; \"BATTERY\" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;"]}} {"set": {"query": "Calculate the difference in the average number of vehicular hijackings and aggravated vehicular hijackings in the districts.", "pos": ["\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))"], "neg": ["communities refers to community_area_name; 'Fraud Incident' is the title of crime", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "January, 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; had more incidents refers to Max(Count(ward_no))", "domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'", "Central refers to side = 'Central'; larceny refers to title = 'Larceny'; percentage = divide(count(report_no where title = 'Larceny'), count(report_no)) where side = 'Central' * 100%", "the least population refers = min(sum(population))", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no", "the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "index code refers to iucr_no; case JB296775 refers to case_number = 'JB296775'"]}} {"set": {"query": "What is the FBI code and definition of Gambling?", "pos": ["FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'"], "neg": ["in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no))", "West Englewood community refers to community_area_name = 'West Englewood'", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "name of neighborhood refers to neighborhood_name; the most population refers to max(population)", "short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)", "the most population refers to max(population)", "simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'", "the Far North side refers to side = 'Far North'", "community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park'"]}} {"set": {"query": "What is the precise location or coordinate where most of the robberies in Rogers Park occurred?", "pos": ["precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'"], "neg": ["Central refers to side = 'Central'; larceny refers to title = 'Larceny'; percentage = divide(count(report_no where title = 'Larceny'), count(report_no)) where side = 'Central' * 100%", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)", "domestic violence refers to domestic = 'TRUE'; in an abandoned building refers to location_description = 'ABANDONED BUILDING'; in 2018 refers to date LIKE '%2018%'", "full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "crime against society refers to crime_against = 'Society'", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "West Englewood community refers to community_area_name = 'West Englewood'", "\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude", "coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name"]}} {"set": {"query": "How many weapons violation crimes have occurred in the Calumet district?", "pos": ["\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime"], "neg": ["Central Chicago refers to district_name = 'Central'", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; 'Robert A. Rubio' and 'Glenn White' are both commander; responsible for more incident refers to Max(count(ward_no))", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "\"23778\" is the report_no; FBI description refers to description", "\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no", " in May 2018 refers to date LIKE '5/%/2018%'", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "communities refers to community_area_name; 'Fraud Incident' is the title of crime"]}} {"set": {"query": "Which commander has had to deal with more cases of criminal sexual abuse?", "pos": ["more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))"], "neg": ["district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "neighborhood refers to neighborhood_name; '23778' is the report_no", "\"Harrison\" is the district_name;\u00a0 'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no", "Central refers to side = 'Central'; larceny refers to title = 'Larceny'; percentage = divide(count(report_no where title = 'Larceny'), count(report_no)) where side = 'Central' * 100%", "larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%", "1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "case JB112212 refers to case_number = 'JB112212'"]}} {"set": {"query": "What is the exact location of the crimes that occurred in the Belmont Cragin community?", "pos": ["Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude"], "neg": ["the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN'", "larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%", "Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'", "location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'", "case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name", "full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "\"Criminal Sexual Abuse\" is the title of crime", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "location coordinates refers to latitude, longitude"]}} {"set": {"query": "Who is the commanding officer in the district with the highest number of disorderly conduct?", "pos": ["commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'"], "neg": ["arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no", "more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE'))", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; arson by explosive refers to primary_description = 'ARSON' AND secondary_description = 'BY EXPLOSIVE'", "Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square'", "\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "neighborhood refers to neighborhood_name; '23778' is the report_no"]}} {"set": {"query": "Give the FBI code for the crime described by \"The killing of one human being by another.\"", "pos": ["\"The killing of one human being by another\" is the description; FBI code refers to fbi_code_no"], "neg": ["FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'", "\"Weapons Violation\" is the title of crime; crime cases refers to report_no;", "average = Divide(Count(ward_no), Count(side))", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)", "vandalism refers to title = 'Vandalism'; arrested refers to arrest = 'TRUE'", "incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; \"BATTERY\" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'"]}} {"set": {"query": "Please list the blocks where all the incidents in the district commanded by Robert A. Rubio took place.", "pos": ["\"Robert A. Rubio\" is the commander"], "neg": ["email address refers to email; Central Chicago refers to district_name = 'Central'", "population below 52000 refers to population < 52000; beat greater than the 90% of the average beat refers to beat > multiply(avg(beat), 0.9) where population < 52000", "report number refers report_no; 'Jill M. Stevens\" is the commander", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse'", "precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE'", "commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'", "arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B'"]}} {"set": {"query": "On average, how many community areas are there in a side?", "pos": ["average = Divide(Count(ward_no), Count(side))"], "neg": ["simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%'", "\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))", "crime against society refers to crime_against = 'Society'", "coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'", "neighborhood refers to neighborhood_name; '23778' is the report_no", "crime case against persons refers to crime_against = 'Persons'", "Misc Non-Index Offense refers to title = 'Misc Non-Index Offense'", "report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'", "Central Chicago refers to district_name = 'Central'", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name"]}} {"set": {"query": "What is the ward ID of the most crowded ward?", "pos": ["most crowded ward refers to Max(Population)"], "neg": ["more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no)", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'", "the Far North side refers to side = 'Far North'", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "the Northwest refers to side = 'Northwest'", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description"]}} {"set": {"query": "How many crimes were committed at 018XX S KOMENSKY AVEin May 2018?", "pos": [" in May 2018 refers to date LIKE '5/%/2018%'"], "neg": ["domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square'", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central'", "\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'", "\"Calumet\" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime", "\"23778\" is the report_no; FBI description refers to description", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "report number refers report_no; 'Jill M. Stevens\" is the commander", "\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name"]}} {"set": {"query": "Calculate the average crime rate per month in the highest populous area.", "pos": ["the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)"], "neg": ["short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)", "most crowded ward refers to Max(Population)", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'", "crime refers to title; committed the most refers to max(fbi_code_no)", "\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))", "Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'", "Misc Non-Index Offense refers to title = 'Misc Non-Index Offense'", "precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'", "case JB107731 refers to case_number = 'JB107731'", "January, 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; had more incidents refers to Max(Count(ward_no))"]}} {"set": {"query": "Give the detailed description of all the crimes against society.", "pos": ["crime against society refers to crime_against = 'Society'"], "neg": ["full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))", "neighborhood refers to neighborhood_name; '23778' is the report_no", "\"Robert A. Rubio\" is the commander", "apartment crime refers to location_description = 'APARTMENT';\u00a0 without arrest refers to arrest = 'FALSE'; average population = AVG(Population)", "\"Lincoln\" is the district_name; responsible for crime case refers to commander", "case JB112212 refers to case_number = 'JB112212'", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "\"Homicide 1st & 2nd Degree\" is the title", "\"Criminal Sexual Abuse\" is the title of crime"]}} {"set": {"query": "Among the crimes happened in the neighborhood called \"Avalon Park\", what is the percentage of crimes that happened inside the house?", "pos": ["\"Avalon Park\" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100"], "neg": ["lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "case No.JB134191 refers to case_number = 'JB134191'", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'", "in the street refers to location_description = 'STREET'", "\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; arson by explosive refers to primary_description = 'ARSON' AND secondary_description = 'BY EXPLOSIVE'", "\"Austin\" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description", "aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'"]}} {"set": {"query": "Among the incidents in January, 2018, how many of them were stated \"against Property\" in the FBI classification?", "pos": ["in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'"], "neg": ["in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "the highest population refers to max(population); report number refers to report_no; the highest beat refers to max(beat)", "no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central'", "\"BURGLARY\" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'", "most population refers to Max(Population); domestic violence refers to domestic = 'TRUE'", "the Far North side refers to side = 'Far North'", "alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)", "more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name", "neighborhood refers to neighborhood_name; '23778' is the report_no", "1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT'"]}} {"set": {"query": "Which district commander was responsible for more incidents in January, 2018, Robert A. Rubio or Glenn White?", "pos": ["in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; 'Robert A. Rubio' and 'Glenn White' are both commander; responsible for more incident refers to Max(count(ward_no))"], "neg": ["lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas'", "Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE'", "\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))", "no arrest has been made refers to arrest = 'FALSE'", "commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct'", "\"unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person\" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))", "least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no", "FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling'", "the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)"]}} {"set": {"query": "How many vandalisms were arrested in the ward represented by Edward Burke?", "pos": ["vandalism refers to title = 'Vandalism'; arrested refers to arrest = 'TRUE'"], "neg": ["email address refers to email; Central Chicago refers to district_name = 'Central'", "crime against society refers to crime_against = 'Society'", "\"CHILD ABDUCTION\" is the secondary_description; coordinates refers to latitude, longitude", "\"Near West\" is the district_name; all contact information refers to phone, fax, tty, twitter", "\"Lincoln\" is the district_name; responsible for crime case refers to commander", "full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix", "domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name", "\"VEHICULAR HIJACKING\" and \"AGGRAVATED VEHICULAR HIJACKING\" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = \"AGGRAVATED VEHICULAR HIJACKING\"), Count(district_name)))", "short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population)", "solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park'"]}} {"set": {"query": "Find the community area where the least number of domestic crimes happened.", "pos": ["least number of domestic crime refers to Min(Count(domestic = \"TRUE\")); community area refers to community_area_no"], "neg": ["\"Forest Glen\" is the community_area_name; neighborhoods refers to neighborhood_name", "domestic violence refers to domestic = 'TRUE'; in an abandoned building refers to location_description = 'ABANDONED BUILDING'; in 2018 refers to date LIKE '%2018%'", "related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100", "larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%", "in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'", "lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description", "domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%", "the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%", "Misc Non-Index Offense refers to title = 'Misc Non-Index Offense'", "average = Divide(Count(ward_no), Count(side))"]}} {"set": {"query": "On average, how many papers are under the ML class?", "pos": ["class refers to class_label; average = divide(count(paper_id where class_label = 'M')), (count(paper_id)));"], "neg": ["classification refers to class_label; class_label = 'DB';", "class type refers to class_label; class_label = 'DB'; word that is most frequently cited refers to max(count(word_cited_id);", "classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';", "paper cited by refers to citing_paper_id; citing_paper_id = 'sima01computational';", "percentage = (divide(count(word_cited_id where class_label = 'Agents')), (count(word_cited_id)))*100;", "class type refers to class_label;"]}} {"set": {"query": "Among the papers under DB classification, which paper has the highest number of words cited?", "pos": ["classification refers to class_label; class_label = 'DB';"], "neg": ["class refers to class_label; average = divide(count(paper_id where class_label = 'M')), (count(paper_id)));", "class type refers to class_label; class_label = 'DB'; word that is most frequently cited refers to max(count(word_cited_id);", "classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';", "paper cited by refers to citing_paper_id; citing_paper_id = 'sima01computational';", "percentage = (divide(count(word_cited_id where class_label = 'Agents')), (count(word_cited_id)))*100;", "class type refers to class_label;"]}} {"set": {"query": "Among all the DB class type citation, which word is the most frequently cited?", "pos": ["class type refers to class_label; class_label = 'DB'; word that is most frequently cited refers to max(count(word_cited_id);"], "neg": ["class refers to class_label; average = divide(count(paper_id where class_label = 'M')), (count(paper_id)));", "classification refers to class_label; class_label = 'DB';", "classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';", "paper cited by refers to citing_paper_id; citing_paper_id = 'sima01computational';", "percentage = (divide(count(word_cited_id where class_label = 'Agents')), (count(word_cited_id)))*100;", "class type refers to class_label;"]}} {"set": {"query": "In the papers classified as ML, how many cited butz01algorithmic?", "pos": ["classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';"], "neg": ["class refers to class_label; average = divide(count(paper_id where class_label = 'M')), (count(paper_id)));", "classification refers to class_label; class_label = 'DB';", "class type refers to class_label; class_label = 'DB'; word that is most frequently cited refers to max(count(word_cited_id);", "paper cited by refers to citing_paper_id; citing_paper_id = 'sima01computational';", "percentage = (divide(count(word_cited_id where class_label = 'Agents')), (count(word_cited_id)))*100;", "class type refers to class_label;"]}} {"set": {"query": "Find the words cited in papers that are cited by sima01computational?", "pos": ["paper cited by refers to citing_paper_id; citing_paper_id = 'sima01computational';"], "neg": ["class refers to class_label; average = divide(count(paper_id where class_label = 'M')), (count(paper_id)));", "classification refers to class_label; class_label = 'DB';", "class type refers to class_label; class_label = 'DB'; word that is most frequently cited refers to max(count(word_cited_id);", "classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';", "percentage = (divide(count(word_cited_id where class_label = 'Agents')), (count(word_cited_id)))*100;", "class type refers to class_label;"]}} {"set": {"query": "Calculate the percentage of words used in Agents class label.", "pos": ["percentage = (divide(count(word_cited_id where class_label = 'Agents')), (count(word_cited_id)))*100;"], "neg": ["class refers to class_label; average = divide(count(paper_id where class_label = 'M')), (count(paper_id)));", "classification refers to class_label; class_label = 'DB';", "class type refers to class_label; class_label = 'DB'; word that is most frequently cited refers to max(count(word_cited_id);", "classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';", "paper cited by refers to citing_paper_id; citing_paper_id = 'sima01computational';", "class type refers to class_label;"]}} {"set": {"query": "List all the paper ID and its class type that cited the word 'word1002'.", "pos": ["class type refers to class_label;"], "neg": ["class refers to class_label; average = divide(count(paper_id where class_label = 'M')), (count(paper_id)));", "classification refers to class_label; class_label = 'DB';", "class type refers to class_label; class_label = 'DB'; word that is most frequently cited refers to max(count(word_cited_id);", "classification refers to class_label; paper cited by refers to citing_paper_id; citing_paper_id = 'butz01algorithmic';", "paper cited by refers to citing_paper_id; citing_paper_id = 'sima01computational';", "percentage = (divide(count(word_cited_id where class_label = 'Agents')), (count(word_cited_id)))*100;"]}} {"set": {"query": "Provide the tokenized name of the method \"Sky.Excel.ExcelBook.TypeConvert\".", "pos": ["tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';"], "neg": ["more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);", "link refers to Url; well-known repository refers to MAX(Watchers);", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "average processed time = avg(Solution.ProcessedTime);", "solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "language refers to Lang;", "more forks refers to more people follow this repository;"]}} {"set": {"query": "What is the average processed time of the solution with a repository of 254 likes, 88 followers, and 254 watchers?", "pos": ["average processed time = AVG(ProcessedTime);"], "neg": ["highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId", "english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;", "format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "path of the solution refers to Path; solution refers to Solution.Id;", "repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;", "more forks refers to more people follow this repository;", "more watchers mean that this repository is more popular;", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository"]}} {"set": {"query": "How many solutions contain files found within the repository most people like?", "pos": ["more stars mean more people like this repository; most people like refers to max(Stars);"], "neg": ["more watchers mean that this repository is more popular;", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;", "solution refers to Solution.Id; Solution.Id = 35;", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "solution refers to Solution.Id; Solution.Id = 1 OR 2; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 1), SUM(Solution.Id = 2)), 100)), SUM(Solution.Id = 2);", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'", "en methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository"]}} {"set": {"query": "What is the repository number for the solution of method \"SCore.Poisson.ngtIndex\"?", "pos": ["repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019"], "neg": ["solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "more forks refers to more people follow this repository;", "solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));", "english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository", "more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;"]}} {"set": {"query": "Show the solution path for the method \"Mosa.Platform.x86.Instructions.IMul.EmitLegacy\"?", "pos": ["solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';"], "neg": ["english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;", "link refers to Url; well-known repository refers to MAX(Watchers);", "repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;", "more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;", "path of the solution refers to Path; solution refers to Solution.Id;", "solution path refers to Path;", "id of the solution refers to Solution.Id; repository has the most watchers refers to MAX(Watchers);", "solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "average time = avg(ProcessedTime)\uff1b", "solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);"]}} {"set": {"query": "How many solution paths are there inside the 2nd most popular repository?", "pos": ["more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);"], "neg": ["average processed time = avg(Solution.ProcessedTime);", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;", "solution path refers to Path;", "linearized sequenced of API calls refers to ApiCalls;", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "more stars mean more people like this repository; most people like refers to max(Stars);", "link refers to Url; well-known repository refers to MAX(Watchers);", "repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;", "path of the solution refers to Path; solution refers to Solution.Id;", "method refers to Name; solution refers to Solution.Id; Solution.Id = 1; solution needs to be compiled refers to WasCompiled = 0;"]}} {"set": {"query": "What is the id of the repository with the highest number of solution path?", "pos": ["highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId"], "neg": ["repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "solutions refers to Solution.Id; repository refers to Repository.Id;", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;", "id of the solution refers to Solution.Id; repository has the most watchers refers to MAX(Watchers);", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'", "solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);"]}} {"set": {"query": "How many methods with solutions with path 'maravillas_linq-to-delicious\\tasty.sln'?", "pos": ["solution refers to SolutionId;"], "neg": ["more forks refers to more people follow this repository;", "methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);", "linearized sequenced of API calls refers to ApiCalls;", "solution refers to Solution.Id; Solution.Id = 1;", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "solution id of the repository refers to solution.Id;", "solutions refers to Solution.Id; repository refers to Repository.Id;", "language refers to Lang;"]}} {"set": {"query": "Among the solutions that contain files within the repository needing the longest processed time to download, how many of them doesn't need to be\ncompiled if user wants to implement it?", "pos": ["longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b"], "neg": ["highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';", "repository URL refers to Url; repository Url with most solutions refers to MAX(COUNT(Solution.Id));", "repository of solution no. refers to Id", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "github address of repository refers to Url;", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));", "path of the solution refers to Path; solution refers to Solution.Id;"]}} {"set": {"query": "List 5 github address that the solutions can be implemented without the need of compilation.", "pos": ["github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;"], "neg": ["repository that received the most forks refers to MAX(Forks);", "solution refers to SolutionId;", "more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;", "repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "total processed time = AVG(ProcessedTime where MAX(COUNT(Forks))); repository with the most forks refers to MAX(COUNT(Forks));", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;"]}} {"set": {"query": "What is the average time needed for the solutions containing files within the repository whose url is \"https://github.com/jeffdik/tachy.git\" to be processd?", "pos": ["average time = avg(ProcessedTime)\uff1b"], "neg": ["more forks refers to more people follow this repository;", "solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';", "average processed time = AVG(ProcessedTime);", "english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "repository of solution no. refers to Id"]}} {"set": {"query": "What is the solution path for method number 3?", "pos": ["solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;"], "neg": ["average processed time = avg(Solution.ProcessedTime);", "highest processed time refers to max(ProcessedTime);", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "solution path refers to Path;", "more forks refers to more people follow this repository;", "more stars mean more people like this repository; most people like refers to max(Stars);", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';"]}} {"set": {"query": "What is the name of the solution path with the highest processed time?", "pos": ["highest processed time refers to max(ProcessedTime);"], "neg": ["more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "average processed time = avg(Solution.ProcessedTime);", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;"]}} {"set": {"query": "For the method which got the tokenized name as 'interp parser expr', what is the processed time for its solution?", "pos": ["tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;"], "neg": ["solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "average time = avg(ProcessedTime)\uff1b", "more stars mean more people like this repository; most people like refers to max(Stars);", "highest processed time refers to max(ProcessedTime);", "linearized sequenced of API calls refers to ApiCalls;", "tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "solution refers to SolutionId;", "solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;"]}} {"set": {"query": "How much is the processed time of the method whose tokenized name is \"about box1 dispose\"? Indicate the language of the method.", "pos": ["language refers to Lang;"], "neg": ["the time of sampling refers to SampledAt; 'maxild_playground\\Playground.sln' is the path of a solution", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository", "average processed time = avg(Solution.ProcessedTime);", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "solution refers to SolutionId;", "repository of solution no. refers to Id", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;", "repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId"]}} {"set": {"query": "For the method which got the tokenized name as 't jadwal entity get single mpic', what is the path time for its solution?", "pos": ["tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;"], "neg": ["repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "solution path refers to Path;", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "average time = avg(ProcessedTime)\uff1b", "more forks refers to more people follow this repository;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'"]}} {"set": {"query": "Which solution contains files within a more popular repository, the solution ID18 or solution ID19?", "pos": ["more watchers mean that this repository is more popular;"], "neg": ["solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "solution refers to Solution.Id; Solution.Id = 35;", "language refers to Lang;", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;", "format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "average time = avg(ProcessedTime)\uff1b", "repository that received the most forks refers to MAX(Forks);", "total processed time = AVG(ProcessedTime where MAX(COUNT(Forks))); repository with the most forks refers to MAX(COUNT(Forks));"]}} {"set": {"query": "Which repository has the longest amount of processed time of downloading? Indicate whether the solution paths in the repository can be implemented without needs of compilation.", "pos": ["longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;"], "neg": ["stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));", "link refers to Url; well-known repository refers to MAX(Watchers);", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "en methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "solution refers to Solution.Id; Solution.Id = 1;", "more forks refers to more people follow this repository;", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';"]}} {"set": {"query": "Provide the github address with the summary of method \"A test for Decompose\n\".", "pos": ["github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';"], "neg": ["format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "more watchers mean that this repository is more popular;", "highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId", "repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;", "total processed time = AVG(ProcessedTime where MAX(COUNT(Forks))); repository with the most forks refers to MAX(COUNT(Forks));", "highest processed time refers to max(ProcessedTime);", "solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';"]}} {"set": {"query": "In the \"https://github.com/wallerdev/htmlsharp.git\", give all the linearized sequenced of API calls.", "pos": ["linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository"], "neg": ["solution id of the repository refers to solution.Id;", "solution refers to Solution.Id; Solution.Id = 35;", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;", "solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "solution refers to Solution.Id; Solution.Id = 1;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "more forks refers to more people follow this repository;", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;", "tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;"]}} {"set": {"query": "Please provide the id of the respository that received the most forks among the respositories that receive 21 stars.", "pos": ["repository that received the most forks refers to MAX(Forks);"], "neg": ["longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "solution path refers to Path;", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "average processed time = AVG(ProcessedTime);", "solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "the time of sampling refers to SampledAt; 'maxild_playground\\Playground.sln' is the path of a solution", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "more watchers mean that this repository is more popular;"]}} {"set": {"query": "What is the repository id of the method with tokenized name \"crc parameters get hash code\"?", "pos": ["repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';"], "neg": ["format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;", "repository URL refers to Url; repository Url with most solutions refers to MAX(COUNT(Solution.Id));", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "solution path refers to Path;", "task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;"]}} {"set": {"query": "List all the path of solution from all the \"it\" lang code method.", "pos": ["path of the solution refers to Path; solution refers to Solution.Id;"], "neg": ["solution refers to SolutionId;", "solution path refers to Path;", "average processed time = avg(Solution.ProcessedTime);", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "more stars mean more people like this repository; most people like refers to max(Stars);", "repository of solution no. refers to Id"]}} {"set": {"query": "What is the language of method number 28 that can be found in the repository number 3?", "pos": ["language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;"], "neg": ["more forks refers to more people follow this repository;", "more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;", "tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "average time = avg(ProcessedTime)\uff1b", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "solution refers to Solution.Id; Solution.Id = 1;", "repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;"]}} {"set": {"query": "What is the percentage of respositories that receive more than 2,000 stars?", "pos": ["stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));"], "neg": ["id of the solution refers to Solution.Id; repository has the most watchers refers to MAX(Watchers);", "methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "solution refers to Solution.Id; Solution.Id = 1;", "format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;", "repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "more stars mean more people like this repository; most people like refers to max(Stars);", "solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';"]}} {"set": {"query": "How much is the processed time of downloading the most popular repository?", "pos": ["more watchers mean that this repository is more popular;"], "neg": ["more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "en methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;", "solution refers to Solution.Id; Solution.Id = 35;", "language refers to Lang;", "solution path refers to Path;", "solution id of the repository refers to solution.Id;", "highest processed time refers to max(ProcessedTime);", "solution refers to Solution.Id; Solution.Id = 1;", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "followers refers to Forks; percentage = divide(SUBTRACT(Forks(Solution.ID = 18), Forks(Solution.ID = 19)), Forks(Solution.ID = 19))*100%"]}} {"set": {"query": "For the method has the summary of \"Refetches the Entity from the persistent storage. Refetch is used to re-load an Entity which is marked \"Out-of-sync\", due to a save action. Refetching an empty Entity has no effect.\", what is its solution path?", "pos": ["solution path refers to Path;"], "neg": ["comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "solutions refers to Solution.Id; repository refers to Repository.Id;", "task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;", "tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "language refers to Lang;", "solution refers to Solution.Id; Solution.Id = 1;", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;"]}} {"set": {"query": "How many methods does solution 1 have? And please tell me if solution 1 needs to be compiled.", "pos": ["method refers to Name; solution refers to Solution.Id; Solution.Id = 1; solution needs to be compiled refers to WasCompiled = 0;"], "neg": ["linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "solution path refers to Path;", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "id of the solution refers to Solution.Id; repository has the most watchers refers to MAX(Watchers);", "followers refers to Forks; percentage = divide(SUBTRACT(Forks(Solution.ID = 18), Forks(Solution.ID = 19)), Forks(Solution.ID = 19))*100%", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';"]}} {"set": {"query": "What is the average processed time of the solution paths inside the \"https://github.com/zphingphong/DiscardCustomerApp.git\"?", "pos": ["average processed time = avg(Solution.ProcessedTime);"], "neg": ["tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "link refers to Url; well-known repository refers to MAX(Watchers);", "average processed time = AVG(ProcessedTime);", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "more watchers mean that this repository is more popular;", "solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';", "the time of sampling refers to SampledAt; 'maxild_playground\\Playground.sln' is the path of a solution"]}} {"set": {"query": "Give the repository Url of the one with most solutions.", "pos": ["repository URL refers to Url; repository Url with most solutions refers to MAX(COUNT(Solution.Id));"], "neg": ["Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "solution path refers to Path;", "more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "path of the solution refers to Path; solution refers to Solution.Id;", "solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';", "total processed time = AVG(ProcessedTime where MAX(COUNT(Forks))); repository with the most forks refers to MAX(COUNT(Forks));", "average time = avg(ProcessedTime)\uff1b", "solution refers to SolutionId;"]}} {"set": {"query": "What is the url of solution 1?", "pos": ["solution refers to Solution.Id; Solution.Id = 1;"], "neg": ["repository URL refers to Url; repository Url with most solutions refers to MAX(COUNT(Solution.Id));", "more watchers mean that this repository is more popular;", "solutions refers to Solution.Id; repository refers to Repository.Id;", "id of the solution refers to Solution.Id; repository has the most watchers refers to MAX(Watchers);", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;", "average time = avg(ProcessedTime)\uff1b", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;", "linearized sequenced of API calls refers to ApiCalls;", "total processed time = AVG(ProcessedTime where MAX(COUNT(Forks))); repository with the most forks refers to MAX(COUNT(Forks));"]}} {"set": {"query": "What is the github address of the solution path \"joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln\"?", "pos": ["github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';"], "neg": ["en methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;", "github address of repository refers to Url;", "followers refers to Forks; percentage = divide(SUBTRACT(Forks(Solution.ID = 18), Forks(Solution.ID = 19)), Forks(Solution.ID = 19))*100%", "stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));", "task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository", "the time of sampling refers to SampledAt; 'maxild_playground\\Playground.sln' is the path of a solution", "more watchers mean that this repository is more popular;"]}} {"set": {"query": "What is the most liked repository? Indicate its github address and the amount of stars it has received.", "pos": ["more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;"], "neg": ["methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "language refers to Lang;", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;", "solutions refers to Solution.Id; repository refers to Repository.Id;", "solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "average processed time = avg(Solution.ProcessedTime);"]}} {"set": {"query": "What are the \"en\" methods with solutions from repository \"1093\"", "pos": ["en methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;"], "neg": ["repository of solution no. refers to Id", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;", "average time = avg(ProcessedTime)\uff1b", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "solution id of the repository refers to solution.Id;", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "path of the solution refers to Path; solution refers to Solution.Id;", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';"]}} {"set": {"query": "Please provide a link to the most well-known repository's Github address.", "pos": ["link refers to Url; well-known repository refers to MAX(Watchers);"], "neg": ["repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "language refers to Lang;", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "method refers to Name; solution refers to Solution.Id; Solution.Id = 1; solution needs to be compiled refers to WasCompiled = 0;", "solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "repository URL refers to Url; repository Url with most solutions refers to MAX(COUNT(Solution.Id));", "more watchers mean that this repository is more popular;", "tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;"]}} {"set": {"query": "Please provide the solution id of the respository among the respository that receive 238 forks.", "pos": ["solution id of the repository refers to solution.Id;"], "neg": ["repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;", "average processed time = AVG(ProcessedTime);", "language refers to Lang;", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "github address of repository refers to Url;", "tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'", "solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "solution refers to Solution.Id; Solution.Id = 1;", "followers refers to Forks; percentage = divide(SUBTRACT(Forks(Solution.ID = 18), Forks(Solution.ID = 19)), Forks(Solution.ID = 19))*100%"]}} {"set": {"query": "What is the task of the method that is in the Czech language?", "pos": ["method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'"], "neg": ["highest processed time refers to max(ProcessedTime);", "solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "solution refers to SolutionId;", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';", "solution refers to Solution.Id; Solution.Id = 35;"]}} {"set": {"query": "What is the task of method number 2?", "pos": ["task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;"], "neg": ["solution refers to SolutionId;", "link refers to Url; well-known repository refers to MAX(Watchers);", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "average time = avg(ProcessedTime)\uff1b", "solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "more forks refers to more people follow this repository;", "solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "solution path refers to Path;", "highest processed time refers to max(ProcessedTime);", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b"]}} {"set": {"query": "What is the percentage of solutions for the method that needs to be compiled in the English methods?", "pos": ["method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);"], "neg": ["followers refers to Forks; percentage = divide(SUBTRACT(Forks(Solution.ID = 18), Forks(Solution.ID = 19)), Forks(Solution.ID = 19))*100%", "language refers to Lang;", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "method refers to Name; solution refers to Solution.Id; Solution.Id = 1; solution needs to be compiled refers to WasCompiled = 0;", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;", "tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'", "repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;"]}} {"set": {"query": "In \"maxild_playground\\Playground.sln\", what is the time of sampling for the method \"GitHubRepo.Cli.GitHubClientWrapper.GetReleases\"?", "pos": ["the time of sampling refers to SampledAt; 'maxild_playground\\Playground.sln' is the path of a solution"], "neg": ["link refers to Url; well-known repository refers to MAX(Watchers);", "solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "id of the solution refers to Solution.Id; repository has the most watchers refers to MAX(Watchers);", "highest processed time refers to max(ProcessedTime);", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId"]}} {"set": {"query": "What is the percentage of the methods' solutions that need to be compiled among the methods whose comments is XML format?", "pos": ["comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);"], "neg": ["solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;", "average time = avg(ProcessedTime)\uff1b", "more forks refers to more people follow this repository;", "method refers to Name; solution refers to Solution.Id; Solution.Id = 1; solution needs to be compiled refers to WasCompiled = 0;", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "solution refers to Solution.Id; Solution.Id = 1;", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;"]}} {"set": {"query": "For the repository which got '189' Stars, how many solutions which needs to be compiled does it contain?", "pos": ["repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;"], "neg": ["link refers to Url; well-known repository refers to MAX(Watchers);", "solution path refers to Path;", "path of the solution refers to Path; solution refers to Solution.Id;", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository", "methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';", "the time of sampling refers to SampledAt; 'maxild_playground\\Playground.sln' is the path of a solution", "repository of solution no. refers to Id", "repository URL refers to Url; repository Url with most solutions refers to MAX(COUNT(Solution.Id));", "highest processed time refers to max(ProcessedTime);"]}} {"set": {"query": "How many more stars in percentage are there for the repository of solution \"1\" than solution \"2\"?", "pos": ["solution refers to Solution.Id; Solution.Id = 1 OR 2; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 1), SUM(Solution.Id = 2)), 100)), SUM(Solution.Id = 2);"], "neg": ["tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';", "repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId", "more forks refers to more people follow this repository;", "method refers to Name; solution refers to Solution.Id; Solution.Id = 1; solution needs to be compiled refers to WasCompiled = 0;", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;"]}} {"set": {"query": "What is the linearized sequenced of API calls of the method whose solution path is \"mauriciodeamorim_tdd.encontro2\\Tdd.Encontro2.sln\"?", "pos": ["linearized sequenced of API calls refers to ApiCalls;"], "neg": ["tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "solutions refers to Solution.Id; repository refers to Repository.Id;", "more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;", "more forks refers to more people follow this repository;", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "average time = avg(ProcessedTime)\uff1b", "the time of sampling refers to SampledAt; 'maxild_playground\\Playground.sln' is the path of a solution", "more watchers mean that this repository is more popular;"]}} {"set": {"query": "Give the repository ID for the solution of method \"Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal\".", "pos": ["repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';"], "neg": ["name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';", "stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));", "more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "solution id of the repository refers to solution.Id;", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';", "solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';", "tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;"]}} {"set": {"query": "Please provide the path of solution of method whose full comment is Feeds data into the parser.", "pos": ["path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';"], "neg": ["repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;", "repository that received the most forks refers to MAX(Forks);", "more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "the time of sampling refers to SampledAt; 'maxild_playground\\Playground.sln' is the path of a solution", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';"]}} {"set": {"query": "List all the solutions of repositories with the Forks higher than half of the watchers.", "pos": ["solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;"], "neg": ["english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;", "solution refers to Solution.Id; Solution.Id = 35;", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "average processed time = AVG(ProcessedTime);", "en methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;", "solution id of the repository refers to solution.Id;", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "linearized sequenced of API calls refers to ApiCalls;"]}} {"set": {"query": "What is the comment format of method number 50 with the solution path \"managedfusion_managedfusion\\ManagedFusion.sln\"?", "pos": ["comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';"], "neg": ["repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "average processed time = AVG(ProcessedTime);", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;", "solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "github address of repository refers to Url;", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "total processed time = AVG(ProcessedTime where MAX(COUNT(Forks))); repository with the most forks refers to MAX(COUNT(Forks));", "language refers to Lang;"]}} {"set": {"query": "What is the task of the method whose tokenized name is \"online median filter test median window filling\"?", "pos": ["tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'"], "neg": ["longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "solution refers to Solution.Id; Solution.Id = 1 OR 2; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 1), SUM(Solution.Id = 2)), 100)), SUM(Solution.Id = 2);", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "tokenized name refers to NameTokenized; NameTokenized = 't jadwal entity get single mpic'; path time for its solution refers to ProcessedTime;", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "solution path refers to Path;", "average processed time = AVG(ProcessedTime);", "solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);"]}} {"set": {"query": "What is the solution's path of method \"HtmlSharp.HtmlParser.Feed\"?", "pos": ["solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';"], "neg": ["more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;", "methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "github address of repository refers to Url;", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';"]}} {"set": {"query": "Among the repositories whose number of stars received are between 6,000 to 9,000, which repository has the highest number of solution paths and many of those solution paths needs to be compiled if user wants to implement it?", "pos": ["Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;"], "neg": ["solution path refers to Path;", "solution id of the repository refers to solution.Id;", "solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository", "more forks refers to more people follow this repository;", "format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';"]}} {"set": {"query": "How many more followers in percentage are there for the repository used by solution ID 18 than solution ID19?", "pos": ["followers refers to Forks; percentage = divide(SUBTRACT(Forks(Solution.ID = 18), Forks(Solution.ID = 19)), Forks(Solution.ID = 19))*100%"], "neg": ["english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository", "highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId", "solution path refers to Path;", "solution refers to Solution.Id; Solution.Id = 35;", "more stars mean more people like this repository; most people like refers to max(Stars);", "repository that received the most forks refers to MAX(Forks);", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;"]}} {"set": {"query": "How many methods in the same repository share a tokenized name that begins with \"query language...\"?", "pos": ["methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';"], "neg": ["solution path refers to Path;", "repository of solution no. refers to Id", "path of the solution refers to Path; solution refers to Solution.Id;", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "more watchers mean that this repository is more popular;", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;", "solution refers to Solution.Id; Solution.Id = 1;", "solution refers to SolutionId;"]}} {"set": {"query": "What is solution 1's processing time and how many methods have been using this solution?", "pos": ["solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;"], "neg": ["longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "average processed time = avg(Solution.ProcessedTime);", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';", "stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);"]}} {"set": {"query": "How many percent more of the watchers for the repository of solution No.83855 than No.1502?", "pos": ["solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);"], "neg": ["method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "path of the solution refers to Path; solution refers to Solution.Id;", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));", "solution refers to Solution.Id; Solution.Id = 1 OR 2; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 1), SUM(Solution.Id = 2)), 100)), SUM(Solution.Id = 2);"]}} {"set": {"query": "Please list the names of methods with the solution path \"wallerdev_htmlsharp\\HtmlSharp.sln\".", "pos": ["name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';"], "neg": ["tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'", "solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';", "path of the solution refers to Path; solution refers to Solution.Id;", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "solution refers to Solution.Id; Solution.Id = 1 OR 2; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 1), SUM(Solution.Id = 2)), 100)), SUM(Solution.Id = 2);", "more stars mean more people like this repository; most people like refers to max(Stars);", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;"]}} {"set": {"query": "How many solution path does the repository with 111 stars, 58 forks, and 111 watchers?", "pos": ["solution path refers to Path;"], "neg": ["solution refers to SolutionId;", "tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by \".\"; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'", "average processed time = avg(Solution.ProcessedTime);", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "repository number refers to RepoId; method refers to Name; Name = \u2018SCore.Poisson.ngtIndex\u2019", "average time = avg(ProcessedTime)\uff1b", "format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';"]}} {"set": {"query": "How many followers do the most followed repository on Github have? Give the github address of the repository.", "pos": ["more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;"], "neg": ["solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "more watchers mean that this repository is more popular;", "repository of solution no. refers to Id", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;", "solution refers to Solution.Id; Solution.Id = 35;", "followers refers to Forks; percentage = divide(SUBTRACT(Forks(Solution.ID = 18), Forks(Solution.ID = 19)), Forks(Solution.ID = 19))*100%", "solution path refers to Path;", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;"]}} {"set": {"query": "What is the github address of the \"nofear_Mara\\Mara.sln\" solution path?", "pos": ["github address of repository refers to Url;"], "neg": ["comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "solution path refers to Path;", "language refers to Lang;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;", "total processed time = AVG(ProcessedTime where MAX(COUNT(Forks))); repository with the most forks refers to MAX(COUNT(Forks));", "tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;"]}} {"set": {"query": "What is the percentage of Forks to Stars of repository for solution \"104086\"?", "pos": ["solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);"], "neg": ["solution refers to Solution.Id; Solution.Id = 35;", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "method refers to Name; solution refers to Solution.Id; Solution.Id = 1; solution needs to be compiled refers to WasCompiled = 0;", "more watchers mean that this repository is more popular;", "methods refers to Name; tokenized name refers to NameTokenized; NameTokenized LIKE 'query language%';", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "github address of repository refers to Url;"]}} {"set": {"query": "Please provide the number of forks that the repository of the solution 35 have.", "pos": ["solution refers to Solution.Id; Solution.Id = 35;"], "neg": ["total processed time = AVG(ProcessedTime where MAX(COUNT(Forks))); repository with the most forks refers to MAX(COUNT(Forks));", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';", "linearized sequenced of API calls refers to ApiCalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;", "solution No. refers to Solution.Id; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 83855), SUM(Solution.Id = 1502)), 100)), SUM(Soltution.Id = 1502);", "github address refers to Url; solution can be implemented without the need of compliation refers to WasCompiled = 1;", "linearized sequenced of API calls refers to ApiCalls;"]}} {"set": {"query": "How many stars does the repository of the solution No. 45997 have?", "pos": ["repository of solution no. refers to Id"], "neg": ["average processed time = avg(Solution.ProcessedTime);", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';", "solutions refers to Solution.Id; repository refers to Repository.Id;", "repository refers to Repository.Id; solution needs to be compiled refers to WasCompiled = 0;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;", "more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;", "more watchers mean that this repository is more popular;", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';"]}} {"set": {"query": "Please provide the id of the solution whose repository has the most watchers.", "pos": ["id of the solution refers to Solution.Id; repository has the most watchers refers to MAX(Watchers);"], "neg": ["task of the method refers to the second part of the Name after the \".\"; method number refers to Method_100k.Id; Method_100k.Id = 2;", "more watchers mean that this repository is more popular;", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId", "solution refers to SolutionId;", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "average processed time = avg(Solution.ProcessedTime);", "language refers to Lang;", "more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';"]}} {"set": {"query": "Give the number of solutions that the repository which has 3060 Stars contains.", "pos": ["solutions refers to Solution.Id; repository refers to Repository.Id;"], "neg": ["longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId", "more forks refers to more people follow this repository;", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "solution path refers to Path; method refers to Name; Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';", "language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "solution refers to SolutionId;", "linearized sequenced of API calls refers to ApiCalls;", "solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';"]}} {"set": {"query": "What the percentage of the english methods among the methods whose comments is XML format?", "pos": ["english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;"], "neg": ["more stars mean more people like this repository; most people like refers to max(Stars);", "solution path refers to Path;", "language refers to Lang;", "solution path refers to Path;", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "solutions refers to Solution.Id; repository refers to Repository.Id;", "id of the solution refers to Solution.Id; repository has the most watchers refers to MAX(Watchers);", "github address of repository refers to Url;", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;", "repository id refers to RepoId; tokenized name refers to NameTokenized; NameTokenized = 'crc parameters get hash code';"]}} {"set": {"query": "How many solutions whose repository's stars are a third more than forks?", "pos": ["solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;"], "neg": ["language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "solution id of the repository refers to solution.Id;", "method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "more watchers mean that this repository is more popular; most popular repository refers to max(Watchers);", "more stars mean more people like this repository; most people like refers to max(Stars);", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'"]}} {"set": {"query": "What format does the method number 8's comment have?", "pos": ["format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;"], "neg": ["en methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;", "highest processed time refers to max(ProcessedTime);", "tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';", "link refers to Url; well-known repository refers to MAX(Watchers);", "method refers to Name; task of the method refers to the second part of the Name after the \".\"; Czech language refers to Lang = 'cs'", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "solution path refers to Path;", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "solution refers to Solution.Id; Solution.Id = 35;", "more forks refers to more people follow this repository;"]}} {"set": {"query": "Please list the IDs of the solutions that contain files within the top 3 followed repositories.", "pos": ["more forks refers to more people follow this repository;"], "neg": ["comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "more forks refers to more people follow this repository; most followed repository refers to max(Forks);\u00a0 the github address of the repository refers to Url;", "tokenized name refers to NameTokenized; NameTokenized = 'interp parser expr'; processed time for its solution refers to ProcessedTime;", "Stars between 6,000 to 9,000; highest number of solution paths refers to max(count(Path)); needs to be compiled if user wants to implement it refers to WasCompiled = 0;", "solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';", "solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;", "solution refers to SolutionId;", "solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;", "solution refers to Solution.Id; Solution.Id = 35;", "name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\\HtmlSharp.sln';"]}} {"set": {"query": "What is the total processed time of all solutions from the repository with the most forks?", "pos": ["total processed time = AVG(ProcessedTime where MAX(COUNT(Forks))); repository with the most forks refers to MAX(COUNT(Forks));"], "neg": ["language refers to Lang;", "en methods refers to lang = 'en'; solution refers to Solution.Id; repository refers to RepoId; RepoId = 1093;", "github address refers to Url; solution path refers to Path; Path = 'joeyrobert_bloomfilter\\DataTypes.BloomFilter.sln';", "github address refers to Url; summary of method refers to Summary; Summary = 'A test for Decompose';", "path of the solution refers to Path; solution refers to Solution.Id;", "repository ID refers to RepoID; method refers to Name; Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';", "longest processed time refers to max(Solution.ProcessedTime); needs to be compiled if user wants to implement it refers to WasCompiled = 0\uff1b", "followers refers to Forks; percentage = divide(SUBTRACT(Forks(Solution.ID = 18), Forks(Solution.ID = 19)), Forks(Solution.ID = 19))*100%", "comment format refers to CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 50; solution path refers to Path; Path = 'managedfusion_managedfusion\\ManagedFusion.sln';", "path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';"]}} {"set": {"query": "When did Bitcoin reach its highest price on 2013/4/29?", "pos": ["time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'"], "neg": ["2016 refers to historical date where year(date) = 2016", "cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "the highest price refers to max(price)", "average price more than $1000 refers to AVG(price)>1000", "when refers to date; most valuable refers to max(market_cap)", "not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5"]}} {"set": {"query": "Name the coins that were not opened on May 2013.", "pos": ["not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5"], "neg": ["the highest percentage price changed in 24 hours refers to max(percent_change_24h)", "the last date refers to max(date); inactive coins refers to status = 'inactive'", "price increased refers to percent_change_7d>0; decreased refers percent_change_7d<0; on 2013/5/5 refers to date = '2013-05-05'", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'", "creates the most total value in the past 24 hours refers to max(volume_24h)", "the highest price refers to max(price)", "not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013"]}} {"set": {"query": "List the names and symbols of the coins that were added on June 14, 2013.", "pos": ["added on June 14, 2013 refers to date_added like '2013-06-14%'"], "neg": ["when refers to date; most valuable refers to max(market_cap)", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "2016 refers to historical date where year(date) = 2016", "highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018", "the greatest decline in percent change in 1 hour refers to max(percent_change_1h)", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "the highest percentage price changed in 24 hours refers to max(percent_change_24h)", "lowest price refers to low; best time refers to date with the low;", "when refers to date; not opened refers to open IS NULL"]}} {"set": {"query": "What was the price of 1 Bitcoin in 2016?", "pos": ["2016 refers to historical date where year(date) = 2016"], "neg": ["the greatest decline in percent change in 1 hour refers to max(percent_change_1h)", "the last date refers to max(date); inactive coins refers to status = 'inactive'", "the highest percentage price changed in 24 hours refers to max(percent_change_24h)", "cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'", "when refers to date; most valuable refers to max(market_cap)", "the highest price refers to max(price)", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "creates the most total value in the past 24 hours refers to max(volume_24h)", "lowest price refers to low; best time refers to date with the low;"]}} {"set": {"query": "What is the name of the coin with the highest price?", "pos": ["the highest price refers to max(price)"], "neg": ["not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'", "creates the most total value in the past 24 hours refers to max(volume_24h)", "not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "average price = divide(sum(price), count(name)); on April 28, 2013 refers to date = '2013-04-28'", "average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'", "2016 refers to historical date where year(date) = 2016", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'"]}} {"set": {"query": "What was the percentage of the Bitcoins verifiably burned until 2018/4/28?", "pos": ["the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'"], "neg": ["not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "the greatest decline in percent change in 1 hour refers to max(percent_change_1h)", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "average price more than $1000 refers to AVG(price)>1000", "creates the most total value in the past 24 hours refers to max(volume_24h)", "price increased refers to percent_change_7d>0; decreased refers percent_change_7d<0; on 2013/5/5 refers to date = '2013-05-05'", "average price = divide(sum(price), count(name)); on April 28, 2013 refers to date = '2013-04-28'", "added on June 14, 2013 refers to date_added like '2013-06-14%'", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'"]}} {"set": {"query": "What is the name of the coin that creates the most total value in the past 24 hours?", "pos": ["creates the most total value in the past 24 hours refers to max(volume_24h)"], "neg": ["percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "average price more than $1000 refers to AVG(price)>1000", "when refers to date; not opened refers to open IS NULL", "average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013", "highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018", "the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "when refers to date; most valuable refers to max(market_cap)"]}} {"set": {"query": "When is the best time to purchase Bitcoin?", "pos": ["lowest price refers to low; best time refers to date with the low;"], "neg": ["time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018", "the last date refers to max(date); inactive coins refers to status = 'inactive'", "the highest price refers to max(price)", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "average price = divide(sum(price), count(name)); on April 28, 2013 refers to date = '2013-04-28'"]}} {"set": {"query": "What's the percentage of coins that is higher than the price 1 hour ago in May 29,2013? List the names of these coins.", "pos": ["percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'"], "neg": ["average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "added on June 14, 2013 refers to date_added like '2013-06-14%'", "the highest price refers to max(price)", "when refers to date; most valuable refers to max(market_cap)", "not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013", "when refers to date; not opened refers to open IS NULL", "2016 refers to historical date where year(date) = 2016"]}} {"set": {"query": "Had Bitcoin's price increased or decreased on 2013/5/5 compared with the price 7 days before?", "pos": ["price increased refers to percent_change_7d>0; decreased refers percent_change_7d<0; on 2013/5/5 refers to date = '2013-05-05'"], "neg": ["average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'", "2016 refers to historical date where year(date) = 2016", "the highest price refers to max(price)", "the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'", "when refers to date; most valuable refers to max(market_cap)", "percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'"]}} {"set": {"query": "Name the coin that have higher than average percentage price changed from the previous 24 hours for transaction on 2013/6/22.", "pos": ["average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'"], "neg": ["when refers to date; not opened refers to open IS NULL", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "lowest price refers to low; best time refers to date with the low;", "not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'", "the greatest decline in percent change in 1 hour refers to max(percent_change_1h)", "percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'"]}} {"set": {"query": "List all the inactive coins and state the last date of its transaction?", "pos": ["the last date refers to max(date); inactive coins refers to status = 'inactive'"], "neg": ["when refers to date; most valuable refers to max(market_cap)", "average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013", "2016 refers to historical date where year(date) = 2016", "not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'", "creates the most total value in the past 24 hours refers to max(volume_24h)", "added on June 14, 2013 refers to date_added like '2013-06-14%'", "price increased refers to percent_change_7d>0; decreased refers percent_change_7d<0; on 2013/5/5 refers to date = '2013-05-05'", "the highest percentage price changed in 24 hours refers to max(percent_change_24h)", "percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'"]}} {"set": {"query": "State the transaction date whereby DigixDAO was transacted at the hightest price.", "pos": ["the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'"], "neg": ["the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "average price more than $1000 refers to AVG(price)>1000", "not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'", "the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "lowest price refers to low; best time refers to date with the low;", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "creates the most total value in the past 24 hours refers to max(volume_24h)", "2016 refers to historical date where year(date) = 2016"]}} {"set": {"query": "What was the average price of a Bitcoin in the year 2013?", "pos": ["average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013"], "neg": ["percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018", "when refers to date; not opened refers to open IS NULL", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "when refers to date; most valuable refers to max(market_cap)", "the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "added on June 14, 2013 refers to date_added like '2013-06-14%'"]}} {"set": {"query": "Which crytocurrency was not opened on 2013/5/3?", "pos": ["not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'"], "neg": ["2016 refers to historical date where year(date) = 2016", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'", "not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "lowest price refers to low; best time refers to date with the low;", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'"]}} {"set": {"query": "When was Lebowskis not opened?", "pos": ["when refers to date; not opened refers to open IS NULL"], "neg": ["when refers to date; most valuable refers to max(market_cap)", "lowest price refers to low; best time refers to date with the low;", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'", "not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'", "cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "price increased refers to percent_change_7d>0; decreased refers percent_change_7d<0; on 2013/5/5 refers to date = '2013-05-05'"]}} {"set": {"query": "For all coins with average price more than $1000. State the current status of the coin.", "pos": ["average price more than $1000 refers to AVG(price)>1000"], "neg": ["average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'", "the highest price refers to max(price)", "the highest percentage price changed in 24 hours refers to max(percent_change_24h)", "percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "lowest price refers to low; best time refers to date with the low;", "cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "added on June 14, 2013 refers to date_added like '2013-06-14%'"]}} {"set": {"query": "What was the max profit a user can make on Bitcoin on 2013/4/28?", "pos": ["the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'"], "neg": ["not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'", "when refers to date; most valuable refers to max(market_cap)", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'", "cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'", "average price more than $1000 refers to AVG(price)>1000", "when refers to date; not opened refers to open IS NULL", "the highest price refers to max(price)", "creates the most total value in the past 24 hours refers to max(volume_24h)", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018"]}} {"set": {"query": "Name the coin that has the highest market capitalization for all transactions in 2018.", "pos": ["highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018"], "neg": ["average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "the greatest decline in percent change in 1 hour refers to max(percent_change_1h)", "not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "2016 refers to historical date where year(date) = 2016", "percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "the last date refers to max(date); inactive coins refers to status = 'inactive'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'"]}} {"set": {"query": "What was the number of Bitcoins verifiably burned until 2013/4/28?", "pos": ["the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'"], "neg": ["percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'", "lowest price refers to low; best time refers to date with the low;", "creates the most total value in the past 24 hours refers to max(volume_24h)", "average price = divide(sum(price), count(name)); on April 28, 2013 refers to date = '2013-04-28'", "the highest price refers to max(price)", "when refers to date; most valuable refers to max(market_cap)", "the greatest decline in percent change in 1 hour refers to max(percent_change_1h)", "added on June 14, 2013 refers to date_added like '2013-06-14%'", "not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'"]}} {"set": {"query": "Name the coin and date of transactions with the greatest decline in percent change in 1 hour.", "pos": ["the greatest decline in percent change in 1 hour refers to max(percent_change_1h)"], "neg": ["not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "the highest price refers to max(price)", "the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "when refers to date; not opened refers to open IS NULL", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "the last date refers to max(date); inactive coins refers to status = 'inactive'", "the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'", "average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'"]}} {"set": {"query": "What is the average monthly circulating supply for Frozen in 2014.", "pos": ["average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'"], "neg": ["cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'", "the greatest decline in percent change in 1 hour refers to max(percent_change_1h)", "highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018", "not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'", "the highest price refers to max(price)", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'", "average price = divide(sum(price), count(name)); on April 28, 2013 refers to date = '2013-04-28'"]}} {"set": {"query": "List the names of the top five coins traded on January 1, 2014.", "pos": ["the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'"], "neg": ["percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'", "not opened refers to open IS NULL; on May 2013 refers to year(date) = 2019 AND month(date) = 5", "added on June 14, 2013 refers to date_added like '2013-06-14%'", "the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'", "average price = divide(sum(price), count(name)); on April 28, 2013 refers to date = '2013-04-28'", "average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'"]}} {"set": {"query": "List the names of coins that cannot be traded in 2014.", "pos": ["cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'"], "neg": ["in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "when refers to date; most valuable refers to max(market_cap)", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "average price more than $1000 refers to AVG(price)>1000", "lowest price refers to low; best time refers to date with the low;", "the number of Bitcoins verifiably burned = max_supply - total_supply; 2013/4/28 refers to date = '2013-04-28'", "highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018", "not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'"]}} {"set": {"query": "Name the coin with the highest percentage price changed in 24 hours. State the transaction date and price.", "pos": ["the highest percentage price changed in 24 hours refers to max(percent_change_24h)"], "neg": ["lowest price refers to low; best time refers to date with the low;", "average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'", "when refers to date; most valuable refers to max(market_cap)", "added on June 14, 2013 refers to date_added like '2013-06-14%'", "not opened refers to open IS NULL; on 2013/5/3 refers to date = '2013-05-03'", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013", "cannot be tracked refers to status = 'untracked'; in 2014 refers to year(date_added) = '2014'", "highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018", "average price more than $1000 refers to AVG(price)>1000"]}} {"set": {"query": "List the names of the coins above the average price on April 28, 2013.", "pos": ["average price = divide(sum(price), count(name)); on April 28, 2013 refers to date = '2013-04-28'"], "neg": ["average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013", "highest market capitalization refers to max(market_cap); in 2018 refers to year(date) = 2018", "average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'", "the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'", "2016 refers to historical date where year(date) = 2016", "percentage that is higher than the price 1 hour ago refers to percent_change_1h>0; in May 29,2013 refers to date = '2013-05-29'", "the highest price refers to max(price)", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "lowest price refers to low; best time refers to date with the low;"]}} {"set": {"query": "How many coins were added in May 2013? Please list the names of coins.", "pos": ["in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5"], "neg": ["the greatest decline in percent change in 1 hour refers to max(percent_change_1h)", "average price refers SUM(price)/COUNT(named = 'Bitcoin'); in the year 2013 refers to year(date) = 2013", "the highest percentage price changed in 24 hours refers to max(percent_change_24h)", "the top five coins refers to cmc_rank< = 5; on January 1, 2014 refers to date = '2014-01-01'", "average price = divide(sum(price), count(name)); on April 28, 2013 refers to date = '2013-04-28'", "the last date refers to max(date); inactive coins refers to status = 'inactive'", "when refers to date; most valuable refers to max(market_cap)", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "average price more than $1000 refers to AVG(price)>1000", "average percentage price changed from the previous 24 hours refers to AVG(percent_change_24h); on 15/5/2013 refers to DATE = '2013-04-15'"]}} {"set": {"query": "When is Devcoin most valuable in the market?", "pos": ["when refers to date; most valuable refers to max(market_cap)"], "neg": ["added on June 14, 2013 refers to date_added like '2013-06-14%'", "the percentage of the Bitcoins verifiably burned = divide(subtract(SUM(max_supply), SUM(total_supply)),SUM(total_supply))*100%; until 2013/4/28 refers to date<'2013-04-08'", "lowest price refers to low; best time refers to date with the low;", "the highest price refers to max(price); DigixDAO refers to name = 'DigixDAO'", "time that a coin reaches its highest price refers to time_high; on 2013/4/29 refers to date = '2013-04-29'", "the max profit = subtract(high, low); on 2013/4/28 refers to date = '2013-04-28'", "average monthly circulating supply = AVG(circulating_supply); in 2017 refers to date BETWEEN '2017-01-01' AND '2017-12-31'", "in May 2013 refers to year(date_added) = 2013 and month(date_added) = 5", "average price = divide(sum(price), count(name)); on April 28, 2013 refers to date = '2013-04-28'", "average price more than $1000 refers to AVG(price)>1000"]}} {"set": {"query": "For the state which has the 113 2-year public schools, tell the number of graduated Asian students who seeks another type of degree or certificate at a 2-year institution in 2013.", "pos": ["schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;"], "neg": ["4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "institutes refers to chronname; American Indian refers to race = 'Ai'; most number of American Indian refers to MAX(COUNT(race = 'Ai')); in 2007 refers to year = '2007';", "highest number of students refers to student_count; all students refer to race = 'X'.", "public refers to control = 'Public'; school_count < 20;", "amount of percentage = SUM(grad_150 WHERE gender = 'F') as female; percentage = SUM(grad_150 WHERE gender = 'M') as male; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; graduated within 150 percent of normal/expected time refers to grad_150; female refers to gender = 'F'; White refers to race = 'w'; male refers to gender = 'M';", "2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "Mercer University refers to chronname = 'Mercer University';"]}} {"set": {"query": "How many students graduated from Central Alabama Community College in 2011 in total?", "pos": ["Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;"], "neg": ["Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';", "median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "name of the institutes refers to chronname; website refers to site; graduate cohort refers to grad_cohort; in 2011 refers to year = '2011';", "4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;"]}} {"set": {"query": "Tell the number of 4-year private not-for-profit schools in the home state of \"Brevard Community College\".", "pos": ["4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';"], "neg": ["private and not for profit refers to control = 'Private not-for-profit';", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;", "biggest cohort size refers to MAX(cohort_size); cohort = '4y bach' means bachelor's or equivalent-seeking cohort at 4-year institutions; cohort = '4y other' means students seeking another type of degree or certificate at a 4-year institution; cohort = '2y all' means degree-seeking students at 2-year institutions;", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';", "post name refers to state_post;"]}} {"set": {"query": "Among the states with a public school count of 20 and below, list their race.", "pos": ["public refers to control = 'Public'; school_count < 20;"], "neg": ["Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;", "median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "amount of percentage = SUM(grad_150 WHERE gender = 'F') as female; percentage = SUM(grad_150 WHERE gender = 'M') as male; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; graduated within 150 percent of normal/expected time refers to grad_150; female refers to gender = 'F'; White refers to race = 'w'; male refers to gender = 'M';", "male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;", "recent year of data release refers to newest year;", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';"]}} {"set": {"query": "List the all the institutes from the state with the most number of American Indian in 2007.", "pos": ["institutes refers to chronname; American Indian refers to race = 'Ai'; most number of American Indian refers to MAX(COUNT(race = 'Ai')); in 2007 refers to year = '2007';"], "neg": ["website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "post name refers to state_post;", "amount of percentage = SUM(grad_150 WHERE gender = 'F') as female; percentage = SUM(grad_150 WHERE gender = 'M') as male; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; graduated within 150 percent of normal/expected time refers to grad_150; female refers to gender = 'F'; White refers to race = 'w'; male refers to gender = 'M';", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;"]}} {"set": {"query": "State the name and website of the institutes from the state with 209 graduate cohort in 2011.", "pos": ["name of the institutes refers to chronname; website refers to site; graduate cohort refers to grad_cohort; in 2011 refers to year = '2011';"], "neg": ["name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;", "male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;"]}} {"set": {"query": "What is the website address of the institution with the highest number of White degree-seeking students at 2-year institutions in 2008?", "pos": ["website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';"], "neg": ["name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "private and not for profit refers to control = 'Private not-for-profit';", "4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "post name refers to state_post;", "public refers to control = 'Public'; school_count < 20;", "2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;"]}} {"set": {"query": "In female students in year 2012, how many of them from a state with number of schools ranges from 10 to 20?", "pos": ["female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;"], "neg": ["in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "post name refers to state_post;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);", "highest number of students refers to student_count; all students refer to race = 'X'.", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "biggest cohort size refers to MAX(cohort_size); cohort = '4y bach' means bachelor's or equivalent-seeking cohort at 4-year institutions; cohort = '4y other' means students seeking another type of degree or certificate at a 4-year institution; cohort = '2y all' means degree-seeking students at 2-year institutions;", "In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';"]}} {"set": {"query": "List the site of institution within the student count of 500 to 1000 that has the recent year of data release.", "pos": ["recent year of data release refers to newest year;"], "neg": ["Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'.", "female refers to gender = 'F'; graduates refers to grad_cohort; Oakwood University refers to chronname = 'Oakwood University'; in 2013 refers to year = 2013; all sutdents refer to rae = 'X';", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;", "highest number of students refers to student_count; all students refer to race = 'X'.", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);", "2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;", "2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';"]}} {"set": {"query": "Give the web site address for \"Swarthmore College\".", "pos": ["website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';"], "neg": ["highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "amount of percentage = SUM(grad_150 WHERE gender = 'F') as female; percentage = SUM(grad_150 WHERE gender = 'M') as male; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; graduated within 150 percent of normal/expected time refers to grad_150; female refers to gender = 'F'; White refers to race = 'w'; male refers to gender = 'M';", "In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';", "highest number of students refers to student_count; all students refer to race = 'X'.", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "graduates refers to grad_cohort; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; average number of graduates for 3 consecutive years = DIVIDE(SUM(SUM(grad_cohort WHERE year = 2011), SUM(grad_cohort WHERE year = 2012), SUM(grad_cohort WHERE year = 2013)), 3);", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';"]}} {"set": {"query": "In 2012, how many Asian female graduates were seeking another type of degree or certificate at the 4-year institution at University of Alaska at Anchorage?", "pos": ["In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';"], "neg": ["female refers to gender = 'F'; graduates refers to grad_cohort; between 2011 to 2013 refers to year BETWEEN 2011 AND 2013; Gateway Community College refers to chronname = 'Gateway Community College';", "Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "recent year of data release refers to newest year;", "4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';"]}} {"set": {"query": "In Alaska with school count of 1 from year 2011 to 2013, how many of the students are white?", "pos": ["Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';"], "neg": ["public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "recent year of data release refers to newest year;", "4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;", "male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;", "median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';"]}} {"set": {"query": "What is the number of female graduate for all students cohort from Oakwood University in 2013?", "pos": ["female refers to gender = 'F'; graduates refers to grad_cohort; Oakwood University refers to chronname = 'Oakwood University'; in 2013 refers to year = 2013; all sutdents refer to rae = 'X';"], "neg": ["biggest cohort size refers to MAX(cohort_size); cohort = '4y bach' means bachelor's or equivalent-seeking cohort at 4-year institutions; cohort = '4y other' means students seeking another type of degree or certificate at a 4-year institution; cohort = '2y all' means degree-seeking students at 2-year institutions;", "highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'.", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';", "In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';", "web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);"]}} {"set": {"query": "Between 2011 to 2013, what is the average number of male Hispanic degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time in United Education Institute-Huntington Park Campus?", "pos": ["between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';"], "neg": ["recent year of data release refers to newest year;", "4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;", "institutes refers to chronname; American Indian refers to race = 'Ai'; most number of American Indian refers to MAX(COUNT(race = 'Ai')); in 2007 refers to year = '2007';", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';"]}} {"set": {"query": "In the state with the highest state appropriations to higher education in fiscal year 2011 per resident, which institution has the lowest number of undergraduates in 2010?", "pos": ["highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;"], "neg": ["male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';", "highest number of students refers to student_count; all students refer to race = 'X'.", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;", "2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);", "Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;"]}} {"set": {"query": "How many 2-year public schools are there in \"California\"?", "pos": ["2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';"], "neg": ["highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);", "male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "highest number of students refers to student_count; all students refer to race = 'X'.", "post name refers to state_post;", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'.", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);"]}} {"set": {"query": "In total, how many Hispanic male students graduated from Amridge University?", "pos": ["Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';"], "neg": ["Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "female refers to gender = 'F'; graduates refers to grad_cohort; between 2011 to 2013 refers to year BETWEEN 2011 AND 2013; Gateway Community College refers to chronname = 'Gateway Community College';", "2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';", "name of the institutes refers to chronname; website refers to site; graduate cohort refers to grad_cohort; in 2011 refers to year = '2011';", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "private and not for profit refers to control = 'Private not-for-profit';", "4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;", "institutes refers to chronname; American Indian refers to race = 'Ai'; most number of American Indian refers to MAX(COUNT(race = 'Ai')); in 2007 refers to year = '2007';", "post name refers to state_post;"]}} {"set": {"query": "Which state is \"Mercer University\" located in?", "pos": ["Mercer University refers to chronname = 'Mercer University';"], "neg": ["4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';", "website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;", "4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;"]}} {"set": {"query": "Which city is \"Rensselaer Polytechnic Institute\" located in?", "pos": ["Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';"], "neg": ["female refers to gender = 'F'; graduates refers to grad_cohort; between 2011 to 2013 refers to year BETWEEN 2011 AND 2013; Gateway Community College refers to chronname = 'Gateway Community College';", "institutes refers to chronname; American Indian refers to race = 'Ai'; most number of American Indian refers to MAX(COUNT(race = 'Ai')); in 2007 refers to year = '2007';", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "private and not for profit refers to control = 'Private not-for-profit';", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';"]}} {"set": {"query": "In Yale University, what is the average number of Black students per year who were bachelor's/equivalent-seeking cohort at 4-year institutions between 2002 to 2005?", "pos": ["Yale University refers to chronname = 'Yale University'; average = DIVIDE(COUNT(race = 'B' WHERE cohort = '4y bach AND year BETWEEN 2002 AND 2005), 3); Black refers to race = 'B'; bachelor's/equivalent-seeking cohort at 4-year institutions refers to cohort = '4y bach'; between 2002 to 2005 refers to year BETWEEN '2002' AND '2005';"], "neg": ["4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "recent year of data release refers to newest year;", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;", "median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';"]}} {"set": {"query": "Give the web site address for the school in \"PA\" state with the highest latitude.", "pos": ["web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);"], "neg": ["male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "amount of percentage = SUM(grad_150 WHERE gender = 'F') as female; percentage = SUM(grad_150 WHERE gender = 'M') as male; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; graduated within 150 percent of normal/expected time refers to grad_150; female refers to gender = 'F'; White refers to race = 'w'; male refers to gender = 'M';", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "highest number of students refers to student_count; all students refer to race = 'X'.", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';", "private and not for profit refers to control = 'Private not-for-profit';", "4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;", "highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';"]}} {"set": {"query": "Give the cohort name for the school with biggest cohort size.", "pos": ["biggest cohort size refers to MAX(cohort_size); cohort = '4y bach' means bachelor's or equivalent-seeking cohort at 4-year institutions; cohort = '4y other' means students seeking another type of degree or certificate at a 4-year institution; cohort = '2y all' means degree-seeking students at 2-year institutions;"], "neg": ["Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "graduates refers to grad_cohort; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; average number of graduates for 3 consecutive years = DIVIDE(SUM(SUM(grad_cohort WHERE year = 2011), SUM(grad_cohort WHERE year = 2012), SUM(grad_cohort WHERE year = 2013)), 3);", "website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';", "Yale University refers to chronname = 'Yale University'; average = DIVIDE(COUNT(race = 'B' WHERE cohort = '4y bach AND year BETWEEN 2002 AND 2005), 3); Black refers to race = 'B'; bachelor's/equivalent-seeking cohort at 4-year institutions refers to cohort = '4y bach'; between 2002 to 2005 refers to year BETWEEN '2002' AND '2005';", "recent year of data release refers to newest year;", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "post name refers to state_post;", "highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;"]}} {"set": {"query": "Please list the names of the institutes with the percentage of male White students graduating in 2011 within 150 percent of normal/expected time over 20.", "pos": ["names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;"], "neg": ["recent year of data release refers to newest year;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "female refers to gender = 'F'; graduates refers to grad_cohort; Oakwood University refers to chronname = 'Oakwood University'; in 2013 refers to year = 2013; all sutdents refer to rae = 'X';", "2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;", "website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;"]}} {"set": {"query": "Among the institutes in the state of Alabama whose percent rank for median SAT value within sector is 77, how many of them have over 500 graduates in total in 2011?", "pos": ["percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;"], "neg": ["schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';", "highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "public refers to control = 'Public'; school_count < 20;", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;", "4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';", "female refers to gender = 'F'; graduates refers to grad_cohort; between 2011 to 2013 refers to year BETWEEN 2011 AND 2013; Gateway Community College refers to chronname = 'Gateway Community College';", "recent year of data release refers to newest year;", "graduates refers to grad_cohort; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; average number of graduates for 3 consecutive years = DIVIDE(SUM(SUM(grad_cohort WHERE year = 2011), SUM(grad_cohort WHERE year = 2012), SUM(grad_cohort WHERE year = 2013)), 3);"]}} {"set": {"query": "How many 2-year private nonprofit schools in \"CT\" whose graduation rate falls below the average for the state?", "pos": ["2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;"], "neg": ["Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "graduates refers to grad_cohort; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; average number of graduates for 3 consecutive years = DIVIDE(SUM(SUM(grad_cohort WHERE year = 2011), SUM(grad_cohort WHERE year = 2012), SUM(grad_cohort WHERE year = 2013)), 3);", "Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "highest number of students refers to student_count; all students refer to race = 'X'.", "highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'."]}} {"set": {"query": "Among the Ivy League Schools in 2013, which schools have the highest number of Black students who graduated within 150 percent of normal/expected time who were seeking a bachelor's/equivalent cohort at 4-year institutions?", "pos": ["Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';"], "neg": ["name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "graduates refers to grad_cohort; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; average number of graduates for 3 consecutive years = DIVIDE(SUM(SUM(grad_cohort WHERE year = 2011), SUM(grad_cohort WHERE year = 2012), SUM(grad_cohort WHERE year = 2013)), 3);", "Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;", "highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "highest number of students refers to student_count; all students refer to race = 'X'.", "4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;"]}} {"set": {"query": "Among the race of all students, what is the control of institution and level of institution with highest number of students?", "pos": ["highest number of students refers to student_count; all students refer to race = 'X'."], "neg": ["Yale University refers to chronname = 'Yale University'; average = DIVIDE(COUNT(race = 'B' WHERE cohort = '4y bach AND year BETWEEN 2002 AND 2005), 3); Black refers to race = 'B'; bachelor's/equivalent-seeking cohort at 4-year institutions refers to cohort = '4y bach'; between 2002 to 2005 refers to year BETWEEN '2002' AND '2005';", "4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';", "ratio = MULTIPLY(DIVIDE(SUM(grad_cohort WHERE Gender = 'M'), SUM( grad_cohort WHERE Gender = 'F')), 1.0); Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; male refers to gender = 'M'; Harvard University refers to chronname = 'Harvard University'; in 2013 refers to year = 2013;", "biggest cohort size refers to MAX(cohort_size); cohort = '4y bach' means bachelor's or equivalent-seeking cohort at 4-year institutions; cohort = '4y other' means students seeking another type of degree or certificate at a 4-year institution; cohort = '2y all' means degree-seeking students at 2-year institutions;", "public refers to control = 'Public'; school_count < 20;", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';"]}} {"set": {"query": "Please list the names of the institutes in the state of Alabama whose all graduates in total exceeded 500 in 2011?", "pos": ["names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'."], "neg": ["recent year of data release refers to newest year;", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "female refers to gender = 'F'; graduates refers to grad_cohort; Oakwood University refers to chronname = 'Oakwood University'; in 2013 refers to year = 2013; all sutdents refer to rae = 'X';", "post name refers to state_post;", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);"]}} {"set": {"query": "Which institute has the highest percentage of male White students graduating in 2011 within 150 percent of normal/expected time?", "pos": ["male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;"], "neg": ["4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';", "public refers to control = 'Public'; school_count < 20;", "biggest cohort size refers to MAX(cohort_size); cohort = '4y bach' means bachelor's or equivalent-seeking cohort at 4-year institutions; cohort = '4y other' means students seeking another type of degree or certificate at a 4-year institution; cohort = '2y all' means degree-seeking students at 2-year institutions;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';", "Yale University refers to chronname = 'Yale University'; average = DIVIDE(COUNT(race = 'B' WHERE cohort = '4y bach AND year BETWEEN 2002 AND 2005), 3); Black refers to race = 'B'; bachelor's/equivalent-seeking cohort at 4-year institutions refers to cohort = '4y bach'; between 2002 to 2005 refers to year BETWEEN '2002' AND '2005';", "2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;"]}} {"set": {"query": "Among the public institutes in the state of Alabama, how many of them have over 30 students who graduated within 100 percent of normal/expected time in 2011?", "pos": ["public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;"], "neg": ["website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'.", "female refers to gender = 'F'; graduates refers to grad_cohort; Oakwood University refers to chronname = 'Oakwood University'; in 2013 refers to year = 2013; all sutdents refer to rae = 'X';", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "public refers to control = 'Public'; school_count < 20;", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);"]}} {"set": {"query": "State the average median SAT value for institutes in the state with the most male graduate cohort in 2013.", "pos": ["median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;"], "neg": ["amount of percentage = SUM(grad_150 WHERE gender = 'F') as female; percentage = SUM(grad_150 WHERE gender = 'M') as male; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; graduated within 150 percent of normal/expected time refers to grad_150; female refers to gender = 'F'; White refers to race = 'w'; male refers to gender = 'M';", "female refers to gender = 'F'; graduates refers to grad_cohort; between 2011 to 2013 refers to year BETWEEN 2011 AND 2013; Gateway Community College refers to chronname = 'Gateway Community College';", "4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "Yale University refers to chronname = 'Yale University'; average = DIVIDE(COUNT(race = 'B' WHERE cohort = '4y bach AND year BETWEEN 2002 AND 2005), 3); Black refers to race = 'B'; bachelor's/equivalent-seeking cohort at 4-year institutions refers to cohort = '4y bach'; between 2002 to 2005 refers to year BETWEEN '2002' AND '2005';", "private and not for profit refers to control = 'Private not-for-profit';", "In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "recent year of data release refers to newest year;"]}} {"set": {"query": "What's the average number of graduates for Central Alabama Community College in the 3 consecutive years from 2011 to 2013?", "pos": ["graduates refers to grad_cohort; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; average number of graduates for 3 consecutive years = DIVIDE(SUM(SUM(grad_cohort WHERE year = 2011), SUM(grad_cohort WHERE year = 2012), SUM(grad_cohort WHERE year = 2013)), 3);"], "neg": ["Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'.", "post name refers to state_post;", "4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "institutes refers to chronname; American Indian refers to race = 'Ai'; most number of American Indian refers to MAX(COUNT(race = 'Ai')); in 2007 refers to year = '2007';", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "highest number of students refers to student_count; all students refer to race = 'X'.", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "name of the institutes refers to chronname; website refers to site; graduate cohort refers to grad_cohort; in 2011 refers to year = '2011';"]}} {"set": {"query": "Give the name of the 4-year public school in \"ID\" with the lowest graduation 100 value.", "pos": ["name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);"], "neg": ["website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "biggest cohort size refers to MAX(cohort_size); cohort = '4y bach' means bachelor's or equivalent-seeking cohort at 4-year institutions; cohort = '4y other' means students seeking another type of degree or certificate at a 4-year institution; cohort = '2y all' means degree-seeking students at 2-year institutions;", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';", "female refers to gender = 'F'; graduates refers to grad_cohort; between 2011 to 2013 refers to year BETWEEN 2011 AND 2013; Gateway Community College refers to chronname = 'Gateway Community College';", "website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'.", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;"]}} {"set": {"query": "What is the ratio of Asian male graduates to Asian female graduates from Harvard University in 2013?", "pos": ["ratio = MULTIPLY(DIVIDE(SUM(grad_cohort WHERE Gender = 'M'), SUM( grad_cohort WHERE Gender = 'F')), 1.0); Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; male refers to gender = 'M'; Harvard University refers to chronname = 'Harvard University'; in 2013 refers to year = 2013;"], "neg": ["web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);", "institutes refers to chronname; American Indian refers to race = 'Ai'; most number of American Indian refers to MAX(COUNT(race = 'Ai')); in 2007 refers to year = '2007';", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;", "recent year of data release refers to newest year;", "4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "Yale University refers to chronname = 'Yale University'; average = DIVIDE(COUNT(race = 'B' WHERE cohort = '4y bach AND year BETWEEN 2002 AND 2005), 3); Black refers to race = 'B'; bachelor's/equivalent-seeking cohort at 4-year institutions refers to cohort = '4y bach'; between 2002 to 2005 refers to year BETWEEN '2002' AND '2005';"]}} {"set": {"query": "Between the Ivy League Schools, which school's state have the lowest sate appropriations to higher education in fiscal year 2011 per resident?", "pos": ["Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);"], "neg": ["2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'.", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "post name refers to state_post;", "public refers to control = 'Public'; school_count < 20;"]}} {"set": {"query": "Which 4-year private for-profit school in \"KY\" has the highest graudation 150 value? Give the ID for the school.", "pos": ["4-year refers to level = '4-year'; private for profit refers to control = 'Private for-profit'; KY refers to state_abbr = 'KY'; highest graduation 150 value refers to MAX(grad_150_value); ID of the school refers to unitid;"], "neg": ["4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';", "post name refers to state_post;", "highest number of students refers to student_count; all students refer to race = 'X'.", "4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "ratio = MULTIPLY(DIVIDE(SUM(grad_cohort WHERE Gender = 'M'), SUM( grad_cohort WHERE Gender = 'F')), 1.0); Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; male refers to gender = 'M'; Harvard University refers to chronname = 'Harvard University'; in 2013 refers to year = 2013;", "male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;"]}} {"set": {"query": "Which cohort had the higher percentage of students who graduated from Central Alabama Community College in 2011 within 150 percent of normal/expected time, female White students or male White students?", "pos": ["amount of percentage = SUM(grad_150 WHERE gender = 'F') as female; percentage = SUM(grad_150 WHERE gender = 'M') as male; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; graduated within 150 percent of normal/expected time refers to grad_150; female refers to gender = 'F'; White refers to race = 'w'; male refers to gender = 'M';"], "neg": ["post name refers to state_post;", "biggest cohort size refers to MAX(cohort_size); cohort = '4y bach' means bachelor's or equivalent-seeking cohort at 4-year institutions; cohort = '4y other' means students seeking another type of degree or certificate at a 4-year institution; cohort = '2y all' means degree-seeking students at 2-year institutions;", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "recent year of data release refers to newest year;", "graduates refers to grad_cohort; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; average number of graduates for 3 consecutive years = DIVIDE(SUM(SUM(grad_cohort WHERE year = 2011), SUM(grad_cohort WHERE year = 2012), SUM(grad_cohort WHERE year = 2013)), 3);", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "public refers to control = 'Public'; school_count < 20;", "2-year refers to level = '2-year'; private nonprofit refers to control = 'Private not-for-profit'; CT refers to state_abbr = 'CT'; graduation rate falls below the average for the state refers to awards_per_value < awards_per_natl_value;", "2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';"]}} {"set": {"query": "Give the post name of \"Idaho\" state.", "pos": ["post name refers to state_post;"], "neg": ["ratio = MULTIPLY(DIVIDE(SUM(grad_cohort WHERE Gender = 'M'), SUM( grad_cohort WHERE Gender = 'F')), 1.0); Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; male refers to gender = 'M'; Harvard University refers to chronname = 'Harvard University'; in 2013 refers to year = 2013;", "median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;", "private and not for profit refers to control = 'Private not-for-profit';", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';", "highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "graduates refers to grad_cohort; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; average number of graduates for 3 consecutive years = DIVIDE(SUM(SUM(grad_cohort WHERE year = 2011), SUM(grad_cohort WHERE year = 2012), SUM(grad_cohort WHERE year = 2013)), 3);", "In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';"]}} {"set": {"query": "How many institutes are private and not-for profit?", "pos": ["private and not for profit refers to control = 'Private not-for-profit';"], "neg": ["highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "highest number of students refers to student_count; all students refer to race = 'X'.", "female refers to gender = 'F'; graduates refers to grad_cohort; Oakwood University refers to chronname = 'Oakwood University'; in 2013 refers to year = 2013; all sutdents refer to rae = 'X';", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "Hispanic refers to race = 'H'; male refers to gender = 'M'; Amridge University refers to chronname = 'Amridge University';", "median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;"]}} {"set": {"query": "What is the name of the school with the highest difference in the average completion rate for the national in which it belongs? Indicate the state appropriations to higher education in fiscal year 2011 per resident to which the school belongs.", "pos": ["name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;"], "neg": ["public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "schools_count = 113; 2-year refers to level = '2-year'; public refers to control = 'public'; Asian refers to race = 'A'; seeks another type of degree or certificate at a 2-year institution refers to cohort = '2y all'; in 2013 refers to year = 2013;", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "private and not for profit refers to control = 'Private not-for-profit';", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'.", "biggest cohort size refers to MAX(cohort_size); cohort = '4y bach' means bachelor's or equivalent-seeking cohort at 4-year institutions; cohort = '4y other' means students seeking another type of degree or certificate at a 4-year institution; cohort = '2y all' means degree-seeking students at 2-year institutions;", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);"]}} {"set": {"query": "What is the institution's name of american students within the number of degree-seeking students in the cohort that ranges from 1 to 3?", "pos": ["institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;"], "neg": ["website address refers to site; Swarthmore College refers to chronname = 'Swarthmore College';", "between 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; male refers to gender = 'M'; Hispanic refers to race = 'H'; number of degree-seeking students at 2-year institutions who graduated within 150 percent of normal/expected time refers to grad_150; United Education Institute-Huntington Park Campus refers to chronname = 'United Education Institute-Huntington Park Campus';", "post name refers to state_post;", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "Mercer University refers to chronname = 'Mercer University';", "institutes refers to chronname; American Indian refers to race = 'Ai'; most number of American Indian refers to MAX(COUNT(race = 'Ai')); in 2007 refers to year = '2007';", "highest state appropriations to higher education in fiscal year 2011 per resident refers to MAX(state_appr_value); lowest number of undergraduates refers to MIN(student_count); in 2010 refers to year = 2010;", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "ratio = MULTIPLY(DIVIDE(SUM(grad_cohort WHERE Gender = 'M'), SUM( grad_cohort WHERE Gender = 'F')), 1.0); Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; male refers to gender = 'M'; Harvard University refers to chronname = 'Harvard University'; in 2013 refers to year = 2013;", "name of the school refers to chronname; 4-year refers to level = '4-year'; public refers to control = 'Public'; ID refers to state_abbr = 'ID'; lowest graduation 100 value refers to MIN(grad_100_value);"]}} {"set": {"query": "What is the number of female graduates between 2011 to 2013 from the state where 'Gateway Community College' is located?", "pos": ["female refers to gender = 'F'; graduates refers to grad_cohort; between 2011 to 2013 refers to year BETWEEN 2011 AND 2013; Gateway Community College refers to chronname = 'Gateway Community College';"], "neg": ["website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);", "female refers to gender = 'F'; graduates refers to grad_cohort; Oakwood University refers to chronname = 'Oakwood University'; in 2013 refers to year = 2013; all sutdents refer to rae = 'X';", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "name of the institutes refers to chronname; website refers to site; graduate cohort refers to grad_cohort; in 2011 refers to year = '2011';", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "Yale University refers to chronname = 'Yale University'; average = DIVIDE(COUNT(race = 'B' WHERE cohort = '4y bach AND year BETWEEN 2002 AND 2005), 3); Black refers to race = 'B'; bachelor's/equivalent-seeking cohort at 4-year institutions refers to cohort = '4y bach'; between 2002 to 2005 refers to year BETWEEN '2002' AND '2005';"]}} {"set": {"query": "What's the number of male Hispanic students who graduated from Central Alabama Community College in 2011 within 100 percent of normal/expected time?", "pos": ["male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;"], "neg": ["amount of percentage = SUM(grad_150 WHERE gender = 'F') as female; percentage = SUM(grad_150 WHERE gender = 'M') as male; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; graduated within 150 percent of normal/expected time refers to grad_150; female refers to gender = 'F'; White refers to race = 'w'; male refers to gender = 'M';", "4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;", "4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;", "median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;", "Rensselaer Polytechnic Institute refers to chronname = 'Rensselaer Polytechnic Institute';", "female refers to gender = 'F'; number of schools refers to schools_count; schools_count BETWEEN 10 AND 20;", "web site address refers to site; PA refers to state_abbr = 'PA'; highest latitude refers to MAX(lat_y);", "Alaska refers to state = 'Alaska'; from year 2011 to 2013 refers to year BETWEEN '2011' AND '2013'; white refers to race = 'W';", "Mercer University refers to chronname = 'Mercer University';"]}} {"set": {"query": "In the state of Connecticut, what is the name of the instution with the highest percent rank for freshman retention percentage within the sector?", "pos": ["name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);"], "neg": ["names of the institutes refers to chronname; male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; percentage of students graduating within 150 percent of normal/expected time over 20 refers to grad_150>20;", "graduates refers to grad_cohort; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; average number of graduates for 3 consecutive years = DIVIDE(SUM(SUM(grad_cohort WHERE year = 2011), SUM(grad_cohort WHERE year = 2012), SUM(grad_cohort WHERE year = 2013)), 3);", "4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "website address refers to site; White refers to race = 'W'; degree-seeking students at 2-year institutions refers to cohort = '2y all'; in 2008 refers to year = '2008';", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "percent rank for median SAT value within sector refers to med_sat_percentile; over 500 graduates refers to grad_cohort > 500; in 2011 refers to year = 2011;", "Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;", "2-year refers to level = '2-year'; public refers to control = 'public'; California refers to state = 'California';", "name of the institutes refers to chronname; website refers to site; graduate cohort refers to grad_cohort; in 2011 refers to year = '2011';"]}} {"set": {"query": "How many 4-year public institutions are there in the state of Florida? Give all of their names.", "pos": ["4-year refers to level = '4-year'; public refers to control = 'Public'; names refers to chronname;"], "neg": ["female refers to gender = 'F'; graduates refers to grad_cohort; Oakwood University refers to chronname = 'Oakwood University'; in 2013 refers to year = 2013; all sutdents refer to rae = 'X';", "female refers to gender = 'F'; graduates refers to grad_cohort; between 2011 to 2013 refers to year BETWEEN 2011 AND 2013; Gateway Community College refers to chronname = 'Gateway Community College';", "in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;", "4-year refers to level = '4-year'; private not-for-profit refers to control = 'Private not-for-profit'; Brevard Community College refers to chronname = 'Brevard Community College';", "highest number of students refers to student_count; all students refer to race = 'X'.", "ratio = MULTIPLY(DIVIDE(SUM(grad_cohort WHERE Gender = 'M'), SUM( grad_cohort WHERE Gender = 'F')), 1.0); Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; male refers to gender = 'M'; Harvard University refers to chronname = 'Harvard University'; in 2013 refers to year = 2013;", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "male refers to gender = 'M'; white refers to race = 'w'; in 2011 refers to year = 2011; graduating within 150 percent of normal/expected time refers to grad_150;", "institution's name refers to chronname; american refers to race = 'Ai'; number of degree-seeking students in the cohort refers to grad_cohort; grad_cohort < = 3;", "Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011;"]}} {"set": {"query": "List down the states in 2011 with a national sector average of 20 and below.", "pos": ["in 2011 refers to year = '2011'; national sector average of 20 and below refers to awards_per_natl_value < 20;"], "neg": ["In 2012 refers to year = 2012; Asian refers to race = 'A'; female refers to gender = 'F'; graduates refers to grad_cohort; seeking another type of degree or certificate at a 4-year institution refers to cohort = '4y other'; University of Alaska at Anchorage refers to chronname = 'University of Alaska at Anchorage';", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; in 2013 refers to year = '2013'; highest number of Black students who graduated within 150 percent of normal/expected time refers to MAX(grad_150 WHERE race = 'B'); seeking a bachelor's/equivalent cohort at 4-year institutions refers to cohort = '4y bach';", "Ivy League Schools refers to chronname = 'Brown University' or chronname = 'Columbia University' or chronname = 'Cornell University' or chronname = 'Dartmouth College' or chronname = 'Harvard University' or chronname = 'Princeton University' or chronname = 'University of Pennsylvania' or chronname = 'Yale University'; lowest state appropriations to higher education in fiscal year 2011 per resident refers to MIN(state_appr_value);", "Mercer University refers to chronname = 'Mercer University';", "public refers to control = 'Public'; over 30 students who graduated within 100 percent of normal/expected time refers to grad_100 > 30; in 2011 refers to year = 2011;", "name of the institution refers to chronname;\u00a0 highest percent rank for freshman retention percentage within the sector refers to MAX(retain_percentile);", "male refers to gender = 'M'; Hispanic students refers to race = 'H'; Central Alabama Community College refers to chronname = 'Central Alabama Community College'; in 2011 refers to year = 2011; number of students who graduated within 100 percent of normal/expected time refers to grad_100;", "name of the school refers to chronname; highest difference in the average completion rate for the national in which it belongs = MAX(SUBTRACT(awards_per_value, awards_per_natl_value)); state appropriations to higher education in fiscal year 2011 per resident to which the school belongs refers to state_appr_value;", "names of the institutes refers to chronname; graduates refers to grad_cohort; grad_cohort > 500; in 2011 refers to year = 2011; all students refer to race = 'X'.", "median SAT value refers to med_sat_value; average = AVG(med_sat_value); male refers to gender = 'M'; graduate cohort refers to grad_cohort; most male graduate cohort refers to MAX(COUNT(grad_cohort WHERE gender = 'M')); in 2013 refers to year = 2013;"]}} {"set": {"query": "Which professor taught the least amount of courses?", "pos": ["professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))"], "neg": ["advisor 415 refers to p_id_dummy = 415", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "professor ID 297 refers to taughtBy.p_id = 297", "advisors refers to p_id_dummy; students in 1st year refers to student = 1 and yearsInProgram = 'Year_1'", "harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1", "courses refers to taughtBy.course_id; more than 4 people refers to count(taughtBy.p_id) > 4"]}} {"set": {"query": "How many professors teaches basic or medium undergraduate courses?", "pos": ["professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'"], "neg": ["students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "advisors refers to p_id_dummy; students in 1st year refers to student = 1 and yearsInProgram = 'Year_1'", "professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))", "level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))"]}} {"set": {"query": "Provide the ID of professors who teach in both harder undergraduate course and master/graduate courses.", "pos": ["harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id"], "neg": ["faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "professor ID 297 refers to taughtBy.p_id = 297", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "year 1 and year 2 students refers to yearsInProgram = 'Year_1' and yearsInProgram = 'Year_2' and student = 1", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id"]}} {"set": {"query": "What year in the program do the students with more than 2 advisors are in?", "pos": ["students refers to student = 1; more than 2 advisors refers to count(p_id_dummy) > 2"], "neg": ["professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "advisor 415 refers to p_id_dummy = 415", "professors refers to taughtBy.p_id; course ID 18 refers to taughtBy.course_id", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))"]}} {"set": {"query": "Among the students being advised by Advisor 5, how many students are in the 5th year?", "pos": ["Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'"], "neg": ["harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "advisor with ID 5 refers to p_id_dummy = 5", "advisor 415 refers to p_id_dummy = 415", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147"]}} {"set": {"query": "What is the ratio of professors and students?", "pos": ["professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)"], "neg": ["professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130", "advisor 415 refers to p_id_dummy = 415", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))", "students refers to student = 1; more than 2 advisors refers to count(p_id_dummy) > 2", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'"]}} {"set": {"query": "What is the level of the course with the most number of teachers?", "pos": ["level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))"], "neg": ["member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "advisor IDs refers to p_id_dummy and person.p_id where professor = 1; eighth year of program refers to yearsInprogram = 'Year_8'; position status in faculty of those professors refers to hasPosition", "students refers to student = 1; more than 2 advisors refers to count(p_id_dummy) > 2", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))", "advisor 415 refers to p_id_dummy = 415", "levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79", "person ID refers to person.p_id; faculty professor refers to professor = 1 and hasPosition ! = 0", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'"]}} {"set": {"query": "How many professors are teaching course ID 18?", "pos": ["professors refers to taughtBy.p_id; course ID 18 refers to taughtBy.course_id"], "neg": ["level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))", "professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "advisor IDs refers to p_id_dummy and person.p_id where professor = 1; eighth year of program refers to yearsInprogram = 'Year_8'; position status in faculty of those professors refers to hasPosition", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'", "harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1"]}} {"set": {"query": "How many courses were taught by a professor who is currently the member of faculty?", "pos": ["professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0"], "neg": ["professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", "professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4"]}} {"set": {"query": "Who are the top 5 professors who teaches the highest number of professional or master/undergraduate courses?", "pos": ["professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'"], "neg": ["professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "advisor with ID 5 refers to p_id_dummy = 5", "courses refers to taughtBy.course_id; more than 4 people refers to count(taughtBy.p_id) > 4", "professor ID 297 refers to taughtBy.p_id = 297", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "professors refers to taughtBy.p_id; course ID 18 refers to taughtBy.course_id", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'"]}} {"set": {"query": "How many students are under advisor 415?", "pos": ["advisor 415 refers to p_id_dummy = 415"], "neg": ["students refers to student = 1; more than 2 advisors refers to count(p_id_dummy) > 2", "students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "year 1 and year 2 students refers to yearsInProgram = 'Year_1' and yearsInProgram = 'Year_2' and student = 1", "professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'", "advisor IDs refers to p_id_dummy and person.p_id where professor = 1; eighth year of program refers to yearsInprogram = 'Year_8'; position status in faculty of those professors refers to hasPosition", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id"]}} {"set": {"query": "Please list the IDs of the professors that teaches more than 3 courses.", "pos": ["IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3"], "neg": ["Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))", "teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1"]}} {"set": {"query": "How many courses are there for basic or medium undergraduate courses?", "pos": ["basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id"], "neg": ["advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "IDs of the advisors refers to p_id_dummy; in the 5th year of their program refers to yearsInProgram = 'Year_5'", "professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))", "teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "students refers to student = 1; more than 2 advisors refers to count(p_id_dummy) > 2"]}} {"set": {"query": "List the advisor IDs for students with eighth year of program and position status in faculty of those professors.", "pos": ["advisor IDs refers to p_id_dummy and person.p_id where professor = 1; eighth year of program refers to yearsInprogram = 'Year_8'; position status in faculty of those professors refers to hasPosition"], "neg": ["professors refers to taughtBy.p_id; course ID 18 refers to taughtBy.course_id", "faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "professor ID 297 refers to taughtBy.p_id = 297", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'", "advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79"]}} {"set": {"query": "Name the advisors for students in Year 3 of the program.", "pos": ["advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'"], "neg": ["professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "courses refers to taughtBy.course_id; more than 4 people refers to count(taughtBy.p_id) > 4", "professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "advisor 415 refers to p_id_dummy = 415", "person ID refers to person.p_id; faculty professor refers to professor = 1 and hasPosition ! = 0", "professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))"]}} {"set": {"query": "What are the courses taught by the advisors who gave advice to student with ID 376?", "pos": ["courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376"], "neg": ["IDs of the advisors refers to p_id_dummy; in the 5th year of their program refers to yearsInProgram = 'Year_5'", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "advisors refers to p_id_dummy; students in 1st year refers to student = 1 and yearsInProgram = 'Year_1'", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "person ID refers to person.p_id; faculty professor refers to professor = 1 and hasPosition ! = 0", "professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'", "professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))"]}} {"set": {"query": "List the ID and years in program for students taught by advisor with ID 5.", "pos": ["advisor with ID 5 refers to p_id_dummy = 5"], "neg": ["advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "person ID refers to person.p_id; faculty professor refers to professor = 1 and hasPosition ! = 0", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'"]}} {"set": {"query": "List the professor ID who taught the course ID from 121 to 130 of basic undergraduate courses.", "pos": ["professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130"], "neg": ["courses refers to taughtBy.course_id; more than 4 people refers to count(taughtBy.p_id) > 4", "level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))", "faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'"]}} {"set": {"query": "Who are the professors who gave advice to students in the 12th years of program?", "pos": ["professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'"], "neg": ["harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "IDs of the advisors refers to p_id_dummy; in the 5th year of their program refers to yearsInProgram = 'Year_5'", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))", "person ID refers to person.p_id; faculty professor refers to professor = 1 and hasPosition ! = 0", "faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "advisor IDs refers to p_id_dummy and person.p_id where professor = 1; eighth year of program refers to yearsInprogram = 'Year_8'; position status in faculty of those professors refers to hasPosition", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'"]}} {"set": {"query": "Which level of courses is taught by professor ID 297?", "pos": ["professor ID 297 refers to taughtBy.p_id = 297"], "neg": ["teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))", "advisor 415 refers to p_id_dummy = 415", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0"]}} {"set": {"query": "How many basic or medium undergraduate courses are taught by a professor?", "pos": ["basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1"], "neg": ["students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130", "students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "year 1 and year 2 students refers to yearsInProgram = 'Year_1' and yearsInProgram = 'Year_2' and student = 1", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'", "levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79", "advisor IDs refers to p_id_dummy and person.p_id where professor = 1; eighth year of program refers to yearsInprogram = 'Year_8'; position status in faculty of those professors refers to hasPosition", "professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147"]}} {"set": {"query": "Mention the person ID of faculty professor who taught course ID 104 and the course level.", "pos": ["person ID refers to person.p_id; faculty professor refers to professor = 1 and hasPosition ! = 0"], "neg": ["advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "advisor with ID 5 refers to p_id_dummy = 5", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1", "faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'"]}} {"set": {"query": "What level is course 165? List the professors who teach the course.", "pos": ["course 165 refers to course_id = 165; professors refers to taughtBy.p_id"], "neg": ["professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'", "level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))"]}} {"set": {"query": "Please list the IDs of the teachers who have advised more than 4 others to teach.", "pos": ["teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4"], "neg": ["faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1", "level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'"]}} {"set": {"query": "Calculate the percentage of high-level undergraduate course.", "pos": ["high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%"], "neg": ["professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "courses refers to taughtBy.course_id; more than 4 people refers to count(taughtBy.p_id) > 4", "harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'", "professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'", "students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "professors refers to taughtBy.p_id; course ID 18 refers to taughtBy.course_id", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))"]}} {"set": {"query": "How many students that are undergoing the pre-phase of qualification have advisors?", "pos": ["students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id"], "neg": ["advisor with ID 5 refers to p_id_dummy = 5", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "professors refers to taughtBy.p_id; course ID 18 refers to taughtBy.course_id", "harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1"]}} {"set": {"query": "What is the average number of professional or master/undergraduate courses being taught by each professor?", "pos": ["professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))"], "neg": ["person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "person ID refers to person.p_id; faculty professor refers to professor = 1 and hasPosition ! = 0", "students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))"]}} {"set": {"query": "What is the sum of year 1 and year 2 students?", "pos": ["year 1 and year 2 students refers to yearsInProgram = 'Year_1' and yearsInProgram = 'Year_2' and student = 1"], "neg": ["teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id"]}} {"set": {"query": "Describe the course level and list of person IDs who taught course ID of 147.", "pos": ["person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147"], "neg": ["courses refers to taughtBy.course_id; more than 4 people refers to count(taughtBy.p_id) > 4", "professor ID 297 refers to taughtBy.p_id = 297", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'", "advisor IDs refers to p_id_dummy and person.p_id where professor = 1; eighth year of program refers to yearsInprogram = 'Year_8'; position status in faculty of those professors refers to hasPosition", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'"]}} {"set": {"query": "Among the faculty affiliated professor, how many professors teaches professional or master/undergraduate courses?", "pos": ["faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'"], "neg": ["advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'", "professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "year 1 and year 2 students refers to yearsInProgram = 'Year_1' and yearsInProgram = 'Year_2' and student = 1", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'", "harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "IDs of the advisors refers to p_id_dummy; in the 5th year of their program refers to yearsInProgram = 'Year_5'", "courses refers to taughtBy.course_id; more than 4 people refers to count(taughtBy.p_id) > 4", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376"]}} {"set": {"query": "Please list the IDs of all the faculty employees who teaches a basic or medium undergraduate course.", "pos": ["faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'"], "neg": ["member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'", "professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130", "professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'", "year 1 and year 2 students refers to yearsInProgram = 'Year_1' and yearsInProgram = 'Year_2' and student = 1", "advisor 415 refers to p_id_dummy = 415", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; professor refers to professor = 1", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "professor ID 297 refers to taughtBy.p_id = 297", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))"]}} {"set": {"query": "List the person IDs and course levels of the affiliated professors in faculty.", "pos": ["person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'"], "neg": ["professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'", "faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130", "professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'", "students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2"]}} {"set": {"query": "How many professors teaches no more than two high-level or harder undergraduate courses?", "pos": ["professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2"], "neg": ["professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))", "advisor 415 refers to p_id_dummy = 415", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'", "teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'"]}} {"set": {"query": "Please list the IDs of the advisors of the students who are in the 5th year of their program.", "pos": ["IDs of the advisors refers to p_id_dummy; in the 5th year of their program refers to yearsInProgram = 'Year_5'"], "neg": ["faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'", "harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79", "professors refers to course.p_id; highest number of professional or master/undergraduate courses refers to max(count(course.course_id)) where courseLevel = 'Level_500'", "advisor 415 refers to p_id_dummy = 415", "person ID refers to person.p_id; faculty professor refers to professor = 1 and hasPosition ! = 0", "level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))"]}} {"set": {"query": "List down the advised student IDs and IDs of employing professor in faculty.", "pos": ["advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'"], "neg": ["level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'", "professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "advisor 415 refers to p_id_dummy = 415", "professional or master/undergraduate courses refers to courseLevel = 'Level_500'; average number = divide(count(taughtBy.course_id), count(taughtBy.p_id))", "courses refers to taughtBy.course_id; more than 4 people refers to count(taughtBy.p_id) > 4"]}} {"set": {"query": "Which member of the faculty are teaching the most courses and what is his/her general course level?", "pos": ["member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))"], "neg": ["students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130", "faculty affiliated professor refers to professor = 1 and hasPosition = 'Faculty_aff'; professional or master/undergraduate courses refers to courseLevel = 'Level_500'", "professor refers to professor = 1;\u00a0 member of faculty refers to hasPosition <> 0", "advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79", "level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))"]}} {"set": {"query": "How many advisors are in charge of advising all the students in 1st year?", "pos": ["advisors refers to p_id_dummy; students in 1st year refers to student = 1 and yearsInProgram = 'Year_1'"], "neg": ["advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "person IDs refers to taughtBy.p_id; course ID of 147 refers to course.course_id = 147", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "professor ID 297 refers to taughtBy.p_id = 297", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'"]}} {"set": {"query": "How many courses were taught by more than 4 people?", "pos": ["courses refers to taughtBy.course_id; more than 4 people refers to count(taughtBy.p_id) > 4"], "neg": ["professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "course 165 refers to course_id = 165; professors refers to taughtBy.p_id", "IDs of the advisors refers to p_id_dummy; in the 5th year of their program refers to yearsInProgram = 'Year_5'", "professor ID 297 refers to taughtBy.p_id = 297", "year 1 and year 2 students refers to yearsInProgram = 'Year_1' and yearsInProgram = 'Year_2' and student = 1", "professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))"]}} {"set": {"query": "How many teachers are faculty employees?", "pos": ["teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'"], "neg": ["IDs of the advisors refers to p_id_dummy; in the 5th year of their program refers to yearsInProgram = 'Year_5'", "level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))", "advised student IDs refers to person.p_id; IDs of employing professor in faculty refers to p_id_dummy and hasPosition = 'Faculty_eme'", "harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))", "advisor 415 refers to p_id_dummy = 415", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'", "advisors refers to p_id_dummy; students in 1st year refers to student = 1 and yearsInProgram = 'Year_1'", "professors refers to taughtBy.p_id; course ID 18 refers to taughtBy.course_id"]}} {"set": {"query": "State the courses and level of courses by professors who are faculty employees.", "pos": ["professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'"], "neg": ["students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "students refers to student = 1; more than 2 advisors refers to count(p_id_dummy) > 2", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "advisor 415 refers to p_id_dummy = 415", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'", "person ID refers to person.p_id; faculty professor refers to professor = 1 and hasPosition ! = 0", "advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "professor ID 297 refers to taughtBy.p_id = 297"]}} {"set": {"query": "What is the average number of students for each advisor?", "pos": ["students refers to advisedBy.p_id; advisor refers to p_id_dummy; average number = avg(count(advisedBy.p_id))"], "neg": ["professors refers to professor = 1; students refers to student = 1; ratio = divide(count(person.p_id) when professor = 1, count(person.p_id) when student = 1)", "basic or medium undergraduate courses refers to courseLevel = 'Level_300'; courses refers to course.course_id", "professor ID 297 refers to taughtBy.p_id = 297", "high-level undergraduate course refers to courseLevel = 'Level_400'; percentage = divide(count(course.course_id) when courseLevel = 'Level_400', count(course.course_id)) * 100%", "students refers to student = 1 and ; undergoing the phase of pre-qualification refers to inPhase = 'Pre-Quals'; have advisors refers to advisedBy.p_id", "professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'", "levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79", "person IDs refers to person.p_id; affiliated professors in faculty refers to professor = 1 and hasPosition = 'Faculty_aff'", "Advisor 5 refers to p_id_dummy = 5; are in the 5th year refers to yearsInProgram = 'Year_5'", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4"]}} {"set": {"query": "Please list the levels of the all courses taught by teacher no.79.", "pos": ["levels of the all courses refers to courseLevel; teacher no.79 refers to taughtBy.p_id = 79"], "neg": ["harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id", "courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376", "advisor IDs refers to p_id_dummy and person.p_id where professor = 1; eighth year of program refers to yearsInprogram = 'Year_8'; position status in faculty of those professors refers to hasPosition", "faculty employees refers to hasPosition = 'Faculty_eme'; basic or medium undergraduate course refers to courseLevel = 'Level_300'", "professors refers to taughtBy.p_id; basic or medium undergraduate courses refers to couresLevel = 'Level_300'", "teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'", "course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50", "advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'", "teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4", "students refers to student = 1; more than 2 advisors refers to count(p_id_dummy) > 2"]}} {"set": {"query": "List the course IDs and levels of person IDs from 40 to 50.", "pos": ["course IDs and levels refers to course.course_id and courseLevel; person IDs from 40 to 50 refers to taughtBy.p_id between 40 and 50"], "neg": ["professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'", "IDs of the professors refers to taughtBy.p_id and professor = 1; teaches more than 3 courses\u00a0 refers to count(course_id) > 3", "level of the course refers to courseLevel; course with most number of teachers refers to course_id = max(count(taughtBy.p_id))", "member of the faculty refers to hasPosition <> 0, most courses refers to max(count(course.course_id))", "advisors refers to p_id_dummy; students in 1st year refers to student = 1 and yearsInProgram = 'Year_1'", "IDs of the advisors refers to p_id_dummy; in the 5th year of their program refers to yearsInProgram = 'Year_5'", "professor refers to taughtBy.p_id; least amount of courses refers to min(count(course_id))", "year 1 and year 2 students refers to yearsInProgram = 'Year_1' and yearsInProgram = 'Year_2' and student = 1", "professors refers to taughtBy.p_id; high-level or harder undergraduate courses\u00a0 refers to courseLevel = 'Level_400' ; no more than two refers to count(taughtBy.course_id) < = 2", "professor ID refers to taughtBy.p_id; course ID from 121 to 130 of basic undergraduate courses refers to courseLevel = 'Level_300' and course.course_id between 121 and 130"]}} {"set": {"query": "Name the recipes which can lead to constipation.", "pos": ["can lead to constipation refers to iron > 20"], "neg": ["more than 10 minutes to prepare refers to prep_min > 10; the most calories refers to MAX(calories)", "slices refers to unit = 'slice(s)'", "Apricot Yogurt Parfaits refers to title", "cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "canned dairy is a category", "Raspberry Chiffon Pie refers to title", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)", "'cook in beef broth' refers to a preparation"]}} {"set": {"query": "Give the name of the most widely used ingredient.", "pos": ["the most widely used ingredient refers to MAX(COUNT(ingredient_id))"], "neg": ["turkey tenderloin refers to title", "the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "slices refers to unit = 'slice(s)'", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "'cook in beef broth' refers to a preparation", "Apricot Yogurt Parfaits refers to title", "almond extract is a name of an ingredient", "the longest cooking time refers to MAX(cook_min)"]}} {"set": {"query": "Is the ingredient \"graham cracker crumbs\" optional in the recipe \"Raspberry Chiffon Pie\"?", "pos": ["'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title"], "neg": ["with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "can lead to constipation refers to iron > 20", "1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty", "lead to constipation refers to iron > 20", "almond extract is a name of an ingredient", "the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)", "turkey tenderloin refers to title", "non-dairy refers to category NOT LIKE '%dairy\"", "calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title", "the longest cooking time refers to MAX(cook_min)"]}} {"set": {"query": "List all the ingredients of Apricot Yogurt Parfaits.", "pos": ["Apricot Yogurt Parfaits refers to title"], "neg": ["names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "can lead to constipation refers to iron > 20", "Raspberry Chiffon Pie refers to title; unsaturated fat refers to SUBTRACT(total_fat, sat_fat)", "almond extract is a name of an ingredient", "the National Potato Board is a source; the highest calories refers to MAX(calories)", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "'cook in beef broth' refers to a preparation"]}} {"set": {"query": "Calculate the percentage of recipes with no cholesterol included and have a cooking time less than 20 minutes among all recipes.", "pos": ["no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)"], "neg": ["can lead to constipation refers to iron > 20", "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "the longest cooking time refers to MAX(cook_min)", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "Apricot Yogurt Parfaits refers to title", "with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)", "non-dairy refers to category NOT LIKE '%dairy\"", "turkey tenderloin refers to title", "Sherry beef refers to title = 'Sherried Beef'"]}} {"set": {"query": "Name the recipe with the most Vitamin C.", "pos": ["the most Vitamin C refers to MAX(vitamin_c)"], "neg": ["names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "lead to constipation refers to iron > 20", "1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty", "the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)", "Sherry beef refers to title = 'Sherried Beef'", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)", "with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "the most widely used ingredient refers to MAX(COUNT(ingredient_id))"]}} {"set": {"query": "Please list the titles of all the recipes that are salt/sodium-free.", "pos": ["salt/sodium-free refers to sodium < 5"], "neg": ["with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "almond extract is a name of an ingredient", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)", "non-dairy refers to category NOT LIKE '%dairy\"", "canned dairy is a category", "names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)"]}} {"set": {"query": "List the names of recipes that can lead to constipation.", "pos": ["lead to constipation refers to iron > 20"], "neg": ["The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)", "calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title", "Tomato-Cucumber Relish refers to title", "salt/sodium-free refers to sodium < 5", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "Apricot Yogurt Parfaits refers to title", "'cook in beef broth' refers to a preparation", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title"]}} {"set": {"query": "How many recipes can be made with canned dairy?", "pos": ["canned dairy is a category"], "neg": ["names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)", "'cook in beef broth' refers to a preparation", "Apricot Yogurt Parfaits refers to title", "calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title", "lead to constipation refers to iron > 20", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "the most widely used ingredient refers to MAX(COUNT(ingredient_id))", "more than 10 minutes to prepare refers to prep_min > 10; the most calories refers to MAX(calories)", "can lead to constipation refers to iron > 20"]}} {"set": {"query": "How many ingredients are there in Apricot Yogurt Parfaits?", "pos": ["Apricot Yogurt Parfaits refers to title"], "neg": ["The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "the most Vitamin C refers to MAX(vitamin_c)", "'cook in beef broth' refers to a preparation", "salt/sodium-free refers to sodium < 5", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)", "slices refers to unit = 'slice(s)'", "'graham cracker crumbs' is a name of an ingredient", "the National Potato Board is a source; the highest calories refers to MAX(calories)", "non-dairy refers to category NOT LIKE '%dairy\""]}} {"set": {"query": "Among the recipes that take more than 10 minutes to prepare, what is the title of the one with the most calories?", "pos": ["more than 10 minutes to prepare refers to prep_min > 10; the most calories refers to MAX(calories)"], "neg": ["no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "Raspberry Chiffon Pie refers to title; unsaturated fat refers to SUBTRACT(total_fat, sat_fat)", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)", "Raspberry Chiffon Pie refers to title", "cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "turkey tenderloin refers to title", "names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty", "1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty"]}} {"set": {"query": "How many servings does the recipe with the highest unsaturated fat have?", "pos": ["with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))"], "neg": ["The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "Apricot Yogurt Parfaits refers to title", "can lead to constipation refers to iron > 20", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty", "names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title"]}} {"set": {"query": "How many recipes are non-dairy?", "pos": ["non-dairy refers to category NOT LIKE '%dairy\""], "neg": ["Raspberry Chiffon Pie refers to title", "cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "turkey tenderloin refers to title", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "Apricot Yogurt Parfaits refers to title", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title", "'graham cracker crumbs' is a name of an ingredient", "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)"]}} {"set": {"query": "Describe the ingredients in the recipe with the highest vitamin that helps vision in dim light.", "pos": ["the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)"], "neg": ["with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)", "non-dairy refers to category NOT LIKE '%dairy\"", "salt/sodium-free refers to sodium < 5", "slices refers to unit = 'slice(s)'", "more than 10 minutes to prepare refers to prep_min > 10; the most calories refers to MAX(calories)", "the most Vitamin C refers to MAX(vitamin_c)", "the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)", "almond extract is a name of an ingredient", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)"]}} {"set": {"query": "How many calories does the turkey tenderloin bundles recipe have?", "pos": ["turkey tenderloin refers to title"], "neg": ["Raspberry Chiffon Pie refers to title", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "sea bass is a name of an ingredient; can serve 10 people and above refers to servings > = 10; calculation = MULTIPLY(DIVIDE(COUNT(servings > = 10 THEN recipe_id)), COUNT(recipe_id), 100)", "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "Sherry beef refers to title = 'Sherried Beef'", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "salt/sodium-free refers to sodium < 5", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)"]}} {"set": {"query": "List the ingredients in Tomato-Cucumber Relish.", "pos": ["Tomato-Cucumber Relish refers to title"], "neg": ["1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty", "more than 10 minutes to prepare refers to prep_min > 10; the most calories refers to MAX(calories)", "Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty", "turkey tenderloin refers to title", "slices refers to unit = 'slice(s)'", "Raspberry Chiffon Pie refers to title; unsaturated fat refers to SUBTRACT(total_fat, sat_fat)", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)"]}} {"set": {"query": "Provide the title and total time of the recipe which has the highest possibility of gaining weight.", "pos": ["the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)"], "neg": ["the longest cooking time refers to MAX(cook_min)", "lead to constipation refers to iron > 20", "more than 10 minutes to prepare refers to prep_min > 10; the most calories refers to MAX(calories)", "the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)", "Raspberry Chiffon Pie refers to title", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "the National Potato Board is a source; the highest calories refers to MAX(calories)", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)"]}} {"set": {"query": "What is the unsaturated fat content in the recipe \"Raspberry Chiffon Pie\"?", "pos": ["Raspberry Chiffon Pie refers to title; unsaturated fat refers to SUBTRACT(total_fat, sat_fat)"], "neg": ["'graham cracker crumbs' is a name of an ingredient", "the most Vitamin C refers to MAX(vitamin_c)", "Raspberry Chiffon Pie refers to title", "cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title", "canned dairy is a category", "almond extract is a name of an ingredient", "more than 10 minutes to prepare refers to prep_min > 10; the most calories refers to MAX(calories)", "names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "can lead to constipation refers to iron > 20", "slices refers to unit = 'slice(s)'"]}} {"set": {"query": "What are the names of the top 5 recipes that are best for wound healing?", "pos": ["names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)"], "neg": ["ingredient appeared the least in recipes refers to MIN(ingredient_id)", "can lead to constipation refers to iron > 20", "salt/sodium-free refers to sodium < 5", "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "slices refers to unit = 'slice(s)'", "'graham cracker crumbs' is a name of an ingredient", "sea bass is a name of an ingredient; can serve 10 people and above refers to servings > = 10; calculation = MULTIPLY(DIVIDE(COUNT(servings > = 10 THEN recipe_id)), COUNT(recipe_id), 100)", "the most Vitamin C refers to MAX(vitamin_c)", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "lead to constipation refers to iron > 20"]}} {"set": {"query": "Among all recipes containing cheese, what is the percentage of recipes with calories greater than 200?", "pos": ["cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)"], "neg": ["The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "Apricot Yogurt Parfaits refers to title", "can lead to constipation refers to iron > 20", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "Apricot Yogurt Parfaits refers to title", "with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "salt/sodium-free refers to sodium < 5"]}} {"set": {"query": "What ingredients does the longest cooking time recipe have?", "pos": ["the longest cooking time refers to MAX(cook_min)"], "neg": ["the National Potato Board is a source; the highest calories refers to MAX(calories)", "non-dairy refers to category NOT LIKE '%dairy\"", "with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title", "the most widely used ingredient refers to MAX(COUNT(ingredient_id))", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "Tomato-Cucumber Relish refers to title", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "sea bass is a name of an ingredient; can serve 10 people and above refers to servings > = 10; calculation = MULTIPLY(DIVIDE(COUNT(servings > = 10 THEN recipe_id)), COUNT(recipe_id), 100)"]}} {"set": {"query": "How many dairy recipes can serve more than 10 people?", "pos": ["dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10"], "neg": ["'graham cracker crumbs' is a name of an ingredient", "salt/sodium-free refers to sodium < 5", "the most Vitamin C refers to MAX(vitamin_c)", "Apricot Yogurt Parfaits refers to title", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)", "Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty", "turkey tenderloin refers to title", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)"]}} {"set": {"query": "Which recipe is more beneficial in wound healing, \"Raspberry Chiffon Pie\" or \"Fresh Apricot Bavarian\"?", "pos": ["Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)"], "neg": ["Sherry beef refers to title = 'Sherried Beef'", "'cook in beef broth' refers to a preparation", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "non-dairy refers to category NOT LIKE '%dairy\"", "canned dairy is a category", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "'graham cracker crumbs' is a name of an ingredient"]}} {"set": {"query": "How many calories from fat are there in the recipe \"Raspberry Chiffon Pie\"?", "pos": ["calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title"], "neg": ["1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty", "the most widely used ingredient refers to MAX(COUNT(ingredient_id))", "Tomato-Cucumber Relish refers to title", "with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "Raspberry Chiffon Pie refers to title", "the National Potato Board is a source; the highest calories refers to MAX(calories)", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)", "Apricot Yogurt Parfaits refers to title", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)"]}} {"set": {"query": "How much fat does the Raspberry Chiffon Pie have?", "pos": ["Raspberry Chiffon Pie refers to title"], "neg": ["cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "Tomato-Cucumber Relish refers to title", "the longest cooking time refers to MAX(cook_min)", "cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title", "the highest vitamin that helps vision in dim light refers to MAX(vitamin_a)", "Apricot Yogurt Parfaits refers to title", "almond extract is a name of an ingredient", "salt/sodium-free refers to sodium < 5", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title"]}} {"set": {"query": "Which recipes contain almond extract?", "pos": ["almond extract is a name of an ingredient"], "neg": ["calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title", "lead to constipation refers to iron > 20", "with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "the longest cooking time refers to MAX(cook_min)", "Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty", "Raspberry Chiffon Pie refers to title; unsaturated fat refers to SUBTRACT(total_fat, sat_fat)", "Sherry beef refers to title = 'Sherried Beef'", "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "can lead to constipation refers to iron > 20", "Raspberry Chiffon Pie refers to title"]}} {"set": {"query": "What are the names of the ingredients that need to be cook in beef broth?", "pos": ["'cook in beef broth' refers to a preparation"], "neg": ["the National Potato Board is a source; the highest calories refers to MAX(calories)", "Apricot Yogurt Parfaits refers to title", "with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)", "turkey tenderloin refers to title", "'graham cracker crumbs' is a name of an ingredient", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "salt/sodium-free refers to sodium < 5", "names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title"]}} {"set": {"query": "How much Vitamin A is in Sherry beef?", "pos": ["Sherry beef refers to title = 'Sherried Beef'"], "neg": ["turkey tenderloin refers to title", "Raspberry Chiffon Pie refers to title; unsaturated fat refers to SUBTRACT(total_fat, sat_fat)", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title", "cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "the longest cooking time refers to MAX(cook_min)", "slices refers to unit = 'slice(s)'", "Raspberry Chiffon Pie refers to title", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "non-dairy refers to category NOT LIKE '%dairy\""]}} {"set": {"query": "Among the recipes whose source is the National Potato Board, which recipe has the highest calories?", "pos": ["the National Potato Board is a source; the highest calories refers to MAX(calories)"], "neg": ["'cook in beef broth' refers to a preparation", "more than 10 minutes to prepare refers to prep_min > 10; the most calories refers to MAX(calories)", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)", "salt/sodium-free refers to sodium < 5", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)", "Sherry beef refers to title = 'Sherried Beef'", "Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty", "turkey tenderloin refers to title", "with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))"]}} {"set": {"query": "How many cups of 1% lowfat milk should be added to no.1436 recipe?", "pos": ["1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty"], "neg": ["ingredient appeared the least in recipes refers to MIN(ingredient_id)", "salt/sodium-free refers to sodium < 5", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title", "turkey tenderloin refers to title", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "the most widely used ingredient refers to MAX(COUNT(ingredient_id))", "Sherry beef refers to title = 'Sherried Beef'", "can lead to constipation refers to iron > 20", "Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty", "the National Potato Board is a source; the highest calories refers to MAX(calories)"]}} {"set": {"query": "Among the recipes with alcohol content over 10, which recipe takes the longest to prepare?", "pos": ["with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)"], "neg": ["dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "the National Potato Board is a source; the highest calories refers to MAX(calories)", "with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)", "sea bass is a name of an ingredient; can serve 10 people and above refers to servings > = 10; calculation = MULTIPLY(DIVIDE(COUNT(servings > = 10 THEN recipe_id)), COUNT(recipe_id), 100)", "calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title", "1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "salt/sodium-free refers to sodium < 5"]}} {"set": {"query": "State the name of the optional ingredient of no.1397 recipe.", "pos": ["no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'"], "neg": ["the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title", "Tomato-Cucumber Relish refers to title", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "canned dairy is a category", "cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "the National Potato Board is a source; the highest calories refers to MAX(calories)", "cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "'graham cracker crumbs' is a name of an ingredient"]}} {"set": {"query": "Among the recipes with sea bass, how many percent of recipes can serve 10 people and above?", "pos": ["sea bass is a name of an ingredient; can serve 10 people and above refers to servings > = 10; calculation = MULTIPLY(DIVIDE(COUNT(servings > = 10 THEN recipe_id)), COUNT(recipe_id), 100)"], "neg": ["Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "slices refers to unit = 'slice(s)'", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)", "the longest cooking time refers to MAX(cook_min)", "1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty", "Raspberry Chiffon Pie refers to title; unsaturated fat refers to SUBTRACT(total_fat, sat_fat)", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10"]}} {"set": {"query": "Which recipe has the highest number of ingredients? Calculate the said recipe's total time of cooking.", "pos": ["the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)"], "neg": ["names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "the National Potato Board is a source; the highest calories refers to MAX(calories)", "the longest cooking time refers to MAX(cook_min)", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title", "lead to constipation refers to iron > 20", "with the highest unsaturated fat refers MAX(SUBTRACT(total_fat, sat_fat))", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "'graham cracker crumbs' is a name of an ingredient", "canned dairy is a category"]}} {"set": {"query": "How many recipes include the ingredient \"graham cracker crumbs\"?", "pos": ["'graham cracker crumbs' is a name of an ingredient"], "neg": ["turkey tenderloin refers to title", "Raspberry Chiffon Pie refers to title", "the longest cooking time refers to MAX(cook_min)", "1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty", "with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)", "cheese is a category; calories greater than 200 refers to calories > 200; calculation = MULTIPLY(DIVIDE(COUNT(calories > 200 THEN recipe_id), COUNT(recipe_id)), 100)", "can lead to constipation refers to iron > 20", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)"]}} {"set": {"query": "Which ingredient appeared the most in recipes? Calculate its amount of appearance in percentage.", "pos": ["ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)"], "neg": ["Apricot Yogurt Parfaits refers to title", "the longest cooking time refers to MAX(cook_min)", "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)", "Raspberry Chiffon Pie refers to title", "'graham cracker crumbs' is a name of an ingredient", "the most widely used ingredient refers to MAX(COUNT(ingredient_id))", "Tomato-Cucumber Relish refers to title", "names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "lead to constipation refers to iron > 20"]}} {"set": {"query": "Among the recipes from The California Tree Fruit Agreement, calculate the percentage of sodium-free recipes.", "pos": ["The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)"], "neg": ["'graham cracker crumbs' is a name of an ingredient; 'Raspberry Chiffon Pie' refers to title", "the most Vitamin C refers to MAX(vitamin_c)", "slices refers to unit = 'slice(s)'", "with alcohol content over 10 refers to alcohol > 10; takes the longest to prepare refers to MAX(prep_min)", "Raspberry Chiffon Pie and Fresh Apricot Bavarian are title; vitamin_c is higher refers to MAX(vitamin_c)", "Raspberry Chiffon Pie refers to title", "Sherry beef refers to title = 'Sherried Beef'", "names of the recipes refers to title; best for wound healing refers to MAX(vitamin_c)", "the longest cooking time refers to MAX(cook_min)", "the highest number of ingredients refers to MAX(ingredient_id); total time refers to recipe_id, total time of cooking refers to TOTAL(prep_min, cook_min, stnd_min)"]}} {"set": {"query": "How many ingredients must be rationed in the recipe \"Raspberry Chiffon Pie\"?", "pos": ["Raspberry Chiffon Pie refers to title; ingredient must be rationed refers to max_qty = min_qty"], "neg": ["lead to constipation refers to iron > 20", "1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty", "the National Potato Board is a source; the highest calories refers to MAX(calories)", "the highest possibility of gaining weight refers to MAX(total_fat); total time refers to recipe_id, total time refers to TOTAL(prep_min, cook_min, stnd_min)", "salt/sodium-free refers to sodium < 5", "calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title", "slices refers to unit = 'slice(s)'", "ingredient appeared the least in recipes refers to MIN(ingredient_id)", "can lead to constipation refers to iron > 20", "no cholesterol refers to cholestrl = 0; cooking time less than 20 minutes refers to cook_min < 20; calculation = MULTIPLY(DIVIDE(COUNT(cholestrl = 0 THEN recipe_id), COUNT(recipe_id)), 100)"]}} {"set": {"query": "List the ingredients which measure in slices.", "pos": ["slices refers to unit = 'slice(s)'"], "neg": ["non-dairy refers to category NOT LIKE '%dairy\"", "almond extract is a name of an ingredient", "Raspberry Chiffon Pie refers to title", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "canned dairy is a category", "Tomato-Cucumber Relish refers to title", "no.1397 recipe refers to recipe_id = 1397; optional ingredient refers to optional = 'TRUE'", "calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title", "can lead to constipation refers to iron > 20", "the most widely used ingredient refers to MAX(COUNT(ingredient_id))"]}} {"set": {"query": "Which ingredient appeared the least in recipes?", "pos": ["ingredient appeared the least in recipes refers to MIN(ingredient_id)"], "neg": ["calories from fat refers to MULTIPLY(calories, pcnt_cal_fat)||'%; Raspberry Chiffon Pie refers to title", "sea bass is a name of an ingredient; can serve 10 people and above refers to servings > = 10; calculation = MULTIPLY(DIVIDE(COUNT(servings > = 10 THEN recipe_id)), COUNT(recipe_id), 100)", "Tomato-Cucumber Relish refers to title", "non-dairy refers to category NOT LIKE '%dairy\"", "the National Potato Board is a source; the highest calories refers to MAX(calories)", "lead to constipation refers to iron > 20", "'graham cracker crumbs' is a name of an ingredient", "'cook in beef broth' refers to a preparation", "slices refers to unit = 'slice(s)'", "Raspberry Chiffon Pie refers to title"]}} {"set": {"query": "How many cups of almonds do you need for a chicken pocket sandwich?", "pos": ["cups is a unit; almonds is a name of an ingredient; chicken pocket sandwich refers to title"], "neg": ["ingredient appeared the most in recipes refers to MAX(COUNT(ingredient_id)); calculation = MULTIPLY(DIVIDE(COUNT(MAX(ingredient_id)), COUNT(ingredient_id)), 100)", "Sherry beef refers to title = 'Sherried Beef'", "the most widely used ingredient refers to MAX(COUNT(ingredient_id))", "the most Vitamin C refers to MAX(vitamin_c)", "dairy recipes refers to category = 'dairy'; serve more than 10 people refers to servings > 10", "salt/sodium-free refers to sodium < 5", "'cook in beef broth' refers to a preparation", "The California Tree Fruit Agreement is a source; calculation = MULTIPLY(DIVIDE(COUNT(sodium BETWEEN 0 AND 5 THEN recipe_id), COUNT(recipe_id)), 100)", "1% lowfat milk is a name of an ingredient; no.1436 recipe refers to recipe_id = 1436; max_qty = min_qty", "non-dairy refers to category NOT LIKE '%dairy\""]}} {"set": {"query": "When compared to the total number of breweries in the US producing American Blonde Ale, how many in the state of Wisconsin produces American Blonde Ale? Indicate your answer in percentage (%).", "pos": ["Percentage of the state of Wisconsin produces American Blonde Ale could be computed by count(breweries in Wisconsin producing American Blonde Ale) / count(all breweries)"], "neg": ["The more IBU, the more bitter the beer is, most bitter means highest IBU; The less IBU, the less bitter the beer is, least bitter means lowest IBU", "Percent allotted = count(American Adjunct Lager beer styles) / count(styles) * 100%"]}} {"set": {"query": "Which city and state produces the most and least bitter beer, and what is the difference in bitterness between the two? List also the names of the beer.", "pos": ["The more IBU, the more bitter the beer is, most bitter means highest IBU; The less IBU, the less bitter the beer is, least bitter means lowest IBU"], "neg": ["Percentage of the state of Wisconsin produces American Blonde Ale could be computed by count(breweries in Wisconsin producing American Blonde Ale) / count(all breweries)", "Percent allotted = count(American Adjunct Lager beer styles) / count(styles) * 100%"]}} {"set": {"query": "Of all the beer styles produced by Stevens Point Brewery, how many percent do they allot for American Adjunct Lager?", "pos": ["Percent allotted = count(American Adjunct Lager beer styles) / count(styles) * 100%"], "neg": ["Percentage of the state of Wisconsin produces American Blonde Ale could be computed by count(breweries in Wisconsin producing American Blonde Ale) / count(all breweries)", "The more IBU, the more bitter the beer is, most bitter means highest IBU; The less IBU, the less bitter the beer is, least bitter means lowest IBU"]}} {"set": {"query": "Find the full name and popularity of the professor who advises the most number of students.", "pos": ["full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));"], "neg": ["UG is an abbreviated name of undergraduate student in which type = 'UG';", "student with the highest GPA refers to student_id where MAX(gpa);", "research assistant refers to the student who serves for research where the abbreviation is RA; professor with the lowest teaching ability refers to prof_id where teachability = '1';", "female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);", "research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;", "sat refers to student's satisfaction degree with the course;", "student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "full name of students = f_name, l_name; failed refers to grade IS NULL;"]}} {"set": {"query": "How many students does Ogdon Zywicki advise?", "pos": ["Ogdon Zywicki is a professor;"], "neg": ["sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;", "student with the highest GPA refers to student_id where MAX(gpa);", "diff refers to difficulty; the least difficult courses refer to MIN(diff);", "average satisfaction = DIVIDE(SUM(sat), COUNT(course_id)); satisfaction refers to sat; good student refers to grade = 'B';", "A refers to an excellent grade in which grade = 'A' for the course;", "UG is an abbreviated name of undergraduate student in which type = 'UG';", "research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "female refers to gender = 'Female';", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;"]}} {"set": {"query": "Give the student's last name that gave the highest student satisfaction for the course \"Intro to Database 2\".", "pos": ["student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);"], "neg": ["intelligence < 4; full name = f_name, l_name; gpa > 3;", "If grade is NULL, it means that this student fails to pass the course; full name refers to f_name and l_name;", "full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "sat refers to student's satisfaction degree with the course;", "salary range refers to salary;", "research postgraduate student refers to type = 'RPG';", "A refers to an excellent grade in which grade = 'A' for the course;", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';", "If grade is null or empty, it means that this student fails to pass the course;", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;"]}} {"set": {"query": "How many research assistants does Sauveur Skyme have?", "pos": ["research assistant refers to the student who serves for research where the abbreviation is RA;"], "neg": ["diff refers to difficulty; the least difficult courses refer to MIN(diff);", "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "satisfaction refers to sat;\n\nsat = 4; gpa = 3.8 ", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "A refers to an excellent grade in which grade = 'A' for the course;", "Name the professor refers to full name which includes f_name and l_name;", "research postgraduate student refers to type = 'RPG';", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "Higher credit means more important in which most important refers to MAX(credit); diff refers to difficulty; the most difficult course refers to MAX(diff);", "professor with the highest research ability refers to prof_id where MAX(capability);"]}} {"set": {"query": "What is the percentage of Professor Ogdon Zywicki's research assistants are taught postgraduate students?", "pos": ["research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;"], "neg": ["If grade is NULL, it means that this student fails to pass the course; full name refers to f_name and l_name;", "research assistant refers to the student who serves for research where the abbreviation is RA; the highest research capability refers to capability = 5; full name refers to f_name and l_name;", "DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "intelligence < 4; full name = f_name, l_name; gpa > 3;", "female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "low salary refers to salary = 'low';", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;"]}} {"set": {"query": "What are the names of the courses that the students with the lowest intelligence are least satisfied with?", "pos": ["lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;"], "neg": ["difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "sat refers to student's satisfaction degree with the course;", "female refers to gender = 'Female';", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "capability on research refers to capability;", "diff refers to difficulty; the least difficult courses refer to MIN(diff);", "capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';", "satisfaction refers to sat;\n\nsat = 4; gpa = 3.8 ", "research postgraduate student refers to type = 'RPG';", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;"]}} {"set": {"query": "Calculate the difference between the average satisfaction of the students with high salaries and no salary.", "pos": ["average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';"], "neg": ["professor with the highest research ability refers to prof_id where MAX(capability);", "average satisfaction = DIVIDE(SUM(sat), COUNT(course_id)); satisfaction refers to sat; good student refers to grade = 'B';", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "low salary refers to salary = 'low';", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "sat refers to student's satisfaction degree with the course;", "difficulty of the course refers to diff;"]}} {"set": {"query": "What is the difficulty of the course in which a student with level of intellengence of 5 got an A grade?", "pos": ["difficulty of the course refers to diff;"], "neg": ["the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "Higher credit means more important in which most important refers to MAX(credit); diff refers to difficulty; the most difficult course refers to MAX(diff);", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "capability on research refers to capability;", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", "full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;"]}} {"set": {"query": "Name the professor who got graduation from the University of Boston.", "pos": ["Name the professor refers to full name which includes f_name and l_name;"], "neg": ["average satisfaction = DIVIDE(SUM(sat), COUNT(course_id)); satisfaction refers to sat; good student refers to grade = 'B';", "research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;", "name of the students = f_name, l_name; above average-capability refers to capability > AVG(capability);", "sat refers to student's satisfaction degree with the course; more satisfied refers to MAX(sat);", "university from which the professor graduated refers to graduate_from; undergraduate students refers to type = 'UG';", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';", "diff refers to difficulty; the easiest courses refers to diff = 1; A refers to an excellent grade in which grade = 'A' for the course;", "student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);"]}} {"set": {"query": "Find the university from which the professor who advised most undergraduate students graduated.", "pos": ["university from which the professor graduated refers to graduate_from; undergraduate students refers to type = 'UG';"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;", "capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';", "student with the highest GPA refers to student_id where MAX(gpa);", "female refers to gender = 'Female';", "lower credit means less important;", "salary range refers to salary;", "If grade is null or empty, it means that this student fails to pass the course;", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';"]}} {"set": {"query": "What is the full name of the professor who graduated from an Ivy League School?", "pos": ["Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;"], "neg": ["research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "research assistant refers to the student who serves for research where the abbreviation is RA; the highest research capability refers to capability = 5; full name refers to f_name and l_name;", "research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;", "capability on research refers to capability;", "full name of students = f_name, l_name; failed refers to grade IS NULL;", "diff refers to difficulty; the least difficult courses refer to MIN(diff);", "sat refers to student's satisfaction degree with the course;", "research assistant refers to the student who serves for research where the abbreviation is RA;"]}} {"set": {"query": "Among the most important courses, what is the name of the most difficult course?", "pos": ["Higher credit means more important in which most important refers to MAX(credit); diff refers to difficulty; the most difficult course refers to MAX(diff);"], "neg": ["student with the highest GPA refers to student_id where MAX(gpa);", "salary range refers to salary;", "low salary refers to salary = 'low';", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "A refers to an excellent grade in which grade = 'A' for the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "satisfaction refers to sat;\n\nsat = 4; gpa = 3.8 ", "research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';"]}} {"set": {"query": "How many courses have the highest difficulty?", "pos": ["diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;"], "neg": ["A refers to an excellent grade in which grade = 'A' for the course;", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "Ogdon Zywicki is a professor;", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", "sat refers to student's satisfaction degree with the course;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "diff refers to difficulty; the easiest courses refers to diff = 1; A refers to an excellent grade in which grade = 'A' for the course;"]}} {"set": {"query": "Among the students with a capability below 3, what is the difference of undergraduate students from research postgraduate students?", "pos": ["capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';"], "neg": ["research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "research assistant refers to the student who serves for research where the abbreviation is RA;", "university from which the professor graduated refers to graduate_from; undergraduate students refers to type = 'UG';", "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "research assistant refers to the student who serves for research where the abbreviation is RA; professor with the lowest teaching ability refers to prof_id where teachability = '1';", "diff refers to difficulty; the easiest courses refers to diff = 1; A refers to an excellent grade in which grade = 'A' for the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "professor with the highest research ability refers to prof_id where MAX(capability);", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;"]}} {"set": {"query": "What is the name of the most difficult course?", "pos": ["difficulty of a course refers to diff; most difficult course refers to MAX(diff);"], "neg": ["GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "student with the highest GPA refers to student_id where MAX(gpa);", "Name the professor refers to full name which includes f_name and l_name;", "research assistant refers to the student who serves for research where the abbreviation is RA;", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';", "capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';", "student's full names = f_name, l_name; most popular refers to MAX(popularity);", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "If grade is null or empty, it means that this student fails to pass the course;"]}} {"set": {"query": "Among professors with the highest teachability, how many of their students have high salary?", "pos": ["highest teachability refers to MAX(teachability); high salary refers to salary = 'high';"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "capability on research refers to capability;", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "student's full names = f_name, l_name; most popular refers to MAX(popularity);", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;", "lower credit means less important;", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "A refers to an excellent grade in which grade = 'A' for the course;", "full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));"]}} {"set": {"query": "Give the full name and capability of students who failed in any courses.", "pos": ["full name of students = f_name, l_name; failed refers to grade IS NULL;"], "neg": ["diff refers to difficulty; the least difficult courses refer to MIN(diff);", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;", "satisfaction refers to sat;\n\nsat = 4; gpa = 3.8 ", "A refers to an excellent grade in which grade = 'A' for the course;", "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "If grade is null or empty, it means that this student fails to pass the course;", "diff refers to difficulty; the easiest courses refers to diff = 1; A refers to an excellent grade in which grade = 'A' for the course;"]}} {"set": {"query": "What is the name of the course with the highest satisfaction from students?", "pos": ["sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;"], "neg": ["diff refers to difficulty; the easiest courses refers to diff = 1; A refers to an excellent grade in which grade = 'A' for the course;", "female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "A refers to an excellent grade in which grade = 'A' for the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "low salary refers to salary = 'low';", "university from which the professor graduated refers to graduate_from; undergraduate students refers to type = 'UG';", "student's full names = f_name, l_name; most popular refers to MAX(popularity);"]}} {"set": {"query": "Which student is more satisfied with the course Machine Learning Theory, Willie Rechert or Laughton Antonio?", "pos": ["sat refers to student's satisfaction degree with the course; more satisfied refers to MAX(sat);"], "neg": ["female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);", "female refers to gender = 'Female';", "research assistant refers to the student who serves for research where the abbreviation is RA;", "UG is an abbreviated name of undergraduate student in which type = 'UG';", "lower credit means less important;", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "Undergraduate students refers to type = 'UG'; GPA of 3.7 and above refers to gpa > 3.7;"]}} {"set": {"query": "For the professor who is working with Harrietta Lydford, how is his popularity?", "pos": ["research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA; professor with the lowest teaching ability refers to prof_id where teachability = '1';", "research postgraduate student refers to type = 'RPG';", "research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "Undergraduate students refers to type = 'UG'; GPA of 3.7 and above refers to gpa > 3.7;", "low salary refers to salary = 'low';", "A refers to an excellent grade in which grade = 'A' for the course;", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "satisfaction refers to sat;\n\nsat = 4; gpa = 3.8 ", "research assistant refers to the student who serves for research where the abbreviation is RA; the highest research capability refers to capability = 5; full name refers to f_name and l_name;"]}} {"set": {"query": "State the name of research postgraduate student among Professor Zhihua Zhou's research assistants.", "pos": ["research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;"], "neg": ["highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "capability on research refers to capability;", "research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "low salary refers to salary = 'low';", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;", "average satisfaction = DIVIDE(SUM(sat), COUNT(course_id)); satisfaction refers to sat; good student refers to grade = 'B';", "A refers to an excellent grade in which grade = 'A' for the course;", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);"]}} {"set": {"query": "How many research postgraduate students are there?", "pos": ["research postgraduate student refers to type = 'RPG';"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "intelligence < 4; full name = f_name, l_name; gpa > 3;", "student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);", "research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;"]}} {"set": {"query": "How many students got an A in Applied Deep Learning?", "pos": ["A refers to an excellent grade in which grade = 'A' for the course;"], "neg": ["full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';", "If grade is null or empty, it means that this student fails to pass the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; the highest research capability refers to capability = 5; full name refers to f_name and l_name;", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "Name the professor refers to full name which includes f_name and l_name;", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "lower credit means less important;", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", "intelligence < 4; full name = f_name, l_name; gpa > 3;"]}} {"set": {"query": "How many of the professors are female?", "pos": ["female refers to gender = 'Female';"], "neg": ["research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;", "student's full names = f_name, l_name; most popular refers to MAX(popularity);", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;", "capability on research refers to capability;", "full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "low salary refers to salary = 'low';", "If grade is null or empty, it means that this student fails to pass the course;", "research postgraduate student refers to type = 'RPG';", "sat refers to student's satisfaction degree with the course;", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);"]}} {"set": {"query": "Which professor advised Faina Mallinar to become a research assistant? Please give his or her full name.", "pos": ["research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA;", "research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "name of the students = f_name, l_name; above average-capability refers to capability > AVG(capability);", "student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);", "female refers to gender = 'Female';", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "student's full names = f_name, l_name; most popular refers to MAX(popularity);", "Name the professor refers to full name which includes f_name and l_name;", "Higher credit means more important in which most important refers to MAX(credit); diff refers to difficulty; the most difficult course refers to MAX(diff);"]}} {"set": {"query": "Mention the names and credits of course registered by the students who were under the supervision of female professor with the highest teaching ability.", "pos": ["female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;", "low salary refers to salary = 'low';", "research assistant refers to the student who serves for research where the abbreviation is RA; professor with the lowest teaching ability refers to prof_id where teachability = '1';", "full name of students = f_name, l_name; failed refers to grade IS NULL;", "full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "average satisfaction = DIVIDE(SUM(sat), COUNT(course_id)); satisfaction refers to sat; good student refers to grade = 'B';", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;"]}} {"set": {"query": "Describe the full names, emails and intelligence of the students with the highest capability and salary.", "pos": ["full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';"], "neg": ["sat refers to student's satisfaction degree with the course; more satisfied refers to MAX(sat);", "difficulty of the course refers to diff;", "professor with the highest research ability refers to prof_id where MAX(capability);", "female refers to gender = 'Female';", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;", "salary range refers to salary;", "sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;", "DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "A refers to an excellent grade in which grade = 'A' for the course;", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';"]}} {"set": {"query": "Describe the students' full names and GPAs under the supervision of the most popular professor.", "pos": ["student's full names = f_name, l_name; most popular refers to MAX(popularity);"], "neg": ["DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "difficulty of the course refers to diff;", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "Higher credit means more important in which most important refers to MAX(credit); diff refers to difficulty; the most difficult course refers to MAX(diff);", "student with the highest GPA refers to student_id where MAX(gpa);", "full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "research postgraduate student refers to type = 'RPG';"]}} {"set": {"query": "What is the popularity of the professor who advises the highest number of students with the highest research ability?", "pos": ["professor with the highest research ability refers to prof_id where MAX(capability);"], "neg": ["Name the professor refers to full name which includes f_name and l_name;", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;", "student's full names = f_name, l_name; most popular refers to MAX(popularity);", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "lower credit means less important;", "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "UG is an abbreviated name of undergraduate student in which type = 'UG';", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;"]}} {"set": {"query": "For the 3-credit course with the easiest difficulty, how many students get an \"A\" in that course?", "pos": ["diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;"], "neg": ["research postgraduate student refers to type = 'RPG';", "Ogdon Zywicki is a professor;", "name of the students = f_name, l_name; above average-capability refers to capability > AVG(capability);", "DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "Higher credit means more important in which most important refers to MAX(credit); diff refers to difficulty; the most difficult course refers to MAX(diff);", "A refers to an excellent grade in which grade = 'A' for the course;", "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "salary range refers to salary;", "low salary refers to salary = 'low';"]}} {"set": {"query": "Which professor is Oliy Spratling working with? Give the full name.", "pos": ["research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;"], "neg": ["research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;", "If grade is NULL, it means that this student fails to pass the course; full name refers to f_name and l_name;", "diff refers to difficulty; the least difficult courses refer to MIN(diff);", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "difficulty of the course refers to diff;", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "student with the highest GPA refers to student_id where MAX(gpa);", "capability on research refers to capability;", "A refers to an excellent grade in which grade = 'A' for the course;"]}} {"set": {"query": "How many research assistants of Ogdon Zywicki have an average salary?", "pos": ["research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';"], "neg": ["A refers to an excellent grade in which grade = 'A' for the course;", "research postgraduate student refers to type = 'RPG';", "intelligence < 4; full name = f_name, l_name; gpa > 3;", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;", "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;", "salary range refers to salary;", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';"]}} {"set": {"query": "Among the easiest courses, what is the name of the course where most students got an A?", "pos": ["diff refers to difficulty; the easiest courses refers to diff = 1; A refers to an excellent grade in which grade = 'A' for the course;"], "neg": ["female refers to gender = 'Female';", "research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;", "capability on research refers to capability;", "UG is an abbreviated name of undergraduate student in which type = 'UG';", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';"]}} {"set": {"query": "Among students with low salary, how many of them have a gpa of 3.5?", "pos": ["low salary refers to salary = 'low';"], "neg": ["A refers to an excellent grade in which grade = 'A' for the course;", "sat refers to student's satisfaction degree with the course; more satisfied refers to MAX(sat);", "If grade is null or empty, it means that this student fails to pass the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; professor with the lowest teaching ability refers to prof_id where teachability = '1';", "A refers to an excellent grade in which grade = 'A' for the course;", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;", "female refers to gender = 'Female';", "full name of students = f_name, l_name; failed refers to grade IS NULL;", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;"]}} {"set": {"query": "Among students that gave satisfaction of value 4 for the course named \"Statistical Learning\", how many of them have a gpa of 3.8?", "pos": ["satisfaction refers to sat;\n\nsat = 4; gpa = 3.8 "], "neg": ["full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "research postgraduate student refers to type = 'RPG';", "student's full names = f_name, l_name; most popular refers to MAX(popularity);", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "Ogdon Zywicki is a professor;", "research assistant refers to the student who serves for research where the abbreviation is RA; professor with the lowest teaching ability refers to prof_id where teachability = '1';", "sat refers to student's satisfaction degree with the course; more satisfied refers to MAX(sat);", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;"]}} {"set": {"query": "Among the students who took the course Machine Learning Theory, how many of them are undergraduates?", "pos": ["UG is an abbreviated name of undergraduate student in which type = 'UG';"], "neg": ["research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "name of the students = f_name, l_name; above average-capability refers to capability > AVG(capability);", "average satisfaction = DIVIDE(SUM(sat), COUNT(course_id)); satisfaction refers to sat; good student refers to grade = 'B';", "salary range refers to salary;", "If grade is null or empty, it means that this student fails to pass the course;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "lower credit means less important;", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';", "sat refers to student's satisfaction degree with the course; more satisfied refers to MAX(sat);"]}} {"set": {"query": "Please list the full names of all the students who are research assistants with the highest research capability.", "pos": ["research assistant refers to the student who serves for research where the abbreviation is RA; the highest research capability refers to capability = 5; full name refers to f_name and l_name;"], "neg": ["GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';", "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);", "A refers to an excellent grade in which grade = 'A' for the course;", "name of the students = f_name, l_name; above average-capability refers to capability > AVG(capability);", "research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;", "full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "sat refers to student's satisfaction degree with the course;"]}} {"set": {"query": "Describe the names and credits of the least difficult courses.", "pos": ["diff refers to difficulty; the least difficult courses refer to MIN(diff);"], "neg": ["research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "Higher credit means more important in which most important refers to MAX(credit); diff refers to difficulty; the most difficult course refers to MAX(diff);", "low salary refers to salary = 'low';", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';", "sat refers to student's satisfaction degree with the course;", "capability on research refers to capability;", "Undergraduate students refers to type = 'UG'; GPA of 3.7 and above refers to gpa > 3.7;"]}} {"set": {"query": "Calculate the GPA of the semester for Laughton Antonio.", "pos": ["GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;"], "neg": ["gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "professor with the highest research ability refers to prof_id where MAX(capability);", "DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "Higher credit means more important in which most important refers to MAX(credit); diff refers to difficulty; the most difficult course refers to MAX(diff);", "student's full names = f_name, l_name; most popular refers to MAX(popularity);", "intelligence < 4; full name = f_name, l_name; gpa > 3;", "difficulty of the course refers to diff;", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';"]}} {"set": {"query": "Among research postgraduate students, give the name of the course with the student satisfaction value of 1.", "pos": ["research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;"], "neg": ["student with the highest GPA refers to student_id where MAX(gpa);", "full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "research assistant refers to the student who serves for research where the abbreviation is RA;", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;", "research postgraduate student refers to type = 'RPG';", "student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "UG is an abbreviated name of undergraduate student in which type = 'UG';", "sat refers to student's satisfaction degree with the course;"]}} {"set": {"query": "How many courses does the student with the highest GPA this semester take?", "pos": ["student with the highest GPA refers to student_id where MAX(gpa);"], "neg": ["A refers to an excellent grade in which grade = 'A' for the course;", "If grade is NULL, it means that this student fails to pass the course; full name refers to f_name and l_name;", "university from which the professor graduated refers to graduate_from; undergraduate students refers to type = 'UG';", "sat refers to student's satisfaction degree with the course;", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';", "full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';"]}} {"set": {"query": "Provide the registered courses' names by undergraduate students with GPA of 3.7 and above.", "pos": ["Undergraduate students refers to type = 'UG'; GPA of 3.7 and above refers to gpa > 3.7;"], "neg": ["highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "capability on research refers to capability;", "intelligence < 4; full name = f_name, l_name; gpa > 3;", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);"]}} {"set": {"query": "Name the students with above-average capability.", "pos": ["name of the students = f_name, l_name; above average-capability refers to capability > AVG(capability);"], "neg": ["sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;", "research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "student with the highest GPA refers to student_id where MAX(gpa);", "female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);", "lower credit means less important;", "If grade is NULL, it means that this student fails to pass the course; full name refers to f_name and l_name;", "research assistant refers to the student who serves for research where the abbreviation is RA;", "female refers to gender = 'Female';", "sat refers to student's satisfaction degree with the course; more satisfied refers to MAX(sat);"]}} {"set": {"query": "How many students, who have a GPA between 3 to 4, failed a course?", "pos": ["GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;"], "neg": ["average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "salary range refers to salary;", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;", "UG is an abbreviated name of undergraduate student in which type = 'UG';", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "professor with the highest research ability refers to prof_id where MAX(capability);", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);"]}} {"set": {"query": "Which professor advised Willie Rechert to work as a research assistant? Please give his or her full name.", "pos": ["research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;"], "neg": ["lower credit means less important;", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "sat refers to student's satisfaction degree with the course;", "sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;", "capability on research refers to capability;", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;", "female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "intelligence < 4; full name = f_name, l_name; gpa > 3;"]}} {"set": {"query": "What is the average GPA of the students with the highest research capability and high salary? List the full names of the students.", "pos": ["the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);"], "neg": ["female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);", "If grade is NULL, it means that this student fails to pass the course; full name refers to f_name and l_name;", "capability on research refers to capability;", "diff refers to difficulty; the least difficult courses refer to MIN(diff);", "professor with the highest research ability refers to prof_id where MAX(capability);", "research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;"]}} {"set": {"query": "Please list the names of the courses that are less important than Machine Learning Theory.", "pos": ["lower credit means less important;"], "neg": ["average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "professor with the highest research ability refers to prof_id where MAX(capability);", "A refers to an excellent grade in which grade = 'A' for the course;", "full name of students = f_name, l_name; failed refers to grade IS NULL;", "intelligence < 4; full name = f_name, l_name; gpa > 3;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';", "diff refers to difficulty; the least difficult courses refer to MIN(diff);", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';"]}} {"set": {"query": "How many research assistants does the female professor with the lowest teaching ability have?", "pos": ["research assistant refers to the student who serves for research where the abbreviation is RA; professor with the lowest teaching ability refers to prof_id where teachability = '1';"], "neg": ["capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';", "name of the students = f_name, l_name; above average-capability refers to capability > AVG(capability);", "capability on research refers to capability;", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "intelligence < 4; full name = f_name, l_name; gpa > 3;", "DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "low salary refers to salary = 'low';", "sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;"]}} {"set": {"query": "List the courses' IDs and students' IDs who failed to pass the course.", "pos": ["If grade is null or empty, it means that this student fails to pass the course;"], "neg": ["Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);", "full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';", "difficulty of the course refers to diff;", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "Name the professor refers to full name which includes f_name and l_name;", "If grade is NULL, it means that this student fails to pass the course; full name refers to f_name and l_name;", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;"]}} {"set": {"query": "Among professors with the highest popularity, how many of their students have research capability of 5?", "pos": ["highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "UG is an abbreviated name of undergraduate student in which type = 'UG';", "student with the highest GPA refers to student_id where MAX(gpa);", "A refers to an excellent grade in which grade = 'A' for the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "satisfaction refers to sat;\n\nsat = 4; gpa = 3.8 ", "diff refers to difficulty; the least difficult courses refer to MIN(diff);", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "university from which the professor graduated refers to graduate_from; undergraduate students refers to type = 'UG';", "full name of students = f_name, l_name; failed refers to grade IS NULL;"]}} {"set": {"query": "What is the salary range of the student with an email of grosellg@hku.hk?", "pos": ["salary range refers to salary;"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA;", "low salary refers to salary = 'low';", "sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;", "diff refers to difficulty; the least difficult courses refer to MIN(diff);", "difficulty of the course refers to diff;", "research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;", "university from which the professor graduated refers to graduate_from; undergraduate students refers to type = 'UG';", "student with the highest GPA refers to student_id where MAX(gpa);", "sat refers to student's satisfaction degree with the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';"]}} {"set": {"query": "Among students registered for the most difficult course, list the students' full names who got grade A.", "pos": ["difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;"], "neg": ["difficulty of a course refers to diff; most difficult course refers to MAX(diff);", "research assistant refers to the student who serves for research where the abbreviation is RA; taught postgraduate student refers to type = 'TPG'; DIVIDE(COUNT(student_id where type = 'TPG' and first_name = 'Ogdon', last_name = 'Zywicki'), COUNT(first_name = 'Ogdon', last_name = 'Zywicki')) as percentage;", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "diff refers to difficulty; the easiest courses refers to diff = 1; A refers to an excellent grade in which grade = 'A' for the course;", "Ivy League school is assembled by 8 universities: Brown University, Columbia University, Cornell University, Dartmouth College, Harvard University, Princeton University, University of Pennsylvania and Yale University;", "research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;", "Ogdon Zywicki is a professor;", "salary range refers to salary;", "GPA is an abbreviated name of Grade Point Average where GPA between 3 to 4 refers to gpa BETWEEN 3 AND 4; If grade is null or empty, it means that this student fails to pass this course;", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;"]}} {"set": {"query": "What is the percentage of students who get a \"B\" in the course \"Computer Network\"?", "pos": ["DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;"], "neg": ["the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "diff refers to difficulty; diff is higher means the course is more difficult in which highest difficulty is expessed as diff = 5;", "student with the highest GPA refers to student_id where MAX(gpa);", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "difficulty of a course refers to diff; most difficult course refers to MAX(diff);", "sat refers to student's satisfaction degree with the course; more satisfied refers to MAX(sat);", "research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;"]}} {"set": {"query": "Among the students with less than four intelligence, list the full name and phone number of students with a greater than 3 GPA.", "pos": ["intelligence < 4; full name = f_name, l_name; gpa > 3;"], "neg": ["average satisfaction = DIVIDE(SUM(sat), COUNT(course_id)); satisfaction refers to sat; good student refers to grade = 'B';", "research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "Name the professor refers to full name which includes f_name and l_name;", "Higher credit means more important in which most important refers to MAX(credit); diff refers to difficulty; the most difficult course refers to MAX(diff);", "sat refers to student's satisfaction degree with the course where sat = 5 stands for the highest satisfaction;", "the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor\u2019s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "difficulty of a course refers to diff; most difficult course refers to MAX(diff);", "diff refers to difficulty; the least difficult courses refer to MIN(diff);"]}} {"set": {"query": "List the capability of research postgraduate students with an intellegence level of 4 and above.", "pos": ["research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;"], "neg": ["diff refers to difficulty; the least difficult courses refer to MIN(diff);", "intelligence < 4; full name = f_name, l_name; gpa > 3;", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "professor with the highest research ability refers to prof_id where MAX(capability);", "capability on research refers to capability;", "salary range refers to salary;", "If grade is NULL, it means that this student fails to pass the course; full name refers to f_name and l_name;", "diff refers to difficulty; the easiest courses refers to diff = 1; A refers to an excellent grade in which grade = 'A' for the course;"]}} {"set": {"query": "What is the average satisfying degree of the course Machine Learning Theory?", "pos": ["sat refers to student's satisfaction degree with the course;"], "neg": ["Name the professor refers to full name which includes f_name and l_name;", "capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';", "salary range refers to salary;", "low salary refers to salary = 'low';", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';", "lower intelligence refers to intelligence = 1; sat refers to student's satisfaction degree with the course where least satisfaction refers to sat = 1;", "A refers to an excellent grade in which grade = 'A' for the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; the highest research capability refers to capability = 5; full name refers to f_name and l_name;"]}} {"set": {"query": "What is the capability on research of the student named Alvera McQuillin?", "pos": ["capability on research refers to capability;"], "neg": ["full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "A refers to an excellent grade in which grade = 'A' for the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; full name refers to f_name and l_name;", "capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "female refers to gender = 'Female';", "Name the professor refers to full name which includes f_name and l_name;", "salary range refers to salary;", "Undergraduate students refers to type = 'UG'; GPA of 3.7 and above refers to gpa > 3.7;"]}} {"set": {"query": "Give the phone number of the only student who obtained \"A\" in the course \"Intro to BlockChain\".", "pos": ["A refers to an excellent grade in which grade = 'A' for the course;"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "intelligence < 4; full name = f_name, l_name; gpa > 3;", "student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);", "research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;", "satisfaction refers to sat;\n\nsat = 4; gpa = 3.8 ", "professor with the highest research ability refers to prof_id where MAX(capability);", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';", "female refers to gender = 'Female';", "capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';"]}} {"set": {"query": "Provide the full names and emails of unpaid research assistants.", "pos": ["full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';"], "neg": ["full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));", "research assistant refers to the student who serves for research where the abbreviation is RA; the highest research capability refers to capability = 5; full name refers to f_name and l_name;", "diff refers to difficulty; diff is higher means the course is more difficult in which easiest difficulty refers to diff = 1; 3-credit course refers to credit = '3'; get an \"A\" refers to grade = 'A' for the course;", "UG is an abbreviated name of undergraduate student in which type = 'UG';", "gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "diff refers to difficulty; the least difficult courses refer to MIN(diff);", "DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "A refers to an excellent grade in which grade = 'A' for the course;", "research assistant refers to the student who serves for research where the abbreviation is RA; professor with the lowest teaching ability refers to prof_id where teachability = '1';"]}} {"set": {"query": "Calculate the average satisfaction of the good students with their courses.", "pos": ["average satisfaction = DIVIDE(SUM(sat), COUNT(course_id)); satisfaction refers to sat; good student refers to grade = 'B';"], "neg": ["full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "If grade is null or empty, it means that this student fails to pass the course;", "research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;", "A refers to an excellent grade in which grade = 'A' for the course;", "salary range refers to salary;", "average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "UG is an abbreviated name of undergraduate student in which type = 'UG';", "research postgraduate student refers to type = 'RPG'; research assistant refers to the student who serves for research where the abbreviation is RA;"]}} {"set": {"query": "Which student failed the course Intro to Database 2? Please give his or her full name.", "pos": ["If grade is NULL, it means that this student fails to pass the course; full name refers to f_name and l_name;"], "neg": ["research assistant refers to the student who serves for research where the abbreviation is RA; prof_id refers to professor\u2019s ID; full name refers to f_name and l_name;", "research assistant refers to the student who serves for research where the abbreviation is RA; professor with the lowest teaching ability refers to prof_id where teachability = '1';", "student with the highest GPA refers to student_id where MAX(gpa);", "research assistant refers to the student who serves for research where the abbreviation is RA; higher popularity means more popular; prof_id refers to professor\u2019s ID;", "name of the students = f_name, l_name; above average-capability refers to capability > AVG(capability);", "full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';", "highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';", "research assistant refers to the student who serves for research where the abbreviation is RA;"]}} {"set": {"query": "Among the students with a gpa of 3.1 to 3.7, how many of them are undergraduate students?", "pos": ["gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';"], "neg": ["student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);", "capability < 3; difference = subtract(count(type = 'UG')), (count(type = 'RPG')); undergraduate students refers to type = 'UG'; research postgraduate students refers to type = 'RPG';", "research assistant refers to the student who serves for research where the abbreviation is RA; average salary refers to salary = 'med';", "difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;", "DIVIDE(COUNT(student_id(grade = 'B' and name = 'Computer Network')), COUNT(student_id where name = ' Computer Network')) as percentage;", "GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;", "sat refers to student's satisfaction degree with the course;", "Undergraduate students refers to type = 'UG'; GPA of 3.7 and above refers to gpa > 3.7;", "highest teachability refers to MAX(teachability); high salary refers to salary = 'high';", "diff refers to difficulty; the least difficult courses refer to MIN(diff);"]}} {"set": {"query": "What is the highest grossing movie without a song?", "pos": ["the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';"], "neg": ["FALSE;", "The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';", "Will Finn refers to director = 'Will Finn';", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;", "Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;", "The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "Meet the Robinsons refers to movie_title = 'Meet the Robinsons';", "FALSE;"]}} {"set": {"query": "How many movies did Wolfgang Reitherman direct?", "pos": ["Wolfgang Reitherman refers director = 'Wolfgang Reitherman';"], "neg": ["Ron Clements refers director = 'Ron Clements';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47';", "Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;", "Mulan refers to movie_title = 'Mulan';", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "Ben Sharpsteen refers to director = 'Ben Sharpsteen';", "films grossed over $100 million refer to movie_title where total_gross > 100000000;"]}} {"set": {"query": "Calculate the percentage of directors whose films grossed over $100 million.", "pos": ["DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;"], "neg": ["The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';", "The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';", "Movies refer to movie_title; released between 2010 and 2016 refers to substr(release_date, length(release_date) - 1, length(release_date)) between '10' and '16';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "Ben Sharpsteen refers to director = 'Ben Sharpsteen';", "Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';", "FALSE;", "Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);"]}} {"set": {"query": "What is the most popular movie directed by Ron Clements?", "pos": ["Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);"], "neg": ["Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", "which movies do not have villain refer to movie_title where villian is null;", "drama refers to genre = 'Drama';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "Most productive director refers to director where MAX(COUNT(name));", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;"]}} {"set": {"query": "Who are the voice actors in the movie that came out on 11/24/2010?", "pos": ["Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';"], "neg": ["FALSE;", "The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';", "Mulan refers to movie_title = 'Mulan';", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross);", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;"]}} {"set": {"query": "Find the estimated inflation rate that was used to adjust the 1995 box office revenue for Disney's films.", "pos": ["DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';"], "neg": ["DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "FALSE;", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';", "Will Finn refers to director = 'Will Finn';", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';", "the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);"]}} {"set": {"query": "Give the name of the director of the movie in which Verna Felton was the voice actor for its character \"Aunt Sarah\".", "pos": ["FALSE;"], "neg": ["Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen';", "drama refers to genre = 'Drama';", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;", "Bambi is the name of the movie which refers to movie = 'Bambi';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);", "FALSE;"]}} {"set": {"query": "Find out what proportion of total revenue Walt Disney Parks and Resorts received in 2010.", "pos": ["DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;"], "neg": ["Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;", "FALSE;", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';", "FALSE;", "Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';", "DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';", "which movies do not have villain refer to movie_title where villian is null;", "Hercules refers to movie = 'Hercules';"]}} {"set": {"query": "Who directed the movie with the most voice actors?", "pos": ["who directed refers director;"], "neg": ["Will Finn refers to director = 'Will Finn';", "Comedy refers to genre = 'Comedy'; the main character of the movie refers to hero;", "FALSE;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;", "Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;", "The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;", "Meet the Robinsons refers to movie_title = 'Meet the Robinsons';", "Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47';", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;"]}} {"set": {"query": "Which of the movies directed by Ron Clements has the highest total gross?", "pos": ["Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);"], "neg": ["Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "Most productive director refers to director where MAX(COUNT(name));", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "FALSE;", "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);"]}} {"set": {"query": "How much is the total gross of the movie with a song titled \"Little Wonders\"?", "pos": ["song = 'Little Wonders'"], "neg": ["drama refers to genre = 'Drama';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';", "FALSE;", "Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "Will Finn refers to director = 'Will Finn';", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;"]}} {"set": {"query": "Provide the title, total gross, and MPAA rating of the movie which has a hero named Elsa.", "pos": ["Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;"], "neg": ["released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "Movies refer to movie_title; released between 2010 and 2016 refers to substr(release_date, length(release_date) - 1, length(release_date)) between '10' and '16';", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47';", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;", "Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);", "films grossed over $100 million refer to movie_title where total_gross > 100000000;", "Hercules refers to movie = 'Hercules';", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';"]}} {"set": {"query": "Name actors who voiced more than five Disney characters.", "pos": ["Actors who voiced refer to voice-actor;"], "neg": ["movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';", "FALSE;", "song = 'Little Wonders'", "FALSE;", "The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;", "Will Finn refers to director = 'Will Finn';", "Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';", "Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);"]}} {"set": {"query": "Provide the movie titles and the estimated inflation rate of the highest total grossed movie.", "pos": ["The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;"], "neg": ["Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);", "which movies do not have villain refer to movie_title where villian is null;", "The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47';", "Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;", "Jeff Bennett refers to voice-actor = 'Jeff Bennett';", "Mulan refers to movie_title = 'Mulan';"]}} {"set": {"query": "Name the main character of Disney's most popular adventure movie based on its inflation-adjusted gross.", "pos": ["adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);"], "neg": ["Ron Clements refers director = 'Ron Clements';", "Bambi is the name of the movie which refers to movie = 'Bambi';", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';", "The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;", "Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "films grossed over $100 million refer to movie_title where total_gross > 100000000;", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';"]}} {"set": {"query": "Which movies of director Wolfgang Reitherman do not have villain?", "pos": ["which movies do not have villain refer to movie_title where villian is null;"], "neg": ["Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "FALSE;", "the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "Ben Sharpsteen refers to director = 'Ben Sharpsteen';", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "FALSE;", "name of the movie refers to movie_title;"]}} {"set": {"query": "List all the songs associated with drama movies.", "pos": ["drama refers to genre = 'Drama';"], "neg": ["who directed refers director;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "Most productive director refers to director where MAX(COUNT(name));", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;"]}} {"set": {"query": "Which movie is the character Robin Hood in?", "pos": ["Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;"], "neg": ["FALSE;", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';", "Bambi is the name of the movie which refers to movie = 'Bambi';", "Movies refer to movie_title; released between 2010 and 2016 refers to substr(release_date, length(release_date) - 1, length(release_date)) between '10' and '16';", "PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';", "drama refers to genre = 'Drama';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';", "FALSE;"]}} {"set": {"query": "What are the characters in the PG movies?", "pos": ["PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';"], "neg": ["adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "FALSE;", "Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;", "FALSE;", "Actors who voiced refer to voice-actor;", "Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;"]}} {"set": {"query": "For the movie in which Tress MacNeille was the voice actor for its character \"Hyacinth Hippo\", what was the release date of that movie?", "pos": ["FALSE;"], "neg": ["Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';", "PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "Hercules refers to movie = 'Hercules';", "The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "song = 'Little Wonders'", "drama refers to genre = 'Drama';"]}} {"set": {"query": "What movies did director Jack Kinney direct?", "pos": ["FALSE;"], "neg": ["Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "FALSE;", "Movies with songs refer song = 'not null'; DIVIDE(SUM(total_gross where song = 'not null'), sum(total_gross)) as percentage;", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross);", "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "which movies do not have villain refer to movie_title where villian is null;", "Will Finn refers to director = 'Will Finn';"]}} {"set": {"query": "What proportion of the total gross of all movies is from movies with songs?", "pos": ["Movies with songs refer song = 'not null'; DIVIDE(SUM(total_gross where song = 'not null'), sum(total_gross)) as percentage;"], "neg": ["Most productive director refers to director where MAX(COUNT(name));", "FALSE;", "FALSE;", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "Jeff Bennett refers to voice-actor = 'Jeff Bennett';", "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "FALSE;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "song = 'Little Wonders'", "Wolfgang Reitherman refers director = 'Wolfgang Reitherman';"]}} {"set": {"query": "List the movie titles with the voice actor Jeff Bennet", "pos": ["Jeff Bennett refers to voice-actor = 'Jeff Bennett';"], "neg": ["The top 5 highest-grossing movies adjusted for inflation refer to MAX(inflation_adjusted_gross)LIMIT 5; DIVIDE(SUM(MAX(inflation_adjusted_gross LIMIT 5)), SUM(inflation_adjusted_gross)) as percentage;", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "Hercules refers to movie = 'Hercules';", "FALSE;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "Mulan refers to movie_title = 'Mulan';", "movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "FALSE;"]}} {"set": {"query": "How many movies for mature audiences or parental guidance suggested did Bill Thompson work as a voice actor?", "pos": ["movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';"], "neg": ["Ron Clements refers director = 'Ron Clements';", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "which movies do not have villain refer to movie_title where villian is null;", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", "Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47';", "Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "FALSE;"]}} {"set": {"query": "Which song is associated with the most popular Disney movie in 1970s?", "pos": ["the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);"], "neg": ["PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;", "The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';", "FALSE;", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "which movies do not have villain refer to movie_title where villian is null;", "name of the movie refers to movie_title;", "Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';"]}} {"set": {"query": "Who is the voice actor of the character \"Binkie Muddlefoot\"?", "pos": ["FALSE;"], "neg": ["Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "Ron Clements refers director = 'Ron Clements';", "Hercules refers to movie = 'Hercules';", "Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;", "Movies refer to movie_title; released between 2010 and 2016 refers to substr(release_date, length(release_date) - 1, length(release_date)) between '10' and '16';", "FALSE;", "Most productive director refers to director where MAX(COUNT(name));", "Bambi is the name of the movie which refers to movie = 'Bambi';"]}} {"set": {"query": "List all the main characters of the movie that are comedy genre.", "pos": ["Comedy refers to genre = 'Comedy'; the main character of the movie refers to hero;"], "neg": ["FALSE;", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross);", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "Most productive director refers to director where MAX(COUNT(name));", "FALSE;"]}} {"set": {"query": "Who is the hero character of the adventure movie which was released on 2016/3/4?", "pos": ["released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;"], "neg": ["DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "Bambi is the name of the movie which refers to movie = 'Bambi';", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';", "the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "song = 'Little Wonders'", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';"]}} {"set": {"query": "Who is the villain of the movie \"Beauty and the Beast\"?", "pos": ["Beauty and the Beast refers to movie_title = 'Beauty and the Beast';"], "neg": ["Ron Clements refers director = 'Ron Clements';", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "name of the movie refers to movie_title;", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "drama refers to genre = 'Drama';", "FALSE;", "movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen';", "The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;"]}} {"set": {"query": "In which segment did the Walt Disney Company earned a bigger revenue in 1998, Studio Entertainment or Disney Media Networks?", "pos": ["Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;"], "neg": ["directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "FALSE;", "who directed refers director;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "Meet the Robinsons refers to movie_title = 'Meet the Robinsons';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "which movies do not have villain refer to movie_title where villian is null;"]}} {"set": {"query": "Give the name of the movie which the song \"I Thought I Lost You\" is associated with.", "pos": ["name of the movie refers to movie_title;"], "neg": ["FALSE;", "Movies with songs refer song = 'not null'; DIVIDE(SUM(total_gross where song = 'not null'), sum(total_gross)) as percentage;", "The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;", "FALSE;", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "drama refers to genre = 'Drama';", "Ron Clements refers director = 'Ron Clements';", "DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';", "song = 'Little Wonders'", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';"]}} {"set": {"query": "How many of Gary Trousdale's movies are adventure movies?", "pos": ["Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';"], "neg": ["adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "Movies refer to movie_title; released between 2010 and 2016 refers to substr(release_date, length(release_date) - 1, length(release_date)) between '10' and '16';", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);", "Bambi is the name of the movie which refers to movie = 'Bambi';", "Mulan refers to movie_title = 'Mulan';", "DIVIDE(COUNT(movie_title where genre = 'Comedy'), COUNT(movie_title)) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) between '1991' and '2000';", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "The top 5 highest-grossing movies adjusted for inflation refer to MAX(inflation_adjusted_gross)LIMIT 5; DIVIDE(SUM(MAX(inflation_adjusted_gross LIMIT 5)), SUM(inflation_adjusted_gross)) as percentage;", "Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';"]}} {"set": {"query": "Name the villain of the movie with Scott Weinger and Brad Kane as voice actors.", "pos": ["FALSE;"], "neg": ["SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "FALSE;", "Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "which movies do not have villain refer to movie_title where villian is null;", "name of the movie refers to movie_title;", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;"]}} {"set": {"query": "How much more total box office gross did the Walt Disney Company have in revenue in 1998 than in 1997?", "pos": ["SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))"], "neg": ["The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "FALSE;", "Bambi is the name of the movie which refers to movie = 'Bambi';", "FALSE;", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;"]}} {"set": {"query": "Provide the title, director, and release date of the movie voice-acted by Freddie Jones.", "pos": ["Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;"], "neg": ["the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "FALSE;", "The top 5 highest-grossing movies adjusted for inflation refer to MAX(inflation_adjusted_gross)LIMIT 5; DIVIDE(SUM(MAX(inflation_adjusted_gross LIMIT 5)), SUM(inflation_adjusted_gross)) as percentage;", "Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);", "FALSE;", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", "PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';"]}} {"set": {"query": "Provide a list of directors from the 1990s.", "pos": ["the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);"], "neg": ["song = 'Little Wonders'", "Ben Sharpsteen refers to director = 'Ben Sharpsteen';", "FALSE;", "Comedy refers to genre = 'Comedy'; the main character of the movie refers to hero;", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "drama refers to genre = 'Drama';", "Wolfgang Reitherman refers director = 'Wolfgang Reitherman';", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "FALSE;"]}} {"set": {"query": "Who are the voice actors for all the heroes?", "pos": ["FALSE;"], "neg": ["Bambi is the name of the movie which refers to movie = 'Bambi';", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';", "which movies do not have villain refer to movie_title where villian is null;", "drama refers to genre = 'Drama';", "Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;", "Hercules refers to movie = 'Hercules';", "The top 5 highest-grossing movies adjusted for inflation refer to MAX(inflation_adjusted_gross)LIMIT 5; DIVIDE(SUM(MAX(inflation_adjusted_gross LIMIT 5)), SUM(inflation_adjusted_gross)) as percentage;", "DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';"]}} {"set": {"query": "Name the top 5 highest-grossing Disney movies adjusted for inflation. Identify the percentage they contributed to the total of Disney's current gross.", "pos": ["The top 5 highest-grossing movies adjusted for inflation refer to MAX(inflation_adjusted_gross)LIMIT 5; DIVIDE(SUM(MAX(inflation_adjusted_gross LIMIT 5)), SUM(inflation_adjusted_gross)) as percentage;"], "neg": ["Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "Ron Clements refers director = 'Ron Clements';", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';", "Movies refer to movie_title; released between 2010 and 2016 refers to substr(release_date, length(release_date) - 1, length(release_date)) between '10' and '16';", "FALSE;", "FALSE;"]}} {"set": {"query": "List the PG-13 romantic comedy movie titles and their release dates.", "pos": ["PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';"], "neg": ["FALSE;", "movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';", "Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);", "Ben Sharpsteen refers to director = 'Ben Sharpsteen';", "DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';", "The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "Hercules refers to movie = 'Hercules';"]}} {"set": {"query": "How many voice-actors were involved in the Bambi movie?", "pos": ["Bambi is the name of the movie which refers to movie = 'Bambi';"], "neg": ["directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';", "PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';", "drama refers to genre = 'Drama';", "The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';", "FALSE;", "films grossed over $100 million refer to movie_title where total_gross > 100000000;", "FALSE;"]}} {"set": {"query": "Who is the most productive director?", "pos": ["Most productive director refers to director where MAX(COUNT(name));"], "neg": ["Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';", "Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;", "which movies do not have villain refer to movie_title where villian is null;", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", "song = 'Little Wonders'", "FALSE;", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "DIVIDE(COUNT(movie_title where genre = 'Comedy'), COUNT(movie_title)) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) between '1991' and '2000';", "films grossed over $100 million refer to movie_title where total_gross > 100000000;"]}} {"set": {"query": "Calculate the percentage of voice actors whose main character in the movie is in the Drama genre.", "pos": ["DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;"], "neg": ["DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "Will Finn refers to director = 'Will Finn';", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "name of the movie refers to movie_title;", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "Most productive director refers to director where MAX(COUNT(name));", "FALSE;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;"]}} {"set": {"query": "Among the movies released from 1991 to 2000, calculate the percentage of comedy movies. Provide any five movie titles and directors.", "pos": ["DIVIDE(COUNT(movie_title where genre = 'Comedy'), COUNT(movie_title)) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) between '1991' and '2000';"], "neg": ["Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;", "Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "Ben Sharpsteen refers to director = 'Ben Sharpsteen';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';", "Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;"]}} {"set": {"query": "What is Disney's highest grossing action movie?", "pos": ["action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)"], "neg": ["Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';", "Jeff Bennett refers to voice-actor = 'Jeff Bennett';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "FALSE;", "Most productive director refers to director where MAX(COUNT(name));", "song = 'Little Wonders'", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;"]}} {"set": {"query": "Who is the hero character of the Disney movie directed by Will Finn?", "pos": ["Will Finn refers to director = 'Will Finn';"], "neg": ["The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';", "Movies with songs refer song = 'not null'; DIVIDE(SUM(total_gross where song = 'not null'), sum(total_gross)) as percentage;", "FALSE;", "Jeff Bennett refers to voice-actor = 'Jeff Bennett';", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "FALSE;", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "name of the movie refers to movie_title;", "movies for mature audiences or parental guidance refer to movie_title where MPAA_rating = 'PG';", "Actors who voiced refer to voice-actor;"]}} {"set": {"query": "Among the movies directed by Wolfgang Reitherman, how many of them were released in December?", "pos": ["Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';"], "neg": ["song = 'Little Wonders'", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "Will Finn refers to director = 'Will Finn';", "Actors who voiced refer to voice-actor;", "Ron Clements refers director = 'Ron Clements';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';", "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);"]}} {"set": {"query": "What is the Motion Picture Association of America rating for the movie featuring a villain named Turbo?", "pos": ["The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';"], "neg": ["Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;", "Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';", "Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "FALSE;", "Wolfgang Reitherman refers director = 'Wolfgang Reitherman';", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "FALSE;"]}} {"set": {"query": "How many restricted horror movies were released between 1/1/1990 to 12/31/2015?", "pos": ["Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);"], "neg": ["The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "Bambi is the name of the movie which refers to movie = 'Bambi';", "DIVIDE(COUNT(movie_title where genre = 'Comedy'), COUNT(movie_title)) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) between '1991' and '2000';", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';", "Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';"]}} {"set": {"query": "How many movies were released by Disney between 2010 and 2016?", "pos": ["Movies refer to movie_title; released between 2010 and 2016 refers to substr(release_date, length(release_date) - 1, length(release_date)) between '10' and '16';"], "neg": ["FALSE;", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);", "Meet the Robinsons refers to movie_title = 'Meet the Robinsons';", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "song = 'Little Wonders'", "Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));"]}} {"set": {"query": "How many PG adventure movies did Ron Clements direct?", "pos": ["Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';"], "neg": ["FALSE;", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);", "Mulan refers to movie_title = 'Mulan';", "Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;", "Actors who voiced refer to voice-actor;", "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "name of the movie refers to movie_title;", "which movies do not have villain refer to movie_title where villian is null;", "Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';"]}} {"set": {"query": "The main character Elsa is voiced by which actor and who is the director of the movie?", "pos": ["Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;"], "neg": ["Wolfgang Reitherman refers director = 'Wolfgang Reitherman';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross);", "Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));", "Ron Clements refers director = 'Ron Clements';", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';"]}} {"set": {"query": "Indicate the release date of the film The Lion King directed by Roger Allers.", "pos": ["The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';"], "neg": ["directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "FALSE;", "name of the movie refers to movie_title;", "Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", "FALSE;", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "Most productive director refers to director where MAX(COUNT(name));", "Ron Clements refers director = 'Ron Clements';"]}} {"set": {"query": "Provide the director's name of Wreck-It Ralph movie.", "pos": ["Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';"], "neg": ["Robin Hood is the main character of the movie which refers to hero = 'Robin Hood'; movie refers to movie_title;", "FALSE;", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';", "Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';", "FALSE;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", "the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';"]}} {"set": {"query": "List the voice actors from the movie \"Meet the Robinsons\".", "pos": ["Meet the Robinsons refers to movie_title = 'Meet the Robinsons';"], "neg": ["directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "who directed refers director;", "Studio Entertainment[NI 1]' > 'Disney Media Networks' where Year = 1998;", "FALSE;", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "FALSE;", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;"]}} {"set": {"query": "List the movie titles and associated songs directed by Ron Clements.", "pos": ["Ron Clements refers director = 'Ron Clements';"], "neg": ["PG-13 refers to MPAA_rating = 'PG-13'; romantic comedy refers to genre = 'Romantic Comedy';", "The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';", "Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';", "FALSE;", "Will Finn refers to director = 'Will Finn';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "Hercules refers to movie = 'Hercules';", "The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;"]}} {"set": {"query": "The character Donald Duck has appeared in two Disney movies, which one has more grossing?", "pos": ["Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross);"], "neg": ["FALSE;", "released on 2016/3/4 refers to release_date = '4-Mar-16'; adventure movie refers to genre = 'Adventure' ;", "who directed refers director;", "which movies do not have villain refer to movie_title where villian is null;", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);", "Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;", "Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';"]}} {"set": {"query": "Among the movies directed by Wolfgang Reitherman, how many of them are Comedies?", "pos": ["directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;"], "neg": ["The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "drama refers to genre = 'Drama';", "The highest grossed movie refers to MAX(total_gross); DIVIDE(inflation_adjusted_gross, total_gross) as percentage;", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "FALSE;", "Ron Clements refers director = 'Ron Clements';", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;"]}} {"set": {"query": "Provide the name of the song from the movie directed by Ben Sharpsteen.", "pos": ["Ben Sharpsteen refers to director = 'Ben Sharpsteen';"], "neg": ["Ron Clements refer to director = 'Ron Clements'; the highest total gross refers to MAX(total_gross);", "action movie refers to movie_title where genre = 'Action'; highest grossing movie refers to MAX(total_gross)", "Mulan refers to movie_title = 'Mulan';", "FALSE;", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "FALSE;", "Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47';", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross);", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;"]}} {"set": {"query": "Which movies had the main character named Donald Duck and who directed them?", "pos": ["Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; movies refer to movie_title; who directed refers director;"], "neg": ["adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "FALSE;", "song = 'Little Wonders'", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "Bambi is the name of the movie which refers to movie = 'Bambi';", "DIVIDE(inflation_adjusted_gross, total_gross) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) = '1995';"]}} {"set": {"query": "Among the movies directed by Wolfgang Reitherman, which one of them was the most popular?", "pos": ["directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);"], "neg": ["DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "Movies with songs refer song = 'not null'; DIVIDE(SUM(total_gross where song = 'not null'), sum(total_gross)) as percentage;", "FALSE;", "Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);", "The Lion King refers to movie_title = 'The Lion King'; Roger Allers refers to director = 'Roger Allers';", "Hercules refers to movie = 'Hercules';", "drama refers to genre = 'Drama';", "who directed refers director;", "The Motion Picture Association of America rating refers to MPAA_rating; villian = 'Turbo';", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';"]}} {"set": {"query": "Which director did Bill Thompson work the most with?", "pos": ["Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));"], "neg": ["the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross);", "PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "drama refers to genre = 'Drama';", "Movies with songs refer song = 'not null'; DIVIDE(SUM(total_gross where song = 'not null'), sum(total_gross)) as percentage;", "Meet the Robinsons refers to movie_title = 'Meet the Robinsons';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);", "FALSE;"]}} {"set": {"query": "Describe the hero, director, and the release date of Mulan.", "pos": ["Mulan refers to movie_title = 'Mulan';"], "neg": ["who directed refers director;", "Wolfgang Reitherman refers director = 'Wolfgang Reitherman';", "Came out on 11/24/2010 refers to release_date = 'Nov 24, 2010';", "name of the movie refers to movie_title;", "Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';", "Elsa is the main character of the movie which refers to hero = 'Elsa'; title refers to movie_title;", "FALSE;", "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';"]}} {"set": {"query": "List the movie titles and character names by Bill Thompson.", "pos": ["Bill Thompson refers to voice-actor = 'Bill Thompson';"], "neg": ["Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; comedies refers to genre = 'Comedy'; movies refer to movie_title;", "the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "the highest grossing movie without song refers to movie_title where MAX(total_gross) and song = 'null';", "Jeff Bennett refers to voice-actor = 'Jeff Bennett';", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';", "who directed refers director;", "Mulan refers to movie_title = 'Mulan';", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));", "song = 'Little Wonders'"]}} {"set": {"query": "List the names of the directors whose films grossed over $100 million.", "pos": ["films grossed over $100 million refer to movie_title where total_gross > 100000000;"], "neg": ["name of the movie refers to movie_title;", "which movies do not have villain refer to movie_title where villian is null;", "Hercules refers to movie = 'Hercules';", "FALSE;", "Meet the Robinsons refers to movie_title = 'Meet the Robinsons';", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "song = 'Little Wonders'", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);", "Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;"]}} {"set": {"query": "List the titles of movies directed by Jack Kinney that were released before 1947.", "pos": ["Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47';"], "neg": ["Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "FALSE;", "SUBTRACT(SUM(Year = 1998), SUM(Year = 1997))", "Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "Bill Thompson refers to voice-actor = 'Bill Thompson';", "PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "DIVIDE(COUNT(movie_title where genre = 'Comedy'), COUNT(movie_title)) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) between '1991' and '2000';", "Ron Clements refers to director = 'Ron Clements'; PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG'; adventure movie refers to genre = 'Adventure';", "Bill Thompson refers to voice-actor = 'Bill Thompson'; worked the most refers to MAX(COUNT(name));"]}} {"set": {"query": "List all the voice actors in the movie directed by Ben Sharpsteen which was released on February 9, 1940.", "pos": ["Ben Sharpsteen refers to director = 'Ben Sharpsteen'; released on February 9, 1940 refers to release_date = 'Feb 9, 1940';"], "neg": ["the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "DIVIDE(Walt Disney Parks and Resorts where year = 2010), SUM(year = 2010) as percentage;", "films grossed over $100 million refer to movie_title where total_gross > 100000000;", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "Hercules refers to movie = 'Hercules';", "FALSE;", "DIVIDE(COUNT(movie_title where genre = 'Comedy'), COUNT(movie_title)) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) between '1991' and '2000';", "Mulan refers to movie_title = 'Mulan';", "which movies do not have villain refer to movie_title where villian is null;", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;"]}} {"set": {"query": "Name the voice actor of the character Calliope in the movie Hercules.", "pos": ["Hercules refers to movie = 'Hercules';"], "neg": ["Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "Comedy refers to genre = 'Comedy'; the main character of the movie refers to hero;", "Jeff Bennett refers to voice-actor = 'Jeff Bennett';", "Donald Duck is the main character of the movie which refers to hero = 'Donald Duck'; which one has more grossing refers to movie_title where MAX(total_gross);", "Wreck-It Ralph is the name of the movies which refers to name = 'Wreck-It Ralph';", "directed by Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; the most popular movie refers to MAX(total_gross);", "DIVIDE(COUNT(director where total_gross > 100000000), COUNT(director)) as percentage;", "DIVIDE(COUNT(movie_title where genre = 'Comedy'), COUNT(movie_title)) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) between '1991' and '2000';", "adventure movie refers to genre = 'Adventure'; the main character of the movie refers to hero; most popular movie based on its inflation-adjusted gross refers to where MAX(inflation_adjusted_gross);", "Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';"]}} {"set": {"query": "What are the total grosses for the movies with Jim Cummings as the voice actor?", "pos": ["FALSE;"], "neg": ["Ron Clements refers to director = 'Ron Clements'; the most popular movie refers to movie_title where MAX(total_gross);", "DIVIDE(COUNT(voice-actor where genre = 'Drama'), COUNT(voice-actor)) as percentage;", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "Gary Trousdale refers director = 'Gary Trousdale'; the adventure movie refers to genre = 'Adventure';", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "Jack Kinney refers to director = 'Jack Kinney'; released before 1947 refers to substr(release_date, length(release_date) - 1, length(release_date)) < '47';", "PG is an abbreviation for parental guidance and refers to MPAA_rating = 'PG';", "Hercules refers to movie = 'Hercules';", "FALSE;", "drama refers to genre = 'Drama';"]}} {"set": {"query": "Who is the villain in the movie \"The Great Mouse Detective\"?", "pos": ["The Great Mouse Detective refers to movie_title = 'The Great Mouse Detective';"], "neg": ["Restricted refers to MPAA_rating = 'R'; horror refers to genre = 'Horror'; released between 1/1/1990 to 12/31/2015 refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2015);", "FALSE;", "Freddie Jones refers to voice-actor = 'Freddie Jones'; title refers to movie_title;", "the most popular movie refers to movie_title where MAX(total_gross); in 1970s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1970 and 1979);", "the 1990s refers to (cast(SUBSTR(release_date, instr(release_date, ', ') + 1) as int) between 1990 and 2000);", "Elsa is the main character of the movie which refers to hero = 'Elsa'; voiced by which actor refers to voice-actor;", "Beauty and the Beast refers to movie_title = 'Beauty and the Beast';", "DIVIDE(COUNT(movie_title where genre = 'Comedy'), COUNT(movie_title)) as percentage where substr(release_date, length(release_date) - 3, length(release_date)) between '1991' and '2000';", "which movies do not have villain refer to movie_title where villian is null;", "Wolfgang Reitherman refers to director = 'Wolfgang Reitherman'; released in December refers to (release_date, instr(release_date, '-') + 1, 3) = 'Dec';"]}} {"set": {"query": "What is the name of the item that is provided in the biggest amount by the vendor Lakeshore Learning Materials?", "pos": ["lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);"], "neg": ["in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "urban area refers to school_metro = 'urban'; books resources refers to project_resource_type = 'Books'", "school \u201c301c9bf0a45d159d162b65a93fddd74e\" refers to schoolid = '301c9bf0a45d159d162b65a93fddd74e';", "iMath is the title; city refers to school_city;", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "school in Brooklyn refers to school_city = 'Brooklyn'; total donated amount refers to donation_total;", "date refer to date_posted; Lets Share Ideas refer to title"]}} {"set": {"query": "What payment method was used for Needed Resource Materials For My Students?", "pos": ["Needed Resource Materials For My Students refer to title"], "neg": ["donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100", "main subject refers to primary_focus_subject", "zip code \"7079\" refers to donor_zip = '7079'", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "paid via credit card refer to payment method = creditcard; Memphis City School District refer to school_district", "main subject area refers to primary_focus_area = 'Literacy & Language'; highest unit price refers to Max(item_unit_price);", "donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29';"]}} {"set": {"query": "How many schools in Suffolk County have Ph.D. teachers?", "pos": ["Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'"], "neg": ["Lakeshore Learning Materials is vendor_name;\u00a0 teacher with a doctor degree refers to teacher_prefix = 'Dr.';", "donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "from \"Sax Arts & Crafts\" refers to vendor_name = 'Sax Arts & Crafts'; zip code of the schools refers school_zip", "teacher \"42d43fa6f37314365d08692e08680973\" refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid", "resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = \u2019Los Angeles Unif Sch Dist\u2019); Los Angeles Unified School District refer to school_district = \u2019Los Angeles Unif Sch Dist\u2019", "main subject area refers to primary_focus_area = 'Literacy & Language'; highest unit price refers to Max(item_unit_price);", "an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'"]}} {"set": {"query": "In which city is there a greater number of schools that have received donations of less than 10 dollars?", "pos": ["received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n"], "neg": ["paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "Needed Resource Materials For My Students refer to title", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "from \"Sax Arts & Crafts\" refers to vendor_name = 'Sax Arts & Crafts'; zip code of the schools refers school_zip"]}} {"set": {"query": "What is the average unit price of AKJ Books items?", "pos": ["AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))"], "neg": ["primary focus area is Literature refers to primary_focus_area = 'Literature'", "highest total price including optional support refers to max(total_price_including_optional_support)", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached", "book-type projects refers to project_resource_type = 'Books'", "Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'", "Needed Resource Materials For My Students refer to title", "how many students refers to students_reached; Fit Firsties! project refers to title = 'Fit Firsties!'", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'"]}} {"set": {"query": "How many number of donations did the project 'A Rug For Reaching Readers' get?", "pos": ["A Rug For Reaching Readers'is the title;"], "neg": ["in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid", "320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "date refer to date_posted; Lets Share Ideas refer to title", "main subject refers to primary_focus_subject", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "the highest poverty level refers to poverty_level = 'highest poverty'", "iMath is the title; city refers to school_city;", "Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'"]}} {"set": {"query": "What is the total number of students impacted by the projects with a donation from a donor with zip code \"22205\"?", "pos": ["zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached"], "neg": ["AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))", "main subject area refers to primary_focus_area = 'Literacy & Language'; highest unit price refers to Max(item_unit_price);", "the highest poverty level refers to poverty_level = 'highest poverty'", "in Los Angeles refers to donor_city = 'Los Angeles'; school in another city refers to school_city ! = 'Los Angeles'", "Literature & Writing' is primary_focus_subject; use 'Mr' as their teacher prefix refers to teacher_prefix = 'Mr';", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "Highest cost of the optional tip refers to Max(total_price_including_optional_support - total_price_excluding_optional_support);", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100", "project \"Bloody Times\" refers to title = 'Bloody Times'"]}} {"set": {"query": "What is the total amount of all the donations made by the donor who made the highest donation in a single amount? Indicate the essay title to where he/she made his/her biggest donation.", "pos": ["total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)"], "neg": ["Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100;", "teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100", "primary focus area is Literature refers to primary_focus_area = 'Literature'", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "project \"Bloody Times\" refers to title = 'Bloody Times'", "paid via credit card refer to payment method = creditcard; Memphis City School District refer to school_district", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "project \"Photojournalists Want to Exhibit Their Best Works\" refers to title = 'Photojournalists Want to Exhibit Their Best Works'; when project go live refers to datePosted", "main subject refers to primary_focus_subject"]}} {"set": {"query": "For the all donations to the project 'Bringing Drama to Life', what is the percentage of the donation is paid by credit card?", "pos": ["Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;"], "neg": ["largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "Creating Memories and Inspiring Dreams is title;", "donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'", "donation \"b39547f29dfc25fb13c6e9e8d940dc43\" refers to donationid = 'b39547f29dfc25fb13c6e9e8d940dc43'; type of resource refers to project_resource_type;", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'"]}} {"set": {"query": "What is the total donation amount made for projects whose main subject area are Literacy & Language?", "pos": ["main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);"], "neg": ["portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't';", "message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "Family History Project refer to title, need statement refer to need_statement", "project \"Photojournalists Want to Exhibit Their Best Works\" refers to title = 'Photojournalists Want to Exhibit Their Best Works'; when project go live refers to datePosted", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached", "320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support", "zip code \"7079\" refers to donor_zip = '7079'", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total"]}} {"set": {"query": "How much donations have been collected for project 'Whistle While We Work!'?", "pos": ["donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'"], "neg": ["I Can't See It...Can You Help Me???' is the title;", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "from \"Sax Arts & Crafts\" refers to vendor_name = 'Sax Arts & Crafts'; zip code of the schools refers school_zip", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'"]}} {"set": {"query": "When did the project \"Photojournalists Want to Exhibit Their Best Works\" go live?", "pos": ["project \"Photojournalists Want to Exhibit Their Best Works\" refers to title = 'Photojournalists Want to Exhibit Their Best Works'; when project go live refers to datePosted"], "neg": ["teacher \"42d43fa6f37314365d08692e08680973\" refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "the highest poverty level refers to poverty_level = 'highest poverty'", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'", "Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "main subject refers to primary_focus_subject", "an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'"]}} {"set": {"query": "How much did the project that teacher \"822b7b8768c17456fdce78b65abcc18e\" created donate?", "pos": ["teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;"], "neg": ["Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;", "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = \u2019Los Angeles Unif Sch Dist\u2019); Los Angeles Unified School District refer to school_district = \u2019Los Angeles Unif Sch Dist\u2019", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude", "Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'", "A Rug For Reaching Readers'is the title;", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300"]}} {"set": {"query": "Which project have the highest total price including optional support? Indicate the project id.", "pos": ["highest total price including optional support refers to max(total_price_including_optional_support)"], "neg": ["the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name", "project \"Bloody Times\" refers to title = 'Bloody Times'", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "Needed Resource Materials For My Students refer to title", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';"]}} {"set": {"query": "For the donation of the project 'Awesome Audiobooks Make Avid Readers', what was the percentage of the tip in the total amount?", "pos": ["Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100;"], "neg": ["total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "project name refers to title; costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(donation_to_project))*100%", "for grades 9-12 refers to grade_level = 'Grades 9-12'", "vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name", "resources that were requested refers to item_name; project \"d6ef27c07c30c81f0c16c32b6acfa2ff\" refers to projectid = 'd6ef27c07c30c81f0c16c32b6acfa2ff'; quantities refers to item_quantity; teacher_prefix = 'Dr. ' refers to teacher acquired P.h.D or doctor degree", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "date refer to date_posted; Lets Share Ideas refer to title", "donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;"]}} {"set": {"query": "How many students will be impacted for the Fit Firsties! Project?", "pos": ["how many students refers to students_reached; Fit Firsties! project refers to title = 'Fit Firsties!'"], "neg": ["which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", "Lakeshore Learning Materials is vendor_name; highest cost of labor fulfillment refers to Max(fulfillment_labor_materials);", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'", "from \"Sax Arts & Crafts\" refers to vendor_name = 'Sax Arts & Crafts'; zip code of the schools refers school_zip", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached"]}} {"set": {"query": "Among the technology items, what percentage of them are from Best Buy for Business? Provide the date of the project related to those items.", "pos": ["technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))"], "neg": ["main subject refers to primary_focus_subject", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support", "first ever project refers to min(date_posted); names of the resources refers to item_name", "Future Einsteins of America refer to title", "from \"Sax Arts & Crafts\" refers to vendor_name = 'Sax Arts & Crafts'; zip code of the schools refers school_zip", "zip code \"7079\" refers to donor_zip = '7079'", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "donation \"b39547f29dfc25fb13c6e9e8d940dc43\" refers to donationid = 'b39547f29dfc25fb13c6e9e8d940dc43'; type of resource refers to project_resource_type;"]}} {"set": {"query": "State the short description for the project which got the donation at 14:44:29 on 2012/9/6.", "pos": ["donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29';"], "neg": ["resources that were requested refers to item_name; project \"d6ef27c07c30c81f0c16c32b6acfa2ff\" refers to projectid = 'd6ef27c07c30c81f0c16c32b6acfa2ff'; quantities refers to item_quantity; teacher_prefix = 'Dr. ' refers to teacher acquired P.h.D or doctor degree", "Future Einsteins of America refer to title", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "city of Pocatello refers to donor_city = 'Pocatello'; not teachers refers to is_teacher_acct = 'f'", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude", "Lakeshore Learning Materials is vendor_name;\u00a0 teacher with a doctor degree refers to teacher_prefix = 'Dr.';", "vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name", "suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district"]}} {"set": {"query": "Which item provided to a project whose main subject area is Literacy & Language has the highest unit price?", "pos": ["main subject area refers to primary_focus_area = 'Literacy & Language'; highest unit price refers to Max(item_unit_price);"], "neg": ["suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total"]}} {"set": {"query": "Name and describe all projects created by New York teachers.", "pos": ["project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'"], "neg": ["message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "project \"Bloody Times\" refers to title = 'Bloody Times'", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100", "Needed Resource Materials For My Students refer to title", "urban area refers to school_metro = 'urban'; books resources refers to project_resource_type = 'Books'", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';"]}} {"set": {"query": "Among the projects whose donators are teachers, what is the percentage of projects that affected more than 30 students?", "pos": ["donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100"], "neg": ["suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district", "Needed Resource Materials For My Students refer to title", "paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support)", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "main subject refers to primary_focus_subject", "Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'"]}} {"set": {"query": "Who is the largest donor by amount? Give the donation id and the total amount of the donation.", "pos": ["largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total"], "neg": ["project \"Bloody Times\" refers to title = 'Bloody Times'", "zip code \"7079\" refers to donor_zip = '7079'", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100", "first ever project refers to min(date_posted); names of the resources refers to item_name", "magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100", "I Can't See It...Can You Help Me???' is the title;", "iMath is the title; city refers to school_city;", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid"]}} {"set": {"query": "What is the total number of projects that was created by the teachers that teach 3-5 grades in Boston Public School District?", "pos": ["teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;"], "neg": ["Highest cost of the optional tip refers to Max(total_price_including_optional_support - total_price_excluding_optional_support);", "paid via credit card refer to payment method = creditcard; Memphis City School District refer to school_district", "an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "project \"Photojournalists Want to Exhibit Their Best Works\" refers to title = 'Photojournalists Want to Exhibit Their Best Works'; when project go live refers to datePosted", "donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached"]}} {"set": {"query": "On how many projects where the teacher has ordered between 5 to 10 items are from are from Quill.com?", "pos": ["ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'"], "neg": ["Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'", "primary focus area is Literature refers to primary_focus_area = 'Literature'", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "date refer to date_posted; Lets Share Ideas refer to title", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "project name refers to title; costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(donation_to_project))*100%", "in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'"]}} {"set": {"query": "List all the items from \"Sax Arts & Crafts\" and the zip code of the schools that received them.", "pos": ["from \"Sax Arts & Crafts\" refers to vendor_name = 'Sax Arts & Crafts'; zip code of the schools refers school_zip"], "neg": ["average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "project \"Bloody Times\" refers to title = 'Bloody Times'", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "A Rug For Reaching Readers'is the title;", "resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = \u2019Los Angeles Unif Sch Dist\u2019); Los Angeles Unified School District refer to school_district = \u2019Los Angeles Unif Sch Dist\u2019", "the highest poverty level refers to poverty_level = 'highest poverty'", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300"]}} {"set": {"query": "Did the project 'I Can't See It...Can You Help Me???' get the tip for the donation?", "pos": ["I Can't See It...Can You Help Me???' is the title;"], "neg": ["donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "Highest cost of the optional tip refers to Max(total_price_including_optional_support - total_price_excluding_optional_support);", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "highest total price including optional support refers to max(total_price_including_optional_support)", "Future Einsteins of America refer to title"]}} {"set": {"query": "Write down the need statement of Family History Project.", "pos": ["Family History Project refer to title, need statement refer to need_statement"], "neg": ["iMath is the title; city refers to school_city;", "urban area refers to school_metro = 'urban'; books resources refers to project_resource_type = 'Books'", "paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)", "Creating Memories and Inspiring Dreams is title;", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", "teacher \"42d43fa6f37314365d08692e08680973\" refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "city of Pocatello refers to donor_city = 'Pocatello'; not teachers refers to is_teacher_acct = 'f'", "resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = \u2019Los Angeles Unif Sch Dist\u2019); Los Angeles Unified School District refer to school_district = \u2019Los Angeles Unif Sch Dist\u2019", "donation \"b39547f29dfc25fb13c6e9e8d940dc43\" refers to donationid = 'b39547f29dfc25fb13c6e9e8d940dc43'; type of resource refers to project_resource_type;", "suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district"]}} {"set": {"query": "Which item provided for projects with Mathematics as a primary subject is the most expensive?", "pos": ["Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)"], "neg": ["donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "for grades 9-12 refers to grade_level = 'Grades 9-12'", "primary focus area is Literature refers to primary_focus_area = 'Literature'", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached"]}} {"set": {"query": "Have the teacher \"42d43fa6f37314365d08692e08680973\" acquired P.h.D or doctor degree?", "pos": ["teacher \"42d43fa6f37314365d08692e08680973\" refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';"], "neg": ["donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "first ever project refers to min(date_posted); names of the resources refers to item_name", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "how many students refers to students_reached; Fit Firsties! project refers to title = 'Fit Firsties!'", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100;", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;", "portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't';", "Future Einsteins of America refer to title"]}} {"set": {"query": "From the total amount of donation to projects, what is the percentage of the amount is for school projects located in the rural area?", "pos": ["located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%"], "neg": ["school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "paid via credit card refer to payment method = creditcard; Memphis City School District refer to school_district", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)", "Lakeshore Learning Materials is vendor_name; highest cost of labor fulfillment refers to Max(fulfillment_labor_materials);", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "main subject area refers to primary_focus_area = 'Literacy & Language'; highest unit price refers to Max(item_unit_price);"]}} {"set": {"query": "Please list the resource names of project that teacher \"822b7b8768c17456fdce78b65abcc18e\" created.", "pos": ["teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';"], "neg": ["an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'", "vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name", "iMath is the title; city refers to school_city;", "donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100;", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = \u2019Los Angeles Unif Sch Dist\u2019); Los Angeles Unified School District refer to school_district = \u2019Los Angeles Unif Sch Dist\u2019", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))"]}} {"set": {"query": "For project titled 'Toot Your Flute!', what is the main subject of the project materials intended for? Name the other projects with the similar focus.", "pos": ["main subject refers to primary_focus_subject"], "neg": ["Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100", "Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'", "in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'", "highest total price including optional support refers to max(total_price_including_optional_support)", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "Future Einsteins of America refer to title", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "paid via credit card refer to payment method = creditcard; Memphis City School District refer to school_district"]}} {"set": {"query": "How many schools in urban area requested for books resources?", "pos": ["urban area refers to school_metro = 'urban'; books resources refers to project_resource_type = 'Books'"], "neg": ["literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support", "Future Einsteins of America refer to title", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", "donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29';", "teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'"]}} {"set": {"query": "Write the messages of those who donated to the Newark School District in the coordinates of 40.735332, -74.196014.", "pos": ["message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)"], "neg": ["which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't';", "Lakeshore Learning Materials is vendor_name;\u00a0 teacher with a doctor degree refers to teacher_prefix = 'Dr.';", "school \"d4af834b1d3fc8061e1ee1b3f1a77b85\" refers to schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'; donor is a teacher refers to is_teacher_acct = 't';", "main subject refers to primary_focus_subject", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "in Los Angeles refers to donor_city = 'Los Angeles'; school in another city refers to school_city ! = 'Los Angeles'", "I Can't See It...Can You Help Me???' is the title;", "teacher \"42d43fa6f37314365d08692e08680973\" refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "A Rug For Reaching Readers'is the title;"]}} {"set": {"query": "How many donors who donated to the city of Pocatello are not teachers?", "pos": ["city of Pocatello refers to donor_city = 'Pocatello'; not teachers refers to is_teacher_acct = 'f'"], "neg": ["Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support)", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "first ever project refers to min(date_posted); names of the resources refers to item_name", "A Rug For Reaching Readers'is the title;", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support", "Literature & Writing' is primary_focus_subject; use 'Mr' as their teacher prefix refers to teacher_prefix = 'Mr';"]}} {"set": {"query": "For each donation not from a teacher, state the donor account id and calculate the percentage of donation given for optional support.", "pos": ["not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%"], "neg": ["A Rug For Reaching Readers'is the title;", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "donation \"b39547f29dfc25fb13c6e9e8d940dc43\" refers to donationid = 'b39547f29dfc25fb13c6e9e8d940dc43'; type of resource refers to project_resource_type;", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "zip code \"7079\" refers to donor_zip = '7079'", "project \"Bloody Times\" refers to title = 'Bloody Times'", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "school \"d4af834b1d3fc8061e1ee1b3f1a77b85\" refers to schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'; donor is a teacher refers to is_teacher_acct = 't';"]}} {"set": {"query": "Is teacher \"42d43fa6f37314365d08692e08680973\" a New York teacher?", "pos": ["teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';"], "neg": ["school \"d4af834b1d3fc8061e1ee1b3f1a77b85\" refers to schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'; donor is a teacher refers to is_teacher_acct = 't';", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached", "in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'", "book-type projects refers to project_resource_type = 'Books'", "school \u201c301c9bf0a45d159d162b65a93fddd74e\" refers to schoolid = '301c9bf0a45d159d162b65a93fddd74e';", "I Can't See It...Can You Help Me???' is the title;", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "Family History Project refer to title, need statement refer to need_statement", "zip code \"7079\" refers to donor_zip = '7079'"]}} {"set": {"query": "Is the donor of the project 'Calculate, Financial Security For Tomorrow Starts Today! ' a teacher?", "pos": ["Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'"], "neg": ["Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100;", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid", "I Can't See It...Can You Help Me???' is the title;", "AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))", "project \"Bloody Times\" refers to title = 'Bloody Times'", "project name refers to title; costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(donation_to_project))*100%", "Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support)", "school in Brooklyn refers to school_city = 'Brooklyn'; total donated amount refers to donation_total;", "in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'", "Needed Resource Materials For My Students refer to title"]}} {"set": {"query": "How many donations from teachers were done in the state of Colorado?", "pos": ["from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'"], "neg": ["an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)", "donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29';", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "main subject area refers to primary_focus_area = 'Literacy & Language'; highest unit price refers to Max(item_unit_price);", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';"]}} {"set": {"query": "In the schools donated by the project of the resources provided by ABC School Supply, how many schools are public magnet schools?", "pos": ["ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';"], "neg": ["iMath is the title; city refers to school_city;", "from \"Sax Arts & Crafts\" refers to vendor_name = 'Sax Arts & Crafts'; zip code of the schools refers school_zip", "primary focus area is Literature refers to primary_focus_area = 'Literature'", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "the highest poverty level refers to poverty_level = 'highest poverty'", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't';"]}} {"set": {"query": "What is the total donation amount for the project 'Engaging Young Readers with a Leveled Classroom Library'?", "pos": ["Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support)"], "neg": ["zip code \"7079\" refers to donor_zip = '7079'", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "Lakeshore Learning Materials is vendor_name; highest cost of labor fulfillment refers to Max(fulfillment_labor_materials);", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "resources that were requested refers to item_name; project \"d6ef27c07c30c81f0c16c32b6acfa2ff\" refers to projectid = 'd6ef27c07c30c81f0c16c32b6acfa2ff'; quantities refers to item_quantity; teacher_prefix = 'Dr. ' refers to teacher acquired P.h.D or doctor degree", "donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29';", "Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'"]}} {"set": {"query": "What are the coordinates of the school where project 'Look, Look, We Need a Nook!' Was donated to and what resource type is it?", "pos": ["Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;"], "neg": ["date refer to date_posted; Lets Share Ideas refer to title", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100;", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid", "teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'"]}} {"set": {"query": "Name the vendors that sell the item Classroom Keepers Management Center.", "pos": ["vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name"], "neg": ["teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "resources that were requested refers to item_name; project \"d6ef27c07c30c81f0c16c32b6acfa2ff\" refers to projectid = 'd6ef27c07c30c81f0c16c32b6acfa2ff'; quantities refers to item_quantity; teacher_prefix = 'Dr. ' refers to teacher acquired P.h.D or doctor degree", "A Rug For Reaching Readers'is the title;", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support)", "320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support", "message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "in Los Angeles refers to donor_city = 'Los Angeles'; school in another city refers to school_city ! = 'Los Angeles'", "Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'"]}} {"set": {"query": "What were the resources that were requested by the teacher for project \"d6ef27c07c30c81f0c16c32b6acfa2ff\"? Indicate the quantities as well and whether or not the teacher acquired P.h.D or doctor degree.", "pos": ["resources that were requested refers to item_name; project \"d6ef27c07c30c81f0c16c32b6acfa2ff\" refers to projectid = 'd6ef27c07c30c81f0c16c32b6acfa2ff'; quantities refers to item_quantity; teacher_prefix = 'Dr. ' refers to teacher acquired P.h.D or doctor degree"], "neg": ["Lakeshore Learning Materials is vendor_name; highest cost of labor fulfillment refers to Max(fulfillment_labor_materials);", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100", "AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "the highest poverty level refers to poverty_level = 'highest poverty'", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100"]}} {"set": {"query": "List the poverty level of all the schools that received donations with the zip code \"7079\".", "pos": ["zip code \"7079\" refers to donor_zip = '7079'"], "neg": ["latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "book-type projects refers to project_resource_type = 'Books'", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "main subject refers to primary_focus_subject", "resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = \u2019Los Angeles Unif Sch Dist\u2019); Los Angeles Unified School District refer to school_district = \u2019Los Angeles Unif Sch Dist\u2019"]}} {"set": {"query": "How many Rock Hill City School projects have teacher donors?", "pos": ["Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'"], "neg": ["project \"Photojournalists Want to Exhibit Their Best Works\" refers to title = 'Photojournalists Want to Exhibit Their Best Works'; when project go live refers to datePosted", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "highest total price including optional support refers to max(total_price_including_optional_support)", "first ever project refers to min(date_posted); names of the resources refers to item_name", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "Literature & Writing' is primary_focus_subject; use 'Mr' as their teacher prefix refers to teacher_prefix = 'Mr';", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n"]}} {"set": {"query": "How many donations of more than $100 were made for an honoree?", "pos": ["an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'"], "neg": ["not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "Lakeshore Learning Materials is vendor_name; highest cost of labor fulfillment refers to Max(fulfillment_labor_materials);", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100", "school \"d4af834b1d3fc8061e1ee1b3f1a77b85\" refers to schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'; donor is a teacher refers to is_teacher_acct = 't';", "book-type projects refers to project_resource_type = 'Books'", "Future Einsteins of America refer to title", "primary focus area is Literature refers to primary_focus_area = 'Literature'", "Highest cost of the optional tip refers to Max(total_price_including_optional_support - total_price_excluding_optional_support);", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';"]}} {"set": {"query": "Among the donations with a portion using account credits redemption, how many of them are for projects created by teachers working in a public year-round school?", "pos": ["portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't';"], "neg": ["A Rug For Reaching Readers'is the title;", "Needed Resource Materials For My Students refer to title", "paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)", "the highest poverty level refers to poverty_level = 'highest poverty'", "vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", "highest total price including optional support refers to max(total_price_including_optional_support)", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'"]}} {"set": {"query": "Which projects created by teachers with Doctor Degree where the project have more than 300 students involved. List down the title of the project.", "pos": ["eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300"], "neg": ["teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "in Los Angeles refers to donor_city = 'Los Angeles'; school in another city refers to school_city ! = 'Los Angeles'", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n", "Creating Memories and Inspiring Dreams is title;", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached", "message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "Family History Project refer to title, need statement refer to need_statement", "Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;", "project \"Photojournalists Want to Exhibit Their Best Works\" refers to title = 'Photojournalists Want to Exhibit Their Best Works'; when project go live refers to datePosted"]}} {"set": {"query": "Which project in Brooklyn that have the highest request of resources? State the the project ID including all of the name of item requested.", "pos": ["in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))"], "neg": ["eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "Lakeshore Learning Materials is vendor_name; highest cost of labor fulfillment refers to Max(fulfillment_labor_materials);", "Lakeshore Learning Materials is vendor_name;\u00a0 teacher with a doctor degree refers to teacher_prefix = 'Dr.';", "Needed Resource Materials For My Students refer to title", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "highest total price including optional support refers to max(total_price_including_optional_support)", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "Future Einsteins of America refer to title"]}} {"set": {"query": "How many donors in Los Angeles donated to school in another city?", "pos": ["in Los Angeles refers to donor_city = 'Los Angeles'; school in another city refers to school_city ! = 'Los Angeles'"], "neg": ["teacher \"42d43fa6f37314365d08692e08680973\" refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "Family History Project refer to title, need statement refer to need_statement", "Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'", "first ever project refers to min(date_posted); names of the resources refers to item_name", "the highest poverty level refers to poverty_level = 'highest poverty'", "donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29';", "zip code \"7079\" refers to donor_zip = '7079'", "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100"]}} {"set": {"query": "What are the vendors of the book-type projects? List them with the project ID.", "pos": ["book-type projects refers to project_resource_type = 'Books'"], "neg": ["an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'", "project \"Photojournalists Want to Exhibit Their Best Works\" refers to title = 'Photojournalists Want to Exhibit Their Best Works'; when project go live refers to datePosted", "zip code \"7079\" refers to donor_zip = '7079'", "donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid"]}} {"set": {"query": "What is the percentage of payment methods of donations made in March 2013?", "pos": ["made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100"], "neg": ["paid via credit card refer to payment method = creditcard; Memphis City School District refer to school_district", "iMath is the title; city refers to school_city;", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "book-type projects refers to project_resource_type = 'Books'", "project name refers to title; costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(donation_to_project))*100%", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "for grades 9-12 refers to grade_level = 'Grades 9-12'", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid"]}} {"set": {"query": "State the name of vendor that supplies book resources to all school with literacy subject as their primary focus.", "pos": ["literacy subject as primary focus refers to primary_focus_subject = 'Literacy'"], "neg": ["Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached", "total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)", "Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'", "Creating Memories and Inspiring Dreams is title;", "Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'", "zip code \"7079\" refers to donor_zip = '7079'", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;"]}} {"set": {"query": "What is the name of the vendor that the project \"Bloody Times\" uses for their resources?", "pos": ["project \"Bloody Times\" refers to title = 'Bloody Times'"], "neg": ["primary focus area is Literature refers to primary_focus_area = 'Literature'", "Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support)", "Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'"]}} {"set": {"query": "Name the project that costs the most. How much has been collected from donation and what is the percentage amount still lacking?", "pos": ["project name refers to title; costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(donation_to_project))*100%"], "neg": ["total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "donation \"b39547f29dfc25fb13c6e9e8d940dc43\" refers to donationid = 'b39547f29dfc25fb13c6e9e8d940dc43'; type of resource refers to project_resource_type;", "an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'", "total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "school \u201c301c9bf0a45d159d162b65a93fddd74e\" refers to schoolid = '301c9bf0a45d159d162b65a93fddd74e';", "Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "book-type projects refers to project_resource_type = 'Books'"]}} {"set": {"query": "How many donations were paid via credit card to Memphis City School District?", "pos": ["paid via credit card refer to payment method = creditcard; Memphis City School District refer to school_district"], "neg": ["city of Pocatello refers to donor_city = 'Pocatello'; not teachers refers to is_teacher_acct = 'f'", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "primary focus area is Literature refers to primary_focus_area = 'Literature'", "Needed Resource Materials For My Students refer to title", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "A Rug For Reaching Readers'is the title;"]}} {"set": {"query": "What is the average amount of donations by people who donated in the project \"Recording Rockin' Readers\"", "pos": ["average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'"], "neg": ["message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "date refer to date_posted; Lets Share Ideas refer to title", "ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100", "donations collected refers to sum(donation_to_project); project 'Whistle While We Work!' refers to title = 'Whistle While We Work!'", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;"]}} {"set": {"query": "List the title of all projects located in Chicago along with the ID of the donor.", "pos": ["in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid"], "neg": ["Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = \u2019Los Angeles Unif Sch Dist\u2019); Los Angeles Unified School District refer to school_district = \u2019Los Angeles Unif Sch Dist\u2019", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "Family History Project refer to title, need statement refer to need_statement"]}} {"set": {"query": "What date did the project with he 'Lets Share Ideas essay' went live?", "pos": ["date refer to date_posted; Lets Share Ideas refer to title"], "neg": ["Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "zip code \"7079\" refers to donor_zip = '7079'", "first ever project refers to min(date_posted); names of the resources refers to item_name", "school \u201c301c9bf0a45d159d162b65a93fddd74e\" refers to schoolid = '301c9bf0a45d159d162b65a93fddd74e';", "Lakeshore Learning Materials is vendor_name;\u00a0 teacher with a doctor degree refers to teacher_prefix = 'Dr.';", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "urban area refers to school_metro = 'urban'; books resources refers to project_resource_type = 'Books'"]}} {"set": {"query": "Calculate the sum of all the total amount donated to the essay project titled 'Lets Share Ideas' which were paid through paypal and indicate the city and poverty level.", "pos": ["paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)"], "neg": ["Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "Future Einsteins of America refer to title", "donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n", "AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "school \u201c301c9bf0a45d159d162b65a93fddd74e\" refers to schoolid = '301c9bf0a45d159d162b65a93fddd74e';"]}} {"set": {"query": "Which resource type is commonly bought by the Los Angeles Unified School District?", "pos": ["resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = \u2019Los Angeles Unif Sch Dist\u2019); Los Angeles Unified School District refer to school_district = \u2019Los Angeles Unif Sch Dist\u2019"], "neg": ["iMath is the title; city refers to school_city;", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "main subject area refers to primary_focus_area = 'Literacy & Language'; highest unit price refers to Max(item_unit_price);", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name", "A Rug For Reaching Readers'is the title;", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "for grades 9-12 refers to grade_level = 'Grades 9-12'"]}} {"set": {"query": "Which city does the school that project \"iMath\" donated to in?", "pos": ["iMath is the title; city refers to school_city;"], "neg": ["main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "project name refers to title; costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(donation_to_project))*100%", "portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't';", "resource type refer to project_resource_type; most commonly bought refer to COUNT(project_resource_type where school_district = \u2019Los Angeles Unif Sch Dist\u2019); Los Angeles Unified School District refer to school_district = \u2019Los Angeles Unif Sch Dist\u2019", "Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support)", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))"]}} {"set": {"query": "What is the title of project that have the most expensive funds?", "pos": ["the most expensive funds refers to max(multiply(item_unit_price, item_quantity))"], "neg": ["A Rug For Reaching Readers'is the title;", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100;", "highest total price including optional support refers to max(total_price_including_optional_support)", "Literature & Writing' is primary_focus_subject; use 'Mr' as their teacher prefix refers to teacher_prefix = 'Mr';", "school \"d4af834b1d3fc8061e1ee1b3f1a77b85\" refers to schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'; donor is a teacher refers to is_teacher_acct = 't';", "how many students refers to students_reached; Fit Firsties! project refers to title = 'Fit Firsties!'", "paid via credit card refer to payment method = creditcard; Memphis City School District refer to school_district", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'", "primary focus area is Literature refers to primary_focus_area = 'Literature'"]}} {"set": {"query": "Name the vendors who provide resources for project 'Lights, Camera, Action!'. List all the item names and unit price for each.", "pos": ["project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'"], "neg": ["A Rug For Reaching Readers'is the title;", "vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name", "for grades 9-12 refers to grade_level = 'Grades 9-12'", "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "resources that were requested refers to item_name; project \"d6ef27c07c30c81f0c16c32b6acfa2ff\" refers to projectid = 'd6ef27c07c30c81f0c16c32b6acfa2ff'; quantities refers to item_quantity; teacher_prefix = 'Dr. ' refers to teacher acquired P.h.D or doctor degree", "Needed Resource Materials For My Students refer to title", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'"]}} {"set": {"query": "Calculate the total amount of donations made in 2011 for an honoree with payment via campaign page.", "pos": ["total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'"], "neg": ["project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district", "I Can't See It...Can You Help Me???' is the title;", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;", "primary focus area is Literature refers to primary_focus_area = 'Literature'", "AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))"]}} {"set": {"query": "In what percentage of counties has the ABC Read project been launched?", "pos": ["ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100"], "neg": ["total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "for grades 9-12 refers to grade_level = 'Grades 9-12'", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29';", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'"]}} {"set": {"query": "What is the id of the project that has the highest optional tip? Indicate the names of the resources that were requested.", "pos": ["highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name"], "neg": ["average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "Lakeshore Learning Materials is vendor_name; highest cost of labor fulfillment refers to Max(fulfillment_labor_materials);", "in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support)", "for grades 9-12 refers to grade_level = 'Grades 9-12'", "donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29';", "vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name", "zip code \"7079\" refers to donor_zip = '7079'", "main subject refers to primary_focus_subject"]}} {"set": {"query": "What is the project in which 320 students will be impacted if the project is funded? Name the project and state the project cost.", "pos": ["320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support"], "neg": ["teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n", "Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'", "A Rug For Reaching Readers'is the title;", "magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100", "Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "highest total price including optional support refers to max(total_price_including_optional_support)", "donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100"]}} {"set": {"query": "What is the latitude and longitude of the school where the teacher who wrote \"Smile for the Camera!!!\" teaches?", "pos": ["wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude"], "neg": ["Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100", "vendor refer to vendor_name; Classroom Keepers Management Center refer to item_name", "total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100", "in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'", "project \"Photojournalists Want to Exhibit Their Best Works\" refers to title = 'Photojournalists Want to Exhibit Their Best Works'; when project go live refers to datePosted", "Lakeshore Learning Materials is vendor_name;\u00a0 teacher with a doctor degree refers to teacher_prefix = 'Dr.';"]}} {"set": {"query": "How many schools in the West New York School District have the highest poverty level?", "pos": ["the highest poverty level refers to poverty_level = 'highest poverty'"], "neg": ["lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "book-type projects refers to project_resource_type = 'Books'", "magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100", "donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "Highest cost of the optional tip refers to Max(total_price_including_optional_support - total_price_excluding_optional_support);", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "in Los Angeles refers to donor_city = 'Los Angeles'; school in another city refers to school_city ! = 'Los Angeles'", "Creating Memories and Inspiring Dreams is title;", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);"]}} {"set": {"query": "Is the donor who donated to school \"d4af834b1d3fc8061e1ee1b3f1a77b85\" a teacher?", "pos": ["school \"d4af834b1d3fc8061e1ee1b3f1a77b85\" refers to schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'; donor is a teacher refers to is_teacher_acct = 't';"], "neg": ["AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "A Rug For Reaching Readers'is the title;", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "Needed Resource Materials For My Students refer to title", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100"]}} {"set": {"query": "From which state do the 5 biggest donor, who gave the highest cost of optional support, come from? List their donor_acctid and calculate for their average cost of optional support for every donations they make and identtify the project's type of resource to which they gave the hightest optional support.", "pos": ["which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)"], "neg": ["primary focus area is Literature refers to primary_focus_area = 'Literature'", "urban area refers to school_metro = 'urban'; books resources refers to project_resource_type = 'Books'", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;", "highest total price including optional support refers to max(total_price_including_optional_support)", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude", "date refer to date_posted; Lets Share Ideas refer to title", "an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "book-type projects refers to project_resource_type = 'Books'"]}} {"set": {"query": "What is the teacher prefix for the teacher who wrote the project 'Creating Memories and Inspiring Dreams'?", "pos": ["Creating Memories and Inspiring Dreams is title;"], "neg": ["message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "city of Pocatello refers to donor_city = 'Pocatello'; not teachers refers to is_teacher_acct = 'f'", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude", "portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't';", "an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "for grades 9-12 refers to grade_level = 'Grades 9-12'", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)"]}} {"set": {"query": "How many projects have their resources provided by the vendor Lakeshore Learning Materials and are created by a teacher with a doctor degree?", "pos": ["Lakeshore Learning Materials is vendor_name;\u00a0 teacher with a doctor degree refers to teacher_prefix = 'Dr.';"], "neg": ["city of Pocatello refers to donor_city = 'Pocatello'; not teachers refers to is_teacher_acct = 'f'", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", "donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;", "main subject area refers to primary_focus_area = 'Literacy & Language'; highest unit price refers to Max(item_unit_price);"]}} {"set": {"query": "Of the projects whose resources are provided by the vendor Lakeshore Learning Materials, the school of which project has the highest cost of labor fulfillment? Please give its school ID.", "pos": ["Lakeshore Learning Materials is vendor_name; highest cost of labor fulfillment refers to Max(fulfillment_labor_materials);"], "neg": ["message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "Needed Resource Materials For My Students refer to title", "Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100;", "resources that were requested refers to item_name; project \"d6ef27c07c30c81f0c16c32b6acfa2ff\" refers to projectid = 'd6ef27c07c30c81f0c16c32b6acfa2ff'; quantities refers to item_quantity; teacher_prefix = 'Dr. ' refers to teacher acquired P.h.D or doctor degree", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'"]}} {"set": {"query": "What is the total donated amount for projects created by a teacher working in a school in Brooklyn?", "pos": ["school in Brooklyn refers to school_city = 'Brooklyn'; total donated amount refers to donation_total;"], "neg": ["magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100", "ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "Twin Falls is school_country; 'Math & Science' is primary_focus_area;", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid", "ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "first ever project refers to min(date_posted); names of the resources refers to item_name"]}} {"set": {"query": "What is the name of the vendors serving material for projects for grades 9-12?", "pos": ["for grades 9-12 refers to grade_level = 'Grades 9-12'"], "neg": ["teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "the highest poverty level refers to poverty_level = 'highest poverty'", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "Future Einsteins of America refer to title", "A Rug For Reaching Readers'is the title;", "school \"d4af834b1d3fc8061e1ee1b3f1a77b85\" refers to schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'; donor is a teacher refers to is_teacher_acct = 't';", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid"]}} {"set": {"query": "How many teachers have made some type of donation for projects in Chicago?", "pos": ["in Chicago refers to school_city = 'Chicago'; teachers refers to is_teacher_acct = 't'"], "neg": ["eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "iMath is the title; city refers to school_city;", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district", "Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'", "total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "Literature & Writing' is primary_focus_subject; use 'Mr' as their teacher prefix refers to teacher_prefix = 'Mr';"]}} {"set": {"query": "What is the teacher's account ID for the project that got the donation at 11:38:43 on 2008/7/29 ?", "pos": ["donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;"], "neg": ["ordered between 5 to 10 items refers to item_quantity between 5 and 10; are from Quill.com refers to vendor_name = 'Quill.com'", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "the most expensive funds refers to max(multiply(item_unit_price, item_quantity))", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "primary focus area is Literature refers to primary_focus_area = 'Literature'", "paypal refer to payment method; Lets Share Ideas refer to title; city refer to school_city; total amount donated refer to SUM(donation_total of paypal where payment_method = \u2019paypal\u2019)", "an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'", "project \"Bloody Times\" refers to title = 'Bloody Times'"]}} {"set": {"query": "How many teachers in Twin Falls have Math & Science as their primary focus area?", "pos": ["Twin Falls is school_country; 'Math & Science' is primary_focus_area;"], "neg": ["zip code \"7079\" refers to donor_zip = '7079'", "Creating Memories and Inspiring Dreams is title;", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "iMath is the title; city refers to school_city;", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;", "largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "for grades 9-12 refers to grade_level = 'Grades 9-12'"]}} {"set": {"query": "List the resource types available at Sax Arts & Crafts.", "pos": ["Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n"], "neg": ["ABC School Supply is vendor_name;\u00a0 public magnet school refers to school_magnet = 't';", "urban area refers to school_metro = 'urban'; books resources refers to project_resource_type = 'Books'", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude", "first ever project refers to min(date_posted); names of the resources refers to item_name", "total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "teacher \"42d43fa6f37314365d08692e08680973\"refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';"]}} {"set": {"query": "Which school district was Future Einsteins Of America project located at?", "pos": ["Future Einsteins of America refer to title"], "neg": ["cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "Engaging Young Readers with a Leveled Classroom Library' is the title; total donation amount = Add(donation_to_project, donation_optional_support)", "donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "zip code \"7079\" refers to donor_zip = '7079'", "the highest poverty level refers to poverty_level = 'highest poverty'", "Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'", "total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "ABC Read project been launched refers to title = 'ABC Read'; percentage refers to DIVIDE(count(case when title = 'ABC Read' then school_county else null end),count(school_county))*100", "message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "wrote \"Smile for the Camera!!!\" refers to title = 'Smile for the Camera!!!'; latitude refers to school_latitude; longitude refers to school_longitude"]}} {"set": {"query": "Please provide the type of resource that donation \"b39547f29dfc25fb13c6e9e8d940dc43\" contain.", "pos": ["donation \"b39547f29dfc25fb13c6e9e8d940dc43\" refers to donationid = 'b39547f29dfc25fb13c6e9e8d940dc43'; type of resource refers to project_resource_type;"], "neg": ["how many students refers to students_reached; Fit Firsties! project refers to title = 'Fit Firsties!'", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n", "main subject refers to primary_focus_subject", "AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;", "primary focus area is Literature refers to primary_focus_area = 'Literature'", "project 'Lights, Camera, Action!' refers to title = 'Lights, Camera, Action!'", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "an honoree refers to for_honoree = 't'; more than $100 refers to dollar_amount = '100_and_up'"]}} {"set": {"query": "How many teachers that have Literature & Writing as their primary focus subject use 'Mr' as their teacher prefix?", "pos": ["Literature & Writing' is primary_focus_subject; use 'Mr' as their teacher prefix refers to teacher_prefix = 'Mr';"], "neg": ["320 students will be impacted refers to students_reached = 320; name the project refers to title; project cost refers tp total_price_excluding_optional_support", "magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100", "Lakeshore Learning Materials is vendor_name;\u00a0 teacher with a doctor degree refers to teacher_prefix = 'Dr.';", "the highest poverty level refers to poverty_level = 'highest poverty'", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "how many students refers to students_reached; Fit Firsties! project refers to title = 'Fit Firsties!'", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "project \"Bloody Times\" refers to title = 'Bloody Times'", "Bringing Drama to Life' is the title; Percentage = Divide(Count(payment_method = 'creditcard'), Count(projectid))*100;"]}} {"set": {"query": "Among public magnet schools,what percentage of schools that receive the donated resources as books?", "pos": ["magnet school refers to school_magnet = 't'; donated resources as books refers to project_resource_type = 'Books'; percentage = Divide(Count(projectid) where project_resource_type = 'Books', Count(projectid))*100"], "neg": ["Family History Project refer to title, need statement refer to need_statement", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "date refer to date_posted; Lets Share Ideas refer to title", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "main subject refers to primary_focus_subject", "donation at 14:44:29 on 2012/9/6 refers to donation_timestamp = '2012/9/6 14:44:29';", "school in Brooklyn refers to school_city = 'Brooklyn'; total donated amount refers to donation_total;", "Literature & Writing' is primary_focus_subject; use 'Mr' as their teacher prefix refers to teacher_prefix = 'Mr';"]}} {"set": {"query": "What is the name of the vendors that serve resources to schools whose primary focus area is Literature?", "pos": ["primary focus area is Literature refers to primary_focus_area = 'Literature'"], "neg": ["in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'", "Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'", "portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't';", "literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "Awesome Audiobooks Make Avid Readers' is the title; percentage = Divie(donation_optional_support, donation_total)*100;", "project name refers to title; costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(donation_to_project))*100%", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%"]}} {"set": {"query": "How many suburban metros are there in Livingston Parish School District?", "pos": ["suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district"], "neg": ["donors are teachers refers to is_teacher_acct = 't'; affect more than 30 students refers to students_reached>30; Percentage = Divide(Count(students_reached>30), Count(students_reached))*100", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "donation at 11:38:43 on 2008/7/29 refers to donation_timestamp = '2008/7/29 11:38:43'; teacher's account ID refers to teacher_acctid;", "project name refers to title; costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(donation_to_project))*100%", "Calculate, Financial Security For Tomorrow Starts Today! ' is title; donor is a teacher refers to is_teacher_acct = 't'", "school \"d4af834b1d3fc8061e1ee1b3f1a77b85\" refers to schoolid = 'd4af834b1d3fc8061e1ee1b3f1a77b85'; donor is a teacher refers to is_teacher_acct = 't';", "which state refers to school_state; highest cost of optional support refers to max(donation_optional_support); average cost of optional support = avg(donation_optional_support)", "for grades 9-12 refers to grade_level = 'Grades 9-12'", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%"]}} {"set": {"query": "Which cities in the Los Angeles Unified School District has bought supplies from Quill.com?", "pos": ["cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name"], "neg": ["average amount of donations = divide(sum(donation_to_project), count(donor_acctid)); project \"Recording Rockin' Readers\" refers to title = 'Recording Rockin' Readers'", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "urban area refers to school_metro = 'urban'; books resources refers to project_resource_type = 'Books'", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid", "I Can't See It...Can You Help Me???' is the title;", "school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';", "city of Pocatello refers to donor_city = 'Pocatello'; not teachers refers to is_teacher_acct = 'f'", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;", "AKJ Books items refers to vendor_name = 'AKJ Books'; average unit price refers to DIVIDE(sum(item_unit_price),count(resourceid))", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;"]}} {"set": {"query": "Please list the donation messages of the donations for the projects created by a teacher working in a public magnet school in Brooklyn.", "pos": ["school in Brooklyn refers to school_city = 'Brooklyn'; public magnet refers to school_magnet = 't';"], "neg": ["largest donor by amount refers to max(donation_total); total amount of the donation refers to donation_total", "lakeshore Learning Materials is vendor_name; biggest amount refers to Max(item_quantity);", "I Can't See It...Can You Help Me???' is the title;", "portion using account credits redemption refers to payment_included_acct_credit = 't'; year-round school refers to school_year_round = 't';", "received donations of less than 10 dollars refers to dollar_amount = 'under_10'; city refers to school_city\n\n", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "Family History Project refer to title, need statement refer to need_statement", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'", "teach 3-5 grades refers to grade_level = 'Grades 3-5'; 'Boston Public School District' is school_district;"]}} {"set": {"query": "What is the short description of the project that gives donation to school \u201c301c9bf0a45d159d162b65a93fddd74e\u201d?", "pos": ["school \u201c301c9bf0a45d159d162b65a93fddd74e\" refers to schoolid = '301c9bf0a45d159d162b65a93fddd74e';"], "neg": ["total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "total amount of all the donations refers to sum(donation_total); highest donation refers to max(donation_total)", "the highest poverty level refers to poverty_level = 'highest poverty'", "Lakeshore Learning Materials is vendor_name; highest cost of labor fulfillment refers to Max(fulfillment_labor_materials);", "eachers with Doctor Degree refers to teacher_prefix = 'Dr.'; more than 300 students involved refers to students_reached > 300", "located in the rural area refers to school_metro = 'rural'; percentage = divide(sum(donation_to_project), sum(donation_to_project where school_metro = 'rural'))*100%", "in Brooklyn refers to school_city = 'Brooklyn'; highest request of resources refers to max(count(T1.item_name))", "Coordinates of the school refer to school_latitude, school_longitude); Look, Look, We Need a Nook! Refer to title;", "not from a teacher refers to is_teacher_acct = 'f'; donor account id refers to donor_acctid; percentage of donation = divide(donation_optional_support, donation_total)*100%", "Highest cost of the optional tip refers to Max(total_price_including_optional_support - total_price_excluding_optional_support);"]}} {"set": {"query": "Who is the vendor of the resources needed by the project that had the highest cost of optional tip?", "pos": ["Highest cost of the optional tip refers to Max(total_price_including_optional_support - total_price_excluding_optional_support);"], "neg": ["literacy subject as primary focus refers to primary_focus_subject = 'Literacy'", "Literature & Writing' is primary_focus_subject; use 'Mr' as their teacher prefix refers to teacher_prefix = 'Mr';", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e';", "zip code \"22205\" refers to donor_zip = '22205'; students impacted refers to students_reached", "project name refers to title; costs the most refers to max(total_price_excluding_optional_support); amount collected from donation refers to sum(donation_to_project); percentage amount refers to divide(subtract(total_price_excluding_optional_support, sum(donation_to_project)), sum(donation_to_project))*100%", "project name refers to title; describe refers to short_description; New York teachers refers to teacher_ny_teaching_fellow = 't'", "total amount refers to sum(donation_total); 2011 refers to donation_timestamp LIKE'2011%'; honoree refers to for_honoree = 't'; via campaign page refers to via_giving_page = 't'", "Rock Hill City School refers to school_city = 'Rock Hill'; teacher donors refers to is_teacher_acct = 't'", "suburban metros refer to metro = 'suburban'; Livingston Parish School District refer to school_district", "city of Pocatello refers to donor_city = 'Pocatello'; not teachers refers to is_teacher_acct = 'f'"]}} {"set": {"query": "When was the first ever project went live on the site and what were the names of the resources being requested? If there are multiple projects that have the same date, indicate each of them and their items.", "pos": ["first ever project refers to min(date_posted); names of the resources refers to item_name"], "neg": ["Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'", "from \"Sax Arts & Crafts\" refers to vendor_name = 'Sax Arts & Crafts'; zip code of the schools refers school_zip", "Mathematics as a primary subject refers to primary_focus_subject = 'Mathematics'; most expensive refers to max(item_unit_price)", "technology items refers to project_resource_type = 'Technology'; from Best Buy for Business refers to vendor_name = 'Best Buy for Business'; percentage refers to DIVIDE(count(case when vendor_name = 'Best Buy for Business'),count(projectid))", "A Rug For Reaching Readers'is the title;", "teacher \"42d43fa6f37314365d08692e08680973\" refers to teacher_acctid = '42d43fa6f37314365d08692e08680973';", "Sax Arts & Crafts refer to vendor_name; resource type available refer to project_resource_type\n", "resources that were requested refers to item_name; project \"d6ef27c07c30c81f0c16c32b6acfa2ff\" refers to projectid = 'd6ef27c07c30c81f0c16c32b6acfa2ff'; quantities refers to item_quantity; teacher_prefix = 'Dr. ' refers to teacher acquired P.h.D or doctor degree", "school in Brooklyn refers to school_city = 'Brooklyn'; total donated amount refers to donation_total;", "Needed Resource Materials For My Students refer to title"]}} {"set": {"query": "What is the project title of the school located at latitude 42003718 and longitude -87668289?", "pos": ["latitude 42003718 refers to school_latitude = 42003718; longitude -87668289 refers to school_longitude = -87668289"], "neg": ["Suffolk County refers to School_county = 'Suffolk'; Ph.D. teachers refers to Teacher_prefix = 'Dr.'", "message refer to donation_message; Newark School District refer to school_district; 40.735332, -74.196014 refer to (school latitude, school_longitude)", "in Chicago refers to school_city = 'Chicago'; ID of the donor refers to donor_acctid", "teacher \"822b7b8768c17456fdce78b65abcc18e\" refers to teacher_acctid = '822b7b8768c17456fdce78b65abcc18e'; donated refers to donation_total;", "highest optional tip refers to subtract(total_price_including_optional_support, total_price_excluding_optional_support); names of the resources refers to item_name", "main subject area refers to primary_focus_area = 'Literacy & Language'; total donation amount refers to Sum(dollar_amount);", "cities refer to school_city; Los Angeles Unified School District refer to school_district = 'Los Angeles Unified School District'; supplies refer to project_resource_type; Quill.com refer to vendor_name", "from teachers refers to is_teacher_acct = 't'; the state of Colorado refers to donor_state = 'CO-Colorado'", "made in March 2013 refers to substr(donation_timestamp,1,7) = '2013-03'; percentage refers to DIVIDE(SUM(payment_method made in March 2013), SUM(payment_method))*100", "donation \"b39547f29dfc25fb13c6e9e8d940dc43\" refers to donationid = 'b39547f29dfc25fb13c6e9e8d940dc43'; type of resource refers to project_resource_type;"]}} {"set": {"query": "Which team won the match in the EC division on January 20, 2008 at home?", "pos": ["won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';"], "neg": ["the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "Bursaspor vs Denizlispor are names of teams where HomeTeam = 'Bursaspor' and AwayTeam = 'Denizlispor'; Date = '2009-04-26'; final score refers to FTHG, FTAG;", "consecutive games mean happen one after the other without interruption and refer to Date; tied refers to FTR = 'D';", "England is the name of country;", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));", "Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "Italian means belong to country = 'Italy\";", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;"]}} {"set": {"query": "How many Scottish League One games took place on the day that \"Pro Vercelli\" and \"Pescara\"had a 5-2 game?", "pos": ["Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;"], "neg": ["Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';"]}} {"set": {"query": "How many teams that played in the 2012 season belong to any of the English divisions and what percentage play in each of the divisions?", "pos": ["matches = Div"], "neg": ["Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';", "England is the name of country;", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;"]}} {"set": {"query": "List the number of games that ended up with 5-0 in Greece.", "pos": ["5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;"], "neg": ["Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "Netherlands is the name of country;", "the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));", "Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';"]}} {"set": {"query": "How many matches of the Bundesliga division ended with an away victory in the 2021 season?", "pos": ["Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;"], "neg": ["Netherlands is the name of country;", "England is the name of country;", "the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';", "more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;", "Premier League is the name of division;", "Italian means belong to country = 'Italy\";", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;"]}} {"set": {"query": "What's the name of the football division in the Netherlands?", "pos": ["Netherlands is the name of country;"], "neg": ["Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;", "5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;", "more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;"]}} {"set": {"query": "What's the winning rate of Club Brugge in the 2021 Premier League?", "pos": ["Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));"], "neg": ["Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "England is the name of country;", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;", "the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));"]}} {"set": {"query": "What percentage of all tied games did the Sassuolo team play in?", "pos": ["tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;"], "neg": ["Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;", "Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "Premier League is the name of division;", "Netherlands is the name of country;", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';"]}} {"set": {"query": "What was the difference in home team and away team win percentages across all divisions in 2010?", "pos": ["2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;"], "neg": ["Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "Netherlands is the name of country;", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;", "Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;"]}} {"set": {"query": "What was the final score for the game Bursaspor vs Denizlispor on 2009/4/26?", "pos": ["Bursaspor vs Denizlispor are names of teams where HomeTeam = 'Bursaspor' and AwayTeam = 'Denizlispor'; Date = '2009-04-26'; final score refers to FTHG, FTAG;"], "neg": ["Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "Italian means belong to country = 'Italy\";", "Netherlands is the name of country;", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "Premier League is the name of division;", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;"]}} {"set": {"query": "Which away team in the division of Bundesliga has the highest final time goals?", "pos": ["Bundesliga is a name of division; the highest final time goals refers to MAX(FTAG);"], "neg": ["Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "Premier League is the name of division;", "the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;", "Netherlands is the name of country;"]}} {"set": {"query": "How many matches were played in the Scottish Premiership division from 2006 to 2008?", "pos": ["Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;"], "neg": ["the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "consecutive games mean happen one after the other without interruption and refer to Date; tied refers to FTR = 'D';", "Italian means belong to country = 'Italy\";", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "Bundesliga is the name of division; Date = '2020/10/2';"]}} {"set": {"query": "Please list the home teams in the matches of the Bundesliga division that ended with a home victory in the 2021 season.", "pos": ["Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;"], "neg": ["matches = Div", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;", "Premier League is the name of division;", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);", "Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;"]}} {"set": {"query": "When did the first match that score more than 10 goals happen?", "pos": ["score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);"], "neg": ["the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';", "Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "matches = Div", "Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "Bundesliga is a name of division; the highest final time goals refers to MAX(FTAG);", "Premier League is the name of division;", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;"]}} {"set": {"query": "Which division had the most draft matches in the 2008 season?", "pos": ["the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';"], "neg": ["the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "Bundesliga is the name of division; Date = '2020/10/2';", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "Italian means belong to country = 'Italy\";", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;", "Premier League is the name of division;"]}} {"set": {"query": "How many home victories does the Bundesliga division have in more or less than the Premier League division in the 2021 season?", "pos": ["Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));"], "neg": ["Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;", "the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "consecutive games mean happen one after the other without interruption and refer to Date; tied refers to FTR = 'D';", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);"]}} {"set": {"query": "How many matches were held during the 2021 season's Premier League?", "pos": ["Premier League is the name of division;"], "neg": ["2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;", "Italian means belong to country = 'Italy\";", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;"]}} {"set": {"query": "What is the most consecutive games tied by Ebbsfleet as an away team in the 2008 season?", "pos": ["consecutive games mean happen one after the other without interruption and refer to Date; tied refers to FTR = 'D';"], "neg": ["Premier League is the name of division;", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "Netherlands is the name of country;", "more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;"]}} {"set": {"query": "Which team had the most final-time home-team goals in the 2021 season's matches of the Bundesliga division?", "pos": ["Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);"], "neg": ["Netherlands is the name of country;", "Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "England is the name of country;", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "Bundesliga is a name of division; the highest final time goals refers to MAX(FTAG);"]}} {"set": {"query": "What is the name of the division that has had the lowest number of draft matches in the 2019 season?", "pos": ["the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));"], "neg": ["home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "Premier League is the name of division;", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';", "Italian means belong to country = 'Italy\";", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);"]}} {"set": {"query": "Which division had the most games with more than 5 total field goals on 2020/2/22? Give the full name of the division?", "pos": ["more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;"], "neg": ["Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';", "Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "Premier League is the name of division;"]}} {"set": {"query": "Which team has the most victories as the home team in matches of the Bundesliga division?", "pos": ["Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));"], "neg": ["Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;", "consecutive games mean happen one after the other without interruption and refer to Date; tied refers to FTR = 'D';", "the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';", "Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;"]}} {"set": {"query": "For a game had a score of 1-8 in the year of 2011, what division was that game in? Give the full name of the division.", "pos": ["2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';"], "neg": ["the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "consecutive games mean happen one after the other without interruption and refer to Date; tied refers to FTR = 'D';", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);"]}} {"set": {"query": "How many draw games happened on 2018/8/7 for National League?", "pos": ["National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;"], "neg": ["2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';", "Netherlands is the name of country;", "Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;", "Bundesliga is a name of division; the highest final time goals refers to MAX(FTAG);"]}} {"set": {"query": "Please provide the names of any three away teams that competed in the Italian divisions.", "pos": ["Italian means belong to country = 'Italy\";"], "neg": ["Bursaspor vs Denizlispor are names of teams where HomeTeam = 'Bursaspor' and AwayTeam = 'Denizlispor'; Date = '2009-04-26'; final score refers to FTHG, FTAG;", "Netherlands is the name of country;", "matches = Div", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "Bundesliga is the name of division; Date = '2020/10/2';", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';"]}} {"set": {"query": "Of the matches in all seasons of the Bundesliga division, how many of them ended with a tie?", "pos": ["Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;"], "neg": ["the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);", "Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "England is the name of country;", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;"]}} {"set": {"query": "What's the home win ratio of the Bundesliga division in 2021?", "pos": ["home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;"], "neg": ["won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "matches = Div", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;"]}} {"set": {"query": "Of all the teams that played as a team away against Caen in the 2010 season, which one has the highest winning percentage?", "pos": ["Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;"], "neg": ["Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "Netherlands is the name of country;", "the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;", "Bundesliga is a name of division; the highest final time goals refers to MAX(FTAG);", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));"]}} {"set": {"query": "Which country did Bradford Team belongs to?", "pos": ["Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';"], "neg": ["home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;", "Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));", "Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "Premier League is the name of division;"]}} {"set": {"query": "How many football divisions does England have?", "pos": ["England is the name of country;"], "neg": ["Bundesliga is the name of division; Date = '2020/10/2';", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;", "Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));", "more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);", "Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;"]}} {"set": {"query": "How many final-time home-team goals were there in total in all the matches of the Bundesliga division in the 2021 season?", "pos": ["Bundesliga is the name of division; final-time home-team goals refers to FTHG;"], "neg": ["Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;", "Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;", "Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "England is the name of country;", "Bursaspor vs Denizlispor are names of teams where HomeTeam = 'Bursaspor' and AwayTeam = 'Denizlispor'; Date = '2009-04-26'; final score refers to FTHG, FTAG;", "tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;", "consecutive games mean happen one after the other without interruption and refer to Date; tied refers to FTR = 'D';"]}} {"set": {"query": "How many Eredivisie teams have played in 2008?", "pos": ["Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;"], "neg": ["Bundesliga is the name of division; final-time home-team goals refers to FTHG;", "Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);", "matches = Div", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';", "Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;"]}} {"set": {"query": "What percentage of matches played on 2005/07/30 belong to the F1 division?", "pos": ["Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;"], "neg": ["Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';", "Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));", "Bundesliga is a name of division; the highest final time goals refers to MAX(FTAG);", "home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;", "Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;", "National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;", "Netherlands is the name of country;", "Bursaspor vs Denizlispor are names of teams where HomeTeam = 'Bursaspor' and AwayTeam = 'Denizlispor'; Date = '2009-04-26'; final score refers to FTHG, FTAG;"]}} {"set": {"query": "Which team was the home team in the match of the Bundesliga division on 2020/10/2?", "pos": ["Bundesliga is the name of division; Date = '2020/10/2';"], "neg": ["National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;", "Premier League is the name of division;", "Netherlands is the name of country;", "Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;", "Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;", "won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';", "5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;", "Italian means belong to country = 'Italy\";", "Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));", "Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';"]}} {"set": {"query": "List down the owner's name with a zip code 94104.", "pos": ["zip code 94104 refers to owner_zip = '94104';"], "neg": ["establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;", "businesses with a high risk category refer to business_id where risk_category = 'High Risk';", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "eateries represent business; highest score in inspection refers to score = 100;", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "eateries refer to business_id;"]}} {"set": {"query": "Which business had the lowest score for the unscheduled routine inspection on 2016/9/26? Give the name of the business.", "pos": ["the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';"], "neg": ["the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;", "owner's name of businesses refers to owner_name;", "the lowest inspection score refers to MIN(score);", "\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';", "restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk';", "inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score);", "average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id));", "score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';"]}} {"set": {"query": "What are the names of the establishments that met all the required standards for 4 consecutive years?", "pos": ["establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015; ; met all required standards for 4 consecutive years refers to COUNT(year(date)) = 4 where score = 100;"], "neg": ["establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled';", "\"Rue Lepic\" is the name of the business;", "the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);", "eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';", "zip code 94104 refers to owner_zip = '94104';", "businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90;", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;"]}} {"set": {"query": "Which business had the most number of high risk violations? Give the name of the business.", "pos": ["the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';"], "neg": ["eateries represent business; highest score in inspection refers to score = 100;", "eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';", "businesses with a high risk category refer to business_id where risk_category = 'High Risk';", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "in 2014 refers to year(date) = 2014; risk_category = 'Low Risk';", "score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);", "inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "\"Rue Lepic\" is the name of the business;"]}} {"set": {"query": "Among the restaurants being inspected in 2016, how many of them are in San Francisco?", "pos": ["inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');"], "neg": ["average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id));", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "in 2014 refers to year(date) = 2014; risk_category = 'Low Risk';", "owner's name of businesses refers to owner_name;", "\"Rue Lepic\" is the name of the business;", "zip code 94104 refers to owner_zip = '94104';", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';", "establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) \u2265 5;"]}} {"set": {"query": "Describe the inspection types and violation descriptions under moderate risk category for ART's CAF\u00c9.", "pos": ["ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';"], "neg": ["the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;", "eateries refer to business_id;", "in 2014 refers to year(date) = 2014; risk_category = 'Low Risk';", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "zip code 94104 refers to owner_zip = '94104';", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90;", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;"]}} {"set": {"query": "Provide the name of the business which had the most number of inspections because of complaint.", "pos": ["the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);"], "neg": ["ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "eateries represent business; highest score in inspection refers to score = 100;", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup';"]}} {"set": {"query": "Provide eateries' IDs, names and addresses which were inspected on 30th July, 2016.", "pos": ["eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';"], "neg": ["eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup';", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "eateries refer to business_id;", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';"]}} {"set": {"query": "Among the businesses with score that ranges from 70 to 80, list their violation type ID and risk category.", "pos": ["businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90;"], "neg": ["the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", "eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31';", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';", "in 2014 refers to year(date) = 2014; risk_category = 'Low Risk';", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';", "eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2;"]}} {"set": {"query": "What is the name of the establishment with the lowest inspection score of all time?", "pos": ["the lowest inspection score refers to MIN(score);"], "neg": ["eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2;", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';", "the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;", "eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';", "eateries with tax code AA refer to business_id where tax_code = 'AA';", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;"]}} {"set": {"query": "What is the description of the low risk violation of Tiramisu Kitchen on 2014/1/14?", "pos": ["Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';"], "neg": ["the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "in 2014 refers to year(date) = 2014; risk_category = 'Low Risk';", "owner's name of businesses refers to owner_name;", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "eateries refer to business_id;", "score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';"]}} {"set": {"query": "Give the description of the moderate risk violation which \"Chez Fayala, Inc.\" had on 2016/7/1.", "pos": ["\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';"], "neg": ["restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk';", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';", "eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31';", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);", "DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;", "eateries refer to business_id;", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", "\"Rue Lepic\" is the name of the business;"]}} {"set": {"query": "How many establishments have an inspection score of no more than 50?", "pos": ["establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;"], "neg": ["the lowest inspection score refers to MIN(score);", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "eateries represent business; highest score in inspection refers to score = 100;", "DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;", "ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';", "eateries refer to business_id;", "owner's name of businesses refers to owner_name;", "eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';", "establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score);", "STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk';"]}} {"set": {"query": "In the violations in 2014, how many of them have a low risk category?", "pos": ["in 2014 refers to year(date) = 2014; risk_category = 'Low Risk';"], "neg": ["establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "eateries refer to business_id;", "restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk';", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;", "businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled';", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id));", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;"]}} {"set": {"query": "Which business had the most number of inspections? Give the Id number for that business.", "pos": ["the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;"], "neg": ["eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "eateries refer to business_id;", "the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);", "\"Rue Lepic\" is the name of the business;", "ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';", "businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled';", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';"]}} {"set": {"query": "How many of the businesses are located at 1825 POST St #223, San Francisco?", "pos": ["1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;"], "neg": ["establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015; ; met all required standards for 4 consecutive years refers to COUNT(year(date)) = 4 where score = 100;", "the lowest inspection score refers to MIN(score);", "businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled';", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';"]}} {"set": {"query": "What was the inspection type when El Aji Peruvian Restaurant got highest inspection score?", "pos": ["El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);"], "neg": ["business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup';", "businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90;", "owner's name of businesses refers to owner_name;", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';"]}} {"set": {"query": "Describe the violation dates, risk categories, descriptions and names of the eateries under Jade Chocolates LLC.", "pos": ["eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';"], "neg": ["inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';", "restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk';", "the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;", "zip code 94104 refers to owner_zip = '94104';", "owner's name of businesses refers to owner_name;", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';", "STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk';", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';"]}} {"set": {"query": "In businesses with a score lower than 95 and located around the postal code of 94110, what is the percentage of businesses with a risk category of low risk?", "pos": ["DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;"], "neg": ["the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "owner's name of businesses refers to owner_name;", "restaurants' owners in California refer to owner_state = 'CA';", "ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) \u2265 5;", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "eateries with tax code AA refer to business_id where tax_code = 'AA';"]}} {"set": {"query": "How many eateries applied in 2012?", "pos": ["eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31';"], "neg": ["the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;", "\"Rue Lepic\" is the name of the business;", "eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2;", "DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';", "restaurants' owners in California refer to owner_state = 'CA';"]}} {"set": {"query": "In businesses that violates 103157 on May 27, 2016 , what is the name of the business that has an unscheduled inspection?", "pos": ["businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled';"], "neg": ["Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';", "eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup';", "\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "eateries with tax code AA refer to business_id where tax_code = 'AA';", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';"]}} {"set": {"query": "Among the businesses within the postal code 94117, what is total number of businesses with a high risk category?", "pos": ["businesses with a high risk category refer to business_id where risk_category = 'High Risk';"], "neg": ["eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';", "\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';", "zip code 94104 refers to owner_zip = '94104';", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "eateries with tax code AA refer to business_id where tax_code = 'AA';", "the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);", "inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';", "eateries represent business; highest score in inspection refers to score = 100;"]}} {"set": {"query": "When did eateries from San Bruno city get highest score in inspection?", "pos": ["eateries represent business; highest score in inspection refers to score = 100;"], "neg": ["restaurants' owners in California refer to owner_state = 'CA';", "\"Rue Lepic\" is the name of the business;", "Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) \u2265 5;", "inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;"]}} {"set": {"query": "Which establishment has the highest number of inspections done? Give the name of the establishment and calculate for its average score per inspection.", "pos": ["establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score);"], "neg": ["establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31';", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';", "the lowest inspection score refers to MIN(score);", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));"]}} {"set": {"query": "Among the routine inspections of Tiramisu Kitchen, how many of them have a score of over 70?", "pos": ["Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;"], "neg": ["establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk';", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", "\"Rue Lepic\" is the name of the business;", "the lowest inspection score refers to MIN(score);", "eateries refer to business_id;", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "eateries with tax code AA refer to business_id where tax_code = 'AA';", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';"]}} {"set": {"query": "List owner's name of businesses with a 100 score.", "pos": ["owner's name of businesses refers to owner_name;"], "neg": ["the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", "zip code 94104 refers to owner_zip = '94104';", "the lowest inspection score refers to MIN(score);", "in 2014 refers to year(date) = 2014; risk_category = 'Low Risk';", "eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2;", "ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "eateries represent business; highest score in inspection refers to score = 100;", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);"]}} {"set": {"query": "How many high risk violations do the restaurants in San Francisco have in total?", "pos": ["restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk';"], "neg": ["the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", "in 2014 refers to year(date) = 2014; risk_category = 'Low Risk';", "eateries with tax code AA refer to business_id where tax_code = 'AA';", "businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90;", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id));", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';"]}} {"set": {"query": "What is the average score of the establishments owned by the owner with the highest number of establishments?", "pos": ["average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id));"], "neg": ["Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) \u2265 5;", "DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "eateries refer to business_id;", "eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "eateries represent business; highest score in inspection refers to score = 100;"]}} {"set": {"query": "Who is the owner of the business that has a high risk violation of 103109 and described as unclean or unsanitary food contact surfaces?", "pos": ["owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';"], "neg": ["the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31';", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk';", "DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;", "\"Rue Lepic\" is the name of the business;", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "owner's name of businesses refers to owner_name;", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';"]}} {"set": {"query": "Among the top 5 owners with highest number of establishments, which owner has the highest number of high risk violations? Give the name of the owner.", "pos": ["5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));"], "neg": ["business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "restaurants' owners in California refer to owner_state = 'CA';", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;", "owner's name of businesses refers to owner_name;", "eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';", "score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;"]}} {"set": {"query": "List the business' name and risk category of businesses with a score greater than the 80% of average score of all businesses.", "pos": ["score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);"], "neg": ["eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';", "eateries with tax code AA refer to business_id where tax_code = 'AA';", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) \u2265 5;"]}} {"set": {"query": "How many restaurants' owners are in California?", "pos": ["restaurants' owners in California refer to owner_state = 'CA';"], "neg": ["average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id));", "ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';", "eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';", "eateries with tax code AA refer to business_id where tax_code = 'AA';", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;"]}} {"set": {"query": "Among violations on 3rd June, 2014, describe any 5 names, located cities and tax codes of the eateries with high risk category.", "pos": ["eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';"], "neg": ["5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015; ; met all required standards for 4 consecutive years refers to COUNT(year(date)) = 4 where score = 100;", "the lowest inspection score refers to MIN(score);", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) \u2265 5;", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "zip code 94104 refers to owner_zip = '94104';"]}} {"set": {"query": "Among the establishments with a postal code of 94102, how many establishments have a score of 90 or more in 2015?", "pos": ["establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;"], "neg": ["eateries with tax code AA refer to business_id where tax_code = 'AA';", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015; ; met all required standards for 4 consecutive years refers to COUNT(year(date)) = 4 where score = 100;", "restaurants' owners in California refer to owner_state = 'CA';", "the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';"]}} {"set": {"query": "What is the name of the establishment with the highest number of low risk violations in 2014?", "pos": ["establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;"], "neg": ["the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "eateries represent business; highest score in inspection refers to score = 100;", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "El Aji Peruvian Restaurant is the name of the business; highest inspection score refers to MAX(score);", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;"]}} {"set": {"query": "In 2016, which city has the highest number of establishments with the highest health and safety hazards?", "pos": ["the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;"], "neg": ["zip code 94104 refers to owner_zip = '94104';", "DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled';", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31';"]}} {"set": {"query": "What is the owner's name of the of the business that violates 103156 on June 12, 2014?", "pos": ["business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';"], "neg": ["unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk';", "the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);", "businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled';", "businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90;", "ART's CAF\u00c9 is the name of the business; moderate risk category refers to risk_category = 'Moderate Risk';", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;", "eateries refer to business_id;", "the lowest inspection score refers to MIN(score);"]}} {"set": {"query": "Among the inspections carried out in 2016, how many of them are routine?", "pos": ["inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';"], "neg": ["Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90;", "eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';", "owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';", "Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "inspected in 2016 refers to YEAR(date) = 2016; San Francisco refers to city in ('San Francisco', 'SF' ,'S.F.', 'SAN FRANCISCO');", "score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);", "businesses with a high risk category refer to business_id where risk_category = 'High Risk';", "eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';", "eateries represent business; highest score in inspection refers to score = 100;"]}} {"set": {"query": "Among the violations in 2016, how many of them have unscheduled inspections?", "pos": ["unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;"], "neg": ["Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;", "establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';", "eateries represent business; highest score in inspection refers to score = 100;", "\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "eateries with tax code AA refer to business_id where tax_code = 'AA';"]}} {"set": {"query": "List the tax code and inspection type of the business named \"Rue Lepic\".", "pos": ["\"Rue Lepic\" is the name of the business;"], "neg": ["Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id));", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';", "eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup';", "eateries with tax code AA refer to business_id where tax_code = 'AA';", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';"]}} {"set": {"query": "How many establishments with the tax code H24 have complaint inspections of 5 or more?", "pos": ["establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) \u2265 5;"], "neg": ["the lowest inspection score refers to MIN(score);", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';", "\"Chez Fayala, Inc.\" is the name of the business; moderate risk violation refers to risk_category = 'Moderate Risk'; date = '2016-07-01';", "owner's name of businesses refers to owner_name;", "inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;", "restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk';", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;"]}} {"set": {"query": "List the eateries' names and addresses which had reinspection on 2nd February, 2015.", "pos": ["eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup';"], "neg": ["eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';", "eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2;", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score);", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "the highest health and safety hazards refer to risk_category = 'High Risk'; year(date) = 2016; establishments has the same meaning as businesses;", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));"]}} {"set": {"query": "In 2013, what are the names of the establishments with contaminated or adulterated food?", "pos": ["establishments have the same meaning as businesses; contaminated or adulterated food refers to violations where description = 'Contaminated or adulterated food'; date = '2013';"], "neg": ["5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "the most number of inspections refers to MAX(COUNT(business_id)); Id number for that business refers to business_id;", "Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';", "eateries represent business; highest score in inspection refers to score = 100;", "eateries which had reinspection on 2nd February, 2015 refer to business_id where date = '2015-02-02' and type = 'Reinspection/Followup';"]}} {"set": {"query": "Provide the names, risk categories and descriptions for the eateries with violation type ID of 103111.", "pos": ["eateries refer to business_id;"], "neg": ["establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;", "inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';", "STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk';", "eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31';", "businesses with score that ranges from 70 to 80 refer to business_id where score between 80 and 90;", "establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score);", "business that violates 103156 on June 12, 2014 refers to business_id where violation_type_id = 103156 and date = '2014-06-12';", "eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2;"]}} {"set": {"query": "What was the type of inspection Tiramisu Kitchen had on 2014/1/14?", "pos": ["Tiramisu Kitchen is the name of the business; inspection on 2014/1/14 refers to date = '2014-01-14';"], "neg": ["eateries with tax code AA refer to business_id where tax_code = 'AA';", "establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score);", "inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "businesses that violates 103157 refer to business_id where violation_type_id = 103157; date = '2016-05-27'; unscheduled inspection refers to type = 'Routine - Unscheduled';", "eateries under Jade Chocolates LLC refer to business_id where owner_name = 'Jade Chocolates LLC';", "eateries' IDs inspected on 30th July, 2016 refer to business_id where business_id is not null and date = '2016-07-30';", "STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk';", "the lowest inspection score refers to MIN(score);", "DIVIDE(COUNT(business_id where risk_category = 'Low Risk', score < 95 and postal_code = 94110), COUNT(business_id where score < 95 and postal_code = 94110)) as percentage;", "establishments have the same meaning as businesses; inspection score of no more than 50 refers to score < 50;"]}} {"set": {"query": "List the inspection dates, scores and inspection types for the eateries with tax code AA.", "pos": ["eateries with tax code AA refer to business_id where tax_code = 'AA';"], "neg": ["eateries applied in 2012 refer to business_id where application_date between '2012-01-01' and '2012-12-31';", "establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score);", "inspections carried out in 2016 refer to YEAR(date) = 2016; routine inspections refer to type = 'Routine - Unscheduled';", "eateries refer to business_id;", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015; ; met all required standards for 4 consecutive years refers to COUNT(year(date)) = 4 where score = 100;", "establishment with the highest number of low risk violations refers to business_id where MAX(COUNT(risk_category = 'Low Risk')); year(date) = 2014;", "Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "the most number of high risk violations refers to MAX(COUNT(business_id)) where risk_category = 'High';", "establishments with the tax code H24 refer to business_id where tax_code = 'H24'; complaint inspections of 5 or more refer to inspections where type = 'Complaint' and COUNT(business_id) \u2265 5;", "the lowest score for unscheduled routine inspection refers to type = 'Routine - Unscheduled' where MIN(score); date = '2016-09-26';"]}} {"set": {"query": "List down the eateries' IDs with structural inspection type in February 2016.", "pos": ["eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2;"], "neg": ["restaurants in San Francisco refer to business_id where city in ('San Francisco', 'SF', 'S.F.', 'SAN FRANCISCO'); high risk violations refer to risk_category = 'High Risk';", "establishment refers to business_id; the highest number of inspections refers to MAX(COUNT(business_id)); avg(score);", "unscheduled inspections refer to type = 'Routine - Unschedule'; year(date) = 2016;", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk';", "businesses with a high risk category refer to business_id where risk_category = 'High Risk';", "Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "eateries represent business; highest score in inspection refers to score = 100;", "eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';"]}} {"set": {"query": "Mention the violation type ID and description of high risk category for STARBUCKS.", "pos": ["STARBUCKS is the name of the business; high risk category refers to risk_category = 'High Risk';"], "neg": ["Tiramisu Kitchen is the name of the business; 2014/1/14 refers to date = '2014-01-14'; low risk violations refer to risk_category = 'Low Risk';", "eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';", "Tiramisu Kitchen is the name of the business; routine inspections refer to type = 'Routine - Unscheduled'; score of over 70 refers to score > 70;", "average score refers avg(score); owner with the highest number of establishments refers to owner_name where MAX(COUNT(business_id));", "1825 POST St #223 refers to address = '1825 POST St #223', San Francisco is the name of the city;", "eateries' IDs refer to business_id; structural inspection type refers to inspections WHERE type = 'Structural Inspection'; in February 2016 refers to year(date) = 2016 and month(date) = 2;", "owner's name of businesses refers to owner_name;", "eateries represent business; highest score in inspection refers to score = 100;", "owner refers to owner_name; high risk violation of 103109 and described as unclean or unsanitary food contact surfaces refers to risk_category = 'High Risk' where violation_type_id = 103109 and description = 'Unclean or unsanitary food contact surfaces';", "the lowest inspection score refers to MIN(score);"]}} {"set": {"query": "Who were the owners of eateries which had highest health hazard by improper cooking time or temperatures?", "pos": ["owners of eateries refer to owner_name; highest health hazard by improper cooking time or temperatures refers to risk_category = 'High Risk' and description = 'Improper cooking time or temperatures';"], "neg": ["zip code 94104 refers to owner_zip = '94104';", "the lowest inspection score refers to MIN(score);", "businesses with a high risk category refer to business_id where risk_category = 'High Risk';", "owner's name of businesses refers to owner_name;", "score greater than the 80% of average score of all businesses refers to score > MULTIPLY(0.8, avg(score) from inspections);", "establishment has the same meaning as business; score of 90 or more refers to score \u2265 90; year(date) = 2015;", "the most number of inspections because of complaint refers to type = 'Complaint' where MAX(business_id);", "5 owners with highest number of establishments refer to owner_name where MAX(COUNT(business_id)) LIMIT 5; the highest number of high risk violations refers to MAX(COUNT(risk_category = 'High Risk'));", "eateries with high risk category refer to business_id where risk_category = 'High Risk'; 3rd June, 2014 refers to date = '2014-06-03';", "\"Rue Lepic\" is the name of the business;"]}} {"set": {"query": "What is the average number of inspections did risk level 3 taverns have?", "pos": ["risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'"], "neg": ["salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "inspection result refers to results", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000", "total number of establishments with the highest risk level = count(max(risk_level))", "the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "license number 1576687 refers to license_no = 1576687", "the highest number of inspections done refers to max(count(employee_id))"]}} {"set": {"query": "Please list the full names of all the sanitarians under the supervision of Darlisha Jacobs.", "pos": ["full name refers to first_name, last_name"], "neg": ["name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'", "license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'", "job title refers to title", "fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%", "establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'"]}} {"set": {"query": "What is the result of the February 24, 2010 inspection involving the employee named \"Arnold Holder\"?", "pos": ["February 24, 2010 refers to inspection_date = '2010-02-24'"], "neg": ["phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass'", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'", "the most inspections refers to max(count(employee_id))", "critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment \"CDI ON 5-17-10\" refers to inspector_comment = 'CDI ON 5-17-10'", "comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25'", "assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '", "short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; \"Old Timers Rest & Lounge\" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address"]}} {"set": {"query": "How many taverns failed in July 2010?", "pos": ["tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'"], "neg": ["inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;", "critical food safety problems refers to fine = 500; point_id = 3", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "February 24, 2010 refers to inspection_date = '2010-02-24'", "phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'", "under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "\"PIZZA RUSTICA, INC.\" refers to dba_name = 'PIZZA RUSTICA, INC'", "tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'"]}} {"set": {"query": "What is the average number of inspections carried out in the year 2010 by a sanitarian whose salary is over 70000?", "pos": ["in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))"], "neg": ["inspection description refers to Description; inspector's comment refers to inspector_comment", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'", "inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'", "the most inspections refers to max(count(employee_id))", "full name refers to first_name, last_name", "comment \"MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA\" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'", "under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100"]}} {"set": {"query": "What is the restaurant's name at \"41.9532864854\" latitude and \"-87.7673790701422\" longitude?", "pos": ["restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422"], "neg": ["critical food safety problems refers to fine = 500; point_id = 3", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "name of the establishment refers to dba_name", "the highest number of inspections done refers to max(count(employee_id))", "\"PIZZA RUSTICA, INC.\" refers to dba_name = 'PIZZA RUSTICA, INC'"]}} {"set": {"query": "What is the inspection ID of the inspection with critical point level, $500 fine, and inspector comment \"CDI ON 5-17-10\"?", "pos": ["critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment \"CDI ON 5-17-10\" refers to inspector_comment = 'CDI ON 5-17-10'"], "neg": ["the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "\"PIZZA RUSTICA, INC.\" refers to dba_name = 'PIZZA RUSTICA, INC'", "total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'", "on 7th August 2010 refers to inspection_date = '2010-08-07'", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'"]}} {"set": {"query": "State the inspection pass rate of Pockets Restaurant.", "pos": ["Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'"], "neg": ["assumed name refers to dba_name", "in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment \"CDI ON 5-17-10\" refers to inspector_comment = 'CDI ON 5-17-10'", "full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073", "full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'", "in January 2011 refers to inspection_date like '2011-01%'", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'"]}} {"set": {"query": "What are the inspection results for Xando Coffee & Bar / Cosi Sandwich Bar?", "pos": ["Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'"], "neg": ["in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272", "the highest number of inspections done refers to max(count(employee_id))"]}} {"set": {"query": "Out of all the short form complaint inspections done by David Hodges, how many businesses passed?", "pos": ["short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'"], "neg": ["inspection result refers to results", "full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))", "location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'", "total number of establishments with the highest risk level = count(max(risk_level))", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0"]}} {"set": {"query": "How many inspections with critical food safety problems are under inspection point id 3?", "pos": ["critical food safety problems refers to fine = 500; point_id = 3"], "neg": ["short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))", "the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'", "location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'"]}} {"set": {"query": "Calculate the total amount of fine under the food equipment and utensil category.", "pos": ["under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'"], "neg": ["restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "on 7th August 2010 refers to inspection_date = '2010-08-07'", "in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; \"Old Timers Rest & Lounge\" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "establishment name refers to dba_name", "no fine refers to fine = 0", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'"]}} {"set": {"query": "Where in Chicago does the restaurant named \"Old Timers Rest & Lounge\" located?", "pos": ["in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; \"Old Timers Rest & Lounge\" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address"], "neg": ["critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment \"CDI ON 5-17-10\" refers to inspector_comment = 'CDI ON 5-17-10'", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'", "under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;"]}} {"set": {"query": "Provide the inspection ID of the inspection with the comment \"MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA\" and sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A).", "pos": ["comment \"MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA\" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'"], "neg": ["failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "on 7th August 2010 refers to inspection_date = '2010-08-07'", "February 24, 2010 refers to inspection_date = '2010-02-24'", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "assumed name refers to dba_name", "name of the establishment refers to dba_name", "full name refers to first_name, last_name", "the highest number of inspections done refers to max(count(employee_id))", "the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'"]}} {"set": {"query": "How many establishments that are doing business as Homemade Pizza have a risk level of 2?", "pos": ["Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2"], "neg": ["full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))", "the highest number of inspections done refers to max(count(employee_id))", "full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'", "the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "assumed name refers to dba_name", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'"]}} {"set": {"query": "How many of the inspections with serious point levels have no fines?", "pos": ["serious point level refers to point_level = 'Serious'; no fines refers to fine = 0"], "neg": ["assumed name refers to dba_name", "no fine refers to fine = 0", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "comment \"MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA\" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'", "total number of establishments with the highest risk level = count(max(risk_level))", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'"]}} {"set": {"query": "What is the inspection ID where the employee named \"David Hodges\" is currently employed in the \"Kamayan Express\" establishment?", "pos": ["the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'"], "neg": ["full name refers to first_name, last_name", "the most inspections refers to max(count(employee_id))", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "in January 2011 refers to inspection_date like '2011-01%'", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'", "establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations'", "the highest number of inspections done refers to max(count(employee_id))", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'"]}} {"set": {"query": "List down the dba name of restaurants that were inspected due to license.", "pos": ["inspected due to license refers to inspection_type = 'License'"], "neg": ["full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073", "assumed name refers to dba_name", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "the most inspections refers to max(count(employee_id))", "establishment name refers to dba_name", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "critical food safety problems refers to fine = 500; point_id = 3", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'", "full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))"]}} {"set": {"query": "List the names of employees involved in an inspection with the Display of Inspection Report Summary category.", "pos": ["name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'"], "neg": ["Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "establishment name refers to dba_name", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'"]}} {"set": {"query": "How much is the salary of the employee who has the highest number of inspections done of all time?", "pos": ["the highest number of inspections done refers to max(count(employee_id))"], "neg": ["inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;", "full name refers to first_name, last_name", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "inspected due to license refers to inspection_type = 'License'", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'"]}} {"set": {"query": "List down the phone numbers of employees who did Canvass inspection.", "pos": ["phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass'"], "neg": ["in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'", "under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272", "full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000"]}} {"set": {"query": "What is the name of the establishment that Joshua Rosa inspected?", "pos": ["name of the establishment refers to dba_name"], "neg": ["job title refers to title", "under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'", "comment \"MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA\" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'"]}} {"set": {"query": "Calculate the percentage of inspections with the fine for a minor food safety problem.", "pos": ["fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%"], "neg": ["under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'", "location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'", "phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'", "full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "name of the establishment refers to dba_name", "establishment name refers to dba_name", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "Azha Restaurant Inc. refers to dba_name = 'Azha Restaurant Inc.'; on 2010/1/21 refers to inspection_date = '2010-01-21'; follow-up inspection date refers to followup_to", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'"]}} {"set": {"query": "List the full names of the employees who were responsible for inspecting Taqueria La Paz.", "pos": ["full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'"], "neg": ["no fine refers to fine = 0", "supervisor refers to title = 'Supervisor'", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "total number of establishments with the highest risk level = count(max(risk_level))", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "the most inspections refers to max(count(employee_id))", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "name of the establishment refers to dba_name", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'"]}} {"set": {"query": "Among the establishments that failed the inspection in February 2010, list the names of the employees with a salary greater than 70% of the average salary of all employees.", "pos": ["failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)"], "neg": ["total number of establishments with the highest risk level = count(max(risk_level))", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '", "phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'", "salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "supervisor refers to title = 'Supervisor'"]}} {"set": {"query": "Provide the inspection ID of the establishment named \"PIZZA RUSTICA, INC.\"", "pos": ["\"PIZZA RUSTICA, INC.\" refers to dba_name = 'PIZZA RUSTICA, INC'"], "neg": ["critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment \"CDI ON 5-17-10\" refers to inspector_comment = 'CDI ON 5-17-10'", "Azha Restaurant Inc. refers to dba_name = 'Azha Restaurant Inc.'; on 2010/1/21 refers to inspection_date = '2010-01-21'; follow-up inspection date refers to followup_to", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "inspection result refers to results", "full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'", "phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass'", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422"]}} {"set": {"query": "Show the phone number of the sanitarian who was responsible for inspection no.634597.", "pos": ["phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'"], "neg": ["inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'", "full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'", "salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000", "license number 1576687 refers to license_no = 1576687", "comment \"MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA\" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'"]}} {"set": {"query": "What is the facility type of the establishment named \"Kinetic Playground\"?", "pos": ["the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'"], "neg": ["assumed name refers to dba_name", "Azha Restaurant Inc. refers to dba_name = 'Azha Restaurant Inc.'; on 2010/1/21 refers to inspection_date = '2010-01-21'; follow-up inspection date refers to followup_to", "\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "no fine refers to fine = 0", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;"]}} {"set": {"query": "How many inspections were done in January 2011?", "pos": ["in January 2011 refers to inspection_date like '2011-01%'"], "neg": ["critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment \"CDI ON 5-17-10\" refers to inspector_comment = 'CDI ON 5-17-10'", "name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'", "job title refers to title", "full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073", "tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "no fine refers to fine = 0", "failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)", "assumed name refers to dba_name", "salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000"]}} {"set": {"query": "Compare the number of inspections under toxic items and no-smoking regulations.", "pos": ["under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'"], "neg": ["salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;", "no fine refers to fine = 0", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations'", "Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'"]}} {"set": {"query": "What is the inspection result for inspection done by Thomas Langley?", "pos": ["inspection result refers to results"], "neg": ["the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'", "\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "the most inspections refers to max(count(employee_id))", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "on 7th August 2010 refers to inspection_date = '2010-08-07'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; \"Old Timers Rest & Lounge\" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'"]}} {"set": {"query": "What is the average number of inspections done by the top 5 employees with the highest salary? List the names of the said employees.", "pos": ["the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)"], "neg": ["full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "inspected due to license refers to inspection_type = 'License'", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "critical food safety problems refers to fine = 500; point_id = 3", "fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%"]}} {"set": {"query": "Please list the location coordinates of all the facilities that had an inspection on 2010/5/11.", "pos": ["location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'"], "neg": ["inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))", "critical food safety problems refers to fine = 500; point_id = 3", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "inspection result refers to results", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'"]}} {"set": {"query": "What is the job title of employee who did inspection ID 52269?", "pos": ["job title refers to title"], "neg": ["the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "full name refers to first_name, last_name", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'", "name of the establishment refers to dba_name", "establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations'", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "comment \"MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA\" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'", "inspection description refers to Description; inspector's comment refers to inspector_comment"]}} {"set": {"query": "Among the employees that receive a salary between $75000 to $85000, what is the difference between the number of employees which undergone an inspection that fined 100 and 500?", "pos": ["salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000"], "neg": ["serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'", "failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "job title refers to title", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "license number 1576687 refers to license_no = 1576687", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'"]}} {"set": {"query": "How many employees have salary greater than 70000 but fail the inspection?", "pos": ["salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'"], "neg": ["comment \"MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA\" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'", "inspection result refers to results", "total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "inspection description refers to Description; inspector's comment refers to inspector_comment"]}} {"set": {"query": "How many inspections done in 2010 had serious food safety issue?", "pos": ["in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3"], "neg": ["tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'", "critical food safety problems refers to fine = 500; point_id = 3", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "assumed name refers to dba_name", "establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'"]}} {"set": {"query": "Among the list of employees, what is the total number of supervisors?", "pos": ["supervisor refers to title = 'Supervisor'"], "neg": ["salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'", "February 24, 2010 refers to inspection_date = '2010-02-24'", "comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25'"]}} {"set": {"query": "What is the title of the employee that inspected the establishment with license number 1576687?", "pos": ["license number 1576687 refers to license_no = 1576687"], "neg": ["Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'", "supervisor refers to title = 'Supervisor'", "full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'", "the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'"]}} {"set": {"query": "After Azha Restaurant Inc. passed the inspection on 2010/1/21, when was the follow-up inspection done?", "pos": ["Azha Restaurant Inc. refers to dba_name = 'Azha Restaurant Inc.'; on 2010/1/21 refers to inspection_date = '2010-01-21'; follow-up inspection date refers to followup_to"], "neg": ["restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "total number of establishments with the highest risk level = count(max(risk_level))", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000", "phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'"]}} {"set": {"query": "State the salary of the employee who did the most inspections.", "pos": ["the most inspections refers to max(count(employee_id))"], "neg": ["the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'", "Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "establishment name refers to dba_name", "supervisor refers to title = 'Supervisor'", "on 7th August 2010 refers to inspection_date = '2010-08-07'", "inspected due to license refers to inspection_type = 'License'", "full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'"]}} {"set": {"query": "Who inspected Jean Samocki and what was the result?", "pos": ["employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'"], "neg": ["the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "on 7th August 2010 refers to inspection_date = '2010-08-07'", "full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'", "in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; \"Old Timers Rest & Lounge\" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'", "critical food safety problems refers to fine = 500; point_id = 3"]}} {"set": {"query": "State the name of dbas with verified quality.", "pos": ["name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'"], "neg": ["inspection result refers to results", "the most inspections refers to max(count(employee_id))", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)"]}} {"set": {"query": "How many inspections were done under the display of inspection report summary category?", "pos": ["under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'"], "neg": ["phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'", "failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '", "name of the establishment refers to dba_name", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'", "establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'"]}} {"set": {"query": "How many sanitarian employees in Chicago are from the zip code 60617?", "pos": ["sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617"], "neg": ["inspected due to license refers to inspection_type = 'License'", "total number of establishments with the highest risk level = count(max(risk_level))", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "no fine refers to fine = 0", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "critical food safety problems refers to fine = 500; point_id = 3", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'"]}} {"set": {"query": "How many inspections did All Style Buffet Restaurant have?", "pos": ["All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'"], "neg": ["Azha Restaurant Inc. refers to dba_name = 'Azha Restaurant Inc.'; on 2010/1/21 refers to inspection_date = '2010-01-21'; follow-up inspection date refers to followup_to", "in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; \"Old Timers Rest & Lounge\" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address", "name of the establishment refers to dba_name", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "supervisor refers to title = 'Supervisor'", "assumed name refers to dba_name", "license number 1576687 refers to license_no = 1576687", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272", "total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'"]}} {"set": {"query": "Please list the assumed name of all the facilities inspected by Joshua Rosa.", "pos": ["assumed name refers to dba_name"], "neg": ["inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;", "name of the establishment refers to dba_name", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'", "type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; \"Old Timers Rest & Lounge\" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272"]}} {"set": {"query": "How many restaurants with the highest risk level still passed the inspection?", "pos": ["restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'"], "neg": ["full name refers to first_name, last_name", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "supervisor refers to title = 'Supervisor'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "inspected due to license refers to inspection_type = 'License'", "license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'", "fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%", "establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations'", "phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'"]}} {"set": {"query": "Please list the assumed name of all the facilities that failed an inspection in 2010.", "pos": ["assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'"], "neg": ["salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment \"CDI ON 5-17-10\" refers to inspector_comment = 'CDI ON 5-17-10'", "location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100"]}} {"set": {"query": "Calculate the average inspections per year done by Jessica Anthony from 2010 to 2017.", "pos": ["from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)"], "neg": ["serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '", "inspected due to license refers to inspection_type = 'License'", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422"]}} {"set": {"query": "What is the establishment's name with an inspection category of No Smoking Regulations?", "pos": ["establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations'"], "neg": ["short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'", "inspected due to license refers to inspection_type = 'License'", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "job title refers to title", "in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'", "Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "in January 2011 refers to inspection_date like '2011-01%'", "critical point level refers to point_level = 'Critical'; $500 fine refers to fine = 500; inspector comment \"CDI ON 5-17-10\" refers to inspector_comment = 'CDI ON 5-17-10'"]}} {"set": {"query": "What is the full name of the employee that inspected establishments with license 1334073?", "pos": ["full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073"], "neg": ["in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "full name refers to first_name, last_name", "phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'", "inspection result refers to results", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;"]}} {"set": {"query": "How many employees are living in Hoffman Estates, IL?", "pos": ["in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'"], "neg": ["critical food safety problems refers to fine = 500; point_id = 3", "salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000", "under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'", "location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'", "in January 2011 refers to inspection_date like '2011-01%'", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "the highest number of inspections done refers to max(count(employee_id))", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "inspection description refers to Description; inspector's comment refers to inspector_comment", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'"]}} {"set": {"query": "What are the comments of the inspector during the inspection of Taqueria La Fiesta on 1/25/2010?", "pos": ["comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25'"], "neg": ["full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'", "inspected due to license refers to inspection_type = 'License'", "establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'", "inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "full name refers to first_name, last_name"]}} {"set": {"query": "List down the inspection ID with the inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" and inspection category of Personnel.", "pos": ["inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'"], "neg": ["in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'", "license number 1576687 refers to license_no = 1576687", "short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "assumed name refers to dba_name", "total number of establishments with the highest risk level = count(max(risk_level))", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "inspection description refers to Description; inspector's comment refers to inspector_comment", "no fine refers to fine = 0", "comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25'"]}} {"set": {"query": "What is the employee's full name involved in the canvass inspection type on March 09, 2010?", "pos": ["full name refers to first_name, last_name; canvass inspection type refers to inspection_type = 'Canvass'; on March 09, 2010 refers to inspection_date = '2010-03-09'"], "neg": ["license number 1576687 refers to license_no = 1576687", "the most inspections refers to max(count(employee_id))", "on 7th August 2010 refers to inspection_date = '2010-08-07'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "inspection description refers to Description; inspector's comment refers to inspector_comment", "inspector's comment \"A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served. NO CERTIFIED FOOD MANAGER ON DUTY AT THIS TIME FOODS ARE COOKED AND SERVED SERIOUS CITATION ISSUED\" refers to inspector_comment = 'A certified food service manager must be present in all establishments at which potentially hazardous food is prepared or served.FOUND NO CITY OF CHICAGO SANITATION CERTIFICATE POSTED OR VALID DOCUMENTATION DURING THIS INSPECTION.'; inspection category of Personnel refers to category = 'Personnel'", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'", "Azha Restaurant Inc. refers to dba_name = 'Azha Restaurant Inc.'; on 2010/1/21 refers to inspection_date = '2010-01-21'; follow-up inspection date refers to followup_to", "February 24, 2010 refers to inspection_date = '2010-02-24'", "no fine refers to fine = 0"]}} {"set": {"query": "How many inspection points with serious point level that have no fine?", "pos": ["serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0"], "neg": ["in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "Azha Restaurant Inc. refers to dba_name = 'Azha Restaurant Inc.'; on 2010/1/21 refers to inspection_date = '2010-01-21'; follow-up inspection date refers to followup_to", "job title refers to title", "inspection description refers to Description; inspector's comment refers to inspector_comment", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations'"]}} {"set": {"query": "How much is the total fine given to Ron of Japan Inc in its inspection done on February 2014?", "pos": ["total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'"], "neg": ["name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'", "license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'", "establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'", "assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '", "establishment name refers to dba_name"]}} {"set": {"query": "What is the total number of establishments with the highest risk level?", "pos": ["total number of establishments with the highest risk level = count(max(risk_level))"], "neg": ["tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "full name refers to first_name, last_name", "full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass'"]}} {"set": {"query": "Which employee was responsible for inspection no.48224? Give the full name.", "pos": ["inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;"], "neg": ["\"PIZZA RUSTICA, INC.\" refers to dba_name = 'PIZZA RUSTICA, INC'", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272", "salary greater than 70000 refers to salary > 70000; fail the inspection refers to results = 'Fail'", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'", "February 24, 2010 refers to inspection_date = '2010-02-24'", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "the highest number of inspections done refers to max(count(employee_id))", "inspected due to license refers to inspection_type = 'License'", "the most inspections refers to max(count(employee_id))", "comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25'"]}} {"set": {"query": "What type of inspection was done on July 07, 2010, involving the employee named \"Lisa Tillman\"?", "pos": ["type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'"], "neg": ["\"PIZZA RUSTICA, INC.\" refers to dba_name = 'PIZZA RUSTICA, INC'", "phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'", "phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass'", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272", "failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "the highest number of inspections done refers to max(count(employee_id))", "establishment name refers to dba_name", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'"]}} {"set": {"query": "Who is responsible for most of the inspections? Give the full name.", "pos": ["full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))"], "neg": ["Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'", "\"PIZZA RUSTICA, INC.\" refers to dba_name = 'PIZZA RUSTICA, INC'", "salary between $75000 and $85000 refers to 75000 < = salary < = 80000; difference = subtract(count(inspection_id where fine = 100), count(inspection_id where fine = 500)) where 75000 < = salary < = 80000", "assumed name refers to dba_name", "establishment name refers to dba_name", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'"]}} {"set": {"query": "Please list the names of taverns that paid a $100 fine upon inspection.", "pos": ["name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100"], "neg": ["failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "inspected due to license refers to inspection_type = 'License'", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'"]}} {"set": {"query": "Name the taverns that failed the inspection in January 2010.", "pos": ["tavern refers to facility_type = 'Tavern'; failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'"], "neg": ["supervisor refers to title = 'Supervisor'", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'", "assumed name refers to dba_name", "full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))", "in January 2011 refers to inspection_date like '2011-01%'", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'", "license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'", "inspected due to license refers to inspection_type = 'License'"]}} {"set": {"query": "What are the inspection description and inspector's comments in the inspection ID 164795?", "pos": ["inspection description refers to Description; inspector's comment refers to inspector_comment"], "neg": ["serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "total number of establishments with the highest risk level = count(max(risk_level))", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0", "full name refers to first_name, last_name; most of the inspections refers to max(count(employee_id))"]}} {"set": {"query": "What is the establishment's name and employee involved in the inspection ID 44256 on May 5, 2010?", "pos": ["establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'"], "neg": ["establishment name refers to dba_name", "license number 1576687 refers to license_no = 1576687", "comment \"MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA\" refers to inspector_comment = 'MUST CLEAN AND BETTER ORGANIZE HALLWAY AREA'; sanitary operating requirement code of 7-38-030, 015, 010 (A), 005 (A) refers to code = '7-38-030, 015, 010 (A), 005 (A)'", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "name of the establishment refers to dba_name", "location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "inspection result refers to results", "All Style Buffet refers to dba_name = 'All Style Buffet'; Restaurant refers to facility_type = 'Restaurant'"]}} {"set": {"query": "Among the establishments that failed in the inspection, what is the percentage of establishments with the highest risk level?", "pos": ["failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'"], "neg": ["name of the establishment refers to dba_name", "restaurant refers to facility_type = 'Restaurant'; the highest risk level refers to max(risk_level); pass the inspection refers to results = 'Pass'", "assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'", "type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'", "school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "critical food safety problems refers to fine = 500; point_id = 3", "in January 2011 refers to inspection_date like '2011-01%'", "full name refers to first_name, last_name; Taqueria La Paz refers to dba_name = 'TAQUERIA LA PAZ'", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'"]}} {"set": {"query": "Which establishments did Joshua Rosa inspect?", "pos": ["establishment name refers to dba_name"], "neg": ["in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'", "from 2010 to 2017 refers to inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'; average inspections per year = divide(count(inspection_id where inspection_date > '2010-01-01' AND T2.inspection_id < '2017-12-31'), 8)", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "inspected due to license refers to inspection_type = 'License'", "Pockets refers to dba_name = 'POCKETS'; Restaurant refers to facility_type = 'Restaurant'; pass refers to results = 'Pass'; the inspection pass rate = divide(sum(inspection_id where results = 'Pass'), count(license_no)) where dba_name = 'POCKETS' and facility_type = 'Restaurant'", "Homemade Pizza refers to dba_name = 'HOMEMADE PIZZA'; a risk level of 2 refers to risk_level = 2", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "no fine refers to fine = 0"]}} {"set": {"query": "List the point IDs and fines of the inspections done on 7th August 2010.", "pos": ["on 7th August 2010 refers to inspection_date = '2010-08-07'"], "neg": ["the most inspections refers to max(count(employee_id))", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "no fine refers to fine = 0", "employee's name refers to first_name, last_name; Jean Samocki refers to dba_name = 'JEAN SAMOCKI'", "fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "the \"Kamayan Express\" establishment refers to dba_name = 'KAMAYAN EXPRESS'", "restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "supervisor refers to title = 'Supervisor'", "serious point level refers to point_level = 'Serious'; no fines refers to fine = 0"]}} {"set": {"query": "What is the category of the inspection of the establishment named \"J & J FOOD\"?", "pos": ["the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'"], "neg": ["tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "under toxic items refers to category = 'Toxic Items'; no-smoking regulations refers to category = 'No Smoking Regulations'", "on 7th August 2010 refers to inspection_date = '2010-08-07'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "inspection description refers to Description; inspector's comment refers to inspector_comment", "comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25'"]}} {"set": {"query": "Calculate the total salary for employees who did inspection from ID 52270 to 52272.", "pos": ["inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272"], "neg": ["restaurant refers to facility_type = 'Restaurant'; name refers to dba_name; \"41.9532864854\" latitude and \"-87.7673790701422\" longitude refers to latitude = 41.9532864854 and longitude = -87.7673790701422", "on 7th August 2010 refers to inspection_date = '2010-08-07'", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'", "type of inspection refers to inspection_type; on July 07, 2010 refers to inspection_date = '2010-07-07'", "critical food safety problems refers to fine = 500; point_id = 3", "establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)", "inspection description refers to Description; inspector's comment refers to inspector_comment"]}} {"set": {"query": "What is the assumed name of the business located at 2903 W Irving Park Rd?", "pos": ["assumed name refers to dba_name; 2903 W Irving Park Rd refers to address = '2903 W IRVING PARK RD '"], "neg": ["risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "establishment name refers to dba_name", "the highest salary refers to max(salary); sanitarian refers to title = 'Sanitarian'; name refers to first_name, last_name; average number = divide(sum(inspection_id), 5)", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272", "phone number refers to phone; sanitarian refers to title = 'Sanitarian'; inspection no.634597 refers to inspection_id = '634597'", "February 24, 2010 refers to inspection_date = '2010-02-24'", "under the food equipment and utensil category refers to category = 'Food Equipment and Utensil'"]}} {"set": {"query": "Provide the facility type and license number of establishments with the lowest risk level but failed the inspection.", "pos": ["license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'"], "neg": ["school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "name refers to first_name, last_name; Display of Inspection Report Summary category refers to category = 'Display of Inspection Report Summary'", "establishment's name refers to dba_name; an inspection category of No Smoking Regulations refers to category = 'No Smoking Regulations'", "inspection description refers to Description; inspector's comment refers to inspector_comment", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "under the display of inspection report summary category refers to category = 'Display of Inspection Report Summary'", "total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'", "\"PIZZA RUSTICA, INC.\" refers to dba_name = 'PIZZA RUSTICA, INC'"]}} {"set": {"query": "Give the address of the schools that passed the inspection in March 2010.", "pos": ["school refers to facility_type = 'School'; pass refers to results = 'Pass'; in March 2010 refers to inspection_date like '2010-03%'"], "neg": ["name of dba refers to dba_name; with verified quality refers to results = 'Pass' or results = 'Pass w/Conditions'", "inspection description refers to Description; inspector's comment refers to inspector_comment", "location coordinates refers to latitude, longitude; on 2010/5/11 refers to inspection_date = '2010-05-11'", "failed the inspection refers to results = 'Fail'; in January 2010 refers to inspection_date like '2010-01%'; name of employee refers to first_name, last_name; a salary greater than 70% of the average salary refers to salary > multiply(avg(salary), 0.7)", "supervisor refers to title = 'Supervisor'", "in the year 2010 refers to inspection_date like '2010%'; salary is over 70000 refers to salary > 70000; average number = divide(sum(inspection where inspection_date like '2010%'), sum(employee_id where salary > 70000))", "in 2010 refers to inspection_date like '2010%'; had serious food safety issue refers to risk_level = 3", "in Chicago refers to city = 'CHICAGO'; restaurant refers to facility_type = 'Restaurant'; \"Old Timers Rest & Lounge\" refers to dba_name = 'OLD TIMERS REST & LOUNGE'; location refers to address", "full name refers to first_name, last_name; with license 1334073 refers to license_no = 1334073", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;"]}} {"set": {"query": "How many of the restaurants with the lowest risk level failed the complaint inspection type?", "pos": ["restaurant refers to facility_type = 'Restaurant'; the lowest risk level refers to min(risk_level); failed refers to results = 'Fail'; the complaint inspection type refers to inspection_type = 'Complaint'"], "neg": ["inspection result refers to results", "assumed name refers to dba_name", "serious point level refers to point_level = 'Serious '; have no fine refers to fine = 0", "comment of the inspector refers to inspector_comment; Taqueria La Fiesta refers to dba_name = 'TAQUERIA LA FIESTA'; on 1/25/2010 refers to inspection_date = '2010-01-25'", "assumed name refers to dba_name; failed an inspection refers to results = 'Fail'; in 2010 refers to inspection_date like '2010%'", "the establishment named \"Kinetic Playground\" refers to dba_name = 'Kinetic Playground'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "critical food safety problems refers to fine = 500; point_id = 3", "inspection description refers to Description; inspector's comment refers to inspector_comment", "inspection no.48224 refers to inspection_id = '48224'; full name refers to first_name, last_name;"]}} {"set": {"query": "List point level of inspections with no fine.", "pos": ["no fine refers to fine = 0"], "neg": ["license number refers to license_no; the lowest risk level refers to min(risk_level); failed the inspection refers to results = 'Fail'", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'", "phone number refers to phone; Canvass inspection refers to inspection_type = 'Canvass'", "risk level 3 refers to risk_level = '3'; tavern refers to facility_type = 'TAVERN'; average number = divide(count(inspection_id), sum(license_no)) where risk_level = '3' and facility_type = 'TAVERN'", "short form complaint inspection refers to inspection_type = 'Short Form Complaint'; pass refers to results = 'Pass'", "the establishment named \"J & J FOOD\" refers to dba_name = 'J & J FOOD'", "Xando Coffee & Bar / Cosi Sandwich Bar refers to dba_name = 'XANDO COFFEE & BAR / COSI SANDWICH BAR'", "sanitarian refers to title = 'Sanitarian'; in Chicago refers to city = 'Chicago'; zip code 60617 refers to zip = 60617", "in Hoffman Estates refers to city = 'Hoffman Estates'; IL refers to state = 'IL'"]}} {"set": {"query": "How many \"food maintenance\" related violations did inspection no.1454071 have?", "pos": ["\"food maintenance\" related refers to category = 'Food Maintenance'; inspection no.1454071 refers to inspection_id = '1454071'"], "neg": ["in January 2011 refers to inspection_date like '2011-01%'", "name refers to dba_name; tavern refers to facility_type = 'Tavern'; a $100 fine refers to fine = 100", "total fine = sum(fine); Ron of Japan Inc refers to dba_name = 'RON OF JAPAN INC'; on February 2014 refers to inspection_date like '2014-02%'", "fine for a minor food safety problem refers to fine = 100; percentage = divide(count(inspection_id where fine = 100), sum(inspection_id)) * 100%", "inspection result refers to results", "establishment's name refers to dba_name; employee name refers to first_name, last_name; inspection ID 44256 refers to inspection_id = 44256; on May 5, 2010 refers to inspection_date = '2010-05-05'", "tavern refers to facility_type = 'Tavern'; failed refers to results = 'Fail'; in July 2010 refers to inspection_date like '2010-07%'", "failed in inspection refers to results = 'Fail'; the highest risk level refers to max(risk_level); percentage = divide(count(license_no where risk_level = max(risk_level)), count(license_no)) * 100% where results = 'Fail'", "no fine refers to fine = 0", "inspection from ID 52270 to 52272 refers to inspection_id between 52270 and 52272"]}} {"set": {"query": "If a pair of genes is positively correlated, what is the possibility of it being composed of two genes both with over 10 chromosomes?", "pos": ["Positively correlated means Expression_Corr > 0; Possibility = count(the pairs of genes with both chromosomes over 20) / count(pairs of genes that are positively correlated)"], "neg": ["If Expression_Corr > 0, it means the expression correlation is positive", "Percentage = count(genes located in the cytoskeleton unknown class) / count(genes located in the cytoskeleton) * 100%", "If the Expression_Corr value is positive then it's positively correlated", "If the Expression_Corr value is negative then it's negatively correlated. Percentage of Negative Correlation = count(negative Expression_Corr physical type) / count(Expression_Corr physical type) * 100%"]}} {"set": {"query": "How many pairs of positively correlated genes are both non-essential?", "pos": ["If Expression_Corr > 0, it means the expression correlation is positive"], "neg": ["Positively correlated means Expression_Corr > 0; Possibility = count(the pairs of genes with both chromosomes over 20) / count(pairs of genes that are positively correlated)", "Percentage = count(genes located in the cytoskeleton unknown class) / count(genes located in the cytoskeleton) * 100%", "If the Expression_Corr value is positive then it's positively correlated", "If the Expression_Corr value is negative then it's negatively correlated. Percentage of Negative Correlation = count(negative Expression_Corr physical type) / count(Expression_Corr physical type) * 100%"]}} {"set": {"query": "What percentage of genes located in the cytoskeleton are of unknown class? And of these, how many are not conditional phenotypes?", "pos": ["Percentage = count(genes located in the cytoskeleton unknown class) / count(genes located in the cytoskeleton) * 100%"], "neg": ["Positively correlated means Expression_Corr > 0; Possibility = count(the pairs of genes with both chromosomes over 20) / count(pairs of genes that are positively correlated)", "If Expression_Corr > 0, it means the expression correlation is positive", "If the Expression_Corr value is positive then it's positively correlated", "If the Expression_Corr value is negative then it's negatively correlated. Percentage of Negative Correlation = count(negative Expression_Corr physical type) / count(Expression_Corr physical type) * 100%"]}} {"set": {"query": "List all genes whose interaction is with genes located in the nucleus in which it is positively correlated.", "pos": ["If the Expression_Corr value is positive then it's positively correlated"], "neg": ["Positively correlated means Expression_Corr > 0; Possibility = count(the pairs of genes with both chromosomes over 20) / count(pairs of genes that are positively correlated)", "If Expression_Corr > 0, it means the expression correlation is positive", "Percentage = count(genes located in the cytoskeleton unknown class) / count(genes located in the cytoskeleton) * 100%", "If the Expression_Corr value is negative then it's negatively correlated. Percentage of Negative Correlation = count(negative Expression_Corr physical type) / count(Expression_Corr physical type) * 100%"]}} {"set": {"query": "What kind of expression correlation occurs in physical type interacting gene pairs and what percentage of these are negatively correlated?", "pos": ["If the Expression_Corr value is negative then it's negatively correlated. Percentage of Negative Correlation = count(negative Expression_Corr physical type) / count(Expression_Corr physical type) * 100%"], "neg": ["Positively correlated means Expression_Corr > 0; Possibility = count(the pairs of genes with both chromosomes over 20) / count(pairs of genes that are positively correlated)", "If Expression_Corr > 0, it means the expression correlation is positive", "Percentage = count(genes located in the cytoskeleton unknown class) / count(genes located in the cytoskeleton) * 100%", "If the Expression_Corr value is positive then it's positively correlated"]}} {"set": {"query": "List all the deceased goalies and the teams he had played whose birth country was in Canada.", "pos": ["goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n"], "neg": ["still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "21st century refers to year >2000; Power play goals refers to PPG", "Power play percentage refers to PPG, most number of loses refers to MAX(L)\n\n", "weight of over 195 refers to weight>195", "Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "born in Canada refers to birthCountry = 'Canada'", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL"]}} {"set": {"query": "Which coach was the first one to teach the Montreal Canadiens, please give his first name.", "pos": ["the first one refers to MIN(year);"], "neg": ["the highest winning rate refer to divide(W, sum(W, L))", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "the number of wins refers to W", "which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "team refers name; most wins = MAX(W);"]}} {"set": {"query": "Which position did Mike Antonovich play?", "pos": ["pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward"], "neg": ["goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n", "born in Canada refers to birthCountry = 'Canada'", "most award-winning refers to max(count(award)); country player is from refers to birthCountry", "note = 'posthumous'refers to \"didn't personally attend\"", "date of birth refers to birthDay + birthMon + birthYear", "Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;", "NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName", "shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00", "the highest winning rate refer to divide(W, sum(W, L))", "team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)"]}} {"set": {"query": "How many teams did the team with the most victories in 1915 play against?\nIndicate the name of the team who won the most games in 1915, as well as the names of the opposing team.", "pos": ["team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)"], "neg": ["the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;", "first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))", "penalty minutes refer to PIM = 49;", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser", "note = 'posthumous'refers to \"didn't personally attend\"", "1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n", "death country is different from his birth country refers to birthCountry! = deathCountry", "the first one refers to MIN(year);", "weight of over 195 refers to weight>195"]}} {"set": {"query": "Please list the awards the players who died in Arlington have won.", "pos": ["died in Arlington refers to deathCity = 'Arlington'"], "neg": ["team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "date of birth refers to birthDay + birthMon + birthYear", "Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;", "born in Toronto refers to birthCountry = 'Toronto'", "winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "the third goalie refers to stint = 3; the biggest weight refers to max(weight)", "total number of the games refers to GP", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play."]}} {"set": {"query": "Please list the first name of the players who are good at both left hands and right hands for goalie and have gotten in the Hall of Fame.", "pos": ["good at both left hands and right hands for goalie refers to shootCatch IS NULL"], "neg": ["co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "born in Toronto refers to birthCountry = 'Toronto'", "same total number of postseason wins and postseason loses refers to PostW = PostL", "team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "temporary coached refers to notes = 'interim'; number of loss refers to L (to add)", "death country is different from his birth country refers to birthCountry! = deathCountry", "total number of the games refers to GP", "first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n"]}} {"set": {"query": "What is the position of the 9th oldest hockey player?", "pos": ["position refers to pos; date of birth refers to birthDay + birthMon + birthYear"], "neg": ["year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;", "temporary coached refers to notes = 'interim'; number of loss refers to L (to add)", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "goalie is a players; teams refer to tmID;", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser", "the number of goals refers to G", "victories' and 'wins' are synonyms; most number of victories refers to max(w)"]}} {"set": {"query": "What is the total amount of assists of the NHL player with the most assists in history? Please indicate his/her full name.", "pos": ["NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))"], "neg": ["nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "born in Toronto refers to birthCountry = 'Toronto'", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear", "which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;", "which league refers to lgID", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "born in 1977 refers to birthYear = '1977'", "goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL"]}} {"set": {"query": "Which player ID are left winger and weight more than 200?", "pos": ["left winger refers to pos = 'L'; weight>200"], "neg": ["played in the league but not coached means playerID is not NULL and coachID is NULL;", "year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;", "country refers to birthCountry", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "10 empty net goals refer to ENG = 10; tallest refers to MAX(height);", "date of birth refers to birthDay + birthMon + birthYear", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "note = 'posthumous'refers to \"didn't personally attend\""]}} {"set": {"query": "Who is the shortest player and state the team ID of that player from 1925 to 1936.", "pos": ["Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;"], "neg": ["NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "born in Toronto refers to birthCountry = 'Toronto'", "after retirement means playerID Iis not NULL and coachID is not NULL;", "end up with a tie or an overtime loss refers to T/OL", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "regular season refers to `R/P` = 'R'", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "tie refers to T>0; year = 1909;", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))"]}} {"set": {"query": "Who is the heaviest player? State player ID of 5 heaviest players.", "pos": ["5 heaviest players refer to MAX(weight) limit to 5 playerID;"], "neg": ["penalty minutes refer to PIM = 24; wins refer to W;", "more wins than loses refers to W>L; year = 1917;", "Power play percentage refers to PPG, most number of loses refers to MAX(L)\n\n", "nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "born in July and August refers to birthMon IN('7','8')", "winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'", "10 empty net goals refer to ENG = 10; tallest refers to MAX(height);", "total number of the games refers to GP", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser"]}} {"set": {"query": "Which country produced the most number of hockey players? Identify which year was most of the hockey players are born.", "pos": ["Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n"], "neg": ["most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n", "weight of over 195 refers to weight>195", "Montreal Canadiens is the name of team.", "note = 'posthumous'refers to \"didn't personally attend\"", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;"]}} {"set": {"query": "How many games did player Id \"vanbijo01\" win in the 1990 season?", "pos": ["the number of wins refers to W"], "neg": ["born in March refers to birthMon = '3'; nicknames refers to nameNick", "least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL", "lost refers to L; won refers to W", "team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "note = 'posthumous'refers to \"didn't personally attend\""]}} {"set": {"query": "What is the name of the losing team during an exhibition game in 1912?", "pos": ["exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser"], "neg": ["the biggest power play percentage = max(divide(PPG, PPC))", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "the number of years refers to count(year)", "same total number of postseason wins and postseason loses refers to PostW = PostL", "the first one refers to MIN(year);", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward"]}} {"set": {"query": "Please list the names of the teams that had a tie in 1909.", "pos": ["tie refers to T>0; year = 1909;"], "neg": ["Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "weight of over 195 refers to weight>195", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName", "year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;", "total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "penalty minutes refer to PIM = 49;", "after year 2000 refers to year>2000;", "the number of wins refers to W", "saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID"]}} {"set": {"query": "Which coach has the best performance for team DET in history? What was the winning percentage? Name the coach and the year he coached.", "pos": ["winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'"], "neg": ["not in the Hall of Fame refers to hofID IS NULL", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n", "team refers to name; year = 2006", "total number of the games refers to GP", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "have died means deathYear is not NULL; Buffalo Sabres is the name of team;"]}} {"set": {"query": "Who is the coach who had coached the the most seasons in MTL? State his given name, date of birth and all teams he had coaches before.", "pos": ["date of birth refers to birthDay + birthMon + birthYear"], "neg": ["end up with a tie or an overtime loss refers to T/OL", "nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))", "road victories refers to rW; team id refers to tmID; victories and wins are synonyms\n\n", "total number of the games refers to GP", "show me how many minutes refers to Min", "from the USA refers to birthCountry = 'USA'; year = 1922;", "note = 'posthumous'refers to \"didn't personally attend\"", "after year 2000 refers to year>2000;", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear"]}} {"set": {"query": "Who was the most clutch player in 1986? Give his full name.", "pos": ["clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played"], "neg": ["the number of goals refers to G", "winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'", "least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "goalie is a players; teams refer to tmID;", "penalty minutes refer to PIM = 24; wins refer to W;", "more wins than loses refers to W>L; year = 1917;", "first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "penalty minutes refer to PIM = 49;", "year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);"]}} {"set": {"query": "Among the teams that played in 1922's Stanley Cup finals, how many of them had over 20 points in that year?", "pos": ["how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;"], "neg": ["which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;", "Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "not in the Hall of Fame refers to hofID IS NULL", "Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n", "first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "the number of years refers to count(year)", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)", "the number of goals refers to G"]}} {"set": {"query": "List all goalies with more lost than won games for two seasons or more. State the name of the player and team he played.", "pos": ["lost refers to L; won refers to W"], "neg": ["team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)", "Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName", "the highest winning rate refer to divide(W, sum(W, L))", "worked a temporary term refers to notes = 'interim'", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "team refers to name; year = 2006", "born in July and August refers to birthMon IN('7','8')", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "date of birth refers to birthDay + birthMon + birthYear", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))"]}} {"set": {"query": "Among the people who got into the Hall of Fame after the year 1980, how many of them belong to the category of \"Player\"?", "pos": ["after the year 1980 refers to year>1980"], "neg": ["co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "born in Canada refers to birthCountry = 'Canada'", "team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "penalty refers to BenchMinor; Ties refer to T", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "the number of years refers to count(year)"]}} {"set": {"query": "How many shoutouts are there in the regular season of 1977?", "pos": ["regular season refers to `R/P` = 'R'"], "neg": ["average height of 75 refers to AVG(height) = 75;", "the highest winning rate refer to divide(W, sum(W, L))", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n", "death country is different from his birth country refers to birthCountry! = deathCountry", "the highest total points = MAX(Pts)", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "21st century refers to year >2000; Power play goals refers to PPG", "the third goalie refers to stint = 3; the biggest weight refers to max(weight)"]}} {"set": {"query": "Who are the players played both in NHL and WHA. List the given name and first year they were in NHL and first year in WHA.", "pos": ["first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n"], "neg": ["country refers to birthCountry", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "victories' and 'wins' are synonyms; most number of victories refers to max(w)", "Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n", "which league refers to lgID", "team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "10 empty net goals refer to ENG = 10; tallest refers to MAX(height);", "nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "team refers name; most wins = MAX(W);"]}} {"set": {"query": "How many Canadian players, between the ages of 18 and 24 when they initially played their first NHL, had a cumulative goal total of no more than 5? Indicate their complete names, the year, and the team for which they scored the specified amount of goals.", "pos": ["Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName"], "neg": ["1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n", "weight of over 195 refers to weight>195", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName", "same total number of postseason wins and postseason loses refers to PostW = PostL", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'"]}} {"set": {"query": "For the goalie who had the highest defensive success rate in the postseason of 2011, what's his legends ID ?", "pos": ["Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n"], "neg": ["first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "victories' and 'wins' are synonyms; most number of victories refers to max(w)", "from the USA refers to birthCountry = 'USA'; year = 1922;", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "the number of goals refers to G", "which league refers to lgID", "the highest total points = MAX(Pts)"]}} {"set": {"query": "Please list the names of all the teams that have played against the Buffalo Sabres.", "pos": ["teams that have played against refer to oppID; Buffalo Sabres is the name of team;"], "neg": ["date of birth refers to birthDay + birthMon + birthYear", "born in July and August refers to birthMon IN('7','8')", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "died in Arlington refers to deathCity = 'Arlington'", "the highest total points = MAX(Pts)", "Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "victories' and 'wins' are synonyms; most number of victories refers to max(w)", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "team refers name; most wins = MAX(W);", "born in Toronto refers to birthCountry = 'Toronto'"]}} {"set": {"query": "What is the name of the team that got more wins than loses in the Stanley Cup finals in 1917?", "pos": ["more wins than loses refers to W>L; year = 1917;"], "neg": ["Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;", "died in Arlington refers to deathCity = 'Arlington'", "date of birth refers to birthDay + birthMon + birthYear", "the number of goals refers to G", "victories' and 'wins' are synonyms; most number of victories refers to max(w)", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;", "passed away means deathYear is not NULL;", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "total number of the games refers to GP"]}} {"set": {"query": "For the goalies whose weight are above 190, who had most goal againsts in 1978 season?", "pos": ["Weight of above 190 refers to weight >190; 1978 season refers to the year played"], "neg": ["shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011", "nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.", "average height of 75 refers to AVG(height) = 75;", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL"]}} {"set": {"query": "Name the goalies who are good at left hand and also has become a coach after retirement. Name all teams he had played before.", "pos": ["good at left hand refers to shootCatch = 'L'; goalies refers to pos = 'G'"], "neg": ["received the most awards in total refers to max(count(award))", "winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'", "died in Arlington refers to deathCity = 'Arlington'", "date of birth refers to birthDay + birthMon + birthYear", "penalty refers to BenchMinor; Ties refer to T", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "born in 1977 refers to birthYear = '1977'", "end up with a tie or an overtime loss refers to T/OL", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;"]}} {"set": {"query": "Among the coaches who taught the teams in 1922's Stanley Cup finals, how many of them are from the USA?", "pos": ["from the USA refers to birthCountry = 'USA'; year = 1922;"], "neg": ["born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "date of birth refers to birthDay + birthMon + birthYear", "Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "note = 'posthumous'refers to \"didn't personally attend\"", "good at both left hands and right hands for goalie refers to shootCatch IS NULL", "the highest total points = MAX(Pts)", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;"]}} {"set": {"query": "State the player ID and coach ID of person who have become coach after retirement.", "pos": ["after retirement means playerID Iis not NULL and coachID is not NULL;"], "neg": ["born in July and August refers to birthMon IN('7','8')", "average height of 75 refers to AVG(height) = 75;", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "after year 2000 refers to year>2000;", "born in Canada refers to birthCountry = 'Canada'", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "temporary coached refers to notes = 'interim'; number of loss refers to L (to add)", "Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "5 heaviest players refer to MAX(weight) limit to 5 playerID;"]}} {"set": {"query": "In how many games did player Id \"vernomi01\" end up with a tie or an overtime loss in the 1998 season?", "pos": ["end up with a tie or an overtime loss refers to T/OL"], "neg": ["which league refers to lgID", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "death country is different from his birth country refers to birthCountry! = deathCountry", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "regular season refers to `R/P` = 'R'", "goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "after retirement means playerID Iis not NULL and coachID is not NULL;", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n", "NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName"]}} {"set": {"query": "How many wins did the Philadelphia Flyers have over the Boston Bruins in 1985?", "pos": ["Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;"], "neg": ["highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "average height of 75 refers to AVG(height) = 75;", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "goalie is a players; teams refer to tmID;", "regular season refers to `R/P` = 'R'", "died in Arlington refers to deathCity = 'Arlington'"]}} {"set": {"query": "Which team got the most bench minor penalties in 2006?", "pos": ["team refers to name; year = 2006"], "neg": ["total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "the number of wins refers to W", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "show me how many minutes refers to Min", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00"]}} {"set": {"query": "What is the number of players whose last name is Green that played in the league but not coached?", "pos": ["played in the league but not coached means playerID is not NULL and coachID is NULL;"], "neg": ["penalty refers to BenchMinor; Ties refer to T", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "passed away means deathYear is not NULL;", "from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'", "born in July and August refers to birthMon IN('7','8')", "year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;", "1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n"]}} {"set": {"query": "Which coach had the highest winning rates in the 2009 season? What's coach's nickname.", "pos": ["the highest winning rate refer to divide(W, sum(W, L))"], "neg": ["have died means deathYear is not NULL; Buffalo Sabres is the name of team;", "country refers to birthCountry", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "born in March refers to birthMon = '3'; nicknames refers to nameNick", "goalie is a players; teams refer to tmID;", "left winger refers to pos = 'L'; weight>200", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName"]}} {"set": {"query": "How much is the total goals for player with player ID aaltoan01 and how old is this person?", "pos": ["total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);"], "neg": ["Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n", "Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "born in 1977 refers to birthYear = '1977'", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "10 empty net goals refer to ENG = 10; tallest refers to MAX(height);", "teams scored against their opponent who had pulled their goalie refers to ENG is not null", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "good at both left hands and right hands for goalie refers to shootCatch IS NULL", "left winger refers to pos = 'L'; weight>200", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)"]}} {"set": {"query": "In 1998, How many wins were made by team 'CAR' per game played? Who contributed the most goals? State the player ID.", "pos": ["year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);"], "neg": ["played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "after retired and became a coach refers to max(subtract(year, lastNHL))", "total number of the games refers to GP", "1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n", "more wins than loses refers to W>L; year = 1917;", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;", "average height of 75 refers to AVG(height) = 75;", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n"]}} {"set": {"query": "For the coach who co-coached with Dave Lewis in 1998, where was his birth place?", "pos": ["co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'"], "neg": ["born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "penalty minutes refer to PIM = 24; wins refer to W;", "received the most awards in total refers to max(count(award))", "team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)", "penalty refers to BenchMinor; Ties refer to T", "Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "the highest winning rate refer to divide(W, sum(W, L))", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'"]}} {"set": {"query": "Among all goalies who are still alive, whose first season in NHL in before 1950. List the team names they were in.", "pos": ["first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL"], "neg": ["teams scored against their opponent who had pulled their goalie refers to ENG is not null", "total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "good at both left hands and right hands for goalie refers to shootCatch IS NULL", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear", "year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "from the USA refers to birthCountry = 'USA'; year = 1922;", "played in the league but not coached means playerID is not NULL and coachID is NULL;"]}} {"set": {"query": "Which year recorded the most number of goals by a player and how old was the player at the time the most number of goals was achieved by him?", "pos": ["most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)"], "neg": ["NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "lost refers to L; won refers to W", "penalty refers to BenchMinor; Ties refer to T", "more wins than loses refers to W>L; year = 1917;", "died in Arlington refers to deathCity = 'Arlington'", "the highest winning rate refer to divide(W, sum(W, L))", "road victories refers to rW; team id refers to tmID; victories and wins are synonyms\n\n", "goalie is a players; teams refer to tmID;", "first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))"]}} {"set": {"query": "How many teams scored against their opponent who had pulled their goalie in the year 2005?", "pos": ["teams scored against their opponent who had pulled their goalie refers to ENG is not null"], "neg": ["over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "Power play percentage refers to PPG, most number of loses refers to MAX(L)\n\n", "year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);", "total number of the games refers to GP", "Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "average height of 75 refers to AVG(height) = 75;", "team refers to name; year = 2006", "regular season refers to `R/P` = 'R'", "goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n", "Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;"]}} {"set": {"query": "Name the goalies with the most seasons played. State the average time he played for each season.", "pos": ["most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))"], "neg": ["least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;", "shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011", "Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;", "the first one refers to MIN(year);", "penalty minutes refer to PIM = 24; wins refer to W;", "death country is different from his birth country refers to birthCountry! = deathCountry", "the number of years refers to count(year)", "tie refers to T>0; year = 1909;", "worked a temporary term refers to notes = 'interim'"]}} {"set": {"query": "How many years did player Id \"cleghsp01\" make to the Stanley Cup finals?", "pos": ["the number of years refers to count(year)"], "neg": ["have died means deathYear is not NULL; Buffalo Sabres is the name of team;", "team refers to name; year = 2006", "highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n", "more wins than loses refers to W>L; year = 1917;", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "Power play percentage refers to PPG, most number of loses refers to MAX(L)\n\n", "victories' and 'wins' are synonyms; most number of victories refers to max(w)"]}} {"set": {"query": "Please list the first names of the coaches who have taught the Montreal Canadiens.", "pos": ["Montreal Canadiens is the name of team."], "neg": ["born in Canada refers to birthCountry = 'Canada'", "Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;", "born in March refers to birthMon = '3'; nicknames refers to nameNick", "the number of goals refers to G", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "after the year 1980 refers to year>1980", "10 empty net goals refer to ENG = 10; tallest refers to MAX(height);", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear", "WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.", "Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName"]}} {"set": {"query": "Please list the positions of the players who were born in Canada and have won the All-Rookie award.", "pos": ["born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward"], "neg": ["co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "left winger refers to pos = 'L'; weight>200", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "show me how many minutes refers to Min", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "after retirement means playerID Iis not NULL and coachID is not NULL;", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "have died means deathYear is not NULL; Buffalo Sabres is the name of team;", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "after the year 1980 refers to year>1980"]}} {"set": {"query": "How many games did the coach who received the first-ever Second Team All-Star award play before receiving such award?", "pos": ["first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))"], "neg": ["Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "end up with a tie or an overtime loss refers to T/OL", "1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;", "shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "penalty minutes refer to PIM = 49;", "born in July and August refers to birthMon IN('7','8')", "penalty minutes refer to PIM = 24; wins refer to W;"]}} {"set": {"query": "Which Minnesota North Stars' goalkeeper had the most Goal Againsts in his play time?", "pos": ["Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;"], "neg": ["highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "after the year 1980 refers to year>1980", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "from the USA refers to birthCountry = 'USA'; year = 1922;", "Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "the number of wins refers to W"]}} {"set": {"query": "In the year that the Montreal Canadiens had 24 penalty minutes in the Stanley Cup finals, how many wins did the team had in total?", "pos": ["penalty minutes refer to PIM = 24; wins refer to W;"], "neg": ["which league refers to lgID", "the highest winning rate refer to divide(W, sum(W, L))", "after retirement means playerID Iis not NULL and coachID is not NULL;", "tie refers to T>0; year = 1909;", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "temporary coached refers to notes = 'interim'; number of loss refers to L (to add)", "Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;"]}} {"set": {"query": "Which team got the most wins in the Stanley Cup finals?", "pos": ["team refers name; most wins = MAX(W);"], "neg": ["the number of goals refers to G", "lost refers to L; won refers to W", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)", "most award-winning refers to max(count(award)); country player is from refers to birthCountry", "penalty refers to BenchMinor; Ties refer to T", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00", "after retirement means playerID Iis not NULL and coachID is not NULL;", "played in the league but not coached means playerID is not NULL and coachID is NULL;"]}} {"set": {"query": "In the history of all the Quebec Bulldogs, which goalie had the most play minutes for the team? Give the full name.", "pos": ["the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;"], "neg": ["same total number of postseason wins and postseason loses refers to PostW = PostL", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear", "nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "most award-winning refers to max(count(award)); country player is from refers to birthCountry", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "which league refers to lgID", "Montreal Canadiens is the name of team.", "left winger refers to pos = 'L'; weight>200", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)"]}} {"set": {"query": "Among the coaches who was never a player, who has highest percentage of game winning? Provide the given name of the coach and team he coached.", "pos": ["highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)"], "neg": ["weight of over 195 refers to weight>195", "born in 1977 refers to birthYear = '1977'", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "team refers name; most wins = MAX(W);", "the number of goals refers to G", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "not in the Hall of Fame refers to hofID IS NULL", "have died means deathYear is not NULL; Buffalo Sabres is the name of team;", "born in Toronto refers to birthCountry = 'Toronto'"]}} {"set": {"query": "In 1976, how many goals achieved by team 'BIR' in Division 'EW'?", "pos": ["year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;"], "neg": ["year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n", "worked a temporary term refers to notes = 'interim'", "good at both left hands and right hands for goalie refers to shootCatch IS NULL", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName", "21st century refers to year >2000; Power play goals refers to PPG", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser"]}} {"set": {"query": "How many coaches who have taught the Buffalo Sabres have died?", "pos": ["have died means deathYear is not NULL; Buffalo Sabres is the name of team;"], "neg": ["the number of years refers to count(year)", "Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "regular season refers to `R/P` = 'R'", "saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID", "road victories refers to rW; team id refers to tmID; victories and wins are synonyms\n\n", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "tie refers to T>0; year = 1909;"]}} {"set": {"query": "In which year did the Montreal Canadiens have 49 penalty minutes in the Stanley Cup finals? Was it 1924, 1923 or 1918?", "pos": ["penalty minutes refer to PIM = 49;"], "neg": ["lost refers to L; won refers to W", "still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL", "tie refers to T>0; year = 1909;", "NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName", "weight of over 195 refers to weight>195", "Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "team refers to name; year = 2006", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;"]}} {"set": {"query": "In 2006, what is the overall number of october defeats for the team with the most October defeats? Indicate the team ID.", "pos": ["team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)"], "neg": ["year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);", "total number of the games refers to GP", "good at both left hands and right hands for goalie refers to shootCatch IS NULL", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "penalty refers to BenchMinor; Ties refer to T", "highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "after the year 1980 refers to year>1980", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;"]}} {"set": {"query": "What is the power play percentage of the team with the least number of penalty kill chances and to which team were they playing against? Indicate whether the team lost or victorious.", "pos": ["least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa"], "neg": ["the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "more wins than loses refers to W>L; year = 1917;", "21st century refers to year >2000; Power play goals refers to PPG", "Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "after year 2000 refers to year>2000;", "highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n"]}} {"set": {"query": "In 1997, how many loss did the coach have who temporary coached Tampa Bay Lightning? Indicate his/her coach ID.", "pos": ["temporary coached refers to notes = 'interim'; number of loss refers to L (to add)"], "neg": ["Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n", "born in Toronto refers to birthCountry = 'Toronto'", "average height of 75 refers to AVG(height) = 75;", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;", "after the year 1980 refers to year>1980", "Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL", "saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n"]}} {"set": {"query": "What was the number of goals did player Id \"dyeba01\" make in the 1921 Stanley Cup finals?", "pos": ["the number of goals refers to G"], "neg": ["Power play percentage refers to PPG, most number of loses refers to MAX(L)\n\n", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "the third goalie refers to stint = 3; the biggest weight refers to max(weight)", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "born in July and August refers to birthMon IN('7','8')", "temporary coached refers to notes = 'interim'; number of loss refers to L (to add)", "Montreal Canadiens is the name of team."]}} {"set": {"query": "Which country is the most award-winning player from?", "pos": ["most award-winning refers to max(count(award)); country player is from refers to birthCountry"], "neg": ["have died means deathYear is not NULL; Buffalo Sabres is the name of team;", "the number of goals refers to G", "victories' and 'wins' are synonyms; most number of victories refers to max(w)", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "10 empty net goals refer to ENG = 10; tallest refers to MAX(height);", "team refers name; most wins = MAX(W);", "the biggest power play percentage = max(divide(PPG, PPC))", "after retirement means playerID Iis not NULL and coachID is not NULL;", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "average height of 75 refers to AVG(height) = 75;"]}} {"set": {"query": "Among the coaches who have received an award in 1940, how many of them are born in Toronto?", "pos": ["born in Toronto refers to birthCountry = 'Toronto'"], "neg": ["still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName", "tie refers to T>0; year = 1909;", "died in Arlington refers to deathCity = 'Arlington'", "Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;", "regular season refers to `R/P` = 'R'", "same total number of postseason wins and postseason loses refers to PostW = PostL", "after year 2000 refers to year>2000;"]}} {"set": {"query": "Name the goaltenders who had played in both PCHA and NHL league.", "pos": ["PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'"], "neg": ["the number of wins refers to W", "worked a temporary term refers to notes = 'interim'", "death country is different from his birth country refers to birthCountry! = deathCountry", "team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)", "left winger refers to pos = 'L'; weight>200", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "teams scored against their opponent who had pulled their goalie refers to ENG is not null", "have died means deathYear is not NULL; Buffalo Sabres is the name of team;", "born in Toronto refers to birthCountry = 'Toronto'"]}} {"set": {"query": "How old was the goaltender who scored the fewest goals while on the ice when he retired from the NHL?", "pos": ["goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))"], "neg": ["not in the Hall of Fame refers to hofID IS NULL", "worked a temporary term refers to notes = 'interim'", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "have died means deathYear is not NULL; Buffalo Sabres is the name of team;", "penalty minutes refer to PIM = 24; wins refer to W;", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "born in 1977 refers to birthYear = '1977'", "year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);", "passed away means deathYear is not NULL;", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n"]}} {"set": {"query": "List down player ID of players who have passed away.", "pos": ["passed away means deathYear is not NULL;"], "neg": ["which league refers to lgID", "the third goalie refers to stint = 3; the biggest weight refers to max(weight)", "Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;", "highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "the number of wins refers to W", "after retirement means playerID Iis not NULL and coachID is not NULL;", "team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)", "most award-winning refers to max(count(award)); country player is from refers to birthCountry", "born in Canada refers to birthCountry = 'Canada'", "not in the Hall of Fame refers to hofID IS NULL"]}} {"set": {"query": "How long has the NHL player been playing during the year when he recorded the least number of times being on the ice when a goal is scored for the team versus against the team? Indicate his full name.", "pos": ["NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName"], "neg": ["still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "worked a temporary term refers to notes = 'interim'", "the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;", "which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "penalty refers to BenchMinor; Ties refer to T"]}} {"set": {"query": "Please list the nicknames of the players who have won the All-Rookie award and are born in March.", "pos": ["born in March refers to birthMon = '3'; nicknames refers to nameNick"], "neg": ["good at both left hands and right hands for goalie refers to shootCatch IS NULL", "from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;", "year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n", "first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n", "the third goalie refers to stint = 3; the biggest weight refers to max(weight)", "not in the Hall of Fame refers to hofID IS NULL"]}} {"set": {"query": "For the goalie who had the most shutouts in 2010, what's his catching hand?", "pos": ["the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;"], "neg": ["penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "team refers name; most wins = MAX(W);", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "penalty minutes refer to PIM = 49;", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;", "WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.", "death country is different from his birth country refers to birthCountry! = deathCountry", "received the most awards in total refers to max(count(award))"]}} {"set": {"query": "Which team has the highest winning rate in year 2000? State the team ID and list down the birth country of it's players.", "pos": ["MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;"], "neg": ["nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "same total number of postseason wins and postseason loses refers to PostW = PostL", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL", "victories' and 'wins' are synonyms; most number of victories refers to max(w)", "the number of wins refers to W", "penalty minutes refer to PIM = 49;", "first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n", "worked a temporary term refers to notes = 'interim'", "team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)"]}} {"set": {"query": "Between 2003 to 2005, what are the given names of the players with the most number of games played whose Penalty minutes is between 200 to 250?", "pos": ["penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)"], "neg": ["note = 'posthumous'refers to \"didn't personally attend\"", "country refers to birthCountry", "from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "tie refers to T>0; year = 1909;", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "same total number of postseason wins and postseason loses refers to PostW = PostL", "which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;"]}} {"set": {"query": "Please list the awards the coaches who are born in Canada have won.", "pos": ["born in Canada refers to birthCountry = 'Canada'"], "neg": ["team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "total number of the games refers to GP", "Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "show me how many minutes refers to Min", "the first one refers to MIN(year);", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "penalty refers to BenchMinor; Ties refer to T", "after retired and became a coach refers to max(subtract(year, lastNHL))"]}} {"set": {"query": "For the goalie whose last name is \"Young\", how many teams did he play in?", "pos": ["goalie is a players; teams refer to tmID;"], "neg": ["country refers to birthCountry", "good at both left hands and right hands for goalie refers to shootCatch IS NULL", "Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "team refers name; most wins = MAX(W);", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "left winger refers to pos = 'L'; weight>200", "team refers to name; year = 2006", "worked a temporary term refers to notes = 'interim'", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;"]}} {"set": {"query": "Which league did player id\"adamsja01\" play in 1920?", "pos": ["which league refers to lgID"], "neg": ["note = 'posthumous'refers to \"didn't personally attend\"", "teams scored against their opponent who had pulled their goalie refers to ENG is not null", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011", "road victories refers to rW; team id refers to tmID; victories and wins are synonyms\n\n", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;", "year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "after the year 1980 refers to year>1980", "highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n"]}} {"set": {"query": "List down the first name of coaches who still coach after year 2000.", "pos": ["after year 2000 refers to year>2000;"], "neg": ["total number of the games refers to GP", "shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "which league refers to lgID", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;", "good at left hand refers to shootCatch = 'L'; goalies refers to pos = 'G'", "left winger refers to pos = 'L'; weight>200", "winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'", "the first one refers to MIN(year);"]}} {"set": {"query": "In the year 2000, which team has played the most games against the Buffalo Sabres?", "pos": ["which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;"], "neg": ["nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "born in 1977 refers to birthYear = '1977'", "the third goalie refers to stint = 3; the biggest weight refers to max(weight)", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "the first one refers to MIN(year);", "Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n"]}} {"set": {"query": "How many players, whose shooting/catching hand is both left and right, debuted their first NHL in 2011?", "pos": ["shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011"], "neg": ["the highest total points = MAX(Pts)", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n", "death country is different from his birth country refers to birthCountry! = deathCountry", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "good at left hand refers to shootCatch = 'L'; goalies refers to pos = 'G'", "after retired and became a coach refers to max(subtract(year, lastNHL))", "first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n", "received the most awards in total refers to max(count(award))", "team refers name; most wins = MAX(W);"]}} {"set": {"query": "State the nick name of player ID 'aubinje01'. List all the teams and season he played for.", "pos": ["nick name refers to nameNick; team refers to tmID; season refers to year\n\n"], "neg": ["21st century refers to year >2000; Power play goals refers to PPG", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "the biggest power play percentage = max(divide(PPG, PPC))", "Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "born in Toronto refers to birthCountry = 'Toronto'", "Montreal Canadiens is the name of team.", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'"]}} {"set": {"query": "Among the coaches whose team has over 30 wins in a year, how many of them are born in the USA?", "pos": ["over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'"], "neg": ["regular season refers to `R/P` = 'R'", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName", "passed away means deathYear is not NULL;", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser", "have died means deathYear is not NULL; Buffalo Sabres is the name of team;", "year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n"]}} {"set": {"query": "Players born in which year have received the most awards in total?", "pos": ["received the most awards in total refers to max(count(award))"], "neg": ["Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n", "born in Canada refers to birthCountry = 'Canada'", "lost refers to L; won refers to W", "most award-winning refers to max(count(award)); country player is from refers to birthCountry", "nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL"]}} {"set": {"query": "Among the players who had 10 empty net goals in their career, who is the tallest? Show his full name.", "pos": ["10 empty net goals refer to ENG = 10; tallest refers to MAX(height);"], "neg": ["Power play percentage refers to PPG, most number of loses refers to MAX(L)\n\n", "penalty minutes refer to PIM = 49;", "from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'", "the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "born in Toronto refers to birthCountry = 'Toronto'", "highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "after the year 1980 refers to year>1980", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;"]}} {"set": {"query": "How many goals were scored while the goalkeeper was on the ice in the 1924 WCHL by the goalie with the most goals scored?", "pos": ["WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play."], "neg": ["have died means deathYear is not NULL; Buffalo Sabres is the name of team;", "after retired and became a coach refers to max(subtract(year, lastNHL))", "still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "show me how many minutes refers to Min", "which league refers to lgID", "saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID", "date of birth refers to birthDay + birthMon + birthYear", "least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa"]}} {"set": {"query": "Among the players who were born in July and August, how many of them got in the Hall of Fame?", "pos": ["born in July and August refers to birthMon IN('7','8')"], "neg": ["country refers to birthCountry", "good at both left hands and right hands for goalie refers to shootCatch IS NULL", "goalie is a players; teams refer to tmID;", "Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "left winger refers to pos = 'L'; weight>200", "highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n"]}} {"set": {"query": "State the goalie who has the lowest percentage of goals against among all the shots against recorded. Name the players and season where he played.", "pos": ["goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)"], "neg": ["saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID", "21st century refers to year >2000; Power play goals refers to PPG", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "Power play percentage refers to PPG, most number of loses refers to MAX(L)\n\n", "died in Arlington refers to deathCity = 'Arlington'", "weight of over 195 refers to weight>195", "first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))", "born in July and August refers to birthMon IN('7','8')", "the biggest power play percentage = max(divide(PPG, PPC))", "pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward"]}} {"set": {"query": "Name the goalies who have played more than total of 5000 minutes in the all the season played. State given name of the player and from which country was he born.", "pos": ["played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n"], "neg": ["Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);", "which league refers to lgID", "lost refers to L; won refers to W", "highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n", "year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n"]}} {"set": {"query": "What is the average height of player who were born in 1990 and after? Compare the average height with players who were born before 1990.", "pos": ["average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n"], "neg": ["over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'", "winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'", "the highest total points = MAX(Pts)", "more wins than loses refers to W>L; year = 1917;", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "goalie is a players; teams refer to tmID;", "after retirement means playerID Iis not NULL and coachID is not NULL;", "pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward"]}} {"set": {"query": "For he who had the highest plus / minus on the court in the 1981 season, what's his full name?", "pos": ["highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n"], "neg": ["date of birth refers to birthDay + birthMon + birthYear", "end up with a tie or an overtime loss refers to T/OL", "goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n", "weight of over 195 refers to weight>195", "still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "21st century refers to year >2000; Power play goals refers to PPG", "passed away means deathYear is not NULL;"]}} {"set": {"query": "For the player who scored 7 shorthanded goals in 1989, what's his dominant hand?", "pos": ["1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n"], "neg": ["the biggest power play percentage = max(divide(PPG, PPC))", "first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n", "year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n", "team refers to name; year = 2006", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;", "same total number of postseason wins and postseason loses refers to PostW = PostL", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL", "not in the Hall of Fame refers to hofID IS NULL"]}} {"set": {"query": "List the first Name and last name of all players not from USA and who are born in 1990 .", "pos": ["Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n"], "neg": ["least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "penalty minutes refer to PIM = 24; wins refer to W;", "weight of over 195 refers to weight>195", "the number of years refers to count(year)", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;", "end up with a tie or an overtime loss refers to T/OL", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "team refers to name; year = 2006", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "penalty minutes refer to PIM = 49;"]}} {"set": {"query": "How many players were included in the Hall of Fame on average between 1950 and 1980?", "pos": ["year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n"], "neg": ["still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "the number of wins refers to W", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))", "least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "after retirement means playerID Iis not NULL and coachID is not NULL;", "temporary coached refers to notes = 'interim'; number of loss refers to L (to add)", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID"]}} {"set": {"query": "How many years were there after Don Waddell retired and became a coach in NHL?", "pos": ["after retired and became a coach refers to max(subtract(year, lastNHL))"], "neg": ["Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "temporary coached refers to notes = 'interim'; number of loss refers to L (to add)", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear", "10 empty net goals refer to ENG = 10; tallest refers to MAX(height);", "Montreal Canadiens is the name of team.", "country refers to birthCountry", "nick name refers to nameNick; team refers to tmID; season refers to year\n\n", "more wins than loses refers to W>L; year = 1917;", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser"]}} {"set": {"query": "Name the deceased players whose death country is different from his birth country order by birth year.", "pos": ["death country is different from his birth country refers to birthCountry! = deathCountry"], "neg": ["after the year 1980 refers to year>1980", "the first one refers to MIN(year);", "end up with a tie or an overtime loss refers to T/OL", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "penalty minutes refer to PIM = 49;", "still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "the number of goals refers to G", "born in Toronto refers to birthCountry = 'Toronto'"]}} {"set": {"query": "Among the players who became coaches, how many of them have gotten in the Hall of Fame?", "pos": ["players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL"], "neg": ["after retirement means playerID Iis not NULL and coachID is not NULL;", "NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName", "end up with a tie or an overtime loss refers to T/OL", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "21st century refers to year >2000; Power play goals refers to PPG", "from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n", "the highest winning rate refer to divide(W, sum(W, L))", "left winger refers to pos = 'L'; weight>200"]}} {"set": {"query": "What's the weight of the player who had the most Power Play Goals in the 21st century?", "pos": ["21st century refers to year >2000; Power play goals refers to PPG"], "neg": ["worked a temporary term refers to notes = 'interim'", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "average height of 75 refers to AVG(height) = 75;", "born in July and August refers to birthMon IN('7','8')", "penalty refers to BenchMinor; Ties refer to T", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL"]}} {"set": {"query": "Please list the awards won by coaches who were born in 1952.", "pos": ["born in 1977 refers to birthYear = '1977'"], "neg": ["shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00", "10 empty net goals refer to ENG = 10; tallest refers to MAX(height);", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL", "21st century refers to year >2000; Power play goals refers to PPG", "end up with a tie or an overtime loss refers to T/OL", "winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'", "died in Arlington refers to deathCity = 'Arlington'", "the biggest power play percentage = max(divide(PPG, PPC))", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n"]}} {"set": {"query": "How many hall of famers both played and coached in the league?", "pos": ["hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;"], "neg": ["which league refers to lgID", "total number of the games refers to GP", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00", "year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "date of birth refers to birthDay + birthMon + birthYear", "Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "Philadelphia Flyers is name of team playing; Boston Bruins is name of opposing team where oppID = 'BOS'; year = 1985; wins refer to W;"]}} {"set": {"query": "In the history of team id NJD, which goalie saved the most goal attempts? Give his full name.", "pos": ["saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID"], "neg": ["least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "the first one refers to MIN(year);", "after retirement means playerID Iis not NULL and coachID is not NULL;", "penalty refers to BenchMinor; Ties refer to T", "weight of over 195 refers to weight>195", "after retired and became a coach refers to max(subtract(year, lastNHL))", "year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;", "the number of wins refers to W"]}} {"set": {"query": "Which player who showed as the third goalie in a game has the biggest weight? Give the full name of the player.", "pos": ["the third goalie refers to stint = 3; the biggest weight refers to max(weight)"], "neg": ["total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "tie refers to T>0; year = 1909;", "worked a temporary term refers to notes = 'interim'", "which league refers to lgID", "goalie is a players; teams refer to tmID;", "year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);", "the biggest power play percentage = max(divide(PPG, PPC))", "still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "total number of the games refers to GP"]}} {"set": {"query": "Among the teams with the most number of ties, how many penalty was committed by a player or coach that is not on the ice? Indicate the name of the team.", "pos": ["penalty refers to BenchMinor; Ties refer to T"], "neg": ["the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;", "born in March refers to birthMon = '3'; nicknames refers to nameNick", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "Year most hockey players were born refers to MAX(birthYear); birthCountry refers to the country where a player was born\n", "show me how many minutes refers to Min", "penalty minutes refer to PIM = 24; wins refer to W;", "received the most awards in total refers to max(count(award))", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "victories' and 'wins' are synonyms; most number of victories refers to max(w)"]}} {"set": {"query": "Please list the first 3 teams that got the most penalty minutes in 2006.", "pos": ["the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;"], "neg": ["team refers to name; year = 2006", "the highest total points = MAX(Pts)", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "teams scored against their opponent who had pulled their goalie refers to ENG is not null", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "the number of wins refers to W", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "co-coached refers to notes = 'co-coach'; birth place refers to 'birthCountry-birthState-birthCity'", "more wins than loses refers to W>L; year = 1917;"]}} {"set": {"query": "What is the power play percentage of the team with the most number of loses?", "pos": ["Power play percentage refers to PPG, most number of loses refers to MAX(L)\n\n"], "neg": ["Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;", "first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n", "exhibition game refers to note = 'EX'; team of losing team refers to tmIDLoser", "date of birth refers to birthDay + birthMon + birthYear", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "country refers to birthCountry", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n", "highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n"]}} {"set": {"query": "Among the coaches who have taught teams from the NHL League, how many of them are from Canada?", "pos": ["from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'"], "neg": ["the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "average height of 75 refers to AVG(height) = 75;", "Canadian players mean player whose birthCountry = Canada; ages of 18 and 24 refers to SUBTRACT(firstNHL, birthYear) BETWEEN 18 AND 24; cumulative goal total of no more than 5 refers to G < 5; complete name = nameGiven + lastName", "more wins than loses refers to W>L; year = 1917;", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "died in Arlington refers to deathCity = 'Arlington'", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "least number of penalty kill chances refers to min(PKC); power play percentage refers to (PP%) = divide(PPG, PPC); team playing refers to tmID; victorious team refers to tmIDWinner; team victorious refers to tmID = tmIDWinner and vice versa", "which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;"]}} {"set": {"query": "For the team had the biggest power play percentage in 2011, who was their coach that season? Give the full name.", "pos": ["the biggest power play percentage = max(divide(PPG, PPC))"], "neg": ["5 heaviest players refer to MAX(weight) limit to 5 playerID;", "nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL", "highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "after year 2000 refers to year>2000;", "played in the league but not coached means playerID is not NULL and coachID is NULL;", "received the most awards in total refers to max(count(award))", "victories' and 'wins' are synonyms; most number of victories refers to max(w)", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear"]}} {"set": {"query": "Please list the years in which the NHL League had shots recorded while the goalie was on the ice.", "pos": ["shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'"], "neg": ["goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "Montreal Canadiens is the name of team.", "the number of years refers to count(year)", "year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;", "Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "the number of wins refers to W", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "year BETWEEN 1950 and 1980; average = DIVIDE(COUNT(hofID)), 30)\n\n", "regular season refers to `R/P` = 'R'"]}} {"set": {"query": "What was the total number of the games that player Id \"rutlewa01\" played in 1967?", "pos": ["total number of the games refers to GP"], "neg": ["same total number of postseason wins and postseason loses refers to PostW = PostL", "first year they were in NHL refers to firstNHL; first year in WHA refers to firstWHA; play in both refers to firstNHL IS NOT NULL AND firstWHA IS NOT NULL\n", "left winger refers to pos = 'L'; weight>200", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "the highest total points = MAX(Pts)", "21st century refers to year >2000; Power play goals refers to PPG"]}} {"set": {"query": "Which team recorded the most number of road victories in 2005? Indicate the team ID.", "pos": ["road victories refers to rW; team id refers to tmID; victories and wins are synonyms\n\n"], "neg": ["first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "show me how many minutes refers to Min", "penalty minutes refer to PIM = 24; wins refer to W;", "Montreal Canadiens is the name of team.", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "average height of 75 refers to AVG(height) = 75;", "regular season refers to `R/P` = 'R'", "victories' and 'wins' are synonyms; most number of victories refers to max(w)", "after retired and became a coach refers to max(subtract(year, lastNHL))", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear"]}} {"set": {"query": "What is the highest total points a team got in a year?", "pos": ["the highest total points = MAX(Pts)"], "neg": ["Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;", "death country is different from his birth country refers to birthCountry! = deathCountry", "average height of 75 refers to AVG(height) = 75;", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.", "team refers to name; year = 2006", "PCHA refers to lgID = 'PCHA'; NHL league refers to lgID = 'NHL'", "team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;"]}} {"set": {"query": "What is the percentage of winning rate of improvement since Alain Vigneault became the coach of Vancouver Canucks in 2006 season?", "pos": ["winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n"], "neg": ["Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "teams scored against their opponent who had pulled their goalie refers to ENG is not null", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "which team played the most games against refers to oppID where MAX(SUM(G); Buffalo Sabres is the name of team;", "weight of over 195 refers to weight>195", "not in the Hall of Fame refers to hofID IS NULL"]}} {"set": {"query": "How many coaches worked a temporary term in the year 2007?", "pos": ["worked a temporary term refers to notes = 'interim'"], "neg": ["goalie is a players; teams refer to tmID;", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "tie refers to T>0; year = 1909;", "after retired and became a coach refers to max(subtract(year, lastNHL))", "goaltender' and 'goalie' are synonyms; fewest goals while on the ice refers to min(GA); How old = subtract(lastNHL(playerID(min(GA))), birthYear(playerID(min(GA)))))", "show me how many minutes refers to Min", "clutch player' and 'trustworthy player in the critical moment' are synonyms; most clutch player refers to the most trustworthy player which refers to MAX(GWG); 1986 is the year played", "team ID refers to tmID; 'defeats' and 'loses' are synonyms; most October defeats refers to max(OctL)", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;"]}} {"set": {"query": "How many teams have the same total number of postseason wins and postseason loses?", "pos": ["same total number of postseason wins and postseason loses refers to PostW = PostL"], "neg": ["how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;", "hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;", "worked a temporary term refers to notes = 'interim'", "regular season refers to `R/P` = 'R'", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "the highest winning rate refer to divide(W, sum(W, L))", "died in Arlington refers to deathCity = 'Arlington'", "after retired and became a coach refers to max(subtract(year, lastNHL))", "first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))", "after the year 1980 refers to year>1980"]}} {"set": {"query": "What are the awards won by the coach who coached the team with the most number of victories of all time? Indicate the choach ID.", "pos": ["victories' and 'wins' are synonyms; most number of victories refers to max(w)"], "neg": ["same total number of postseason wins and postseason loses refers to PostW = PostL", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "highest Plus/minus refers to MAX(+/-); full name refers to firstName, lastName; 1981 season refers to year = '1981'\n\n", "left winger refers to pos = 'L'; weight>200", "Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n", "average height refers to AVG(height); born in 1990 refers to birthYear = 1990\n", "first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'"]}} {"set": {"query": "Did legendsID \"P194502\" personally attend his Hall of Fame dedication?", "pos": ["note = 'posthumous'refers to \"didn't personally attend\""], "neg": ["shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "Weight of above 190 refers to weight >190; 1978 season refers to the year played", "after retired and became a coach refers to max(subtract(year, lastNHL))", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "Not from USA refers to birthCountry! = 'USA'; born in 1990 refers to birthYear = 1990\n", "first-ever Second Team All-Star award refers to min(year(award = 'Second Team All-Star')); How many games before receiving such award = sum(g(coachID(min(year(award = 'Second Team All-Star')))): g(min(year)))", "winning percentage refers to DIVIDE(w,g)*100; team DET refers to tmID = 'DET'", "from Canada refers to birthCountry = 'Canada'; NHL league refers to lgID = 'NHL'"]}} {"set": {"query": "Who is the youngest player who is still living. State the given name and date of birth.", "pos": ["still living refers to deathYear IS NULL; youngest refers to MAX(birthYear,birthMon,birthDay)"], "neg": ["death country is different from his birth country refers to birthCountry! = deathCountry", "shots recorded while the goalie was on the ice refers to SA IS NOT NULL; NHL League refers to lgID = 'NHL'", "born in July and August refers to birthMon IN('7','8')", "good at both left hands and right hands for goalie refers to shootCatch IS NULL", "10 empty net goals refer to ENG = 10; tallest refers to MAX(height);", "note = 'posthumous'refers to \"didn't personally attend\"", "born in 1977 refers to birthYear = '1977'", "players who became coaches refers to playerID IS NOT NULL AND coachID IS NOT NULL", "played more than total of 5000 minutes refers to SUM(Min)>5000;country he was born refers to birthCountry\n", "goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n"]}} {"set": {"query": "Who are the players who were not in the Hall of Fame list.", "pos": ["not in the Hall of Fame refers to hofID IS NULL"], "neg": ["the number of wins refers to W", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear", "more wins than loses refers to W>L; year = 1917;", "team playing refers to tmID; oppositng team refers to oppID; victories' and 'wins' are synonyms; most victories refers to max(w)", "total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "goals against refers to GA; shots against refers to SA; lowest percentage of goals against among all the shots against refers to MIN(DIVIDE(GA,SA)*100)", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "good at both left hands and right hands for goalie refers to shootCatch IS NULL", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n"]}} {"set": {"query": "State the nick name of the tallest player? If the player had left NHL, mention the last season he was with NHL.", "pos": ["nick name refers to nameNick; tallest player refers to MAX(height); had left NHL refers to lastNHL"], "neg": ["shooting/catching hand is both left and right refers to shootCatch is NULL, debuted their first NHL in 2011 refers to firstNHL = 2011", "21st century refers to year >2000; Power play goals refers to PPG", "highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "NHL refers to lgID = 'NHL'; most assists refers to max(A); full name = nameGiven + lastName; total amount of assists = sum(A(playerID(max(A))))", "teams that have played against refer to oppID; Buffalo Sabres is the name of team;", "NHL refers to lgID = 'NHL'; least number of times being on the ice when a goal is scored for the team versus against the team refers to min(+/-); duration the player's been playing = subtract(year(playerID(min(+/-))), firstNHL(playerID(min(+/-)))); full name = nameGiven + lastName", "pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "Post season of 2011 refers to year = \u20192011\u2019\ndefensive success rate refers to (SUBTRACT(1 (DIVIDE(PostGA/PostSA)), *100%)\n", "passed away means deathYear is not NULL;", "born in Canada refers to birthCountry = 'Canada'"]}} {"set": {"query": "Which country has the most players in the Hall of Fame?", "pos": ["country refers to birthCountry"], "neg": ["Shortest refers to MIN(height); from 1925 to 1936 refers to year between 1925 and 1936;", "penalty minutes refer to PIM = 24; wins refer to W;", "Montreal Canadiens is the name of team.", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "weight of over 195 refers to weight>195", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "most seasons played refers to MAX(COUNT(playerID)); average time he played for each season refers to DIVIDE(SUM(T2.Min),COUNT(T2.playerID))", "the most play minutes refer to MAX(Min); goalie refers to pos = 'G'; New York Islanders is the nameof team;", "regular season refers to `R/P` = 'R'", "winning rate refers to DIVIDE (w, SUM(w, l)); Vancouver Canucks is name of team where tmID = 'VAN'\nWinning rate refers to DIVIDE(wins in year = '2005/2006'(ADD(wins+loses); improvement refers to SUBTRACT(DIVIDE(wins in year = '2005'(ADD(wins+loses), DIVIDE(wins in year = '2006'(ADD(wins+loses))\n"]}} {"set": {"query": "Name the goalie and the season he played where he had 5% shutouts among the number of goals recorded while the goalie was on the ice.", "pos": ["shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00"], "neg": ["highest percentage of game winning refers to MAX(DIVIDE(w,g)*100)", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "position refers to pos; date of birth refers to birthDay + birthMon + birthYear", "year = 1998; wins per game played = DIVIDE(W, G); CAR refers to tmID; contributed the most goals refers to MAX(G);", "left winger refers to pos = 'L'; weight>200", "Montreal Canadiens is the name of team.", "died in Arlington refers to deathCity = 'Arlington'", "which league refers to lgID", "goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward"]}} {"set": {"query": "State the player ID of player with average height of 75.", "pos": ["average height of 75 refers to AVG(height) = 75;"], "neg": ["saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID", "from the USA refers to birthCountry = 'USA'; year = 1922;", "shutouts refers to SHO; number of goals refers to GA; 5% shutouts among the number of goals refers to DIVIDE(SHO,GA)*100 = 5.00", "WCHL is the league's abbreviated name which refers to lgID = 'WCHL'; most goals scored referst to MAX(PostGA); GA is abbreviation for Post Against which means number of goals recorded while the goalie is on the ice. Include all goals against during regulation and overtime play.", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "the number of wins refers to W", "born in 1977 refers to birthYear = '1977'", "Goals Against are the number of goals recorded while the goalie is on the ice; the most Goal Againsts refers to MAX(GA); Minnesota North Stars is name of team;", "good at left hand refers to shootCatch = 'L'; goalies refers to pos = 'G'"]}} {"set": {"query": "Among the coaches who have gotten in the Hall of Fame, how many of them have a weight of over 195?", "pos": ["weight of over 195 refers to weight>195"], "neg": ["died in Arlington refers to deathCity = 'Arlington'", "born in Canada refers to birthCountry = 'Canada'; pos = 'LW' refers to left winger; pos = 'RW' refers to right winger; pos = 'C' refers to center; pos = 'G' refers to goalie; pos = 'D' refers to defenceman; pos = 'W' refers to winger; pos = 'F' refers to forward", "date of birth refers to birthDay + birthMon + birthYear", "teams scored against their opponent who had pulled their goalie refers to ENG is not null", "goalie is a players; teams refer to tmID;", "how many teams refer to COUNT(tmID); over 20 points refer to Pts>20; year = 1922;", "saved the most goal attempts refers to max(subtract(SA, GA)); team id refers to tmID", "left winger refers to pos = 'L'; weight>200", "goalies refers to pos = 'G'; deceased goalies refers to deathYear IS NOT NULL\n", "have died means deathYear is not NULL; Buffalo Sabres is the name of team;"]}} {"set": {"query": "Who was the coach for the team which had the most bench minors penalty in 2003\uff1f", "pos": ["Coach of the team refers to firstName+lastName; 2003 refers to the year\n\n"], "neg": ["first season in NHL in before 1950 refers to firstNHL<1950; goalies who are still alive refers to deathYear IS NOT NULL", "5 heaviest players refer to MAX(weight) limit to 5 playerID;", "1989 refers to the year of scoring; \"dominant hand\" and \"shooting hand\" are synonyms which refers to shootCatch\n\n", "MAX(DIVIDE(COUNT(W), SUM(COUNT(W), (COUNT (L)) where year = 2000;", "the number of years refers to count(year)", "the most shutouts refer to MAX(SHO); catching hand refers to shootCatch; year = 2010;", "teams scored against their opponent who had pulled their goalie refers to ENG is not null", "show me how many minutes refers to Min", "worked a temporary term refers to notes = 'interim'", "over 30 wins refers to w>30; born in the USA refers to birthCountry = 'USA'"]}} {"set": {"query": "Show me how many minutes player Id \"valiqst01\" played in the game in 2007 season.", "pos": ["show me how many minutes refers to Min"], "neg": ["total goals refer to SUM(G); how old = SUBTRACT(YEAR(CURDATE, birthYear);", "most number of goals refers to max(G); how old refers to age = subtract(year(max(G)), birthYear)", "the first 3 teams that got the most penalty minutes refer to name where MAX(PIM) limit to 3; year = 2006;", "average height of 75 refers to AVG(height) = 75;", "the first one refers to MIN(year);", "year = 1976; BIR refers to tmID; Division 'EW' refers to divID = 'EW'; goals = G;", "penalty minutes refer to PIM = 49;", "passed away means deathYear is not NULL;", "penalty minutes refers to PIM; year of scoring BETWEEN 2003 AND 2005; most number of games played refers to max(GP)", "played in the league but not coached means playerID is not NULL and coachID is NULL;"]}} {"set": {"query": "Give the number of female employees.", "pos": ["number of female employees means COUNT(gender = 'F')"], "neg": ["the highest paid refers to MAX(salary); manager is a position title", "maximum salary of no more than US$1000,000 refers to maxsalary < '100000';", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "required education refers to educationrequired; position of regional manager refers to\u00a0 positiontitle = 'Regional Manager'", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity"]}} {"set": {"query": "In which city's office does Sandy Adams work at?", "pos": ["Sandy Adams is the fullname of an employee; full name = firstname, lastname; city refers to locationcity"], "neg": ["Miami office refers to locationcity = 'Miami'", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'", "social security numbers refers to ssn; California refers to state = 'CA'", "number of female employees means COUNT(gender = 'F')", "full name = firstname, lastname; trainees is a position title", "good job performance refers to performance = 'Good'", "the highest paid refers to MAX(salary); manager is a position title", "the highest salary refers to MAX(salary); full name = firstname, lastname", "full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn"]}} {"set": {"query": "Who is the employee with the highest salary? Specify his/her full name.", "pos": ["the highest salary refers to MAX(salary); full name = firstname, lastname"], "neg": ["Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'", "David Whitehead is the full name of an employee; full name = firstname, lastname", "full name = firstname, lastname; ssn = '767-74-7373'", "full name = firstname, lastname; New York city refers to locationcity = 'New York City'", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "2 year degree refers to educationrequired = '2 year degree'; female refers to gender = 'F'; the highest number of employees refers to MAX(positionID)", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "male employees refers to gender = 'M'"]}} {"set": {"query": "Which position has the highest amount of poor performing employees?", "pos": ["poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)"], "neg": ["4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)", "the highest salary refers to MAX(salary); full name = firstname, lastname", "David Whitehead is the full name of an employee; full name = firstname, lastname", "the highest salary refers to MAX(salary); full name = firstname, lastname", "full name = firstname, lastname; ssn = '767-74-7373'", "number of female employees means COUNT(gender = 'F')", "full name = firstname, lastname; New York city refers to locationcity = 'New York City'", "Sandy Adams is the fullname of an employee; full name = firstname, lastname; city refers to locationcity"]}} {"set": {"query": "What is the required education for the position of regional manager?", "pos": ["required education refers to educationrequired; position of regional manager refers to\u00a0 positiontitle = 'Regional Manager'"], "neg": ["David Whitehead is the full name of an employee; full name = firstname, lastname", "social security numbers refers to ssn; California refers to state = 'CA'", "zip code of above 90000 refers to zipcode > 90000; city refers to locationcity", "full name = firstname, lastname; ssn = '767-74-7373'", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "first-ever employee that was hired refers to MIN(hiredate)", "good job performance refers to performance = 'Good'", "the highest salary refers to MAX(salary); full name = firstname, lastname", "maximum salary of no more than US$1000,000 refers to maxsalary < '100000';", "poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title"]}} {"set": {"query": "Which city and address has zip code of above 90000?", "pos": ["zip code of above 90000 refers to zipcode > 90000; city refers to locationcity"], "neg": ["the highest salary refers to MAX(salary); full name = firstname, lastname", "full name = firstname, lastname; New York city refers to locationcity = 'New York City'", "Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity", "social security numbers refers to ssn; California refers to state = 'CA'", "first-ever employee that was hired refers to MIN(hiredate)", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "Account Representatives is a position title; satisfying performance mostly refers togood performance", "male employees refers to gender = 'M'"]}} {"set": {"query": "What is the full office location address where most of the employees work at?", "pos": ["full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)"], "neg": ["Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "the highest salary refers to MAX(salary); full name = firstname, lastname", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;"]}} {"set": {"query": "Mention the full name, hired date and performance status of the employee whose location is in Utah state.", "pos": ["full name = firstname, lastname; Utah refers to state = 'UT'"], "neg": ["Account Representatives is a position title; satisfying performance mostly refers togood performance", "number of female employees means COUNT(gender = 'F')", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "full name = firstname, lastname; ssn = '767-74-7373'", "Sandy Adams is the fullname of an employee; full name = firstname, lastname; city refers to locationcity", "full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "required education refers to educationrequired; position of regional manager refers to\u00a0 positiontitle = 'Regional Manager'", "poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn", "full name = firstname, lastname; trainees is a position title"]}} {"set": {"query": "Write down the full name, performance status and located city of the employee who's social security number is \"767-74-7373\".", "pos": ["full name = firstname, lastname; ssn = '767-74-7373'"], "neg": ["full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "2 year degree refers to educationrequired = '2 year degree'; female refers to gender = 'F'; the highest number of employees refers to MAX(positionID)", "full name = firstname, lastname; New York city refers to locationcity = 'New York City'", "Account Representatives is a position title; satisfying performance mostly refers togood performance", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "full name = firstname, lastname; trainees is a position title", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'"]}} {"set": {"query": "How many \"account representatives\" are there in Chicago with a good performance?", "pos": ["account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'"], "neg": ["poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title", "maximum salary of no more than US$1000,000 refers to maxsalary < '100000';", "the highest salary refers to MAX(salary); full name = firstname, lastname", "full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "good job performance refers to performance = 'Good'", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "Sandy Adams is the fullname of an employee; full name = firstname, lastname; city refers to locationcity", "required education refers to educationrequired; position of regional manager refers to\u00a0 positiontitle = 'Regional Manager'", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "social security numbers refers to ssn; California refers to state = 'CA'"]}} {"set": {"query": "List the full names, gender and positions who's location is in New York city.", "pos": ["full name = firstname, lastname; New York city refers to locationcity = 'New York City'"], "neg": ["David Whitehead is the full name of an employee; full name = firstname, lastname", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "full name = firstname, lastname; ssn = '767-74-7373'", "full name = firstname, lastname; Utah refers to state = 'UT'", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "number of female employees means COUNT(gender = 'F')", "full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "Account Representatives is a position title; satisfying performance mostly refers togood performance"]}} {"set": {"query": "How many employees are there in the \"Miami\" office?", "pos": ["Miami office refers to locationcity = 'Miami'"], "neg": ["full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "social security numbers refers to ssn; California refers to state = 'CA'", "required education refers to educationrequired; position of regional manager refers to\u00a0 positiontitle = 'Regional Manager'", "Trainees is a position title; California refers to state = 'NY'", "the highest salary refers to MAX(salary); full name = firstname, lastname", "full name = firstname, lastname; Utah refers to state = 'UT'", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "male refers to gender = 'M'; Regional Managers is a position title"]}} {"set": {"query": "Please list the social security numbers of all the employees who work in California.", "pos": ["social security numbers refers to ssn; California refers to state = 'CA'"], "neg": ["zip code of above 90000 refers to zipcode > 90000; city refers to locationcity", "male refers to gender = 'M'; Regional Managers is a position title", "number of female employees means COUNT(gender = 'F')", "the highest paid refers to MAX(salary); manager is a position title", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "male employees refers to gender = 'M'", "first-ever employee that was hired refers to MIN(hiredate)", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "good job performance refers to performance = 'Good'"]}} {"set": {"query": "Which positions are suitable with 4 years degree education?", "pos": ["4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle"], "neg": ["full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "full name = firstname, lastname; trainees is a position title", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "full name = firstname, lastname; New York city refers to locationcity = 'New York City'", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn", "Trainees is a position title; California refers to state = 'NY'", "Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "male employees refers to gender = 'M'", "the highest paid refers to MAX(salary); manager is a position title"]}} {"set": {"query": "Among the employees with poor performance, provide the managers' full names, location city, address and its zip code.", "pos": ["poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title"], "neg": ["Trainees is a position title; California refers to state = 'NY'", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "Account Representatives is a position title; satisfying performance mostly refers togood performance", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "the highest salary refers to MAX(salary); full name = firstname, lastname", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'", "full name = firstname, lastname; Utah refers to state = 'UT'"]}} {"set": {"query": "Please list the social security numbers of the male employees with a salary of over $70,000 a year.", "pos": ["social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'"], "neg": ["Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "Miami office refers to locationcity = 'Miami'", "good job performance refers to performance = 'Good'", "Trainees is a position title; California refers to state = 'NY'", "Sandy Adams is the fullname of an employee; full name = firstname, lastname; city refers to locationcity", "the highest salary refers to MAX(salary); full name = firstname, lastname", "full name = firstname, lastname; trainees is a position title", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);"]}} {"set": {"query": "Who is the employee in \u201cNew York City\u201d with a good performance? Give the social security number of the employee.", "pos": ["New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn"], "neg": ["poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title", "the highest salary refers to MAX(salary); full name = firstname, lastname", "full name = firstname, lastname; trainees is a position title", "full name = firstname, lastname; Utah refers to state = 'UT'", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "Miami office refers to locationcity = 'Miami'", "David Whitehead is the full name of an employee; full name = firstname, lastname", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "2 year degree refers to educationrequired = '2 year degree'; female refers to gender = 'F'; the highest number of employees refers to MAX(positionID)"]}} {"set": {"query": "State the name of the city where Jose Rodriguez works.", "pos": ["Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity"], "neg": ["poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "the highest salary refers to MAX(salary); full name = firstname, lastname", "social security numbers refers to ssn; California refers to state = 'CA'", "Account Representatives is a position title; satisfying performance mostly refers togood performance", "number of female employees means COUNT(gender = 'F')", "Miami office refers to locationcity = 'Miami'", "Sandy Adams is the fullname of an employee; full name = firstname, lastname; city refers to locationcity", "poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title", "maximum salary of no more than US$1000,000 refers to maxsalary < '100000';", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn"]}} {"set": {"query": "Which position has the highest number of female employees with a 2 year degree?", "pos": ["2 year degree refers to educationrequired = '2 year degree'; female refers to gender = 'F'; the highest number of employees refers to MAX(positionID)"], "neg": ["Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "good job performance refers to performance = 'Good'", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn", "number of female employees means COUNT(gender = 'F')", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle"]}} {"set": {"query": "Describe the employees' full name, positions, located city and office phone number within Colorado state.", "pos": ["full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;"], "neg": ["full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "Miami office refers to locationcity = 'Miami'", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn", "male refers to gender = 'M'; Regional Managers is a position title", "first-ever employee that was hired refers to MIN(hiredate)", "David Whitehead is the full name of an employee; full name = firstname, lastname", "maximum salary of no more than US$1000,000 refers to maxsalary < '100000';", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'"]}} {"set": {"query": "How many positions have a maximum salary of no more than US$1000,000?", "pos": ["maximum salary of no more than US$1000,000 refers to maxsalary < '100000';"], "neg": ["Sandy Adams is the fullname of an employee; full name = firstname, lastname; city refers to locationcity", "Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity", "social security numbers refers to ssn; California refers to state = 'CA'", "Trainees is a position title; California refers to state = 'NY'", "Miami office refers to locationcity = 'Miami'", "first-ever employee that was hired refers to MIN(hiredate)", "the highest salary refers to MAX(salary); full name = firstname, lastname", "Account Representatives is a position title; satisfying performance mostly refers togood performance", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title"]}} {"set": {"query": "How much is the salary of the first ever employee that was hired?", "pos": ["first-ever employee that was hired refers to MIN(hiredate)"], "neg": ["account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "full name = firstname, lastname; Utah refers to state = 'UT'", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "Account Representatives is a position title; satisfying performance mostly refers togood performance", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'", "male employees refers to gender = 'M'"]}} {"set": {"query": "What is the average salary of the employees who work as a Trainee?", "pos": ["average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title"], "neg": ["full name = firstname, lastname; ssn = '767-74-7373'", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "the highest paid refers to MAX(salary); manager is a position title", "required education refers to educationrequired; position of regional manager refers to\u00a0 positiontitle = 'Regional Manager'", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "full name = firstname, lastname; trainees is a position title", "Miami office refers to locationcity = 'Miami'", "social security numbers refers to ssn; California refers to state = 'CA'"]}} {"set": {"query": "How many male Regional Managers are there?", "pos": ["male refers to gender = 'M'; Regional Managers is a position title"], "neg": ["full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity", "2 year degree refers to educationrequired = '2 year degree'; female refers to gender = 'F'; the highest number of employees refers to MAX(positionID)", "zip code of above 90000 refers to zipcode > 90000; city refers to locationcity", "the highest salary refers to MAX(salary); full name = firstname, lastname", "male employees refers to gender = 'M'", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "maximum salary of no more than US$1000,000 refers to maxsalary < '100000';"]}} {"set": {"query": "How many emplyees have a good job performance?", "pos": ["good job performance refers to performance = 'Good'"], "neg": ["full name = firstname, lastname; New York city refers to locationcity = 'New York City'", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'", "the highest paid refers to MAX(salary); manager is a position title", "full name = firstname, lastname; ssn = '767-74-7373'", "Sandy Adams is the fullname of an employee; full name = firstname, lastname; city refers to locationcity", "the highest salary refers to MAX(salary); full name = firstname, lastname", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)", "full name = firstname, lastname; Utah refers to state = 'UT'", "poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title"]}} {"set": {"query": "In which state does Emily Wood work?", "pos": ["Emily Wood is the full name of an employee; full name = firstname, lastname;"], "neg": ["good job performance refers to performance = 'Good'", "full name = firstname, lastname; New York city refers to locationcity = 'New York City'", "full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity", "Trainees is a position title; California refers to state = 'NY'", "David Whitehead is the full name of an employee; full name = firstname, lastname", "male refers to gender = 'M'; Regional Managers is a position title", "male employees refers to gender = 'M'", "the highest salary refers to MAX(salary); full name = firstname, lastname", "full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)"]}} {"set": {"query": "How many Account Representatives are there in Illinois with satisfying performance?", "pos": ["Account Representatives is a position title; satisfying performance mostly refers togood performance"], "neg": ["the highest paid refers to MAX(salary); manager is a position title", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "first-ever employee that was hired refers to MIN(hiredate)", "Miami office refers to locationcity = 'Miami'", "Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity", "full name = firstname, lastname; ssn = '767-74-7373'", "Trainees is a position title; California refers to state = 'NY'", "the highest salary refers to MAX(salary); full name = firstname, lastname", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "male refers to gender = 'M'; Regional Managers is a position title"]}} {"set": {"query": "Which employee's job position requires a higher education level, Jose Rodriguez or Sandy Adams?", "pos": ["Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)"], "neg": ["full name = firstname, lastname; ssn = '767-74-7373'", "maximum salary of no more than US$1000,000 refers to maxsalary < '100000';", "Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity", "the highest salary refers to MAX(salary); full name = firstname, lastname", "required education refers to educationrequired; position of regional manager refers to\u00a0 positiontitle = 'Regional Manager'", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "full name = firstname, lastname; New York city refers to locationcity = 'New York City'", "number of female employees means COUNT(gender = 'F')", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn"]}} {"set": {"query": "List the full name and social security number of the account representative with average performance.", "pos": ["full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'"], "neg": ["Miami office refers to locationcity = 'Miami'", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "good job performance refers to performance = 'Good'", "full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "Account Representatives is a position title; satisfying performance mostly refers togood performance", "maximum salary of no more than US$1000,000 refers to maxsalary < '100000';", "full name = firstname, lastname; Utah refers to state = 'UT'"]}} {"set": {"query": "In which state can you find the highest amount of good performing Account Representatives?", "pos": ["good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);"], "neg": ["full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "first-ever employee that was hired refers to MIN(hiredate)", "full name = firstname, lastname; Utah refers to state = 'UT'", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "full name = firstname, lastname; trainees is a position title", "number of female employees means COUNT(gender = 'F')", "Sandy Adams is the fullname of an employee; full name = firstname, lastname; city refers to locationcity", "Jose Rodriguez is the fullname of an employee; full name = firstname, lastname; name of city refers to locationcity", "full name = firstname, lastname; ssn = '767-74-7373'", "full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'"]}} {"set": {"query": "Please list the full names of the employees who are working as a Trainee.", "pos": ["full name = firstname, lastname; trainees is a position title"], "neg": ["social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'", "Trainees is a position title; California refers to state = 'NY'", "Miami office refers to locationcity = 'Miami'", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "male refers to gender = 'M'; Regional Managers is a position title", "number of female employees means COUNT(gender = 'F')", "David Whitehead is the full name of an employee; full name = firstname, lastname"]}} {"set": {"query": "How many male employees work at the address 450 Peachtree Rd?", "pos": ["male employees refers to gender = 'M'"], "neg": ["good job performance refers to performance = 'Good'", "Account Representatives is a position title; satisfying performance mostly refers togood performance", "David Whitehead is the full name of an employee; full name = firstname, lastname", "full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "poor performance refers to performance = 'Poor'; full name = firstname, lastname; managers is a position title", "Emily Wood is the full name of an employee; full name = firstname, lastname;", "Jose Rodriguez AND Sandy Adams are the fullname of employee; full name = firstname, lastname; higher education level refers to MAX(educationrequired)", "the highest salary refers to MAX(salary); full name = firstname, lastname", "Trainees is a position title; California refers to state = 'NY'", "2 year degree refers to educationrequired = '2 year degree'; female refers to gender = 'F'; the highest number of employees refers to MAX(positionID)"]}} {"set": {"query": "Which employee has the highest salary? Please give his or her full name.", "pos": ["the highest salary refers to MAX(salary); full name = firstname, lastname"], "neg": ["male refers to gender = 'M'; Regional Managers is a position title", "Account Representatives is a position title; satisfying performance mostly refers togood performance", "full name = firstname, lastname; New York city refers to locationcity = 'New York City'", "first-ever employee that was hired refers to MIN(hiredate)", "full office location address = address, locationcity, state, zipcode; location where most employees work at refers to MAX(locationID)", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "social security numbers refers to ssn; male employees refers to gender = 'M'; salary of over $70,000 a year refers to salary > '70000'", "Trainees is a position title; California refers to state = 'NY'", "David Whitehead is the full name of an employee; full name = firstname, lastname", "good job performance refers to performance = 'Good'"]}} {"set": {"query": "What is the education required for David Whitehead to reach his current position?", "pos": ["David Whitehead is the full name of an employee; full name = firstname, lastname"], "neg": ["full name = firstname, lastname; trainees is a position title", "the highest salary refers to MAX(salary); full name = firstname, lastname", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "Miami office refers to locationcity = 'Miami'", "full name = firstname, lastname; Colorado state refers to state = 'CO'; positions refers to positiontitle; located city refers to locationcity; office phone number refers to officephone;", "average = DIVIDE( SUM(salary), COUNT(positiontitle) where positiontitle = 'Trainee'; Trainee is a position title", "required education refers to educationrequired; position of regional manager refers to\u00a0 positiontitle = 'Regional Manager'", "the highest paid refers to MAX(salary); manager is a position title", "maximum salary of no more than US$1000,000 refers to maxsalary < '100000';", "full name = firstname, lastname; ssn = '767-74-7373'"]}} {"set": {"query": "Among the employees who are Trainees, how many of them work in New York?", "pos": ["Trainees is a position title; California refers to state = 'NY'"], "neg": ["full name = firstname, lastname; social security number refers to ssn; account representative is a position title; average performance refers to performance = 'Average'", "account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "Miami office refers to locationcity = 'Miami'", "poor performing employees refers to performance = 'Poor'; the highest amount of employees refers to MAX(positiontitle)", "the highest salary refers to MAX(salary); full name = firstname, lastname", "New York City refers to locationcity = 'New York City'; good performance refers to performance = 'Good'; social security number refers to ssn", "David Whitehead is the full name of an employee; full name = firstname, lastname", "the highest paid refers to MAX(salary); manager is a position title", "first-ever employee that was hired refers to MIN(hiredate)", "full name = firstname, lastname; New York city refers to locationcity = 'New York City'"]}} {"set": {"query": "Give the full address of the office of the highest paid manager.", "pos": ["the highest paid refers to MAX(salary); manager is a position title"], "neg": ["account representatives is a position title; Chicago refers to locationcity = 'Chicago'; good performance refers to performance = 'Good'", "4 years degree education refers to educationrequired = '4 year degree'; positions refers to positiontitle", "good performing refers to performance = 'Good'; Account Representatives is a positiontitle; highest amount of employee refers to MAX(positionID);", "full name = firstname, lastname; ssn = '767-74-7373'", "male refers to gender = 'M'; Regional Managers is a position title", "Trainees is a position title; California refers to state = 'NY'", "Miami office refers to locationcity = 'Miami'", "David Whitehead is the full name of an employee; full name = firstname, lastname", "number of female employees means COUNT(gender = 'F')", "the highest salary refers to MAX(salary); full name = firstname, lastname"]}} {"set": {"query": "Among the USA players, who has the lightest weight?", "pos": ["USA refers to nation = 'USA' ; players refers to PlayerName; lightest weight refers to MIN(weight_in_lbs);\n"], "neg": ["1997-1998 season refers to SEASON = '1997-1998';", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "oldest player refers to MIN(birthdate); Avangard Omsk refers to TEAM = 'Avangard Omsk'; regular season refers to GAMETYPE = 'Regular Season'; 2000-2001 season refers to SEASON = '2000-2001';\n", "Swedish refers to nation = 'Sweden'; team with the most Swedish refers to MAX(TEAM WHERE nation = 'Sweden');", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;"]}} {"set": {"query": "Among all players drafted by the Toronto Maple Leafs in 2008, identify the player with the highest prospects for the draft.", "pos": ["players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);"], "neg": ["difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';", "FALSE;", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;", "right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "weight in kilograms refers to weight_in_kg; longest time on ice in the player's first 7 years of NHL career refers to MAX(sum_7yr_TOI);", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "OHL league refers to LEAGUE = 'OHL'; who refers to PlayerName; regular season refers to GAMETYPE = 'Regular Season'; most number of assist refers to MAX(A); 2007-2008 season refers to SEASON = '2007-2008';"]}} {"set": {"query": "What is the name of the tallest player?", "pos": ["tallest player refers to MAX(height_in_cm);"], "neg": ["name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "who refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes'; committed the highest rule violations refers to MAX(PIM); in 2000 refers to draftyear = 2000;", "FALSE;", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "playoffs refers to GAMETYPE = 'Playoffs';", "right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';"]}} {"set": {"query": "Among all the players that are right-shooted, how many of them weigh over 90 kg?", "pos": ["right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;"], "neg": ["total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "weigh more than 90 kg refers to weight_in_kg > 90;", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "names of the players refers to PlayerName; Avangard Omsk refers to TEAM = 'Avangard Omsk'; playoffs refers to GAMETYPE = 'Playoffs'; 2000-2001 season refers to SEASON = '2000-2001';", "drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';", "playoffs refers to GAMETYPE = 'Playoffs';", "weigh in kilograms refers to weight_in_kg;", "average = AVG(height_in_cm); players refers to PlayerName; position of defense refers to position_info = 'D' ;", "1997-1998 season refers to SEASON = '1997-1998';"]}} {"set": {"query": "What is the difference in the number of goals scored by Pavel Brendl during the regular season versus the playoffs in the 1998-1999 season?", "pos": ["difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';"], "neg": ["drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "FALSE;", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';", "players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';", "FALSE;", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "tallest player refers to MAX(height_in_cm);"]}} {"set": {"query": "List out the seasons that Niklas Eckerblom played.", "pos": ["FALSE;"], "neg": ["OHL league refers to LEAGUE = 'OHL'; who refers to PlayerName; regular season refers to GAMETYPE = 'Regular Season'; most number of assist refers to MAX(A); 2007-2008 season refers to SEASON = '2007-2008';", "FALSE;", "tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';", "Swedish refers to nation = 'Sweden'; team with the most Swedish refers to MAX(TEAM WHERE nation = 'Sweden');", "heigh in inches refers to height_in_inch;", "tallest player refers to MAX(height_in_cm);", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "who refers to PlayerName; heaviest weight refers to MAX(weight_in_kg);"]}} {"set": {"query": "Among all penalty minutes picked up by Ak Bars Kazan in the 1999-2000 season, identify the percentage picked up by Yevgeni Muratov.", "pos": ["penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';"], "neg": ["tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "average = AVG(height_in_cm); players refers to PlayerName; position of defense refers to position_info = 'D' ;", "drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';", "committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "FALSE;", "total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);", "weight in kilograms refers to weight_in_kg; longest time on ice in the player's first 7 years of NHL career refers to MAX(sum_7yr_TOI);", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';"]}} {"set": {"query": "Calculate the average weight in pounds of all players drafted by Arizona Coyotes.", "pos": ["average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';"], "neg": ["players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "tallest player refers to MAX(height_in_cm);", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);"]}} {"set": {"query": "Name the player who has the most NHL points in draft year.", "pos": ["name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);"], "neg": ["drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';", "tallest player refers to MAX(height_in_cm);", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "weigh more than 90 kg refers to weight_in_kg > 90;", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "1997-1998 season refers to SEASON = '1997-1998';", "difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';"]}} {"set": {"query": "How many players were born in 1982 and have a height above 182cm?", "pos": ["born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;"], "neg": ["weigh more than 90 kg refers to weight_in_kg > 90;", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "Swedish refers to nation = 'Sweden'; team with the most Swedish refers to MAX(TEAM WHERE nation = 'Sweden');", "FALSE;", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';", "names of the players refers to PlayerName; Avangard Omsk refers to TEAM = 'Avangard Omsk'; playoffs refers to GAMETYPE = 'Playoffs'; 2000-2001 season refers to SEASON = '2000-2001';", "weight in kilograms refers to weight_in_kg; longest time on ice in the player's first 7 years of NHL career refers to MAX(sum_7yr_TOI);", "players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';"]}} {"set": {"query": "List the names of all players in team Avangard Omsk in season 2000-2001.", "pos": ["names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';"], "neg": ["USA refers to nation = 'USA' ; players refers to PlayerName; lightest weight refers to MIN(weight_in_lbs);\n", "Swedish refers to nation = 'Sweden'; team with the most Swedish refers to MAX(TEAM WHERE nation = 'Sweden');", "born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;", "total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Russia' WHERE height_in_cm < 200), COUNT(ELITEID)), 100); Russian refers to nation = 'Russia'; players refers to PlayerName; height of under 200 inch refers to height_in_cm < 200;", "difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';"]}} {"set": {"query": "Which team has the most Swedish?", "pos": ["Swedish refers to nation = 'Sweden'; team with the most Swedish refers to MAX(TEAM WHERE nation = 'Sweden');"], "neg": ["right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';", "heaviest player refers to MAX(weight_in_lb); drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);", "heigh in inches refers to height_in_inch;", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "USA refers to nation = 'USA' ; players refers to PlayerName; lightest weight refers to MIN(weight_in_lbs);\n", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';"]}} {"set": {"query": "Who among the players drafted by Arizona Coyotes in 2000 has committed the highest rule violations?", "pos": ["who refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes'; committed the highest rule violations refers to MAX(PIM); in 2000 refers to draftyear = 2000;"], "neg": ["tallest player refers to MAX(height_in_cm);", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "type of game refers to GAMETYPE;", "FALSE;", "playoffs refers to GAMETYPE = 'Playoffs';", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "weigh in kilograms refers to weight_in_kg;", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';"]}} {"set": {"query": "Among all players drafted by the Toronto Maple Leafs, identify the percentage who are from Eastern Europe.", "pos": ["players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;"], "neg": ["penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;", "total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);", "FALSE;", "FALSE;", "drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);"]}} {"set": {"query": "Who is the youngest player to have played during the 1997-1998 season for OHL League?", "pos": ["youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';"], "neg": ["playoffs refers to GAMETYPE = 'Playoffs';", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "average = AVG(height_in_cm); players refers to PlayerName; position of defense refers to position_info = 'D' ;", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "who refers to PlayerName; heaviest weight refers to MAX(weight_in_kg);", "heigh in inches refers to height_in_inch;", "USA refers to nation = 'USA' ; players refers to PlayerName; lightest weight refers to MIN(weight_in_lbs);\n", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "Swedish refers to nation = 'Sweden'; team with the most Swedish refers to MAX(TEAM WHERE nation = 'Sweden');", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';"]}} {"set": {"query": "How many players who were drafted by the Toronto Maple Leafs have played over 300 games in their first 7 years of the NHL career?", "pos": ["drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;"], "neg": ["names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "FALSE;", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "who refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes'; committed the highest rule violations refers to MAX(PIM); in 2000 refers to draftyear = 2000;", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);"]}} {"set": {"query": "Identify the name and position of the player who has committed the most rule violations.", "pos": ["name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);"], "neg": ["most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "USA refers to nation = 'USA' ; players refers to PlayerName; lightest weight refers to MIN(weight_in_lbs);\n", "OHL league refers to LEAGUE = 'OHL'; who refers to PlayerName; regular season refers to GAMETYPE = 'Regular Season'; most number of assist refers to MAX(A); 2007-2008 season refers to SEASON = '2007-2008';", "born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Russia' WHERE height_in_cm < 200), COUNT(ELITEID)), 100); Russian refers to nation = 'Russia'; players refers to PlayerName; height of under 200 inch refers to height_in_cm < 200;", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "names of the players refers to PlayerName; Avangard Omsk refers to TEAM = 'Avangard Omsk'; playoffs refers to GAMETYPE = 'Playoffs'; 2000-2001 season refers to SEASON = '2000-2001';", "difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';", "weigh more than 90 kg refers to weight_in_kg > 90;"]}} {"set": {"query": "What is the percentage of Swedish players in playoffs games in the 1997 - 2000 season?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';"], "neg": ["FALSE;", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "heigh in inches refers to height_in_inch;", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "weight in kilograms refers to weight_in_kg; longest time on ice in the player's first 7 years of NHL career refers to MAX(sum_7yr_TOI);", "right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;", "1997-1998 season refers to SEASON = '1997-1998';", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Russia' WHERE height_in_cm < 200), COUNT(ELITEID)), 100); Russian refers to nation = 'Russia'; players refers to PlayerName; height of under 200 inch refers to height_in_cm < 200;", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);"]}} {"set": {"query": "List the names of all players from Avangard Omsk that have played for playoffs in season 2000-2001.", "pos": ["names of the players refers to PlayerName; Avangard Omsk refers to TEAM = 'Avangard Omsk'; playoffs refers to GAMETYPE = 'Playoffs'; 2000-2001 season refers to SEASON = '2000-2001';"], "neg": ["committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);", "Swedish refers to nation = 'Sweden'; team with the most Swedish refers to MAX(TEAM WHERE nation = 'Sweden');", "who refers to PlayerName; heaviest weight refers to MAX(weight_in_kg);", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "type of game refers to GAMETYPE;"]}} {"set": {"query": "How many teams did the heaviest player drafted by Arizona Coyotes have played for?", "pos": ["heaviest player refers to MAX(weight_in_lb); drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';"], "neg": ["committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);", "type of game refers to GAMETYPE;", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "oldest player refers to MIN(birthdate); Avangard Omsk refers to TEAM = 'Avangard Omsk'; regular season refers to GAMETYPE = 'Regular Season'; 2000-2001 season refers to SEASON = '2000-2001';\n", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "1997-1998 season refers to SEASON = '1997-1998';", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Russia' WHERE height_in_cm < 200), COUNT(ELITEID)), 100); Russian refers to nation = 'Russia'; players refers to PlayerName; height of under 200 inch refers to height_in_cm < 200;"]}} {"set": {"query": "Who among the players in season 2000-2001 has committed the highest rule violations or penalty minutes?", "pos": ["committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'"], "neg": ["difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';", "total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);", "oldest player refers to MIN(birthdate); Avangard Omsk refers to TEAM = 'Avangard Omsk'; regular season refers to GAMETYPE = 'Regular Season'; 2000-2001 season refers to SEASON = '2000-2001';\n", "playoffs refers to GAMETYPE = 'Playoffs';", "weigh in kilograms refers to weight_in_kg;", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;", "who refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes'; committed the highest rule violations refers to MAX(PIM); in 2000 refers to draftyear = 2000;", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;"]}} {"set": {"query": "What is the birthplace of Aaron Gagnon?", "pos": ["FALSE;"], "neg": ["born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';", "right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "names of the players refers to PlayerName; Avangard Omsk refers to TEAM = 'Avangard Omsk'; playoffs refers to GAMETYPE = 'Playoffs'; 2000-2001 season refers to SEASON = '2000-2001';", "name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';"]}} {"set": {"query": "What is the weight in kilograms of the player with the highest number of goal differential of all time?", "pos": ["weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);"], "neg": ["players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "OHL league refers to LEAGUE = 'OHL'; who refers to PlayerName; regular season refers to GAMETYPE = 'Regular Season'; most number of assist refers to MAX(A); 2007-2008 season refers to SEASON = '2007-2008';", "played the most game plays refers to MAX(GP); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "FALSE;", "born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';"]}} {"set": {"query": "Who has the heaviest weight?", "pos": ["who refers to PlayerName; heaviest weight refers to MAX(weight_in_kg);"], "neg": ["players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);", "weigh in kilograms refers to weight_in_kg;", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "heigh in inches refers to height_in_inch;"]}} {"set": {"query": "How much taller is David Bornhammar than Pauli Levokari in centimeters?", "pos": ["how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;"], "neg": ["FALSE;", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "tallest player refers to MAX(height_in_cm);", "tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "oldest player refers to MIN(birthdate); Avangard Omsk refers to TEAM = 'Avangard Omsk'; regular season refers to GAMETYPE = 'Regular Season'; 2000-2001 season refers to SEASON = '2000-2001';\n", "born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';"]}} {"set": {"query": "Who has played the most game plays in the 2000-2001 season of the International league?", "pos": ["played the most game plays refers to MAX(GP); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';"], "neg": ["drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;", "tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "Swedish refers to nation = 'Sweden'; team with the most Swedish refers to MAX(TEAM WHERE nation = 'Sweden');", "weigh in kilograms refers to weight_in_kg;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Russia' WHERE height_in_cm < 200), COUNT(ELITEID)), 100); Russian refers to nation = 'Russia'; players refers to PlayerName; height of under 200 inch refers to height_in_cm < 200;", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';", "heaviest player refers to MAX(weight_in_lb); drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';"]}} {"set": {"query": "How much does David Bornhammar weigh in kilograms?", "pos": ["weigh in kilograms refers to weight_in_kg;"], "neg": ["name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';", "weigh more than 90 kg refers to weight_in_kg > 90;", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Russia' WHERE height_in_cm < 200), COUNT(ELITEID)), 100); Russian refers to nation = 'Russia'; players refers to PlayerName; height of under 200 inch refers to height_in_cm < 200;", "Swedish refers to nation = 'Sweden'; team with the most Swedish refers to MAX(TEAM WHERE nation = 'Sweden');", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;"]}} {"set": {"query": "What is the weight of the player with the longest time on ice in the player\u2019s first 7 years of NHL career in kilograms?", "pos": ["weight in kilograms refers to weight_in_kg; longest time on ice in the player's first 7 years of NHL career refers to MAX(sum_7yr_TOI);"], "neg": ["average = AVG(height_in_cm); players refers to PlayerName; position of defense refers to position_info = 'D' ;", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "FALSE;", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "weigh in kilograms refers to weight_in_kg;", "type of game refers to GAMETYPE;", "tallest player refers to MAX(height_in_cm);", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "playoffs refers to GAMETYPE = 'Playoffs';", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';"]}} {"set": {"query": "Who is the oldest player who played for Avangard Omsk during the regular season in 2000-2001?", "pos": ["oldest player refers to MIN(birthdate); Avangard Omsk refers to TEAM = 'Avangard Omsk'; regular season refers to GAMETYPE = 'Regular Season'; 2000-2001 season refers to SEASON = '2000-2001';\n"], "neg": ["born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);", "FALSE;", "USA refers to nation = 'USA' ; players refers to PlayerName; lightest weight refers to MIN(weight_in_lbs);\n", "names of the players refers to PlayerName; Avangard Omsk refers to TEAM = 'Avangard Omsk'; playoffs refers to GAMETYPE = 'Playoffs'; 2000-2001 season refers to SEASON = '2000-2001';", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';"]}} {"set": {"query": "Among the players whose total NHL games played in their first 7 years of NHL career is no less than 500, what is the name of the player who committed the most rule violations?", "pos": ["total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);"], "neg": ["height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';", "heigh in inches refers to height_in_inch;", "committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "weigh more than 90 kg refers to weight_in_kg > 90;", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';"]}} {"set": {"query": "Identify the players who weigh 120 kg.", "pos": ["players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;"], "neg": ["born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "OHL league refers to LEAGUE = 'OHL'; who refers to PlayerName; regular season refers to GAMETYPE = 'Regular Season'; most number of assist refers to MAX(A); 2007-2008 season refers to SEASON = '2007-2008';", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "names of the players refers to PlayerName; Avangard Omsk refers to TEAM = 'Avangard Omsk'; playoffs refers to GAMETYPE = 'Playoffs'; 2000-2001 season refers to SEASON = '2000-2001';", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "average = AVG(height_in_cm); players refers to PlayerName; position of defense refers to position_info = 'D' ;", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';", "heigh in inches refers to height_in_inch;", "tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';"]}} {"set": {"query": "List out the name of players who have a height of 5'8\".", "pos": ["name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';"], "neg": ["weigh in kilograms refers to weight_in_kg;", "right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "oldest player refers to MIN(birthdate); Avangard Omsk refers to TEAM = 'Avangard Omsk'; regular season refers to GAMETYPE = 'Regular Season'; 2000-2001 season refers to SEASON = '2000-2001';\n", "name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "heigh in inches refers to height_in_inch;", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "weight in kilograms refers to weight_in_kg; longest time on ice in the player's first 7 years of NHL career refers to MAX(sum_7yr_TOI);", "average = AVG(height_in_cm); players refers to PlayerName; position of defense refers to position_info = 'D' ;"]}} {"set": {"query": "Who is the tallest player in team USA U20?", "pos": ["tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';"], "neg": ["penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';", "weight in kilograms refers to weight_in_kg; longest time on ice in the player's first 7 years of NHL career refers to MAX(sum_7yr_TOI);", "USA refers to nation = 'USA' ; players refers to PlayerName; lightest weight refers to MIN(weight_in_lbs);\n", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "type of game refers to GAMETYPE;"]}} {"set": {"query": "What is the average height in centimeters of all the players in the position of defense?", "pos": ["average = AVG(height_in_cm); players refers to PlayerName; position of defense refers to position_info = 'D' ;"], "neg": ["name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);", "who refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes'; committed the highest rule violations refers to MAX(PIM); in 2000 refers to draftyear = 2000;", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; highest prospects for the draft refers to MAX(CSS_rank);", "name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "playoffs refers to GAMETYPE = 'Playoffs';", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);"]}} {"set": {"query": "What is the percentage of Russian players who have a height of under 200 inch?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(nation = 'Russia' WHERE height_in_cm < 200), COUNT(ELITEID)), 100); Russian refers to nation = 'Russia'; players refers to PlayerName; height of under 200 inch refers to height_in_cm < 200;"], "neg": ["right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';", "heaviest player refers to MAX(weight_in_lb); drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';"]}} {"set": {"query": "How many players who were born in 1980 weigh 185 in pounds?", "pos": ["born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;"], "neg": ["weigh more than 90 kg refers to weight_in_kg > 90;", "heaviest player refers to MAX(weight_in_lb); drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "FALSE;", "total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);", "committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';", "weight in kilograms refers to weight_in_kg; longest time on ice in the player's first 7 years of NHL career refers to MAX(sum_7yr_TOI);", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "heigh in inches refers to height_in_inch;"]}} {"set": {"query": "How many players, who were drafted by Anaheim Ducks in 2008, have played for U.S. National U18 Team?", "pos": ["drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';"], "neg": ["who refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes'; committed the highest rule violations refers to MAX(PIM); in 2000 refers to draftyear = 2000;", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "born in 1982 refers to birthyear = 1982; height above 182cm refers to height_in_cm > 182 ;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Russia' WHERE height_in_cm < 200), COUNT(ELITEID)), 100); Russian refers to nation = 'Russia'; players refers to PlayerName; height of under 200 inch refers to height_in_cm < 200;"]}} {"set": {"query": "How many playoffs did Per Mars participate in?", "pos": ["playoffs refers to GAMETYPE = 'Playoffs';"], "neg": ["played the most game plays refers to MAX(GP); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';", "FALSE;", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "heigh in inches refers to height_in_inch;", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "tallest player refers to MAX(height_in_cm);", "average = AVG(height_in_cm); players refers to PlayerName; position of defense refers to position_info = 'D' ;"]}} {"set": {"query": "Mention the type of game that Matthias Trattnig played.", "pos": ["type of game refers to GAMETYPE;"], "neg": ["name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "OHL league refers to LEAGUE = 'OHL'; who refers to PlayerName; regular season refers to GAMETYPE = 'Regular Season'; most number of assist refers to MAX(A); 2007-2008 season refers to SEASON = '2007-2008';", "name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "USA refers to nation = 'USA' ; players refers to PlayerName; lightest weight refers to MIN(weight_in_lbs);\n", "committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "playoffs refers to GAMETYPE = 'Playoffs';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';"]}} {"set": {"query": "Among the players who played in OHL league during the regular season in 2007-2008, who is the player that attained the most number of assist?", "pos": ["OHL league refers to LEAGUE = 'OHL'; who refers to PlayerName; regular season refers to GAMETYPE = 'Regular Season'; most number of assist refers to MAX(A); 2007-2008 season refers to SEASON = '2007-2008';"], "neg": ["played the most game plays refers to MAX(GP); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "drafted by Anaheim Ducks refers to overallby = 'Anaheim Ducks'; in 2008 refers to draftyear = 2008; played for U.S. National U18 Team refers to TEAM = 'U.S. National U18 Team';", "weigh in kilograms refers to weight_in_kg;", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "FALSE;", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);"]}} {"set": {"query": "Among all goals scored by Calgary Hitmen in the 2007-2008 season, identify the percentage scored by Ian Schultz.", "pos": ["goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';"], "neg": ["names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "average = AVG(height_in_cm); players refers to PlayerName; position of defense refers to position_info = 'D' ;", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "FALSE;", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;"]}} {"set": {"query": "Name the player who had the most goals for team Rimouski Oceanic in playoff.", "pos": ["name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';"], "neg": ["heaviest player refers to MAX(weight_in_lb); drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "oldest player refers to MIN(birthdate); Avangard Omsk refers to TEAM = 'Avangard Omsk'; regular season refers to GAMETYPE = 'Regular Season'; 2000-2001 season refers to SEASON = '2000-2001';\n", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "playoffs refers to GAMETYPE = 'Playoffs';", "weigh in kilograms refers to weight_in_kg;", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';"]}} {"set": {"query": "Indicate the height of all players from team Oshawa Generals in inches.", "pos": ["height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';"], "neg": ["weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "tallest player refers to MAX(height_in_cm);", "playoffs refers to GAMETYPE = 'Playoffs';", "players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "USA refers to nation = 'USA' ; players refers to PlayerName; lightest weight refers to MIN(weight_in_lbs);\n", "how much taller = SUBTRACT(SUM(height_in_cm WHERE PlayerName = 'David Bornhammar'), SUM(height_in_cm WHERE PlayerName = 'Pauli Levokari')); height in centimeters refers to height_in_cm;", "players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;", "tallest refers to MAX(height_in_cm); \nplayer refers to PlayerName; team USA U20 refers to TEAM = 'USA U20';"]}} {"set": {"query": "What is the height of David Bornhammar in inches?", "pos": ["heigh in inches refers to height_in_inch;"], "neg": ["name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "played the most game plays refers to MAX(GP); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;", "difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "total NHL games played in their first 7 years of NHL career is no less than 500 refers to sum_7yr_GP > 500; name of the player refers to PlayerName; committed the most rule violations refers to MAX(PIM);"]}} {"set": {"query": "What team did Niklas Eckerblom play in the 1997-1998 season?", "pos": ["1997-1998 season refers to SEASON = '1997-1998';"], "neg": ["players refers to PlayerName; drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; percentage = MULTIPLY(DIVIDE(SUM(nation = 'Eastern Europe'), COUNT(ELITEID) WHERE overallby = 'Toronto Maple Leafs'), 100); from Eastern Europe refers to nation in ('Belarus', 'Bulgaria', 'Czech Republic', 'Hungary', 'Moldova', 'Poland', 'Romania', 'Slovakia', 'Ukraine'); countries in a continent can be identified by referring to https://worldpopulationreview.com/country-rankings/list-of-countries-by-continent;", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "playoffs refers to GAMETYPE = 'Playoffs';", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "players refers to PlayerName; weigh 120 kg refers to weight_in_kg = 120;", "played the most game plays refers to MAX(GP); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';", "tallest player refers to MAX(height_in_cm);", "committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;"]}} {"set": {"query": "Who is the most valuable player who played in the 2000-2001 season of the International league?", "pos": ["most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';"], "neg": ["committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';", "type of game refers to GAMETYPE;", "name of the player refers to PlayerName; most NHL points in draft year refers to MAX(P);", "heaviest player refers to MAX(weight_in_lb); drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "FALSE;", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "OHL league refers to LEAGUE = 'OHL'; who refers to PlayerName; regular season refers to GAMETYPE = 'Regular Season'; most number of assist refers to MAX(A); 2007-2008 season refers to SEASON = '2007-2008';"]}} {"set": {"query": "Name the player and his team who made the playoffs in the 2006-2007 season of SuperElit league with the highest points.", "pos": ["name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';"], "neg": ["committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "youngest player refers to MAX(birthdate); 1997-1998 season refers to SEASON = '1997-1998'; OHL league refers to LEAGUE = 'OHL';", "oldest player refers to MIN(birthdate); Avangard Omsk refers to TEAM = 'Avangard Omsk'; regular season refers to GAMETYPE = 'Regular Season'; 2000-2001 season refers to SEASON = '2000-2001';\n", "weigh more than 90 kg refers to weight_in_kg > 90;", "difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';", "name of players refers to PlayerName; height of 5'8\" refers to height_in_inch = '5''8\"';", "who refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes'; committed the highest rule violations refers to MAX(PIM); in 2000 refers to draftyear = 2000;", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';", "penalty minutes refers to PIM; Ak Bars Kazan refers to TEAM = 'Ak Bars Kazan'; percentage = MULTIPLY(DIVIDE(SUM(PIM WHERE PlayerName = 'Yevgeni Muratov'), SUM(PIM)), 100.0); 1999-2000 season refers to SEASON = '1999-2000';"]}} {"set": {"query": "How many players weigh more than 90 kg?", "pos": ["weigh more than 90 kg refers to weight_in_kg > 90;"], "neg": ["height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "committed the highest rule violations or penalty minutes refers to MAX(PIM); 2000-2001 season refers to SEASON = '2000-2001'", "name of the player refers to PlayerName; position of the player refers to position_info; committed the most rule violations refers to MAX(PIM);", "weight in kilograms refers to weight_in_kg; longest time on ice in the player's first 7 years of NHL career refers to MAX(sum_7yr_TOI);", "height in inches refers to height_in_inch; players refers to PlayerName; team Oshawa Generals refers to TEAM = 'Oshawa Generals';", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Sweden'), COUNT(ELITEID) WHERE SEASON = '1997-2000'), 100); Swedish refers to nation = 'Sweden'; players refers to PlayerName; playoffs games refers to GAMETYPE = 'Playoffs'; 1997-2000 season refers to 3 consecutive SEASONs : '1997-1998', '1998-1999', '1999-2000';", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';"]}} {"set": {"query": "Among the players with a height of over 6'2\" inches, how many of them were born in Sweden?", "pos": ["height of over 6'2\" inches refers to height_in_inch > '6''2\"'; born in Sweden refers to nation = 'Sweden' ;"], "neg": ["name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "born in 1980 refers to birthyear = 1980; weigh 185 in pounds refers to weight_in_lbs = 185;", "drafted by the Toronto Maple Leafs refers to overallby = 'Toronto Maple Leafs'; played over 300 games in their first 7 years of the NHL career refers to sum_7yr_GP > 300;", "difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';", "right-shooted refers to shoots = 'R'; weigh over 90 kg refers to weight_in_kg > 90;", "tallest player refers to MAX(height_in_cm);", "names of the players refers to PlayerName; team Avangard Omsk refers to TEAM = 'Avangard Omsk'; 2000-2001 season refers to SEASON = '2000-2001';", "heigh in inches refers to height_in_inch;", "FALSE;", "oldest player refers to MIN(birthdate); Avangard Omsk refers to TEAM = 'Avangard Omsk'; regular season refers to GAMETYPE = 'Regular Season'; 2000-2001 season refers to SEASON = '2000-2001';\n"]}} {"set": {"query": "How many right-shooted players have a height of 5'7''?", "pos": ["right-shooted players refers to shoots = 'R'; height of 5'7'' refers to height_in_inch = '5''7\"';"], "neg": ["name of the player refers to PlayerName; most goals refers to MAX(G); team Rimouski Oceanic refers to TEAM = 'Rimouski Oceanic'; playoff refers to GAMETYPE = 'Playoffs';", "playoffs refers to GAMETYPE = 'Playoffs';", "average weight in pounds = AVG(weight_in_lbs); weight in pounds refers to weight_in_lbs; players refers to PlayerName; drafted by Arizona Coyotes refers to overallby = 'Arizona Coyotes';", "name of the player refers to PlayerName; playoffs refers to GAMETYPE = 'Playoffs'; highest points refers to MAX(P); 2006-2007 season refers to SEASON = '2006-2007'; SuperElit league refers to LEAGUE = 'SuperElit';", "goals scored refers to G; Calgary Hitmen refers to TEAM = 'Calgary Hitmen'; percentage = MULTIPLY(DIVIDE(SUM(G WHERE PlayerName = 'Ian Schultz'), SUM(G)), 100); 2007-2008 season refers to SEASON = '2007-2008';", "weight in kilograms refers to weight_in_kg; highest number of goal differential of all time refers to MAX(PLUSMINUS);", "OHL league refers to LEAGUE = 'OHL'; who refers to PlayerName; regular season refers to GAMETYPE = 'Regular Season'; most number of assist refers to MAX(A); 2007-2008 season refers to SEASON = '2007-2008';", "difference = SUBTRACT(SUM(G WHERE GAMETYPE = 'Regular Season'), SUM(G WHERE GAMETYPE = 'Playoffs') WHERE SEASON = '1998-1999'); number of goals scored refers to G; regular season refers to GAMETYPE = 'Regular Season'; playoffs refers to GAMETYPE = 'Playoffs'; 1998-1999 season refers to SEASON = '1998-1999';", "percentage = MULTIPLY(DIVIDE(SUM(nation = 'Russia' WHERE height_in_cm < 200), COUNT(ELITEID)), 100); Russian refers to nation = 'Russia'; players refers to PlayerName; height of under 200 inch refers to height_in_cm < 200;", "most valuable player refers to MAX(P); 2000-2001 season refers to SEASON = '2000-2001'; International league refers to LEAGUE = 'International';"]}} {"set": {"query": "How many images have objects with the attributes of polka dot?", "pos": ["attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;"], "neg": ["bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "object in image 5 refers to OBJ_SAMPLE_ID where IMG_ID = 5; coordinates of (634, 468) refer to X and Y coordinates of the bounding box in which X = 634 and Y = 468;", "images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "onion category refers to OBJ_CLASS = 'onion';", "classes for attributes refers to ATT_CLASS; image id 8 refers to IMG_ID = 8", "prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)", "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "DIVIDE(SUM(OBJ_SAMPLE_ID where OBJ_CLASS = 'airplane'), COUNT(OBJ_CLASS)) as percentage;"]}} {"set": {"query": "What are the width and height of the bounding box of the object with \"keyboard\" as their object class and (5, 647) as their coordinate?", "pos": ["The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;"], "neg": ["ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "object class of the image refers to OBJ_CLASS; bounding box of 0, 0, 135, 212 refers to X = 0 AND Y = 0 AND W = 135 AND H = 212", "bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "bounding box refers to X, Y, W, H from IMG_OBJ; lowest relates to the height of the bounding box which refers to MIN(H);", "object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;"]}} {"set": {"query": "State the object class of sample no.10 of image no.2320341.", "pos": ["object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341"], "neg": ["bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", "pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'", "attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;", "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "attribute classes refer to ATT_CLASS; (5,5) coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 5;", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;"]}} {"set": {"query": "Calculate the percentage of \"airplane\" object class in the table.", "pos": ["DIVIDE(SUM(OBJ_SAMPLE_ID where OBJ_CLASS = 'airplane'), COUNT(OBJ_CLASS)) as percentage;"], "neg": ["object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "object number of the sample refers to OBJ1_SAMPLE_ID; object sample no.1 from image no.2345524 refers to OBJ2_SAMPLE_ID = 1 and IMG_ID = 2345524", "image no. 20 refers to IMG_ID = 20; attribute ID refers to ATT_CLASS_ID; highest number of objects refers to max(count(ATT_CLASS_ID))", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "object in image 5 refers to OBJ_SAMPLE_ID where IMG_ID = 5; coordinates of (634, 468) refer to X and Y coordinates of the bounding box in which X = 634 and Y = 468;", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;", "have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1", "bounding box refers to X, Y, W, H from IMG_OBJ; lowest relates to the height of the bounding box which refers to MIN(H);", "colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1"]}} {"set": {"query": "How many white objects are there in image no.2347915?", "pos": ["white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915"], "neg": ["image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", "bounding box of the object refers to (X, Y, W, H); sample no.7 on image no.42 refers to IMG_ID = 42 and OBJ_SAMPLE_ID = 7"]}} {"set": {"query": "How many pairs of object samples in image no.1 have the relation of \"parked on\"?", "pos": ["pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'"], "neg": ["explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));", "How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'", "bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", "ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID"]}} {"set": {"query": "What is the relationship between object sample no.12 and no.8 of image no.2345511?", "pos": ["relationship refers to PRED_CLASS; object sample no.12 and no.8 of image no.2345511 refers to IMG_ID = 2345511 AND OBJ1_SAMPLE_ID = 12 AND OBJ2_SAMPLE_ID = 8"], "neg": ["object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "onion category refers to OBJ_CLASS = 'onion';", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "DIVIDE(SUM(OBJ_SAMPLE_ID where OBJ_CLASS = 'airplane'), COUNT(OBJ_CLASS)) as percentage;"]}} {"set": {"query": "Provide the dimensions of the bounding box that contains the keyboard that was spotted in image no. 3.", "pos": ["dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3"], "neg": ["object number of the sample refers to OBJ1_SAMPLE_ID; object sample no.1 from image no.2345524 refers to OBJ2_SAMPLE_ID = 1 and IMG_ID = 2345524", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "object samples refers to OBJ_CLASS_ID; image no.1 refers to IMG_ID = 1; in the class of \"man\" refers to OBJ_CLASS = 'man'", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;"]}} {"set": {"query": "List the ID of all images with objects that have multiple relations.", "pos": ["ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;"], "neg": ["X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;", "have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1", "classes for attributes refers to ATT_CLASS; image id 8 refers to IMG_ID = 8", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "image no. 20 refers to IMG_ID = 20; attribute ID refers to ATT_CLASS_ID; highest number of objects refers to max(count(ATT_CLASS_ID))", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5"]}} {"set": {"query": "Name the object class of the image with a bounding (422, 63, 77, 363).", "pos": ["image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;"], "neg": ["images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "image numbers that contain the \"paint\" object refer to IMG_ID where OBJ_CLASS = 'paint';", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "bounding box refers to X, Y, W, H from IMG_OBJ; lowest relates to the height of the bounding box which refers to MIN(H);", "image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1"]}} {"set": {"query": "Count the image numbers that contain the \"paint\" object.", "pos": ["image numbers that contain the \"paint\" object refer to IMG_ID where OBJ_CLASS = 'paint';"], "neg": ["prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050", "objects that have multiple relations refers to OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID; captions for the prediction class ids are \"on\" refers to PRED_CLASS = 'on'", "attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1", "prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341"]}} {"set": {"query": "List all the attribute classes of the images that have a (5,5) coordinate.", "pos": ["attribute classes refer to ATT_CLASS; (5,5) coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 5;"], "neg": ["bounding box of the object refers to (X, Y, W, H); sample no.7 on image no.42 refers to IMG_ID = 42 and OBJ_SAMPLE_ID = 7", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144"]}} {"set": {"query": "Name the object class of the image with lowest bounding box.", "pos": ["bounding box refers to X, Y, W, H from IMG_OBJ; lowest relates to the height of the bounding box which refers to MIN(H);"], "neg": ["pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';", "relationship refers to PRED_CLASS; object sample no.12 and no.8 of image no.2345511 refers to IMG_ID = 2345511 AND OBJ1_SAMPLE_ID = 12 AND OBJ2_SAMPLE_ID = 8", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "samples of clouds refer to IMG_ID where OBJ_CLASS = 'cloud'; image no.2315533 refers to IMG_ID = 2315533;", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;"]}} {"set": {"query": "How many attributes are related to the object sample no. 7 on image no. 4?", "pos": ["How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7"], "neg": ["images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "bounding box refers to X, Y, W, H from IMG_OBJ; lowest relates to the height of the bounding box which refers to MIN(H);", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;"]}} {"set": {"query": "What is the caption for the prediction class id 12?", "pos": ["caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;"], "neg": ["unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'", "white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915", "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1", "image numbers that contain the \"paint\" object refer to IMG_ID where OBJ_CLASS = 'paint';", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;"]}} {"set": {"query": "How many images have less than 15 object samples?", "pos": ["images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;"], "neg": ["explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';"]}} {"set": {"query": "How many samples of clouds are there in the image no.2315533?", "pos": ["samples of clouds refer to IMG_ID where OBJ_CLASS = 'cloud'; image no.2315533 refers to IMG_ID = 2315533;"], "neg": ["unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050", "attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "attribute classes refer to ATT_CLASS; (5,5) coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 5;"]}} {"set": {"query": "List the object sample IDs of image ID 17 with coordinates (0,0).", "pos": ["object sample ID refers to OBJ_SAMPLE_ID; image ID 17 refers to IMG_ID = 17; coordinates (0,0) refer to X and Y coordinates of the bounding box where X = 0 and Y = 0;"], "neg": ["images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "DIVIDE(COUNT(IMG_ID where OBJ_CLASS = 'man'), COUNT(IMG_ID where OBJ_CLASS = 'person'));", "images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "object samples refers to OBJ_CLASS_ID; image no.1 refers to IMG_ID = 1; in the class of \"man\" refers to OBJ_CLASS = 'man'", "widest relates to the width of the bounding\nbox of the object which refers to MAX(W); object in image 8 refers to OBJ_SAMPLE_ID where IMG_ID = 8;", "bounding box refers to X, Y, W, H from IMG_OBJ; lowest relates to the height of the bounding box which refers to MIN(H);"]}} {"set": {"query": "Which images have more than 20 object samples?", "pos": ["images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;"], "neg": ["images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "object in image 5 refers to OBJ_SAMPLE_ID where IMG_ID = 5; coordinates of (634, 468) refer to X and Y coordinates of the bounding box in which X = 634 and Y = 468;", "images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25", "image numbers that contain the \"paint\" object refer to IMG_ID where OBJ_CLASS = 'paint';", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050"]}} {"set": {"query": "What are the corresponding classes for the \"very large bike\" attribute?", "pos": ["attribute refers to ATT_CLASS"], "neg": ["prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)", "How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'", "attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1", "pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'"]}} {"set": {"query": "How many images have an x-coordinate of 5 and y-coordinate of 5?", "pos": ["X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;"], "neg": ["AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "widest relates to the width of the bounding\nbox of the object which refers to MAX(W); object in image 8 refers to OBJ_SAMPLE_ID where IMG_ID = 8;", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';"]}} {"set": {"query": "List all the ids of the images that have a self-relation relationship.", "pos": ["ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID"], "neg": ["The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "object class of the image refers to OBJ_CLASS; bounding box of 0, 0, 135, 212 refers to X = 0 AND Y = 0 AND W = 135 AND H = 212", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;"]}} {"set": {"query": "What is the percentage of the object samples in the class of \"man\" in image no.1?", "pos": ["object samples refers to OBJ_SAMPLE_ID; class of \"man\" refers to OBJ_CLASS = 'man'; image no.1 refers to IMG_ID = 1; percentage = divide(count(OBJ_SAMPLE_ID)when OBJ_CLASS = 'man', count(OBJ_SAMPLE_ID)) as percentage"], "neg": ["attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "object samples refers to OBJ_CLASS_ID; image no.1 refers to IMG_ID = 1; in the class of \"man\" refers to OBJ_CLASS = 'man'", "bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "object in image 5 refers to OBJ_SAMPLE_ID where IMG_ID = 5; coordinates of (634, 468) refer to X and Y coordinates of the bounding box in which X = 634 and Y = 468;", "images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "DIVIDE(COUNT(IMG_ID where OBJ_CLASS = 'man'), COUNT(IMG_ID where OBJ_CLASS = 'person'));"]}} {"set": {"query": "Give the number of images containing the object sample of \"suit\".", "pos": ["number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'"], "neg": ["relationship refers to PRED_CLASS; object sample no.12 and no.8 of image no.2345511 refers to IMG_ID = 2345511 AND OBJ1_SAMPLE_ID = 12 AND OBJ2_SAMPLE_ID = 8", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "object number of the sample refers to OBJ1_SAMPLE_ID; object sample no.1 from image no.2345524 refers to OBJ2_SAMPLE_ID = 1 and IMG_ID = 2345524", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';"]}} {"set": {"query": "What is the prediction relationship class id of the tallest image?", "pos": ["prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)"], "neg": ["object number of the sample refers to OBJ1_SAMPLE_ID; object sample no.1 from image no.2345524 refers to OBJ2_SAMPLE_ID = 1 and IMG_ID = 2345524", "pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'", "images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "widest relates to the width of the bounding\nbox of the object which refers to MAX(W); object in image 8 refers to OBJ_SAMPLE_ID where IMG_ID = 8;", "attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25", "unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'"]}} {"set": {"query": "In the Y coordinate of image ID 12, how many are 0?", "pos": ["Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;"], "neg": ["samples of clouds refer to IMG_ID where OBJ_CLASS = 'cloud'; image no.2315533 refers to IMG_ID = 2315533;", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "predicted relation classes refers to PRED_CLASS; object sample no.14 in image no.1 refers to OBJ1_SAMPLE_ID = 14 AND OBJ2_SAMPLE_ID = 14 and IMG_ID = 1", "widest relates to the width of the bounding\nbox of the object which refers to MAX(W); object in image 8 refers to OBJ_SAMPLE_ID where IMG_ID = 8;", "image numbers that contain the \"paint\" object refer to IMG_ID where OBJ_CLASS = 'paint';"]}} {"set": {"query": "How many images have at least one pair of object samples with the relation \"parked on\"?", "pos": ["How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'"], "neg": ["Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "relationship refers to PRED_CLASS; object sample no.12 and no.8 of image no.2345511 refers to IMG_ID = 2345511 AND OBJ1_SAMPLE_ID = 12 AND OBJ2_SAMPLE_ID = 8", "attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;", "pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'", "onion category refers to OBJ_CLASS = 'onion';", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;"]}} {"set": {"query": "How many samples of food object are there in image no.6?", "pos": ["samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6"], "neg": ["object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';"]}} {"set": {"query": "Give the X and Y coordinates of the sample object of image ID 23 that has the 'cast' attribute class.", "pos": ["X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';"], "neg": ["has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "bounding box of the object refers to (X, Y, W, H); sample no.7 on image no.42 refers to IMG_ID = 42 and OBJ_SAMPLE_ID = 7", "onion category refers to OBJ_CLASS = 'onion';", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "objects that have multiple relations refers to OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID; captions for the prediction class ids are \"on\" refers to PRED_CLASS = 'on'", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1"]}} {"set": {"query": "To which predicted relation class does the self-relation of the object sample in image no.5 belong?", "pos": ["predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5"], "neg": ["dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "objects that have multiple relations refers to OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID; captions for the prediction class ids are \"on\" refers to PRED_CLASS = 'on'", "colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "predicted relation classes refers to PRED_CLASS; object sample no.14 in image no.1 refers to OBJ1_SAMPLE_ID = 14 AND OBJ2_SAMPLE_ID = 14 and IMG_ID = 1", "image numbers that contain the \"paint\" object refer to IMG_ID where OBJ_CLASS = 'paint';", "object samples refers to OBJ_SAMPLE_ID; class of \"man\" refers to OBJ_CLASS = 'man'; image no.1 refers to IMG_ID = 1; percentage = divide(count(OBJ_SAMPLE_ID)when OBJ_CLASS = 'man', count(OBJ_SAMPLE_ID)) as percentage", "widest relates to the width of the bounding\nbox of the object which refers to MAX(W); object in image 8 refers to OBJ_SAMPLE_ID where IMG_ID = 8;"]}} {"set": {"query": "How many images have \"keyboard\" as their object class?", "pos": ["images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';"], "neg": ["object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "object samples refers to OBJ_CLASS_ID; image no.1 refers to IMG_ID = 1; in the class of \"man\" refers to OBJ_CLASS = 'man'", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));", "attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'"]}} {"set": {"query": "Calculate the average number of images with an attribute class of \"keyboard\".", "pos": ["AVG(IMG_ID) where OBJ_CLASS = 'keyboard';"], "neg": ["samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "object class of the image refers to OBJ_CLASS; bounding box of 0, 0, 135, 212 refers to X = 0 AND Y = 0 AND W = 135 AND H = 212", "attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6"]}} {"set": {"query": "List all the ID of the images that have an attribute class of \"horse\".", "pos": ["ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';"], "neg": ["images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'", "DIVIDE(SUM(OBJ_SAMPLE_ID where OBJ_CLASS = 'airplane'), COUNT(OBJ_CLASS)) as percentage;", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "object number of the sample refers to OBJ1_SAMPLE_ID; object sample no.1 from image no.2345524 refers to OBJ2_SAMPLE_ID = 1 and IMG_ID = 2345524", "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))"]}} {"set": {"query": "How many images have over 20 object samples?", "pos": ["over 20 object samples refers to COUNT(OBJ_SAMPLE_ID) > 20"], "neg": ["has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "object samples refers to OBJ_CLASS_ID; image no.1 refers to IMG_ID = 1; in the class of \"man\" refers to OBJ_CLASS = 'man'", "How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'", "object in image 5 refers to OBJ_SAMPLE_ID where IMG_ID = 5; coordinates of (634, 468) refer to X and Y coordinates of the bounding box in which X = 634 and Y = 468;", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0"]}} {"set": {"query": "Find the object in image 5 where the object with the coordinate of (634, 468).", "pos": ["object in image 5 refers to OBJ_SAMPLE_ID where IMG_ID = 5; coordinates of (634, 468) refer to X and Y coordinates of the bounding box in which X = 634 and Y = 468;"], "neg": ["ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1", "bounding box of the object refers to (X, Y, W, H); sample no.7 on image no.42 refers to IMG_ID = 42 and OBJ_SAMPLE_ID = 7", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';"]}} {"set": {"query": "Which object classes belong to the onion category?", "pos": ["onion category refers to OBJ_CLASS = 'onion';"], "neg": ["Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1", "unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'"]}} {"set": {"query": "On image no. 20, identify the attribute ID that is composed of the highest number of objects.", "pos": ["image no. 20 refers to IMG_ID = 20; attribute ID refers to ATT_CLASS_ID; highest number of objects refers to max(count(ATT_CLASS_ID))"], "neg": ["object sample ID refers to OBJ_SAMPLE_ID; image ID 17 refers to IMG_ID = 17; coordinates (0,0) refer to X and Y coordinates of the bounding box where X = 0 and Y = 0;", "have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "attribute classes refer to ATT_CLASS; (5,5) coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 5;", "attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';", "image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079"]}} {"set": {"query": "What is the unique id number identifying the onion object class?", "pos": ["unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'"], "neg": ["bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "image no. 20 refers to IMG_ID = 20; attribute ID refers to ATT_CLASS_ID; highest number of objects refers to max(count(ATT_CLASS_ID))", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';"]}} {"set": {"query": "Name number of samples of \"bed\" object are there in the image No.1098?", "pos": ["samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;"], "neg": ["images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "object sample ID refers to OBJ_SAMPLE_ID; image ID 17 refers to IMG_ID = 17; coordinates (0,0) refer to X and Y coordinates of the bounding box where X = 0 and Y = 0;", "attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;", "object class of the image refers to OBJ_CLASS; bounding box of 0, 0, 135, 212 refers to X = 0 AND Y = 0 AND W = 135 AND H = 212", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';"]}} {"set": {"query": "What is the predicate class of image ID 68?", "pos": ["predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;"], "neg": ["attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1", "images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;", "object in image 5 refers to OBJ_SAMPLE_ID where IMG_ID = 5; coordinates of (634, 468) refer to X and Y coordinates of the bounding box in which X = 634 and Y = 468;", "attribute refers to ATT_CLASS", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "attribute classes refer to ATT_CLASS; (5,5) coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 5;", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3"]}} {"set": {"query": "Which object in image 8 is the widest? State its object sample ID.", "pos": ["widest relates to the width of the bounding\nbox of the object which refers to MAX(W); object in image 8 refers to OBJ_SAMPLE_ID where IMG_ID = 8;"], "neg": ["AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';", "attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25"]}} {"set": {"query": "What is the relationship between \"feathers\" and \"onion\" in image no.2345528?", "pos": ["relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'"], "neg": ["X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;", "attribute refers to ATT_CLASS", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';", "images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;", "pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'", "object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1"]}} {"set": {"query": "What are the bounding boxes of the object samples with a predicted relation class of \"by\" in image no.1?", "pos": ["bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1"], "neg": ["image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;", "bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "DIVIDE(COUNT(IMG_ID where OBJ_CLASS = 'man'), COUNT(IMG_ID where OBJ_CLASS = 'person'));", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';", "colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1"]}} {"set": {"query": "How many self-relations are there between the object samples in image no.5?", "pos": ["self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5"], "neg": ["bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "bounding box of the object refers to (X, Y, W, H); sample no.7 on image no.42 refers to IMG_ID = 42 and OBJ_SAMPLE_ID = 7", "images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';"]}} {"set": {"query": "How many images have at least 5 \"black\" classes?", "pos": ["images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5"], "neg": ["object number of the sample refers to OBJ1_SAMPLE_ID; object sample no.1 from image no.2345524 refers to OBJ2_SAMPLE_ID = 1 and IMG_ID = 2345524", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "over 20 object samples refers to COUNT(OBJ_SAMPLE_ID) > 20", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "object samples refers to OBJ_SAMPLE_ID; class of \"man\" refers to OBJ_CLASS = 'man'; image no.1 refers to IMG_ID = 1; percentage = divide(count(OBJ_SAMPLE_ID)when OBJ_CLASS = 'man', count(OBJ_SAMPLE_ID)) as percentage", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144"]}} {"set": {"query": "List all the attribute classes of the image ID \"15\".", "pos": ["attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;"], "neg": ["bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "objects that have multiple relations refers to OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID; captions for the prediction class ids are \"on\" refers to PRED_CLASS = 'on'", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;", "bounding box refers to X, Y, W, H from IMG_OBJ; lowest relates to the height of the bounding box which refers to MIN(H);", "DIVIDE(COUNT(IMG_ID where OBJ_CLASS = 'man'), COUNT(IMG_ID where OBJ_CLASS = 'person'));", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';", "relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050"]}} {"set": {"query": "List all the IDs of images that have objects with the attributes of 'wired'.", "pos": ["IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';"], "neg": ["images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "object samples refers to OBJ_CLASS_ID; image no.1 refers to IMG_ID = 1; in the class of \"man\" refers to OBJ_CLASS = 'man'", "object number of the sample refers to OBJ1_SAMPLE_ID; object sample no.1 from image no.2345524 refers to OBJ2_SAMPLE_ID = 1 and IMG_ID = 2345524", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "samples of clouds refer to IMG_ID where OBJ_CLASS = 'cloud'; image no.2315533 refers to IMG_ID = 2315533;", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;"]}} {"set": {"query": "Calculate the ratio of the total number of images with an object class of \"man\" and \"person\".", "pos": ["DIVIDE(COUNT(IMG_ID where OBJ_CLASS = 'man'), COUNT(IMG_ID where OBJ_CLASS = 'person'));"], "neg": ["onion category refers to OBJ_CLASS = 'onion';", "DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", "samples of clouds refer to IMG_ID where OBJ_CLASS = 'cloud'; image no.2315533 refers to IMG_ID = 2315533;", "relationship refers to PRED_CLASS; object sample no.12 and no.8 of image no.2345511 refers to IMG_ID = 2345511 AND OBJ1_SAMPLE_ID = 12 AND OBJ2_SAMPLE_ID = 8", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'", "image numbers that contain the \"paint\" object refer to IMG_ID where OBJ_CLASS = 'paint';"]}} {"set": {"query": "How many images have at least 25 attributes?", "pos": ["images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25"], "neg": ["relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "samples of clouds refer to IMG_ID where OBJ_CLASS = 'cloud'; image no.2315533 refers to IMG_ID = 2315533;", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "object class of the image refers to OBJ_CLASS; bounding box of 0, 0, 135, 212 refers to X = 0 AND Y = 0 AND W = 135 AND H = 212", "prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)", "images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage", "attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;", "over 20 object samples refers to COUNT(OBJ_SAMPLE_ID) > 20", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5"]}} {"set": {"query": "Calculate the average of object samples for the image.", "pos": ["DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));"], "neg": ["object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "widest relates to the width of the bounding\nbox of the object which refers to MAX(W); object in image 8 refers to OBJ_SAMPLE_ID where IMG_ID = 8;", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;", "prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;"]}} {"set": {"query": "How many object elements are there on average in each image?", "pos": ["object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))"], "neg": ["widest relates to the width of the bounding\nbox of the object which refers to MAX(W); object in image 8 refers to OBJ_SAMPLE_ID where IMG_ID = 8;", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "object number of the sample refers to OBJ1_SAMPLE_ID; object sample no.1 from image no.2345524 refers to OBJ2_SAMPLE_ID = 1 and IMG_ID = 2345524", "white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915", "bounding box of the object refers to (X, Y, W, H); sample no.7 on image no.42 refers to IMG_ID = 42 and OBJ_SAMPLE_ID = 7", "DIVIDE(COUNT(IMG_ID where OBJ_CLASS = 'man'), COUNT(IMG_ID where OBJ_CLASS = 'person'));", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;", "DIVIDE(SUM(OBJ_SAMPLE_ID where OBJ_CLASS = 'airplane'), COUNT(OBJ_CLASS)) as percentage;", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31"]}} {"set": {"query": "Name the object element that is described as being scattered on image no. 10.", "pos": ["Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10"], "neg": ["coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1", "prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'", "DIVIDE(COUNT(IMG_ID where OBJ_CLASS = 'man'), COUNT(IMG_ID where OBJ_CLASS = 'person'));", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "predicted relation classes refers to PRED_CLASS; object sample no.14 in image no.1 refers to OBJ1_SAMPLE_ID = 14 AND OBJ2_SAMPLE_ID = 14 and IMG_ID = 1"]}} {"set": {"query": "What is the percentage of \"surface\" object samples in image No.2654?", "pos": ["DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;"], "neg": ["explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "predicted relation classes refers to PRED_CLASS; object sample no.14 in image no.1 refers to OBJ1_SAMPLE_ID = 14 AND OBJ2_SAMPLE_ID = 14 and IMG_ID = 1", "white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915", "How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;"]}} {"set": {"query": "How many images have at least one object sample in the class of \"man\"?", "pos": ["have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1"], "neg": ["attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "attribute refers to ATT_CLASS", "object samples refers to OBJ_SAMPLE_ID; class of \"man\" refers to OBJ_CLASS = 'man'; image no.1 refers to IMG_ID = 1; percentage = divide(count(OBJ_SAMPLE_ID)when OBJ_CLASS = 'man', count(OBJ_SAMPLE_ID)) as percentage", "relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "relationship refers to PRED_CLASS; object sample no.12 and no.8 of image no.2345511 refers to IMG_ID = 2345511 AND OBJ1_SAMPLE_ID = 12 AND OBJ2_SAMPLE_ID = 8", "attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144"]}} {"set": {"query": "Give the object number of the sample which has the relationship of \"lying on\" with object sample no.1 from image no.2345524.", "pos": ["object number of the sample refers to OBJ1_SAMPLE_ID; object sample no.1 from image no.2345524 refers to OBJ2_SAMPLE_ID = 1 and IMG_ID = 2345524"], "neg": ["samples of clouds refer to IMG_ID where OBJ_CLASS = 'cloud'; image no.2315533 refers to IMG_ID = 2315533;", "Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3"]}} {"set": {"query": "Provide the x-coordinate and y-coordinate of the image with an attribute class of ''horse\" and an object class of \"fur\".", "pos": ["attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';"], "neg": ["object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "attribute refers to ATT_CLASS", "attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';"]}} {"set": {"query": "How many object elements can be detected on image no. 31?", "pos": ["How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31"], "neg": ["white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'", "object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1", "image no. 20 refers to IMG_ID = 20; attribute ID refers to ATT_CLASS_ID; highest number of objects refers to max(count(ATT_CLASS_ID))", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;", "images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5"]}} {"set": {"query": "Define the bounding box of the object sample no. 7 on image no. 42.", "pos": ["bounding box of the object refers to (X, Y, W, H); sample no.7 on image no.42 refers to IMG_ID = 42 and OBJ_SAMPLE_ID = 7"], "neg": ["images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "attribute refers to ATT_CLASS", "DIVIDE(COUNT(IMG_ID where OBJ_CLASS = 'man'), COUNT(IMG_ID where OBJ_CLASS = 'person'));", "ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "samples of clouds refer to IMG_ID where OBJ_CLASS = 'cloud'; image no.2315533 refers to IMG_ID = 2315533;", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'"]}} {"set": {"query": "Please list all the predicted relation classes of object sample no.14 in image no.1.", "pos": ["predicted relation classes refers to PRED_CLASS; object sample no.14 in image no.1 refers to OBJ1_SAMPLE_ID = 14 AND OBJ2_SAMPLE_ID = 14 and IMG_ID = 1"], "neg": ["images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;", "ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));", "have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "object sample ID refers to OBJ_SAMPLE_ID; image ID 17 refers to IMG_ID = 17; coordinates (0,0) refer to X and Y coordinates of the bounding box where X = 0 and Y = 0;", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050"]}} {"set": {"query": "What is the bounding box of the object sample in image no.5 that has a self-relation?", "pos": ["bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID"], "neg": ["attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'", "images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "classes for attributes refers to ATT_CLASS; image id 8 refers to IMG_ID = 8", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;"]}} {"set": {"query": "How many 'blue' attribute classes are there on image ID 2355735?", "pos": ["blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;"], "neg": ["attribute refers to ATT_CLASS", "image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "objects that have multiple relations refers to OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID; captions for the prediction class ids are \"on\" refers to PRED_CLASS = 'on'", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "DIVIDE(SUM(OBJ_SAMPLE_ID where OBJ_CLASS = 'airplane'), COUNT(OBJ_CLASS)) as percentage;", "DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));"]}} {"set": {"query": "What is the relation between object sample no.8 and object sample no.4 in image no.1?", "pos": ["relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1"], "neg": ["images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'", "ID of all images refer to IMG_ID; attribute class of \"horse\" refers to ATT_CLASS = 'horse';", "over 20 object samples refers to COUNT(OBJ_SAMPLE_ID) > 20", "bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5"]}} {"set": {"query": "What is the object class of the image with a bounding box of 0, 0, 135, 212?", "pos": ["object class of the image refers to OBJ_CLASS; bounding box of 0, 0, 135, 212 refers to X = 0 AND Y = 0 AND W = 135 AND H = 212"], "neg": ["attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6"]}} {"set": {"query": "How many 'has' predicate classes does image ID 107 have?", "pos": ["has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;"], "neg": ["prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'", "relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';"]}} {"set": {"query": "Which object has the highest attribute classes?", "pos": ["object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));"], "neg": ["images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "image numbers that contain the \"paint\" object refer to IMG_ID where OBJ_CLASS = 'paint';", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1"]}} {"set": {"query": "What colour is the van that can be spotted in image no. 1?", "pos": ["colour refers to ATT_CLASS; van refers to OBJ_CLASS = 'van'; image no. 1 refers to IMG_ID = 1"], "neg": ["X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "object samples refers to OBJ_SAMPLE_ID; class of \"man\" refers to OBJ_CLASS = 'man'; image no.1 refers to IMG_ID = 1; percentage = divide(count(OBJ_SAMPLE_ID)when OBJ_CLASS = 'man', count(OBJ_SAMPLE_ID)) as percentage", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "onion category refers to OBJ_CLASS = 'onion';", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;", "number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;"]}} {"set": {"query": "Write 10 coordinates with the object class \"pizza.\"", "pos": ["coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';"], "neg": ["relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1", "number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'", "objects that have multiple relations refers to OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID; captions for the prediction class ids are \"on\" refers to PRED_CLASS = 'on'", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "images refers to IMG_ID; have at least 25 attributes refers to count(ATT_CLASS_ID) > = 25", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;"]}} {"set": {"query": "List all the explanations about object classes of all the images with an x and y coordinate of 0.", "pos": ["explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0"], "neg": ["onion category refers to OBJ_CLASS = 'onion';", "widest relates to the width of the bounding\nbox of the object which refers to MAX(W); object in image 8 refers to OBJ_SAMPLE_ID where IMG_ID = 8;", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'", "image no. 20 refers to IMG_ID = 20; attribute ID refers to ATT_CLASS_ID; highest number of objects refers to max(count(ATT_CLASS_ID))", "attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050", "over 20 object samples refers to COUNT(OBJ_SAMPLE_ID) > 20", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage", "classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1"]}} {"set": {"query": "Please list the classes of all the object samples in image no.1.", "pos": ["classes of all the object samples refers to OBJ_CLASS; image no.1 refers to IMG_ID = 1"], "neg": ["self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "AVG(IMG_ID) where OBJ_CLASS = 'keyboard';", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "predicted relation classes refers to PRED_CLASS; object sample no.14 in image no.1 refers to OBJ1_SAMPLE_ID = 14 AND OBJ2_SAMPLE_ID = 14 and IMG_ID = 1"]}} {"set": {"query": "Count the number of 'dress' object classes and include their X and Y coordinates in image ID 1764.", "pos": ["dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;"], "neg": ["predicted relation classes refers to PRED_CLASS; object sample no.14 in image no.1 refers to OBJ1_SAMPLE_ID = 14 AND OBJ2_SAMPLE_ID = 14 and IMG_ID = 1", "classes for attributes refers to ATT_CLASS; image id 8 refers to IMG_ID = 8", "object samples refers to OBJ_CLASS_ID; image no.1 refers to IMG_ID = 1; in the class of \"man\" refers to OBJ_CLASS = 'man'", "image numbers that contain the \"paint\" object refer to IMG_ID where OBJ_CLASS = 'paint';", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;"]}} {"set": {"query": "How many images have \"picture\" as their attribute class and \"bear\" as their object class?", "pos": ["\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;"], "neg": ["caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage", "prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)", "object in image 5 refers to OBJ_SAMPLE_ID where IMG_ID = 5; coordinates of (634, 468) refer to X and Y coordinates of the bounding box in which X = 634 and Y = 468;", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "attribute classes of the image ID \"15\" refer to ATT_CLASS where IMG_ID = 15;", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;", "ids of the images refers to IMG_ID; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID"]}} {"set": {"query": "How many object samples are there in image no.1?", "pos": ["object samples refers to OBJ_SAMPLE_ID; image no.1 refers to IMG_ID = 1"], "neg": ["How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'", "predicted relation classes refers to PRED_CLASS; object sample no.14 in image no.1 refers to OBJ1_SAMPLE_ID = 14 AND OBJ2_SAMPLE_ID = 14 and IMG_ID = 1", "IDs of images refer to IMG_ID; objects with the attributes of 'wired' refer to ATT_CLASS = 'wired';", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "object sample ID refers to OBJ_SAMPLE_ID; image ID 17 refers to IMG_ID = 17; coordinates (0,0) refer to X and Y coordinates of the bounding box where X = 0 and Y = 0;", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "classes for attributes refers to ATT_CLASS; image id 8 refers to IMG_ID = 8"]}} {"set": {"query": "Give all the bounding boxes for image 2222 whose object classes are feathers.", "pos": ["bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'"], "neg": ["X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;", "prediction relationship class id refers to PRED_CLASS_ID; tallest image refers to max(H)", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "bounding box of the object sample refers to (x, y, W, H); image no.5 refers to IMG_ID = 5; has a self-relation refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID", "number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'", "white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", "attribute refers to ATT_CLASS"]}} {"set": {"query": "How many samples of \"wall\" are there in image no.2353079?", "pos": ["samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079"], "neg": ["object samples refers to OBJ_SAMPLE_ID; class of \"man\" refers to OBJ_CLASS = 'man'; image no.1 refers to IMG_ID = 1; percentage = divide(count(OBJ_SAMPLE_ID)when OBJ_CLASS = 'man', count(OBJ_SAMPLE_ID)) as percentage", "explanations about distinct object classes refers to OBJ_CLASS; images refers to IMG_ID; x and y coordinate of 0 refers to X = 0 AND Y = 0", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "objects that have multiple relations refers to OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID; captions for the prediction class ids are \"on\" refers to PRED_CLASS = 'on'", "object class refers to OBJ_CLASS; sample no.10 refers to OBJ_SAMPLE_ID = 10; image no.2320341 refers to IMG_ID = 2320341", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'"]}} {"set": {"query": "List all the corresponding classes for attributes of image id 8.", "pos": ["classes for attributes refers to ATT_CLASS; image id 8 refers to IMG_ID = 8"], "neg": ["X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;", "bounding box refers to X, Y, W, H from IMG_OBJ; lowest relates to the height of the bounding box which refers to MIN(H);", "object sample ID refers to OBJ_SAMPLE_ID; image ID 17 refers to IMG_ID = 17; coordinates (0,0) refer to X and Y coordinates of the bounding box where X = 0 and Y = 0;", "relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1", "DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));", "onion category refers to OBJ_CLASS = 'onion';", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144"]}} {"set": {"query": "How many object samples in image no.1 are in the class of \"man\"?", "pos": ["object samples refers to OBJ_CLASS_ID; image no.1 refers to IMG_ID = 1; in the class of \"man\" refers to OBJ_CLASS = 'man'"], "neg": ["unique id number identifying refers to OBJ_CLASS_ID; onion object class refers to OBJ_CLASS = 'onion'", "object in image 5 refers to OBJ_SAMPLE_ID where IMG_ID = 5; coordinates of (634, 468) refer to X and Y coordinates of the bounding box in which X = 634 and Y = 468;", "images refer to IMG_ID; less than 15 object samples refer to COUNT(OBJ_SAMPLE_ID) < 15;", "X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "classes for attributes refers to ATT_CLASS; image id 8 refers to IMG_ID = 8", "blue' attribute classes on image ID 2355735 refer to ATT_CLASS = 'blue' where IMG_ID = 2355735;", "\"picture\" as attribute class refers to ATT_CLASS = 'picture'; \"bear\" as object class refers to OBJ_CLASS = 'bear'; images refer to IMG_ID;", "bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144", "samples of \"bed\" object refer to OBJ_SAMPLE_ID where OBJ_CLASS = 'bed'; image No.1098 refers to IMG_ID = 1098;", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;"]}} {"set": {"query": "How many images have \"vegetable\" and \"fruits\" as their object classes?", "pos": ["images refer to IMG_ID; \"vegetables\" and \"fruits\" as object classes refer to OBJ_CLASS = 'vegetables' and OBJ_CLASS = 'fruits';"], "neg": ["ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "predicted relation class refers to PRED_CLASS; self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "attribute classes refer to ATT_CLASS; (5,5) coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 5;", "DIVIDE(SUM(OBJ_SAMPLE_ID where OBJ_CLASS = 'airplane'), COUNT(OBJ_CLASS)) as percentage;", "image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'", "number of images refers to IMG_ID; object sample of \"suit\" refers to OBJ_CLASS = 'suit'"]}} {"set": {"query": "Among the objects that have multiple relations, how many images whose captions for the prediction class ids are \"on\"?", "pos": ["objects that have multiple relations refers to OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID; captions for the prediction class ids are \"on\" refers to PRED_CLASS = 'on'"], "neg": ["relation refers to PRED_CLASS; object sample no.8 and object sample no.4 refers to OBJ1_SAMPLE_ID = 8 AND OBJ2_SAMPLE_ID = 4; image no.1 refers to IMG_ID = 1", "coordinates for the object refer to X, Y, W and H coordinates of the bounding box; object class \"pizza\" refers to OBJ_CLASS = 'pizza';", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "relationship refers to PRED_CLASS; object sample no.12 and no.8 of image no.2345511 refers to IMG_ID = 2345511 AND OBJ1_SAMPLE_ID = 12 AND OBJ2_SAMPLE_ID = 8", "images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "object elements refers to OBJ_CLASS_ID; average = divide(count(OBJ_CLASS_ID), count(IMG_ID))", "pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;"]}} {"set": {"query": "On image no. 99 identify the percentage of objects that are described as white.", "pos": ["image no. 99 refers to IMG_ID = 99; described as white refers to ATT_CLASS = 'white'; percentage = divide(count(OBJ_SAMPLE_ID) where ATT_CLASS = 'white', count(OBJ_SAMPLE_ID)) as percentage"], "neg": ["over 20 object samples refers to COUNT(OBJ_SAMPLE_ID) > 20", "DIVIDE(COUNT(OBJ_SAMPLE_ID), COUNT(IMG_ID));", "attribute refers to ATT_CLASS", "Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "attributes of polka dot refer to ATT_CLASS = 'polka dot'; images refer to IMG_ID;", "images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "relationship refers to PRED_CLASS; \"feathers\" and \"onion\" in image no.2345528 refers to IMG_ID = 2345528 and OBJ_CLASS = 'feathers' and OBJ_CLASS = 'onion'", "X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "DIVIDE(SUM(OBJ_CLASS_ID where OBJ_CLASS = 'surface'), COUNT(OBJ_CLASS_ID)) as percentage where IMG_ID = 2654;"]}} {"set": {"query": "How many images have a total of 10 attribute classes?", "pos": ["images refer to IMG_ID; total of 10 attribute classes refers to COUNT(OBJ_CLASS_ID) = 10;"], "neg": ["images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "object class of the image refers to OBJ_CLASS; bounding box of 0, 0, 135, 212 refers to X = 0 AND Y = 0 AND W = 135 AND H = 212", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "pairs of object samples refers to OBJ1_SAMPLE_ID and OBJ2_SAMPLE_ID; image no.1 refers to IMG_ID = 1; relation of \"parked on\" refers to PRED_CLASS = 'parked on'", "dimensions of the bounding box refers to (W, H); keyboard refers to OBJ_CLASS = 'keyboard'; image no. 3 refers to IMG_ID = 3", "images refers to IMG_ID; have at least 5 \"black\" classes refers to count(ATT_CLASS_ID) where ATT_CLASS = 'black' > = 5", "objects that have multiple relations refers to OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID; captions for the prediction class ids are \"on\" refers to PRED_CLASS = 'on'", "self-relations refers to OBJ1_SAMPLE_ID = OBJ2_SAMPLE_ID; image no.5 refers to IMG_ID = 5", "object has the highest attribute classes refers to OBJ_SAMPLE_ID where MAX(COUNT(OBJ_SAMPLE_ID));", "The bounding box's W and H abbreviations stand for the object's width and height respectively; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard'; (5, 647) as coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 647;"]}} {"set": {"query": "What is the bounding box of the object with image id 4 and a prediction relationship class id of 144?", "pos": ["bounding box of the object refers to (x, y, W, H); image id refers to IMG_ID; prediction relationship class id of 144 refers to PRED_CLASS_ID = 144"], "neg": ["image with a bounding (422, 63, 77, 363) refers to OBJ_CLASS_ID where X = 422 and Y = 63 and W = 77 and H = 363;", "images refer to IMG_ID; \"keyboard\" as object class refers to OBJ_CLASS = 'keyboard';", "X and Y refer to coordinates of the bounding box; image ID 23 refers to IMG_ID = 23; 'cast' attribute class refers to ATT_CLASS = 'cast';", "samples of food object refers to OBJ_CLASS = 'food'; image no.6 refers to IMG_ID = 6", "bounding boxes of the object samples refers to (x, y, W, H); predicted relation class of \"by\" refers to PRED_CLASS = 'by'; image no.1 refers to IMG_ID = 1", "images have more than 20 object samples refer to IMG_ID where COUNT(OBJ_SAMPLE_ID) > 20;", "How many object elements refers to OBJ_CLASS_ID; image no. 31 refers to IMG_ID = 31", "How many attributes refers to ATT_CLASS_ID; object sample no. 7 on image no. 4 refers to IMG_ID = 4 and OBJ_SAMPLE_ID = 7", "attribute classes refer to ATT_CLASS; (5,5) coordinate refers to X and Y coordinates of the bounding box where X = 5 and Y = 5;", "How many images have at least one pair of object samples with the relation \"parked on\" refers to count(IMG_ID) where OBJ1_SAMPLE_ID ! = OBJ2_SAMPLE_ID and PRED_CLASS = 'parked on'"]}} {"set": {"query": "How many prediction classes with \"has\" captions are there for image id 3050?", "pos": ["prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050"], "neg": ["ID of all images refer to IMG_ID; if two objects (OBJ1_SAMPLE_ID,\nOBJ2_SAMPLE_ID) has\nmultiple PRED_CLASS_ID, it\nmeans these two objects\nhave multiple relations;", "have at least one object sample in the class of \"man\" refers to count(IMG_ID where OBJ_CLASS = 'man') > = 1", "attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;", "object sample ID refers to OBJ_SAMPLE_ID; image ID 17 refers to IMG_ID = 17; coordinates (0,0) refer to X and Y coordinates of the bounding box where X = 0 and Y = 0;", "Y coordinate many are 0 refers to Y coordinates of the bounding box where Y = 0; image ID 12 refers to IMG_ID = 12;", "predicate class of image ID 68 refers to PRED_CLASS where IMG_ID = 68;", "bounding boxes refers to (x, y, W, H); image 2222 refers to IMG_ID = 2222; object classes are feathers refers to OBJ_CLASS = 'feathers'", "Name the object element refers to OBJ_CLASS; scattered refers to ATT_CLASS = 'scattered'; image no. 10 refers to IMG_ID = 10", "attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "caption for the prediction class id 12 refers to PRED_CLASS where PRED_CLASS_ID = 12;"]}} {"set": {"query": "List all the attribute classes of image ID 22.", "pos": ["attribute classes of image ID 22 refer to ATT_CLASS where MG_ID = 22;"], "neg": ["has' predicate classes refers to PRED_CLASS = 'has'; image ID 107 refers to IMG_ID = 107;", "dress' object classes refer to OBJ_CLASS = 'dress'; image ID 1764 refers to IMG_ID = 1764; X and Y refer to coordinates of the bounding box;", "predicted relation classes refers to PRED_CLASS; object sample no.14 in image no.1 refers to OBJ1_SAMPLE_ID = 14 AND OBJ2_SAMPLE_ID = 14 and IMG_ID = 1", "attribute class of \"horse\" refers to ATT_CLASS = 'horse'; object class of \"fur\" refers to OBJ_CLASS = 'fur';", "DIVIDE(SUM(OBJ_SAMPLE_ID where OBJ_CLASS = 'airplane'), COUNT(OBJ_CLASS)) as percentage;", "prediction classes with \"has\" captions refers to PRED_CLASS = 'has'; image id 3050 refers to IMG_ID = 3050", "object samples refers to OBJ_SAMPLE_ID; class of \"man\" refers to OBJ_CLASS = 'man'; image no.1 refers to IMG_ID = 1; percentage = divide(count(OBJ_SAMPLE_ID)when OBJ_CLASS = 'man', count(OBJ_SAMPLE_ID)) as percentage", "white objects refers to ATT_CLASS = 'white'; image no.2347915 refers to IMG_ID = 2347915", "samples of \"wall\" refers to OBJ_SAMPLE_ID and OBJ_CLASS = 'wall' ; image no.2353079 refers to IMG_ID = 2353079", "X and Y refer to coordinates of the bounding box where X = 5 and Y = 5; images refer to IMG_ID;"]}} {"set": {"query": "What is the total occurrence of the biwords pairs with \"\u00e0bac\" as its first word?", "pos": ["occurrence refers to occurrences; \u00e0bac refers to word = '\u00e0bac'; first word refers to w1st"], "neg": ["title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;", "appearance times greater than 10 refers to occurrences > 10;", "word ID refers to wid; periodograma refers to word = 'periodograma'", "word id refers to wid", "average words = avg(words); 10 fewest words refers to words > = 10", "lid = 1 means it's Catalan language; with most different words refers to MAX(words)", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')", "word have id less than 20 refers to wid < 20;"]}} {"set": {"query": "In the Catalan language, which biwords pair appeared the most in this language/page?", "pos": ["biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences)"], "neg": ["page titled \"Anys 90\" refers to title = 'Anys 90';", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "word id refers to wid", "riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "most frequently occurring words refer to MAX(occurrences); id refers to wid;"]}} {"set": {"query": "What is the average occurrence of the word \"grec\" on each Wikipedia page that has this word?", "pos": ["grec refers to word = 'grec'; AVG(occurrences where word = 'grec')"], "neg": ["average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "has the fewest words refers to MIN(COUNT(words));", "How many times refers to occurrences; page number 44 refers to pid = 44;", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "has 71303 appearance refers to occurrences = 71303;", "page titled \"Anys 90\" refers to title = 'Anys 90';", "\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st"]}} {"set": {"query": "What is the title of Catalan language wikipedia page with revision page id '16203226'?", "pos": ["revision page id '16203226' refers to revision = 16203226"], "neg": ["\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "How many times refers to occurrences; page number 44 refers to pid = 44;", "appearance times greater than 10 refers to occurrences > 10;", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "most frequently occurring words refer to MAX(occurrences); id refers to wid;", "word number 8 refers to wid = 8; How many times refer to occurrences;", "has the fewest words refers to MIN(COUNT(words));", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "repeated the most times refer to MAX(occurrences);"]}} {"set": {"query": "Calculate the average number of different words that appear on all pages whose title begins with A.", "pos": ["DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;"], "neg": ["start with alphabet \"b\" refers to title LIKE 'b%'", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'", "riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 8968;", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;"]}} {"set": {"query": "How many words have repetitions greater than 2000 and lower than 5000?", "pos": ["repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000;"], "neg": ["Wikipedia page number refers to page; title = 'Acampada';", "repeated the most times refer to MAX(occurrences);", "the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences", "riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "the word \"grec\" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52"]}} {"set": {"query": "How many times does the Catalan word \"nombre\" repeat itself?", "pos": ["the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;"], "neg": ["occurrence of over 200000 refers to occurrences > 200000;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 8968;", "How many times refers to occurrences; page number 44 refers to pid = 44;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499", "longest title refers to max(length(title))", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "appearance times greater than 10 refers to occurrences > 10;", "most frequently occurring words refer to MAX(occurrences); id refers to wid;"]}} {"set": {"query": "Calculate the percentage of times that the same word appears in a pair.", "pos": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;"], "neg": ["the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "This is not", "Catalan language refers to lang = 'ca'", "the page titled \"Abril\" refers to title = 'Abril';", "Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "page id refers to pid; \"fresc\" refers to word = 'fresc'", "lid = 1 means it's Catalan language; with most different words refers to MAX(words)", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "word id refers to wid"]}} {"set": {"query": "List all the first words of the biwords pair where the second word is 'antic'.", "pos": ["first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'"], "neg": ["word number 8 refers to wid = 8; How many times refer to occurrences;", "Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "revision page id of 28040864 refers to revision = 28040864;", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)", "lid = 1 means it's Catalan language; with most different words refers to MAX(words)", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\""]}} {"set": {"query": "Which word has the most occurrences within the same page of wikipedia about Catalan language?", "pos": ["most occurrences refers to max(occurrences)"], "neg": ["word id \"88\" refers to wid = 88", "most frequently occurring words refer to MAX(occurrences); id refers to wid;", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;", "page titled \"Asclepi\" refers to title = 'Asclepi' ;", "revision page id '16203226' refers to revision = 16203226", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')"]}} {"set": {"query": "How many times does the biwords \"que gregorio\" appear in the language?", "pos": ["que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences"], "neg": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'", "Wikipedia page number refers to page; title = 'Acampada';", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;", "word 'quipu' appears refers to word = 'quipu'", "longest title refers to max(length(title))", "This is not;", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "Catalan language refers to lang = 'ca'"]}} {"set": {"query": "What is the revision page ID of title \"Aigua dol\u00c3\u00a7a\"?", "pos": ["title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'"], "neg": ["word 'quipu' appears refers to word = 'quipu'", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "has 71303 appearance refers to occurrences = 71303;", "between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "occurrence of over 200000 refers to occurrences > 200000;", "the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd"]}} {"set": {"query": "What is the locale of the language of the page titled \"Abril\"?", "pos": ["the page titled \"Abril\" refers to title = 'Abril';"], "neg": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "page titled \"Anys 90\" refers to title = 'Anys 90';", "longest title refers to max(length(title))", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)", "word id refers to wid", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'", "riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')"]}} {"set": {"query": "Please list all the biwords pairs with \"\u00e0bac\" as its first word.", "pos": ["\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st"], "neg": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 8968;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "page titled \"Anys 90\" refers to title = 'Anys 90';", "longest title refers to max(length(title))", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "revision page id of 28040864 refers to revision = 28040864;", "more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;"]}} {"set": {"query": "In Abadia, what is the word id of the of the Catalan language that appeared the highest amount of times? Indicate the how many times did they said word id appeared.", "pos": ["Abadia refers to title = 'Abadia'; word id refers to wid; the highest amount of times refers to max(occurrences)"], "neg": ["the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;", "average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'", "has 71303 appearance refers to occurrences = 71303;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;", "appearance times greater than 10 refers to occurrences > 10;"]}} {"set": {"query": "What are the titles of the top 5 Catalan language Wikipedia page with the least number of different words? Indicate each title's word id that has appeared the most in the said pages.", "pos": ["least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)"], "neg": ["\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)", "word 'quipu' appears refers to word = 'quipu'", "occurrence of over 200000 refers to occurrences > 200000;", "the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "average words = avg(words); 10 fewest words refers to words > = 10", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "longest title refers to max(length(title))", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "How many times refers to occurrences; page number 44 refers to pid = 44;"]}} {"set": {"query": "Is word id \"88\" the word id for title \"Animals\"?", "pos": ["word id \"88\" refers to wid = 88"], "neg": ["grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "occurrence of over 200000 refers to occurrences > 200000;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "most frequently occurring words refer to MAX(occurrences); id refers to wid;", "average words = avg(words); 10 fewest words refers to words > = 10", "the page titled \"Abril\" refers to title = 'Abril';", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision"]}} {"set": {"query": "What is the locale of the language of the page titled \"Anys 90\"?", "pos": ["page titled \"Anys 90\" refers to title = 'Anys 90';"], "neg": ["longest title refers to max(length(title))", "que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "word id refers to wid", "This is not", "Catalan language refers to lang = 'ca'", "the word \"grec\" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "word ID refers to wid; periodograma refers to word = 'periodograma'"]}} {"set": {"query": "What's the occurrence of the biwords pair whose first word is \"\u00e0bac\" and second word is \"xin\u00e8s\"?", "pos": ["\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences"], "neg": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "appearance times greater than 10 refers to occurrences > 10;", "grec refers to word = 'grec'; AVG(occurrences where word = 'grec')", "the word \"grec\" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52", "start with alphabet \"b\" refers to title LIKE 'b%'", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "most frequently occurring words refer to MAX(occurrences); id refers to wid;", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')"]}} {"set": {"query": "Which word that has 274499 repetitions in the Catalan language?", "pos": ["lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499"], "neg": ["most frequently occurring words refer to MAX(occurrences); id refers to wid;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;", "between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "Wikipedia page number refers to page; title = 'Acampada';", "Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences", "the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;", "\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10"]}} {"set": {"query": "List down the words with word id from 1 to 10 and write down a paired word for each of them.", "pos": ["word id from 1 to 10 refers to wid BETWEEN 1 AND 10"], "neg": ["revision page id '16203226' refers to revision = 16203226", "word id refers to wid", "has 71303 appearance refers to occurrences = 71303;", "the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd", "Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences", "occurrence refers to occurrences; \u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "This is not", "least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)"]}} {"set": {"query": "What is the language of the pair of words numbered 1 and 616?", "pos": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;"], "neg": ["This is not", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "appearance times greater than 10 refers to occurrences > 10;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "How many times refers to occurrences; page number 44 refers to pid = 44;", "repeated the most times refer to MAX(occurrences);", "revision page id '16203226' refers to revision = 16203226", "occurrence of over 200000 refers to occurrences > 200000;", "Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;"]}} {"set": {"query": "What proportion of a pair of words in the Catalan language have been repeated less than 80 times?", "pos": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;"], "neg": ["word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "most occurrences refers to max(occurrences)", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "nombre refers to word = 'nombre'; page IDs refers to pid", "word id \"88\" refers to wid = 88", "most frequently occurring words refer to MAX(occurrences); id refers to wid;", "Catalan language refers to lang = 'ca'", "word ID refers to wid; periodograma refers to word = 'periodograma'", "total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')"]}} {"set": {"query": "How many Catalan language wikipedia pages have between 1000 to 2000 number of different words?", "pos": ["between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000"], "neg": ["more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;", "How many times refers to occurrences; page number 44 refers to pid = 44;", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "appearance times greater than 10 refers to occurrences > 10;", "Catalan language refers to lang = 'ca'", "\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10", "How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "the word \"grec\" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52", "lid = 1 means it's Catalan language; with most different words refers to MAX(words)"]}} {"set": {"query": "State the word ID for \"periodograma\".", "pos": ["word ID refers to wid; periodograma refers to word = 'periodograma'"], "neg": ["lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "This is not", "Abadia refers to title = 'Abadia'; word id refers to wid; the highest amount of times refers to max(occurrences)", "How many times refers to occurrences; page number 44 refers to pid = 44;", "least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)", "panajot refers to word = 'panajot'", "average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'"]}} {"set": {"query": "What is the title of the page that has the fewest words?", "pos": ["has the fewest words refers to MIN(COUNT(words));"], "neg": ["between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "word id \"88\" refers to wid = 88", "How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;", "revision page id '16203226' refers to revision = 16203226", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;", "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "nombre refers to word = 'nombre'; page IDs refers to pid", "panajot refers to word = 'panajot'"]}} {"set": {"query": "List down the revision page id of titles where \"fresc\" appears.", "pos": ["page id refers to pid; \"fresc\" refers to word = 'fresc'"], "neg": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences", "Catalan language refers to lang = 'ca'", "occurrence of over 200000 refers to occurrences > 200000;", "panajot refers to word = 'panajot'", "lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499", "start with alphabet \"b\" refers to title LIKE 'b%'", "Wikipedia page number refers to page; title = 'Acampada';"]}} {"set": {"query": "List the titles for all Catalan language wikipedia page from revision page id 106600 to 106700.", "pos": ["from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700"], "neg": ["\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "the page titled \"Abril\" refers to title = 'Abril';", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;", "que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10", "page id refers to pid; \"fresc\" refers to word = 'fresc'"]}} {"set": {"query": "For the biwords pair that appears \"116430\" times, what is the second word of the pair?", "pos": ["the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd"], "neg": ["occurrence refers to occurrences; \u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000;", "has the fewest words refers to MIN(COUNT(words));", "COUNT(words where title = 'Afluent')> COUNT(words where title = 'Asclepi')", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;"]}} {"set": {"query": "What is the wikipedia page id of Arqueozoologia?", "pos": ["page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'"], "neg": ["riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')", "\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10", "word have id less than 20 refers to wid < 20;", "que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences", "total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "revision page id of 28040864 refers to revision = 28040864;", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "the page titled \"Abril\" refers to title = 'Abril';"]}} {"set": {"query": "How many Wikipedia pages are there on the language of the biwords pair \"\u00e0bac-xin\u00e8s\"?", "pos": ["\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages"], "neg": ["first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "Catalan language refers to lang = 'ca'", "This is not;", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "revision page id of 28040864 refers to revision = 28040864;", "most occurrences refers to max(occurrences)", "occurrence of over 200000 refers to occurrences > 200000;", "total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')", "start with alphabet \"b\" refers to title LIKE 'b%'", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;"]}} {"set": {"query": "Indicate the page id of Wikipedia about Catalan language of all the pages that have a numeric value in their title.", "pos": ["the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';"], "neg": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd", "occurrence of over 200000 refers to occurrences > 200000;", "word number 8 refers to wid = 8; How many times refer to occurrences;", "How many times refers to occurrences; page number 44 refers to pid = 44;", "start with alphabet \"b\" refers to title LIKE 'b%'", "word 'quipu' appears refers to word = 'quipu'", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)"]}} {"set": {"query": "List all the Catalan language wikipedia page title with less than 10 number of different words in these pages.", "pos": ["less than 10 number of different words refers to words < 10"], "neg": ["revision page id '16203226' refers to revision = 16203226", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences", "word have id less than 20 refers to wid < 20;", "\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "page titled \"Anys 90\" refers to title = 'Anys 90';", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language"]}} {"set": {"query": "How many times that the word pair of \"barcelona\" and \"precolombina\" occur?", "pos": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';"], "neg": ["the page titled \"Abril\" refers to title = 'Abril';", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)", "average words = avg(words); 10 fewest words refers to words > = 10", "start with alphabet \"b\" refers to title LIKE 'b%'", "has the fewest words refers to MIN(COUNT(words));", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "panajot refers to word = 'panajot'", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "This is not;", "riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')"]}} {"set": {"query": "Which word that has 71303 appearance in the Catalan language?", "pos": ["has 71303 appearance refers to occurrences = 71303;"], "neg": ["between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "lid = 1 means it's Catalan language; with most different words refers to MAX(words)", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd", "the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd", "This is not;", "grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "the page titled \"Abril\" refers to title = 'Abril';", "more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;"]}} {"set": {"query": "Which word has the most repetitions in the Catalan language?", "pos": ["the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;"], "neg": ["Wikipedia page number refers to page; title = 'Acampada';", "\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "word id \"88\" refers to wid = 88", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "word have id less than 20 refers to wid < 20;", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "This is not"]}} {"set": {"query": "How frequently did the words 1 and 25 appear together?", "pos": ["How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;"], "neg": ["Catalan language refers to lang = 'ca'", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "less than 10 number of different words refers to words < 10", "the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "start with alphabet \"b\" refers to title LIKE 'b%'", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'", "between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;"]}} {"set": {"query": "Calculate the average number of repetitions in the pairs of words in which the first word id is number 34.", "pos": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));"], "neg": ["from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;", "revision page id of 28040864 refers to revision = 28040864;", "longest title refers to max(length(title))", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'", "more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;", "between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "start with alphabet \"b\" refers to title LIKE 'b%'", "repeated the most times refer to MAX(occurrences);"]}} {"set": {"query": "How many words are there on the page that the word \"grec\" has occurred for 52 times?", "pos": ["the word \"grec\" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52"], "neg": ["COUNT(words where title = 'Afluent')> COUNT(words where title = 'Asclepi')", "This is not", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "Catalan language refers to lang = 'ca'", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "revision page id of 28040864 refers to revision = 28040864;"]}} {"set": {"query": "How much higher in percentage does the word \"grec\" occur on the page titled \"\u00c0bac\" than on the page titled \"Astronomia\"?", "pos": ["grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')"], "neg": ["repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000;", "word have id less than 20 refers to wid < 20;", "word ID refers to wid; periodograma refers to word = 'periodograma'", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "This is not;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd", "revision page id '16203226' refers to revision = 16203226"]}} {"set": {"query": "How many biwords pairs are there whose second word is \"grec\"?", "pos": ["grec refers to word = 'grec'; wid where word = 'grec' AS w2nd"], "neg": ["average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'", "word have id less than 20 refers to wid < 20;", "longest title refers to max(length(title))", "Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences", "word id refers to wid", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499", "How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;", "grec refers to word = 'grec'; AVG(occurrences where word = 'grec')", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;"]}} {"set": {"query": "Please list the Catalan words with an occurrence of over 200000.", "pos": ["occurrence of over 200000 refers to occurrences > 200000;"], "neg": ["the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "the word \"grec\" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52", "Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences", "How many times refers to occurrences; page number 44 refers to pid = 44;", "DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st"]}} {"set": {"query": "State the Wikipedia page title that has revision page id of 28040864.", "pos": ["revision page id of 28040864 refers to revision = 28040864;"], "neg": ["Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;", "How many times refers to occurrences; page number 44 refers to pid = 44;", "the page titled \"Abril\" refers to title = 'Abril';", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences)", "page id refers to pid; \"fresc\" refers to word = 'fresc'", "Catalan language refers to lang = 'ca'", "has the fewest words refers to MIN(COUNT(words));", "que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences"]}} {"set": {"query": "Which word has the most appearances in the Wikipedia page with the title of \"Agricultura\"? Give the word ID.", "pos": ["Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)"], "neg": ["average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'", "most occurrences refers to max(occurrences)", "word id refers to wid", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "start with alphabet \"b\" refers to title LIKE 'b%'", "revision page id of 28040864 refers to revision = 28040864;", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision"]}} {"set": {"query": "What is the word id for title \"Sometent\"?", "pos": ["word id refers to wid"], "neg": ["grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;", "has the fewest words refers to MIN(COUNT(words));", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "word 'quipu' appears refers to word = 'quipu'", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision"]}} {"set": {"query": "List out the title of the word have id less than 20.", "pos": ["word have id less than 20 refers to wid < 20;"], "neg": ["most frequently occurring words refer to MAX(occurrences); id refers to wid;", "has 71303 appearance refers to occurrences = 71303;", "panajot refers to word = 'panajot'", "nombre refers to word = 'nombre'; page IDs refers to pid", "riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')", "grec refers to word = 'grec'; AVG(occurrences where word = 'grec')", "Abadia refers to title = 'Abadia'; word id refers to wid; the highest amount of times refers to max(occurrences)", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')", "revision page id of 28040864 refers to revision = 28040864;"]}} {"set": {"query": "Which biwords pair has a higher occurrence, \"\u00e0bac-xin\u00e8s\" or \"\u00e0bac-grec\"?", "pos": ["higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'"], "neg": ["\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)", "word id \"88\" refers to wid = 88", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;", "grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "page titled \"Anys 90\" refers to title = 'Anys 90';", "lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499", "longest title refers to max(length(title))", "\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;", "lid = 1 means it's Catalan language; with most different words refers to MAX(words)"]}} {"set": {"query": "Please list any three Wikipedia pages with more than 300 words.", "pos": ["more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;"], "neg": ["longest title refers to max(length(title))", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')", "Wikipedia page number refers to page; title = 'Acampada';", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "word number 8 refers to wid = 8; How many times refer to occurrences;", "the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences"]}} {"set": {"query": "How many words are there on the page titled \"Asclepi\"?", "pos": ["page titled \"Asclepi\" refers to title = 'Asclepi' ;"], "neg": ["average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'", "revision page id '16203226' refers to revision = 16203226", "word ID refers to wid; periodograma refers to word = 'periodograma'", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;", "riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')", "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "revision page id of 28040864 refers to revision = 28040864;", "que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences"]}} {"set": {"query": "Show all the title of pages and number of occurences for each page where the word 'quipu' appears.", "pos": ["word 'quipu' appears refers to word = 'quipu'"], "neg": ["most occurrences refers to max(occurrences)", "appearance times greater than 10 refers to occurrences > 10;", "\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499", "lid = 1 means it's Catalan language; with most different words refers to MAX(words)", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "Wikipedia page number refers to page; title = 'Acampada';"]}} {"set": {"query": "Indicate which is the word that is repeated the most times.", "pos": ["repeated the most times refer to MAX(occurrences);"], "neg": ["Abadia refers to title = 'Abadia'; word id refers to wid; the highest amount of times refers to max(occurrences)", "has 71303 appearance refers to occurrences = 71303;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 8968;", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "the page titled \"Abril\" refers to title = 'Abril';", "biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences)", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)", "most frequently occurring words refer to MAX(occurrences); id refers to wid;"]}} {"set": {"query": "How many more times does the first word in the biwords pair \"\u00e0bac-xin\u00e8s\" occur than the biwords pair itself?", "pos": ["\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)"], "neg": ["lid = 1 means it's Catalan language; with most different words refers to MAX(words)", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "How many times refers to occurrences; page number 44 refers to pid = 44;", "biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences)", "repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000;", "most occurrences refers to max(occurrences)", "word have id less than 20 refers to wid < 20;", "grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "Abadia refers to title = 'Abadia'; word id refers to wid; the highest amount of times refers to max(occurrences)", "Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;"]}} {"set": {"query": "How many times did the word number 8 appear?", "pos": ["word number 8 refers to wid = 8; How many times refer to occurrences;"], "neg": ["\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "page titled \"Asclepi\" refers to title = 'Asclepi' ;", "\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;", "the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "word 'quipu' appears refers to word = 'quipu'", "most occurrences refers to max(occurrences)", "the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd"]}} {"set": {"query": "What is the second word in the pair of words number 1 and 8968?", "pos": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 8968;"], "neg": ["repeated the most times refer to MAX(occurrences);", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "word id \"88\" refers to wid = 88", "This is not;", "most occurrences refers to max(occurrences)", "start with alphabet \"b\" refers to title LIKE 'b%'", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));"]}} {"set": {"query": "Calculate the average of repetitions in the pages that have a total of 100 different words.", "pos": ["Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;"], "neg": ["more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;", "page titled \"Anys 90\" refers to title = 'Anys 90';", "revision page id of 28040864 refers to revision = 28040864;", "\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "less than 10 number of different words refers to words < 10", "start with alphabet \"b\" refers to title LIKE 'b%'", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "panajot refers to word = 'panajot'", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;"]}} {"set": {"query": "Which word has the most appearances in the Wikipedia page revision ID No. 28278070? Give the word ID.", "pos": ["the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid"], "neg": ["exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "appearance times greater than 10 refers to occurrences > 10;", "has the fewest words refers to MIN(COUNT(words));", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "revision page id of 28040864 refers to revision = 28040864;"]}} {"set": {"query": "What is the average words of the 10 fewest words title?", "pos": ["average words = avg(words); 10 fewest words refers to words > = 10"], "neg": ["Abadia refers to title = 'Abadia'; word id refers to wid; the highest amount of times refers to max(occurrences)", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "the word \"grec\" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52", "panajot refers to word = 'panajot'", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd", "most frequently occurring words refer to MAX(occurrences); id refers to wid;", "page id refers to pid; \"fresc\" refers to word = 'fresc'", "the page titled \"Abril\" refers to title = 'Abril';", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd"]}} {"set": {"query": "How many occurrences does the word \"panajot\" have?", "pos": ["panajot refers to word = 'panajot'"], "neg": ["total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')", "page titled \"Asclepi\" refers to title = 'Asclepi' ;", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "average words = avg(words); 10 fewest words refers to words > = 10", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences", "DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;", "This is not;", "biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences)", "the page titled \"Abril\" refers to title = 'Abril';"]}} {"set": {"query": "What is the revision ID for the page on Catalan titled \"Arqueologia\"?", "pos": ["lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision"], "neg": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "word ID refers to wid; periodograma refers to word = 'periodograma'", "occurrence refers to occurrences; \u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "repeated the most times refer to MAX(occurrences);", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "This is not;"]}} {"set": {"query": "What is the total word of title \"Adam\" and \"Acampada\"?", "pos": ["total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')"], "neg": ["biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences)", "page titled \"Asclepi\" refers to title = 'Asclepi' ;", "most frequently occurring words refer to MAX(occurrences); id refers to wid;", "average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "word ID refers to wid; periodograma refers to word = 'periodograma'", "the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "word id refers to wid"]}} {"set": {"query": "What are the occurance of word \"del\" in title \"Any anomal\u00c3\u00adstic\"?", "pos": ["This is not"], "neg": ["Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;", "\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10", "How many times refers to occurrences; page number 44 refers to pid = 44;", "How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;", "total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; How many more times the first word in the biwords occur than the biwords pair itself means SUBTRACT(words.occurrence, biwords.occurrences)", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')", "appearance times greater than 10 refers to occurrences > 10;", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "page id refers to pid; \"fresc\" refers to word = 'fresc'"]}} {"set": {"query": "How many pages does the Catalan language have in Wikipedia?", "pos": ["Catalan language refers to lang = 'ca'"], "neg": ["word have id less than 20 refers to wid < 20;", "nombre refers to word = 'nombre'; page IDs refers to pid", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;", "COUNT(words where title = 'Afluent')> COUNT(words where title = 'Asclepi')", "least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)", "revision page id '16203226' refers to revision = 16203226", "Wikipedia page number refers to page; title = 'Acampada';", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'"]}} {"set": {"query": "Calculate the average number of the word occurrences in which \u2018system\u2019 appeared as the first word in the pair.", "pos": ["average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'"], "neg": ["page titled \"Asclepi\" refers to title = 'Asclepi' ;", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "This is not;", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "nombre refers to word = 'nombre'; page IDs refers to pid", "occurrence of over 200000 refers to occurrences > 200000;", "word ID refers to wid; periodograma refers to word = 'periodograma'", "word have id less than 20 refers to wid < 20;", "This is not", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);"]}} {"set": {"query": "For the word \"grec\", what is the percentage of the appearances in the \"Art\" Wikipedia page have among all the appearances?", "pos": ["grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100"], "neg": ["Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "most occurrences refers to max(occurrences)", "occurrence refers to occurrences; \u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "appearance times greater than 10 refers to occurrences > 10;", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd", "more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)"]}} {"set": {"query": "Indicate the title of all the pages in which the word comunitat appears.", "pos": ["This is not;"], "neg": ["How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "repeated the most times refer to MAX(occurrences);", "que gregorio refers to w1st = wid where word = 'que' AND w2nd = wid where word = 'gregorio'; appear refers to biwords.occurrences", "word number 8 refers to wid = 8; How many times refer to occurrences;", "has 71303 appearance refers to occurrences = 71303;", "page titled \"Anys 90\" refers to title = 'Anys 90';", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)", "less than 10 number of different words refers to words < 10"]}} {"set": {"query": "Which Wikipedia page number does the Catalan language's name, Acampada, appear on?", "pos": ["Wikipedia page number refers to page; title = 'Acampada';"], "neg": ["between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "word 'quipu' appears refers to word = 'quipu'", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "most occurrences refers to max(occurrences)", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "lid = 1 menas it's Catalan language; 274499 repetitions refers to occurrences = 274499", "has 71303 appearance refers to occurrences = 71303;", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "has the fewest words refers to MIN(COUNT(words));"]}} {"set": {"query": "What are the words that were paired with \"John\", list down 10 of them.", "pos": ["pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\""], "neg": ["Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;", "most frequently occurring words refer to MAX(occurrences); id refers to wid;", "word have id less than 20 refers to wid < 20;", "average words = avg(words); 10 fewest words refers to words > = 10", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "page id refers to pid; \"fresc\" refers to word = 'fresc'", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences", "occurrence refers to occurrences; \u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences)"]}} {"set": {"query": "Which Wikipedia page number has the highest number of words in the Catalan language?", "pos": ["Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);"], "neg": ["This is not;", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "grec refers to word = 'grec'; AVG(occurrences where word = 'grec')", "the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "word 'quipu' appears refers to word = 'quipu'", "has the fewest words refers to MIN(COUNT(words));", "How many times refers to occurrences; page number 44 refers to pid = 44;", "panajot refers to word = 'panajot'"]}} {"set": {"query": "How many times does the word \"riu\" appears in the biwords pair?", "pos": ["riu refers to word = 'riu'; SUM(w1st where wid is word = 'riu' AND w2nd where wid is word = 'riu')"], "neg": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 616;", "less than 10 number of different words refers to words < 10", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "lid = 1 means it's Catalan language; with most different words refers to MAX(words)", "word id refers to wid", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "has the fewest words refers to MIN(COUNT(words));", "most frequently occurring words refer to MAX(occurrences); id refers to wid;", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;"]}} {"set": {"query": "How many words has the appearance times greater than 10?", "pos": ["appearance times greater than 10 refers to occurrences > 10;"], "neg": ["average word occurrences = divide(sum(occurrences), count(occurrences)); \u2018system\u2019 appeared as the first word refers to w1st = 'system'", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "revision page id of 28040864 refers to revision = 28040864;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "repeated the most times refer to MAX(occurrences);", "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences"]}} {"set": {"query": "Which of these pages have more words, the page titled \"Afluent\" or \"Asclepi\"?", "pos": ["COUNT(words where title = 'Afluent')> COUNT(words where title = 'Asclepi')"], "neg": ["the Catalan means Catalan language and refers to lid = 1; How many times repeat refers to occurrences;", "page id refers to pid; \"fresc\" refers to word = 'fresc'", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; in the Catalan language refers to lid; repeated less than 80 times refers to occurrences < 80; DIVIDE(COUNT(lid where occurrences < 80), COUNT(lid)) as percentage;", "average words = avg(words); 10 fewest words refers to words > = 10", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st = 1; w2nd = 8968;", "from revision page id 106600 to 106700 refers to revision BETWEEN 106600 AND 106700", "appearance times greater than 10 refers to occurrences > 10;", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the first word id number 34 refers to w1st = 34; repetition refers to occurrences or times this pair appears; DIVIDE(SUM(occurrences where w1st = 34), COUNT(occurrences where w1st = 34));", "Catalan language refers to lang = 'ca'"]}} {"set": {"query": "How many times of repetition does the word \"exemple\" show in the Catalan language?", "pos": ["exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language"], "neg": ["nombre refers to word = 'nombre'; page IDs refers to pid", "grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "word id \"88\" refers to wid = 88", "\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;", "page titled \"Asclepi\" refers to title = 'Asclepi' ;", "total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';"]}} {"set": {"query": "Please list any three Wikipedia pages that are written in Catalan, together with their titles and revision page numbers.", "pos": ["in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;"], "neg": ["Catalan language refers to lang = 'ca'", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;", "page id refers to pid; \"fresc\" refers to word = 'fresc'", "Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; w1st or w2nd = 'barcelona'; w1st or w2nd = 'precolombina';", "longest title refers to max(length(title))", "has 71303 appearance refers to occurrences = 71303;", "word number 8 refers to wid = 8; How many times refer to occurrences;", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; occurrence refers to occurrences", "panajot refers to word = 'panajot'"]}} {"set": {"query": "Please list the page IDs of all the Wikipedia pages that have the word \"nombre\" appeared on it.", "pos": ["nombre refers to word = 'nombre'; page IDs refers to pid"], "neg": ["page titled \"Anys 90\" refers to title = 'Anys 90';", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "lid = 1 means it's Catalan language; with most different words refers to MAX(words)", "Catalan language refers to lang = 'ca'", "occurrence refers to occurrences; \u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "\u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "occurrence of over 200000 refers to occurrences > 200000;", "This is not;", "the most repetitions refer to MAX(occurrences); Catalan language refers to lid = 1;", "grec refers to word = 'grec'; AVG(occurrences where word = 'grec')"]}} {"set": {"query": "How many times did the word \"grec\" occur on the page titled \"\u00c0bac\"?", "pos": ["how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;"], "neg": ["How frequently refers to occurrences;\u00a0 word 1 refers to wid = 1; word 25 refers to wid = 25; appear together means pair, which is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word;\u00a0 w1st or w2nd = wid = 1; w1st or w2nd = wid = 25;", "repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000;", "word id from 1 to 10 refers to wid BETWEEN 1 AND 10", "total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')", "\u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; Wikipedia pages refer to pages", "title \"Aigua dol\u00c3\u00a7a\" refers to title LIKE 'Aigua dol\u00c3\u00a7a%'", "the most appearances refers to MAX(occurrences); revision ID No. 28278070 refers to revision = 28278070; word ID refers to wid", "occurrence refers to occurrences; \u00e0bac refers to word = '\u00e0bac'; first word refers to w1st", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "start with alphabet \"b\" refers to title LIKE 'b%'"]}} {"set": {"query": "List down the page id of titles start with alphabet \"b\".", "pos": ["start with alphabet \"b\" refers to title LIKE 'b%'"], "neg": ["word have id less than 20 refers to wid < 20;", "repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000;", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd", "first words refer to w1st.word; second word is 'antic' refers to w2nd.word = 'antic'", "grec refers to word = 'grec'; AVG(occurrences where word = 'grec')", "COUNT(words where title = 'Afluent')> COUNT(words where title = 'Asclepi')", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "occurrence of over 200000 refers to occurrences > 200000;", "Wikipedia page number refers to page; title = 'Acampada';", "Agricultura refers to title = 'Agricultura'; the most appearances is MAX(pages_words_sampling.occurrences)"]}} {"set": {"query": "How many appearances does the word ID No. 2823 have in the Wikipedia page \"Astre\"?", "pos": ["Astre refers to title = 'Astre'; word ID No. 2823 refers to wid = 2823; appearances refers to pages_words_sampling.occurrences"], "neg": ["the page id of Wikipedia refers to pid; numeric value contains only numbers, LIKE '%0%' OR '%1%' OR '%2%' OR '%3%' OR '%4%' OR '%5%' OR '%6%' OR '%7%' OR '%8%' OR '%9%';", "biwords pair refers to w1st.word w2nd.word; appeared the most refers to max(occurrences)", "higher occurrence is MAX(occurrences); \u00e0bac refers to word = '\u00e0bac'; xin\u00e8s refers to word = 'xin\u00e8s'; grec refers to word = 'grec'", "grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;", "Abadia refers to title = 'Abadia'; word id refers to wid; the highest amount of times refers to max(occurrences)", "revision page id '16203226' refers to revision = 16203226", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "page titled \"Anys 90\" refers to title = 'Anys 90';", "between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000"]}} {"set": {"query": "How many times on page number 44 does the word \"votives\" appear?", "pos": ["How many times refers to occurrences; page number 44 refers to pid = 44;"], "neg": ["less than 10 number of different words refers to words < 10", "grec refers to word = 'grec'; \u00c0bac refers to title = '\u00c0bac'; Astronomia refers to title = 'Astronomia'; percentage = DIVIDE(SUBTRACT(occurrences where title = '\u00c0bac' AND word = 'grec', occurrences where title = 'Astronomia' AND word = 'grec'), occurrences where title = 'Astronomia' AND word = 'grec')", "most occurrences refers to max(occurrences)", "least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "page id refers to pid; \"fresc\" refers to word = 'fresc'", "has 71303 appearance refers to occurrences = 71303;", "grec refers to word = 'grec'; wid where word = 'grec' AS w2nd", "word id \"88\" refers to wid = 88"]}} {"set": {"query": "Please list the titles of the top 3 Wikipedia pages with the most different words on the Catalan language.", "pos": ["lid = 1 means it's Catalan language; with most different words refers to MAX(words)"], "neg": ["the biwords pair that appears \"116430\" times refers to occurrences = 116430; second word of the pair refers to w2nd", "DIVIDE(SUM(words WHERE title = 'A%'), COUNT(words WHERE title = 'A%')) as percentage; A is a letter;", "page titled \"Anys 90\" refers to title = 'Anys 90';", "appearance times greater than 10 refers to occurrences > 10;", "exemple refers to word = 'exemple'; repetition refers to langs_words.occurrences; lid = 1 menas it's Catalan language", "has 71303 appearance refers to occurrences = 71303;", "page id refers to pid; Arqueozoologia refers to title = 'Arqueozoologia'", "word number 8 refers to wid = 8; How many times refer to occurrences;", "word id refers to wid", "Repetition refers to occurrences; 100 different words refers to words = 100; DIVIDE(SUM(occurrences where words = 100), COUNT(page where words = 100)) as percentage;"]}} {"set": {"query": "Name the longest Catalan language Wikipedia page title and state the number of different words in this page.", "pos": ["longest title refers to max(length(title))"], "neg": ["start with alphabet \"b\" refers to title LIKE 'b%'", "page titled \"Anys 90\" refers to title = 'Anys 90';", "Wikipedia page number refers to page;\u00a0 the highest number of words in the Catalan language refers to MAX(lid = 1);", "total word refers to sum(words); title \"Adam\" and \"Acampada\" refers to title IN('Adam','Acampada')", "has 71303 appearance refers to occurrences = 71303;", "in Catalan means in Catalan-language and refers to lid = 1; revision page numbers refer to revision;", "page titled \"Asclepi\" refers to title = 'Asclepi' ;", "more than 300 words refers to words > 300;\u00a0 list any three means limit 3; Wikipedia pages refers to page;", "nombre refers to word = 'nombre'; page IDs refers to pid", "COUNT(words where title = 'Afluent')> COUNT(words where title = 'Asclepi')"]}} {"set": {"query": "Please list the top three most frequently occurring words and their ids.", "pos": ["most frequently occurring words refer to MAX(occurrences); id refers to wid;"], "neg": ["Pair is a relationship of two words: w1st and w2nd, where w1st is word id of the first word and w2nd is a word id of the second word; the same word appears in a pair refers to w1st = w2nd; times refers to occurrences; DIVIDE(COUNT(occurrences where w1st = w2nd), COUNT(occurrences)) as percentage;", "word ID refers to wid; periodograma refers to word = 'periodograma'", "Catalan language refers to lang = 'ca'", "word id refers to wid", "word id \"88\" refers to wid = 88", "pair with \"John\" refers to w1st.word = \"John\" or w2nd.word = \"John\"", "between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "average words = avg(words); 10 fewest words refers to words > = 10", "repetitions greater than 2000 and lower than 5000 refer to occurrences between 2000 and 5000;", "start with alphabet \"b\" refers to title LIKE 'b%'"]}} {"set": {"query": "Among the biwords pairs with \"\u00e0bac\" as its first word, how many of them have an occurrence of over 10?", "pos": ["\u00e0bac refers to word = '\u00e0bac'; as first word refers to w1st; occurrence of over 10 refers to occurrences > 10"], "neg": ["the page titled \"Abril\" refers to title = 'Abril';", "word id \"88\" refers to wid = 88", "most occurrences refers to max(occurrences)", "how many times occur refers to occurrences; page titled \"\u00c0bac\" refers to title = '\u00c0bac' ;", "lid = 1 means it's Catalan language; Arqueologia refers to title = 'Arqueologia'; revision ID refers to revision", "least number of different words refers to min(words); word id refers to wid; appeared the most refers to max(occurrences)", "page titled \"Anys 90\" refers to title = 'Anys 90';", "between 1000 to 2000 number of different words refers to words BETWEEN 1000 AND 2000", "grec refers to word = 'grec'; Art refers to title = 'Art'; percentage is DIVIDE(occurrences(grec), occurences(Art))*100", "the word \"grec\" refers to word = 'grec'; occurred for 52 times refers to occurrences = 52"]}} {"set": {"query": "What role does the tallest person play?", "pos": ["the tallest refers to max(height_meters)"], "neg": ["the most votes refers to max(votes)", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "nominated refers to result = 'Nominee'", "have not been credited refers to credited = ''", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "titled \"Cherished\" refers to title = 'Cherished'", "who refers to name; the youngest person refers to max(birthdate); a \"clerk\" role refers to role = 'Clerk'", "the episode titled Juvenile refers to title = 'Juvenile'", "weighted stars = divide(sum(stars, percent), 100)", "who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'"]}} {"set": {"query": "What are the names of the two people who won an award for their role as directors?", "pos": ["won an award refers to result = 'Winner'; role as director refers to role = 'director'"], "neg": ["at least two awards refers to count(role) >1", "the episode titled Juvenile refers to title = 'Juvenile'", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "the most enjoyed refers max(rating); 10-star refers to stars = 10", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10", "worst rated refers to min(rating)", "credited refers to credited = 'true'", "received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))"]}} {"set": {"query": "In what year did the episodes titled DWB get an award?", "pos": ["titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'"], "neg": ["Law and Order refers to series = 'Law and Order'", "weighted stars = divide(sum(stars, percent), 100)", "description of what happened refers to summary; award no.296 refers to award_id = '296'", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "titled \"Cherished\" refers to title = 'Cherished'", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "the most refers to max(votes); 1 star refers to stars = '1'"]}} {"set": {"query": "Write down the title, summary, and air date of the episode that garnered 72 10-star votes.", "pos": ["72 10-star votes refers to stars = 10 and votes = 72"], "neg": ["at least two awards refers to count(role) >1", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "the most refers to max(votes); 10-star refers to stars = 10", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "least enjoyed refers to stars = 1", "episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'", "description of what happened refers to summary; award no.296 refers to award_id = '296'", "nominated for an award but not win refers to result = 'Nominee'"]}} {"set": {"query": "What is the average ranking episodes that are nominated for an award?", "pos": ["average ranking = divide(sum(rating), sum(episode_id))"], "neg": ["have not been credited refers to credited = ''", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "at least two awards refers to count(role) >1", "episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; \"Best Television Episode\" refers to award = 'Best Television Episode'", "the most refers to max(votes); 10-star refers to stars = 10", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "produced refers to role = 'producer'"]}} {"set": {"query": "How many people from Canada are nominated for an award?", "pos": ["from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL"], "neg": ["titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "weighted stars = divide(sum(stars, percent), 100)", "72 10-star votes refers to stars = 10 and votes = 72", "6-star vote refers to stars = 6", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "born in the USA refers to birth_country = 'USA'", "who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%", "nominated for an award but not win refers to result = 'Nominee'", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'"]}} {"set": {"query": "Please list any three episodes that were most enjoyed by the viewers.", "pos": ["episode refers to title; most enjoyed by the viewers refers to stars = 10"], "neg": ["the most refers to max(votes); 10-star refers to stars = 10", "6-star vote refers to stars = 6", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "credit name refers to name", "nominated for an award but not win refers to result = 'Nominee'", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "win refers to result = 'Winner'; the most awards refers to max(count(award_id))", "the most refers to max(votes); 1 star refers to stars = '1'", "average ranking = divide(sum(rating), sum(episode_id))", "the most votes refers to max(votes)"]}} {"set": {"query": "Which role have won at least two awards for the entire season and list out the name?", "pos": ["at least two awards refers to count(role) >1"], "neg": ["average rating = divide(sum(rating), count(episode_id))", "win refers to result = 'Winner'; the most awards refers to max(count(award_id))", "nominated refers to result = 'Nominee'", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "Law and Order refers to series = 'Law and Order'", "the tallest refers to max(height_meters)", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''"]}} {"set": {"query": "Who was the actor who was portraying \"Alex Brown\" and has been credited?", "pos": ["who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'"], "neg": ["have not won any award refers to Result = 'Nominee'", "the most refers to max(votes); 10-star refers to stars = 10", "director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode", "born in the USA refers to birth_country = 'USA'", "episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'", "win refers to result = 'Winner'; the most awards refers to max(count(award_id))", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "the episode titled Juvenile refers to title = 'Juvenile'", "the most refers to max(votes); 1 star refers to stars = '1'", "the most enjoyed refers max(rating); 10-star refers to stars = 10"]}} {"set": {"query": "How many credits have been displayed from episode 1 until 10?", "pos": ["credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10"], "neg": ["won an award refers to result = 'Winner'; role as director refers to role = 'director'", "the most award won refers to max(episode_id where result = 'Winner')", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "the most enjoyed refers max(rating); 10-star refers to stars = 10", "have not been credited refers to credited = ''", "weighted stars = divide(sum(stars, percent), 100)", "which episode refers to title; not credited refers to credited = ''", "the most votes refers to max(votes)", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "titled \"Cherished\" refers to title = 'Cherished'"]}} {"set": {"query": "What is the full place of birth of Rene Chenevert Balcer?", "pos": ["full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'"], "neg": ["the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "which episode refers to title; not credited refers to credited = ''", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "mafia keyword refers to Keyword = 'mafia'", "won an award refers to result = 'Winner'; role as director refers to role = 'director'", "the tallest refers to max(height_meters)", "the most enjoyed refers max(rating); 10-star refers to stars = 10", "average ranking = divide(sum(rating), sum(episode_id))", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'"]}} {"set": {"query": "What is the average rating for each episode in season 9?", "pos": ["average rating = divide(sum(rating), count(episode_id))"], "neg": ["average ranking = divide(sum(rating), sum(episode_id))", "episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'", "6-star vote refers to stars = 6", "the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "have not won any award refers to Result = 'Nominee'", "produced refers to role = 'producer'", "the 2nd-highest number of votes refers to second max(votes)"]}} {"set": {"query": "Which episode was nominated for the award for \"Outstanding Costume Design for a Series\"?", "pos": ["episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'"], "neg": ["the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10", "average rating = divide(sum(rating), count(episode_id))", "the most votes refers to max(votes)", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "description of what happened refers to summary; award no.296 refers to award_id = '296'", "worst rated refers to min(rating)", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3"]}} {"set": {"query": "What is the title of the episode that has the highest number of crews in the Art Department?", "pos": ["the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'"], "neg": ["episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "won an award refers to result = 'Winner'; role as director refers to role = 'director'", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "72 10-star votes refers to stars = 10 and votes = 72", "weighted stars = divide(sum(stars, percent), 100)", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "credit name refers to name"]}} {"set": {"query": "What is the average star with highest percentage for episodes that have received award?", "pos": ["received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))"], "neg": ["who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1", "weighted stars = divide(sum(stars, percent), 100)", "born in the USA refers to birth_country = 'USA'", "credited refers to credited = 'true'", "average ranking = divide(sum(rating), sum(episode_id))", "72 10-star votes refers to stars = 10 and votes = 72", "which episode refers to title; not credited refers to credited = ''"]}} {"set": {"query": "What is the name of the actors born in the USA?", "pos": ["born in the USA refers to birth_country = 'USA'"], "neg": ["win refers to result = 'Winner'; the most awards refers to max(count(award_id))", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "the episode titled Juvenile refers to title = 'Juvenile'", "weighted stars = divide(sum(stars, percent), 100)", "received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))", "titled \"Cherished\" refers to title = 'Cherished'", "director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode", "credit name refers to name", "nominated refers to result = 'Nominee'", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'"]}} {"set": {"query": "How many people have won at least 3 awards?", "pos": ["won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3"], "neg": ["have not been credited refers to credited = ''", "have not won any award refers to Result = 'Nominee'", "received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''", "nominated for an award but not win refers to result = 'Nominee'", "the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))", "the most votes refers to max(votes)", "average ranking = divide(sum(rating), sum(episode_id))", "which episode refers to title; not credited refers to credited = ''", "won an award refers to result = 'Winner'; role as director refers to role = 'director'"]}} {"set": {"query": "Among the American casts, how many were uncredited on episode ID tt0629228?", "pos": ["American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''"], "neg": ["72 10-star votes refers to stars = 10 and votes = 72", "the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'", "Law and Order refers to series = 'Law and Order'", "episode refers to title; most enjoyed by the viewers refers to stars = 10", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "the most enjoyed refers max(rating); 10-star refers to stars = 10"]}} {"set": {"query": "Who is the youngest person to ever play a \"clerk\" role in the series?", "pos": ["who refers to name; the youngest person refers to max(birthdate); a \"clerk\" role refers to role = 'Clerk'"], "neg": ["the 2nd-highest number of votes refers to second max(votes)", "mafia keyword refers to Keyword = 'mafia'", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "the episode titled Juvenile refers to title = 'Juvenile'", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1", "the most award won refers to max(episode_id where result = 'Winner')", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "episode refers to title; most enjoyed by the viewers refers to stars = 10"]}} {"set": {"query": "Who is the narrator of the \"Flight\" episode?", "pos": ["who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'"], "neg": ["the most refers to max(votes); 1 star refers to stars = '1'", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "6-star vote refers to stars = 6", "not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'", "nominated refers to result = 'Nominee'", "have not been credited refers to credited = ''"]}} {"set": {"query": "What are the titles of the top 3 episodes that received no less than 30 votes in its 10-star rating?", "pos": ["no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10"], "neg": ["episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "episode refers to title; most enjoyed by the viewers refers to stars = 10", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "least enjoyed refers to stars = 1", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "the episode titled Juvenile refers to title = 'Juvenile'", "average rating = divide(sum(rating), count(episode_id))", "nominated for an award but not win refers to result = 'Nominee'"]}} {"set": {"query": "How many people did not enjoy the finale episode?", "pos": ["did not enjoy refers to stars = 1; the finale episode refers to episode = 24"], "neg": ["won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "win refers to result = 'Winner'; the most awards refers to max(count(award_id))", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'", "won an award refers to result = 'Winner'; role as director refers to role = 'director'", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "the most award won refers to max(episode_id where result = 'Winner')", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1", "produced refers to role = 'producer'", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10"]}} {"set": {"query": "Who played the role of a teleplay in the episode that won \"Best Television Episode\"?", "pos": ["the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; \"Best Television Episode\" refers to award = 'Best Television Episode'"], "neg": ["who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%", "6-star vote refers to stars = 6", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "Law and Order refers to series = 'Law and Order'", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "average ranking = divide(sum(rating), sum(episode_id))", "description of what happened refers to summary; award no.296 refers to award_id = '296'"]}} {"set": {"query": "What is the percentage of people who gave the \"True North\" episode a 1-star rating?", "pos": ["the \"True North\" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'"], "neg": ["received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "the most award won refers to max(episode_id where result = 'Winner')", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "the most refers to max(votes); 10-star refers to stars = 10", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "the 2nd-highest number of votes refers to second max(votes)"]}} {"set": {"query": "What role was Julia Roberts nominated for?", "pos": ["nominated refers to result = 'Nominee'"], "neg": ["have not been credited refers to credited = ''", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "least enjoyed refers to stars = 1", "the tallest refers to max(height_meters)", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "average ranking = divide(sum(rating), sum(episode_id))", "the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10", "director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode", "nominated for an award but not win refers to result = 'Nominee'", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'"]}} {"set": {"query": "How many 6-star votes did episode 12 get? Please include the air date and rating.", "pos": ["6-star vote refers to stars = 6"], "neg": ["no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))", "the most refers to max(votes); 1 star refers to stars = '1'", "episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';", "at least two awards refers to count(role) >1", "the episode titled Juvenile refers to title = 'Juvenile'", "worst rated refers to min(rating)", "born in the USA refers to birth_country = 'USA'", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "average rating = divide(sum(rating), count(episode_id))"]}} {"set": {"query": "Calculate the average number of cast members that appeared in the credit from the 185th to the 193rd episode.", "pos": ["appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)"], "neg": ["the most award won refers to max(episode_id where result = 'Winner')", "have not been credited refers to credited = ''", "the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10", "the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''", "win refers to result = 'Winner'; the most awards refers to max(count(award_id))", "description of what happened refers to summary; award no.296 refers to award_id = '296'", "72 10-star votes refers to stars = 10 and votes = 72", "who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%", "from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL"]}} {"set": {"query": "For how many times was Park Dietz credited?", "pos": ["credited refers to credited = 'true'"], "neg": ["credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "description of what happened refers to summary; award no.296 refers to award_id = '296'", "the \"True North\" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'", "episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';", "the most refers to max(votes); 1 star refers to stars = '1'", "the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; \"Best Television Episode\" refers to award = 'Best Television Episode'", "worst rated refers to min(rating)", "average ranking = divide(sum(rating), sum(episode_id))", "6-star vote refers to stars = 6", "received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))"]}} {"set": {"query": "For the episode with the most votes, give its air date.", "pos": ["the most votes refers to max(votes)"], "neg": ["the most refers to max(votes); 1 star refers to stars = '1'", "episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''", "worst rated refers to min(rating)", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "average rating = divide(sum(rating), count(episode_id))", "produced refers to role = 'producer'", "the \"True North\" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'", "mafia keyword refers to Keyword = 'mafia'", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))"]}} {"set": {"query": "Who is the winner of the Best Television Episode award for the Edgar category in 2000? Include his or her name and role.", "pos": ["the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000"], "neg": ["nominated refers to result = 'Nominee'", "least enjoyed refers to stars = 1", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "credit name refers to name", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''", "titled \"Cherished\" refers to title = 'Cherished'", "have not been credited refers to credited = ''", "72 10-star votes refers to stars = 10 and votes = 72", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "weighted stars = divide(sum(stars, percent), 100)"]}} {"set": {"query": "List out all the credit names for episode 9.", "pos": ["credit name refers to name"], "neg": ["worst rated refers to min(rating)", "the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "have not been credited refers to credited = ''", "credited refers to credited = 'true'", "the most award won refers to max(episode_id where result = 'Winner')", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''"]}} {"set": {"query": "How many votes did the episode titled \"Cherished\" get in total?", "pos": ["titled \"Cherished\" refers to title = 'Cherished'"], "neg": ["born in the USA refers to birth_country = 'USA'", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "nominated for an award but not win refers to result = 'Nominee'", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1", "credit name refers to name", "mafia keyword refers to Keyword = 'mafia'", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "weighted stars = divide(sum(stars, percent), 100)"]}} {"set": {"query": "How many nominations did Law and Order season 9, episode 20 get?", "pos": ["Law and Order refers to series = 'Law and Order'"], "neg": ["director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode", "episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "titled \"Cherished\" refers to title = 'Cherished'", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1", "least enjoyed refers to stars = 1", "which episode refers to title; not credited refers to credited = ''", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "won an award refers to result = 'Winner'; role as director refers to role = 'director'", "have not been credited refers to credited = ''"]}} {"set": {"query": "Which episode number has the second highest positive viewer comments and has been awarded \"Best Television Episode\"?", "pos": ["episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5"], "neg": ["titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "episode refers to title; most enjoyed by the viewers refers to stars = 10", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "Law and Order refers to series = 'Law and Order'", "the most votes refers to max(votes)", "the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; \"Best Television Episode\" refers to award = 'Best Television Episode'", "who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "least enjoyed refers to stars = 1"]}} {"set": {"query": "In which organization did Constantine Makris win the most awards?", "pos": ["win refers to result = 'Winner'; the most awards refers to max(count(award_id))"], "neg": ["who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%", "6-star vote refers to stars = 6", "have not won any award refers to Result = 'Nominee'", "the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10", "description of what happened refers to summary; award no.296 refers to award_id = '296'", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; \"Best Television Episode\" refers to award = 'Best Television Episode'", "worst rated refers to min(rating)", "72 10-star votes refers to stars = 10 and votes = 72", "the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))"]}} {"set": {"query": "How many people gave the most enjoyed episode a 10-star rating?", "pos": ["the most enjoyed refers max(rating); 10-star refers to stars = 10"], "neg": ["have not been credited refers to credited = ''", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "Law and Order refers to series = 'Law and Order'", "episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "description of what happened refers to summary; award no.296 refers to award_id = '296'", "titled \"Cherished\" refers to title = 'Cherished'", "have not won any award refers to Result = 'Nominee'", "the most refers to max(votes); 10-star refers to stars = 10", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1"]}} {"set": {"query": "What is the title of the episode that got the most 10-star votes?", "pos": ["the most refers to max(votes); 10-star refers to stars = 10"], "neg": ["the most votes refers to max(votes)", "the tallest refers to max(height_meters)", "nominated refers to result = 'Nominee'", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''", "have not been credited refers to credited = ''", "not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'", "the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000", "credit name refers to name"]}} {"set": {"query": "On what episode did Julia Roberts win the \"Outstanding Guest Actress in a Drama Series\" award during the 1999 Primetime Emmy Awards? Tell me her role.", "pos": ["win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'"], "neg": ["the episode titled Juvenile refers to title = 'Juvenile'", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))", "titled \"Cherished\" refers to title = 'Cherished'", "who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%", "have not been credited refers to credited = ''"]}} {"set": {"query": "List the titles and air dates of episodes that were produced by Billy Fox.", "pos": ["produced refers to role = 'producer'"], "neg": ["episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'", "which episode refers to title; not credited refers to credited = ''", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1", "the tallest refers to max(height_meters)", "the most refers to max(votes); 10-star refers to stars = 10", "least enjoyed refers to stars = 1", "Law and Order refers to series = 'Law and Order'", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "worst rated refers to min(rating)"]}} {"set": {"query": "What is the difference of 10 stars votes between the first episode and the last episode?", "pos": ["the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10"], "neg": ["the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "credited refers to credited = 'true'", "titled \"Cherished\" refers to title = 'Cherished'", "the most refers to max(votes); 1 star refers to stars = '1'", "nominated for an award but not win refers to result = 'Nominee'", "weighted stars = divide(sum(stars, percent), 100)", "win refers to result = 'Winner'; the most awards refers to max(count(award_id))", "who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "the episode titled Juvenile refers to title = 'Juvenile'"]}} {"set": {"query": "Which episode got the most 1 star votes? Give its title.", "pos": ["the most refers to max(votes); 1 star refers to stars = '1'"], "neg": ["who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "nominated for an award but not win refers to result = 'Nominee'", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "credit name refers to name", "nominated refers to result = 'Nominee'", "description of what happened refers to summary; award no.296 refers to award_id = '296'", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "credited refers to credited = 'true'", "born in the USA refers to birth_country = 'USA'", "who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%"]}} {"set": {"query": "What roles have not been credited at the end of the episodes?", "pos": ["have not been credited refers to credited = ''"], "neg": ["credit name refers to name", "episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';", "the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))", "the most award won refers to max(episode_id where result = 'Winner')", "the most refers to max(votes); 10-star refers to stars = 10", "who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''", "average ranking = divide(sum(rating), sum(episode_id))", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10"]}} {"set": {"query": "Who played the role of the \"president of NBC West Coast\" in the first episode?", "pos": ["who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1"], "neg": ["least enjoyed refers to stars = 1", "from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL", "have not been credited refers to credited = ''", "the episode titled Juvenile refers to title = 'Juvenile'", "at least two awards refers to count(role) >1", "mafia keyword refers to Keyword = 'mafia'", "72 10-star votes refers to stars = 10 and votes = 72", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "average rating = divide(sum(rating), count(episode_id))"]}} {"set": {"query": "How many votes did the episode titled Juvenile get?", "pos": ["the episode titled Juvenile refers to title = 'Juvenile'"], "neg": ["director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode", "the most refers to max(votes); 1 star refers to stars = '1'", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "produced refers to role = 'producer'", "the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "the \"True North\" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "the tallest refers to max(height_meters)"]}} {"set": {"query": "In which episodes was Anthony Azzara not credited?", "pos": ["which episode refers to title; not credited refers to credited = ''"], "neg": ["episode refers to title; most enjoyed by the viewers refers to stars = 10", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "produced refers to role = 'producer'", "description of what happened refers to summary; award no.296 refers to award_id = '296'", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "the most refers to max(votes); 10-star refers to stars = 10", "the most enjoyed refers max(rating); 10-star refers to stars = 10"]}} {"set": {"query": "How many episodes have not won any Law & Order series awards?", "pos": ["have not won any award refers to Result = 'Nominee'"], "neg": ["who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "the most votes refers to max(votes)", "nominated refers to result = 'Nominee'", "the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; \"Best Television Episode\" refers to award = 'Best Television Episode'", "the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000", "average rating = divide(sum(rating), count(episode_id))", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "credit displayed refers to credited = 'true'; from episode 1 until 10 refers to episode > = 1 AND episode < = 10", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "least enjoyed refers to stars = 1"]}} {"set": {"query": "Which episode has the two keywords \"nun\" and \"priest\"?", "pos": ["episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';"], "neg": ["who refers to name; the youngest person refers to max(birthdate); a \"clerk\" role refers to role = 'Clerk'", "worst rated refers to min(rating)", "from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL", "the \"True North\" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'", "produced refers to role = 'producer'", "director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "have not won any award refers to Result = 'Nominee'", "the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))", "at least two awards refers to count(role) >1"]}} {"set": {"query": "What are the keywords of the episode which received the 2nd-highest number of votes?", "pos": ["the 2nd-highest number of votes refers to second max(votes)"], "neg": ["at least two awards refers to count(role) >1", "average ranking = divide(sum(rating), sum(episode_id))", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "produced refers to role = 'producer'", "Law and Order refers to series = 'Law and Order'", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "average rating = divide(sum(rating), count(episode_id))", "least enjoyed refers to stars = 1", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "have not been credited refers to credited = ''"]}} {"set": {"query": "List out director names that received an award along with the episode number.", "pos": ["director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode"], "neg": ["episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'", "72 10-star votes refers to stars = 10 and votes = 72", "nominated refers to result = 'Nominee'", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "which episode refers to title; not credited refers to credited = ''", "the most votes refers to max(votes)", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "average rating = divide(sum(rating), count(episode_id))"]}} {"set": {"query": "Describe what happened in the episode of award no.296.", "pos": ["description of what happened refers to summary; award no.296 refers to award_id = '296'"], "neg": ["episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL", "who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "have not been credited refers to credited = ''", "have not won any award refers to Result = 'Nominee'", "won refers to result = 'Winner'; at least 3 awards refers to count(result) > 3", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "which episode refers to title; not credited refers to credited = ''", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "Law and Order refers to series = 'Law and Order'"]}} {"set": {"query": "Who is the person who appeared the most in the series? Calculate in percentage how many times he or she appeared.", "pos": ["who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%"], "neg": ["the 2nd-highest number of votes refers to second max(votes)", "the most enjoyed refers max(rating); 10-star refers to stars = 10", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1", "the first episode refers to episode = 1; the last episode refers to episode = 24; 10 stars vote refers to stars = 10; the difference = subtract(votes where episode = 1, votes where episode = 24) where stars = 10", "weighted stars = divide(sum(stars, percent), 100)", "the \"True North\" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "average rating = divide(sum(rating), count(episode_id))", "credited refers to credited = 'true'", "who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'"]}} {"set": {"query": "How many episodes are there in the 9th season of Law and Order? Calculate the average number of casts per season of the said series.", "pos": ["the 9th season refers to season = 9; Law and Order refers to series = 'Law and Order'; cast refers to category = 'Cast'; average number of casts per season = divide(count(person_id), count(episode_id))"], "neg": ["the episode titled Juvenile refers to title = 'Juvenile'", "nominated for an award but not win refers to result = 'Nominee'", "the 2nd-highest number of votes refers to second max(votes)", "the most award won refers to max(episode_id where result = 'Winner')", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "which episode refers to title; not credited refers to credited = ''", "average ranking = divide(sum(rating), sum(episode_id))", "not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'", "the role of a teleplay refers to role = 'teleplay'; won refers to result = 'Winner'; \"Best Television Episode\" refers to award = 'Best Television Episode'", "who refers to name; the youngest person refers to max(birthdate); a \"clerk\" role refers to role = 'Clerk'"]}} {"set": {"query": "Which episode has the highest total number of viewer votes?", "pos": ["episode refers to title; the highest total number of viewer votes refers to max(sum(votes))"], "neg": ["72 10-star votes refers to stars = 10 and votes = 72", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "received award refers to result = 'Winner'; the highest percentage refers to max(percent); average star = divide(sum(stars), count(episode_id))", "who refers to name; the youngest person refers to max(birthdate); a \"clerk\" role refers to role = 'Clerk'", "the most refers to max(votes); 10-star refers to stars = 10", "weighted stars = divide(sum(stars, percent), 100)", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "at least two awards refers to count(role) >1"]}} {"set": {"query": "What is the title of the episodes that were least enjoyed?", "pos": ["least enjoyed refers to stars = 1"], "neg": ["mafia keyword refers to Keyword = 'mafia'", "the \"True North\" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'", "episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';", "credit name refers to name", "weighted stars = divide(sum(stars, percent), 100)", "titled \"Cherished\" refers to title = 'Cherished'", "average ranking = divide(sum(rating), sum(episode_id))", "which episode refers to title; not credited refers to credited = ''", "the most votes refers to max(votes)", "description of what happened refers to summary; award no.296 refers to award_id = '296'"]}} {"set": {"query": "What is the episode rating with the most award won?", "pos": ["the most award won refers to max(episode_id where result = 'Winner')"], "neg": ["the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000", "the most enjoyed refers max(rating); 10-star refers to stars = 10", "worst rated refers to min(rating)", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "produced refers to role = 'producer'", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "who refers to name; appear the most refers to max(count(person_id)); percentage = divide(count(person_id where max(count(person_id))), count(person_id)) * 100%", "weighted stars = divide(sum(stars, percent), 100)"]}} {"set": {"query": "How many awards did the \"Agony\" win?", "pos": ["the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'"], "neg": ["win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'", "born in the USA refers to birth_country = 'USA'", "nominated refers to result = 'Nominee'", "at least two awards refers to count(role) >1", "the highest number of crews refers to max(count(person_id)); in the Art Department refers to category = 'Art Department'", "the 2nd-highest number of votes refers to second max(votes)", "72 10-star votes refers to stars = 10 and votes = 72", "who refers to name; the youngest person refers to max(birthdate); a \"clerk\" role refers to role = 'Clerk'", "the tallest refers to max(height_meters)"]}} {"set": {"query": "Which episodes are nominated for an awards but not win?", "pos": ["nominated for an award but not win refers to result = 'Nominee'"], "neg": ["from Canada refers to birth_country = Canada; nominated refers to award is NOT NULL", "win refers to result = 'Winner'; the most awards refers to max(count(award_id))", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'", "the \"True North\" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'", "episode refers to title; most enjoyed by the viewers refers to stars = 10", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "director refers to role = 'director'; received an award refers to result = 'Winner'; episode number refers to episode", "have not won any award refers to Result = 'Nominee'", "the most refers to max(votes); 10-star refers to stars = 10", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'"]}} {"set": {"query": "What is the episode that has mafia keyword?", "pos": ["mafia keyword refers to Keyword = 'mafia'"], "neg": ["the tallest refers to max(height_meters)", "average ranking = divide(sum(rating), sum(episode_id))", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "the most enjoyed refers max(rating); 10-star refers to stars = 10", "episode number refers to episode_id; awarded \"Best Television Episode\" refers to award = 'Best Television Episode' and result = 'Winner'; the second highest positive viewer comments refers to rating = 8.5", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "the most refers to max(votes); 1 star refers to stars = '1'", "the \"True North\" episode refers to title = 'True North'; 1-star refers to stars = 1; percentage = divide(count(episode_id where stars = 1), count(episode_id)) * 100% where title = 'True North'"]}} {"set": {"query": "List down the titles of the top 3 episodes, from highest to lowest, in terms of their weighted stars.", "pos": ["weighted stars = divide(sum(stars, percent), 100)"], "neg": ["the most award won refers to max(episode_id where result = 'Winner')", "the most enjoyed refers max(rating); 10-star refers to stars = 10", "born in the USA refers to birth_country = 'USA'", "full place of birth refers to birth_place, birth_region; Rene Chenevert Balcer refers to birth_name = 'Rene Chenevert Balcer'", "have not won any award refers to Result = 'Nominee'", "have not been credited refers to credited = ''", "episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'", "the 2nd-highest number of votes refers to second max(votes)", "who refers to name; the role of the \"president of NBC West Coast\" refers to role = 'president of NBC West Coast'; the first episode refers to episode = 1", "average ranking = divide(sum(rating), sum(episode_id))"]}} {"set": {"query": "What is the title of the 3 worst rated episodes?", "pos": ["worst rated refers to min(rating)"], "neg": ["average ranking = divide(sum(rating), sum(episode_id))", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "won an award refers to result = 'Winner'; role as director refers to role = 'director'", "least enjoyed refers to stars = 1", "did not enjoy refers to stars = 1; the finale episode refers to episode = 24", "who refers to name; narrator refers to role = 'Narrator'; the \"Flight\" episode refers to title = 'Flight'", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "episode refers to title; the two keywords \"nun\" and \"priest\" refers to keyword = 'nun' or keyword = 'priest';", "produced refers to role = 'producer'", "not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'"]}} {"set": {"query": "How many people were not credited at the end of the \"Admissions\" episode?", "pos": ["not credited refers to credited = ''; the \"Admissions\" episode refers to title = 'Admissions'"], "neg": ["who refers to name; portraying \"Alex Brown\" refers to role = 'Alex Brown'; has been credited refers to credited = 'true'", "titled DWB refers to title = 'DWB'; get an award refers to result = 'Winner'", "episode refers to title; the highest total number of viewer votes refers to max(sum(votes))", "episode refers to title; most enjoyed by the viewers refers to stars = 10", "appeared in the credit refers to credited = 'TRUE'; from the 185th to the 193rd episode refers to number_in_series between 185 and 193; cast refers to category = 'Cast'; average number = divide(count(episode_id), 9)", "who refers to name; the youngest person refers to max(birthdate); a \"clerk\" role refers to role = 'Clerk'", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "American refers to birth_country = 'USA'; cast refers to category = 'Cast'; uncredited refers to credited = ''", "titled \"Cherished\" refers to title = 'Cherished'", "born in the USA refers to birth_country = 'USA'"]}} {"set": {"query": "What are the names of the person that were not credited at the end of episode tt0629391?", "pos": ["not credited refers to credited = ''; episode tt0629391 refers to episode_id = 'tt0629391'"], "neg": ["Law and Order refers to series = 'Law and Order'", "episode refers to title; \"Outstanding Costume Design for a Series\" refers to award = 'Outstanding Costume Design for a Series'", "win refers to result = 'Winner'; the \"Outstanding Guest Actress in a Drama Series\" award refers to award = 'Outstanding Guest Actress in a Drama Series'; the 1999 refers to year = 1999; Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'", "the Best Television Episode award refers to award = 'Best Television Episode'; the Edgar category refers to award_category = 'Edgar'; in 2000 refers to year = 2000", "the most enjoyed refers max(rating); 10-star refers to stars = 10", "the most award won refers to max(episode_id where result = 'Winner')", "no less than 30 votes refers to votes > = 30; 10-star rating refers to stars = 10", "weighted stars = divide(sum(stars, percent), 100)", "the \"Agony\" refers to title = 'Agony'; win refers to result = 'Winner'", "worst rated refers to min(rating)"]}} {"set": {"query": "List the full name of legislators whose born in 1960.", "pos": ["full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';"], "neg": ["have an Instagram account refers to instagram is NOT null and instagram <>''", "religion refers to religion_bio;", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;", "older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name", "female refers to gender_bio = 'F'"]}} {"set": {"query": "For how many terms have the oldest current legislator served?", "pos": ["oldest legislator refers to MIN(birthday_bio);"], "neg": ["have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "have an Instagram account refers to instagram is NOT null and instagram <>''", "Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party", "district number refers to district; representative of the house refers to type = 'rep';", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "female refers to gender_bio = 'F';", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name"]}} {"set": {"query": "List all the junior senators in 1997.", "pos": ["junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';"], "neg": ["started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "Virginia refers to state = 'VA'", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'", "have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738", "California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';"]}} {"set": {"query": "State the opensecrets_id of the legislator whose YouTube name is Bluetkemeyer.", "pos": ["Bluetkemeyer refers to youtube"], "neg": ["started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "served for the most number of terms refers to MAX(COUNT(bioguide));", "female refers to gender_bio = 'F';", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "MaxineWaters relates to youtube", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "official Twitter handle refers to twitter;", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'"]}} {"set": {"query": "Among legislators who have an Instagram account, list down their full names and nicknames who have a Thomas ID of less than 1000.", "pos": ["have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;"], "neg": ["ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "term that started on 2013/1/3 refers to start = '2013-01-03';", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name", "district no. 13 refers to district = 13;", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'"]}} {"set": {"query": "How many females were members of the past legislators?", "pos": ["female refers to gender_bio = 'F'"], "neg": ["start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name", "Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "served for the most number of terms refers to MAX(COUNT(bioguide));", "open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';", "full name refers to official_full_name; chose Pro-Administration as their political party refers to party = 'Pro-Administration'; 1791 refers to start < = 1791 AND END > = 1791", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738", "term that started on 2013/1/3 refers to start = '2013-01-03';"]}} {"set": {"query": "Provide the start date, end date, and party of Pearl Peden Oldfield.", "pos": ["start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name"], "neg": ["term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "official Twitter handle refers to twitter;", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738"]}} {"set": {"query": "What is the google entity ID of current legislator Sherrod Brown?", "pos": ["Sherrod Brown is an official_full_name"], "neg": ["birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name", "birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "contact URL refers to contact_form; Claire McCaskill is an official_full_name", "female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)", "junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "full name refers to official_full_name;"]}} {"set": {"query": "Among the current legislators who have served for more than 6 terms, how many of them were born after 1960?", "pos": ["served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'"], "neg": ["junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';", "district number refers to district; representative of the house refers to type = 'rep';", "full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'", "start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name", "have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F'", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "representatives refers to type = 'rep'; Maine refers to state = 'ME';"]}} {"set": {"query": "Please list the full official names of all the current legislators who served the term that started on 2013/1/3.", "pos": ["term that started on 2013/1/3 refers to start = '2013-01-03';"], "neg": ["Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)", "Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "do not have instagram account refers to instagram is null;", "not senator refers to class is null;", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'", "percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''"]}} {"set": {"query": "What is the party of the legislator named Susan M. Collins?", "pos": ["legislator's name refers to offical_full_name;"], "neg": ["full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'", "older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name", "served for the most number of terms refers to MAX(COUNT(bioguide));", "served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name", "district no. 13 refers to district = 13;"]}} {"set": {"query": "What is the name of the legislator with the ID of W000059?", "pos": ["name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';"], "neg": ["served for the most number of terms refers to MAX(COUNT(bioguide));", "not senator refers to class is null;", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "religion refers to religion_bio;", "are senator refers to class IS NOT NULL; born in 1964 refers to birthday_bio = 1964; calculation = MULTIPLY(DIVIDE(COUNT(class IS NOT NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)", "percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';"]}} {"set": {"query": "List the full name of all current female senators.", "pos": ["full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'"], "neg": ["MaxineWaters relates to youtube", "religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "contact URL refers to contact_form; Claire McCaskill is an official_full_name", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;", "are senator refers to class IS NOT NULL; born in 1964 refers to birthday_bio = 1964; calculation = MULTIPLY(DIVIDE(COUNT(class IS NOT NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)"]}} {"set": {"query": "What was current legislator Sherrod Brown's Washington, D.C. office phone number during his term starting on 2013/1/3?", "pos": ["Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';"], "neg": ["full name refers to official_full_name; chose Pro-Administration as their political party refers to party = 'Pro-Administration'; 1791 refers to start < = 1791 AND END > = 1791", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null;", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "have served in the U.S. House refers to house_history_id is not null;", "Richard Durbin is an official_full_name;\u00a0 official_full_name refers to first_name, last_name; district 20 refers to district = 20", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)"]}} {"set": {"query": "List the official full names of all the legislators that served 13 district for 26 consecutive years.", "pos": ["served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26"], "neg": ["term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "religion refers to religion_bio;", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "district number refers to district; representative of the house refers to type = 'rep';", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';"]}} {"set": {"query": "Which state did Veronica Grace Boland represent and which party is she affiliated?", "pos": ["Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party"], "neg": ["start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'", "California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;", "gender refers to gender_bio", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';"]}} {"set": {"query": "Among all the current legislators whose religion is Roman Catholic, what is the percentage of the ones without an instagram account?", "pos": ["religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)"], "neg": ["ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;", "open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';", "do not have an account on instagram refers to instagram is null", "once a senator during term refers to state_rank IS NOT NULL", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "full official name refers to official_full_name", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';"]}} {"set": {"query": "Which legislators do not have instagram account?", "pos": ["do not have instagram account refers to instagram is null;"], "neg": ["full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "district no. 13 refers to district = 13;", "legislator's name refers to offical_full_name;", "have an Instagram account refers to instagram is NOT null and instagram <>''", "Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;", "term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "official Twitter handle refers to twitter;", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';"]}} {"set": {"query": "How many legislators have an Instagram account?", "pos": ["have an Instagram account refers to instagram is NOT null and instagram <>''"], "neg": ["served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'", "district number refers to district; representative of the house refers to type = 'rep';", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';"]}} {"set": {"query": "In California, how many representatives ended their term in 1995?", "pos": ["California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';"], "neg": ["female refers to gender_bio = 'F'", "Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party", "Virginia refers to state = 'VA'", "percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';", "older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name", "not senator refers to class is null;", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)"]}} {"set": {"query": "What is the gender of the legislator whose address at 317 Russell Senate Office Building Washington DC 20510?", "pos": ["gender refers to gender_bio"], "neg": ["do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';", "not senator refers to class is null;", "have served in the U.S. House refers to house_history_id is not null;", "served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''"]}} {"set": {"query": "Does Thomas Carnes have an account on ballotpedia.org?", "pos": ["if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is null then Thomas Carnes doesn't have an account on ballotpedia.org; if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is NOT null then Thomas Carnes have an account on ballotpedia.org;"], "neg": ["do not have an account on instagram refers to instagram is null", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "Bluetkemeyer refers to youtube", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name", "have an Instagram account refers to instagram is NOT null and instagram <>''", "woman refers to gender_bio = 'F';"]}} {"set": {"query": "What is the birthday of Amy Klobuchar?", "pos": ["birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name"], "neg": ["Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "do not have instagram account refers to instagram is null;", "woman refers to gender_bio = 'F';", "Bluetkemeyer refers to youtube", "contact URL refers to contact_form; Claire McCaskill is an official_full_name", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "oldest legislator refers to MIN(birthday_bio);", "female refers to gender_bio = 'F'", "start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name"]}} {"set": {"query": "What is the numeric ID of Chris Van Hollen on GovTrack.us?", "pos": ["Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack"], "neg": ["Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)", "full name refers to official_full_name;", "Sherrod Brown is an official_full_name", "woman refers to gender_bio = 'F';", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'"]}} {"set": {"query": "Among the legislators who will end in 2009, how many are from the Republican party?", "pos": ["the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'"], "neg": ["birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "Bluetkemeyer refers to youtube", "district no. 13 refers to district = 13;", "district number refers to district; representative of the house refers to type = 'rep';", "contact URL refers to contact_form; Claire McCaskill is an official_full_name", "religion refers to religion_bio;", "birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "Idaho refers to state = 'ID';", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null"]}} {"set": {"query": "Among all the female current legislators, how many of them have served for more than 4 terms?", "pos": ["female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)"], "neg": ["female refers to gender_bio = 'F'", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "full official name refers to official_full_name", "district no. 13 refers to district = 13;", "have an Instagram account refers to instagram is NOT null and instagram <>''", "contact URL refers to contact_form; Claire McCaskill is an official_full_name", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'"]}} {"set": {"query": "How old was Jr. F. James Sensenbrenner when he first started as a legislator?", "pos": ["Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)"], "neg": ["junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "female refers to gender_bio = 'F';", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';", "have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738"]}} {"set": {"query": "Please list the official full names of all the current legislators who do not have an account on C-SPAN's video website.", "pos": ["legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''"], "neg": ["once a senator during term refers to state_rank IS NOT NULL", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'", "full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null;", "religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)", "legislator's name refers to offical_full_name;", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "oldest legislator refers to MIN(birthday_bio);", "ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;", "term that started on 2013/1/3 refers to start = '2013-01-03';", "served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26"]}} {"set": {"query": "List the official full names of 10 legislators who have a YouTube account but no Instagram account.", "pos": ["have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')"], "neg": ["have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)", "district number refers to district; representative of the house refers to type = 'rep';", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';", "female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "Sherrod Brown is an official_full_name", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)"]}} {"set": {"query": "How many current legislators do not have an account on ballotpedia.org ?", "pos": ["do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''"], "neg": ["have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name", "female refers to gender_bio = 'F';", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;", "legislator's name refers to offical_full_name;", "Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party", "junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';"]}} {"set": {"query": "Give the full name of the legislators with an independent party.", "pos": ["full name refers to official_full_name;"], "neg": ["older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name", "Bluetkemeyer refers to youtube", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "once a senator during term refers to state_rank IS NOT NULL", "have served in the U.S. House refers to house_history_id is not null;", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)", "start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;"]}} {"set": {"query": "Give the Wikipedia IDs of historical legislators who are Readjuster Democrats.", "pos": ["Readjuster Democrats refers to party = 'Readjuster Democrat'"], "neg": ["birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "Independent party refers to party = 'Independent'", "served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'", "start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name"]}} {"set": {"query": "Among the legislators who have served in the U.S. House, provide the party and the state of the legislators who were born in 1738.", "pos": ["have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738"], "neg": ["full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "Idaho refers to state = 'ID';", "once a senator during term refers to state_rank IS NOT NULL", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "religion refers to religion_bio;", "religion refers to religion_bio;", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))"]}} {"set": {"query": "List down the MapLight ID of the representatives in Maine.", "pos": ["representatives refers to type = 'rep'; Maine refers to state = 'ME';"], "neg": ["term that started on 2013/1/3 refers to start = '2013-01-03';", "do not have an account on instagram refers to instagram is null", "gender refers to gender_bio", "full official name refers to official_full_name", "full name refers to official_full_name;", "full name refers to official_full_name; chose Pro-Administration as their political party refers to party = 'Pro-Administration'; 1791 refers to start < = 1791 AND END > = 1791", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;", "not senator refers to class is null;", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'"]}} {"set": {"query": "How many of the legislators are female?", "pos": ["female refers to gender_bio = 'F';"], "neg": ["Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31';", "Bluetkemeyer refers to youtube", "female refers to gender_bio = 'F'", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is null then Thomas Carnes doesn't have an account on ballotpedia.org; if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is NOT null then Thomas Carnes have an account on ballotpedia.org;", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';"]}} {"set": {"query": "List the official full names of all the legislators who have facebook, instagram, twitter and youtube accounts.", "pos": ["have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;"], "neg": ["religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "female refers to gender_bio = 'F';", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "district number refers to district; representative of the house refers to type = 'rep';", "term that started on 2013/1/3 refers to start = '2013-01-03';", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "do not have an account on instagram refers to instagram is null"]}} {"set": {"query": "How many female representatives are there in Michigan?", "pos": ["female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';"], "neg": ["do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "MaxineWaters relates to youtube", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)"]}} {"set": {"query": "For which state did current legislator Sherrod Brown serve during his term that started on 1993/1/5?", "pos": ["Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';"], "neg": ["are senator refers to class IS NOT NULL; born in 1964 refers to birthday_bio = 1964; calculation = MULTIPLY(DIVIDE(COUNT(class IS NOT NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "genders refers to gender_bio; Collins is a last_name", "term that started on 2013/1/3 refers to start = '2013-01-03';", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'", "have an Instagram account refers to instagram is NOT null and instagram <>''", "start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';", "official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name"]}} {"set": {"query": "What is the title of legislator whose birthday on 2/20/1942?", "pos": ["birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'"], "neg": ["older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)", "district number refers to district; representative of the house refers to type = 'rep';", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;", "gender refers to gender_bio", "Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31';", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;", "male refers to gender_bio = 'M'; female refers to gender_bio = 'F'; calculation = DIVIDE(COUNT(gender_bio = 'M' THEN bioguide_id), COUNT(gender_bio = 'F' THEN bioguide_id))"]}} {"set": {"query": "List all the representatives in 1789 along with the districts and state.", "pos": ["representatives refers to type = 'rep'; in 1789 refers to start like '1789%';"], "neg": ["official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "religion refers to religion_bio;", "percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)", "full official name refers to official_full_name", "older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "male refers to gender_bio = 'M'; female refers to gender_bio = 'F'; calculation = DIVIDE(COUNT(gender_bio = 'M' THEN bioguide_id), COUNT(gender_bio = 'F' THEN bioguide_id))"]}} {"set": {"query": "What are the Facebook, Twitter and YouTube usernames of Adam Kinzinger?", "pos": ["Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name"], "neg": ["genders refers to gender_bio; Collins is a last_name", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';", "full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null;", "have served in the U.S. House refers to house_history_id is not null;", "served for the most number of terms refers to MAX(COUNT(bioguide));", "term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "born in 1736 refers to birthday_bio like '1736%';", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;"]}} {"set": {"query": "List the full name of all the senior senators in year 2013.", "pos": ["full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'"], "neg": ["legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is null then Thomas Carnes doesn't have an account on ballotpedia.org; if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is NOT null then Thomas Carnes have an account on ballotpedia.org;", "Sherrod Brown is an official_full_name", "have served in the U.S. House refers to house_history_id is not null;", "full official name refers to official_full_name", "have an Instagram account refers to instagram is NOT null and instagram <>''", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;"]}} {"set": {"query": "What is the official Twitter handle of Jason Lewis?", "pos": ["official Twitter handle refers to twitter;"], "neg": ["legislator's name refers to offical_full_name;", "female refers to gender_bio = 'F'", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "Richard Durbin is an official_full_name;\u00a0 official_full_name refers to first_name, last_name; district 20 refers to district = 20", "birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'", "woman refers to gender_bio = 'F';", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)", "difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'"]}} {"set": {"query": "What are the full names of the non-google female entity legislators that have not been registered in Federal Election Commission data?", "pos": ["full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null;"], "neg": ["served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;", "MaxineWaters relates to youtube", "open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';", "official Twitter handle refers to twitter;", "female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;", "religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)", "served for the most number of terms refers to MAX(COUNT(bioguide));", "Richard Durbin is an official_full_name;\u00a0 official_full_name refers to first_name, last_name; district 20 refers to district = 20", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);"]}} {"set": {"query": "Which legislators are woman?", "pos": ["woman refers to gender_bio = 'F';"], "neg": ["Bluetkemeyer refers to youtube", "born in 1736 refers to birthday_bio like '1736%';", "do not have an account on instagram refers to instagram is null", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "gender refers to gender_bio", "once a senator during term refers to state_rank IS NOT NULL", "Sherrod Brown is an official_full_name", "ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)"]}} {"set": {"query": "Give the official full names of legislators representing Virginia.", "pos": ["Virginia refers to state = 'VA'"], "neg": ["full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null;", "full name refers to official_full_name;", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "have an Instagram account refers to instagram is NOT null and instagram <>''", "do not have instagram account refers to instagram is null;", "served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "are senator refers to class IS NOT NULL; born in 1964 refers to birthday_bio = 1964; calculation = MULTIPLY(DIVIDE(COUNT(class IS NOT NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "woman refers to gender_bio = 'F';"]}} {"set": {"query": "What is the username of the current official Facebook presence of current legislator Todd Young?", "pos": ["Todd Young is an official_full_name; username of current official Facebook presences refers to facebook;"], "neg": ["have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "woman refers to gender_bio = 'F';", "Independent party refers to party = 'Independent'", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "do not have an account on instagram refers to instagram is null", "full name refers to official_full_name;", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''"]}} {"set": {"query": "List down the open secrets and thomas ID of the democrat senators of New Jersey.", "pos": ["open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';"], "neg": ["birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name", "start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';", "legislator's name refers to offical_full_name;", "gender refers to gender_bio", "district no. 13 refers to district = 13;", "term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "do not have an account on instagram refers to instagram is null", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)", "Virginia refers to state = 'VA'"]}} {"set": {"query": "What is the religion of current legislator Sherrod Brown?", "pos": ["religion refers to religion_bio;"], "neg": ["do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'", "have served in the U.S. House refers to house_history_id is not null;", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);", "Bluetkemeyer refers to youtube", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''", "Readjuster Democrats refers to party = 'Readjuster Democrat'"]}} {"set": {"query": "How many times did Richard Durbin become a legislator in district 20?", "pos": ["Richard Durbin is an official_full_name;\u00a0 official_full_name refers to first_name, last_name; district 20 refers to district = 20"], "neg": ["religion refers to religion_bio;", "have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F'", "have an Instagram account refers to instagram is NOT null and instagram <>''", "birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name", "full official name refers to official_full_name", "percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';", "full name refers to official_full_name;", "are senator refers to class IS NOT NULL; born in 1964 refers to birthday_bio = 1964; calculation = MULTIPLY(DIVIDE(COUNT(class IS NOT NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)"]}} {"set": {"query": "What is the average number of terms served for a current legislator that's famous or impact?", "pos": ["average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;"], "neg": ["born in 1736 refers to birthday_bio like '1736%';", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "once a senator during term refers to state_rank IS NOT NULL", "California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';", "gender refers to gender_bio", "Richard Durbin is an official_full_name;\u00a0 official_full_name refers to first_name, last_name; district 20 refers to district = 20", "official Twitter handle refers to twitter;", "full name refers to official_full_name;", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';"]}} {"set": {"query": "For how many terms has current legislator Sherrod Brown served as a representative for district no.13?", "pos": ["district no. 13 refers to district = 13;"], "neg": ["birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "full official name refers to official_full_name", "born in 1736 refers to birthday_bio like '1736%';", "do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "Idaho refers to state = 'ID';", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'", "served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';", "MaxineWaters relates to youtube"]}} {"set": {"query": "List the full name of all past legislators that chose Pro-Administration as their political party in year 1791.", "pos": ["full name refers to official_full_name; chose Pro-Administration as their political party refers to party = 'Pro-Administration'; 1791 refers to start < = 1791 AND END > = 1791"], "neg": ["served for the most number of terms refers to MAX(COUNT(bioguide));", "once a senator during term refers to state_rank IS NOT NULL", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "Independent party refers to party = 'Independent'", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "contact URL refers to contact_form; Claire McCaskill is an official_full_name"]}} {"set": {"query": "Among all the current legislators who have served for more than 4 terms, what is the percentage of them being female?", "pos": ["have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F'"], "neg": ["average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "female refers to gender_bio = 'F';", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;", "female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';"]}} {"set": {"query": "What is the ratio between male and female legislators?", "pos": ["ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'"], "neg": ["religion refers to religion_bio;", "Sherrod Brown is an official_full_name", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738", "difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';", "ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;", "genders refers to gender_bio; Collins is a last_name", "official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))"]}} {"set": {"query": "What is the full name of the oldest legislator?", "pos": ["full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);"], "neg": ["started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "Sherrod Brown is an official_full_name", "California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "MaxineWaters relates to youtube", "difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';", "once a senator during term refers to state_rank IS NOT NULL", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "female refers to gender_bio = 'F'", "do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''"]}} {"set": {"query": "To which current legislator does twitter ID234128524 belong? Please give his or her full official name.", "pos": ["full official name refers to official_full_name"], "neg": ["Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';", "Idaho refers to state = 'ID';", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);", "do not have instagram account refers to instagram is null;", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "have served in the U.S. House refers to house_history_id is not null;", "have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738", "Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';"]}} {"set": {"query": "Who is the Pro-Administration senator that runs from March 4, 1789 to December 31, 1791?", "pos": ["Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31';"], "neg": ["Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "genders refers to gender_bio; Collins is a last_name", "legislator's name refers to offical_full_name;", "full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'", "do not have an account on instagram refers to instagram is null", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "do not have instagram account refers to instagram is null;", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)"]}} {"set": {"query": "Who is the Lutheran representative that served in the state of Ohio for 14 years before becoming a senator?", "pos": ["Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;"], "neg": ["do not have an account on instagram refers to instagram is null", "have served in the U.S. House refers to house_history_id is not null;", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is null then Thomas Carnes doesn't have an account on ballotpedia.org; if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is NOT null then Thomas Carnes have an account on ballotpedia.org;", "Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party", "served for the most number of terms refers to MAX(COUNT(bioguide));", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "once a senator during term refers to state_rank IS NOT NULL"]}} {"set": {"query": "Find the difference between the number of female senators and representatives born between 1930 to 1970.", "pos": ["difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';"], "neg": ["Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;", "Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';", "Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31';", "full name refers to official_full_name;", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "term that started on 2013/1/3 refers to start = '2013-01-03';", "religion is Roman Catholic refers to religion_bio = 'Roman Catholic'; calculation = MULTIPLY(DIVIDE(COUNT(instagram is null), COUNT(bioguide_id)), 1.0)", "Sherrod Brown is an official_full_name", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)", "open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';"]}} {"set": {"query": "Calculate the percentage of legislators who are not Senator and were born before 1975.", "pos": ["not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)"], "neg": ["served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'", "Bluetkemeyer refers to youtube", "do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "legislator's name refers to offical_full_name;", "contact URL refers to contact_form; Claire McCaskill is an official_full_name", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';"]}} {"set": {"query": "List the official full names and genders of legislators who have Collins as their last name.", "pos": ["genders refers to gender_bio; Collins is a last_name"], "neg": ["birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party", "district number refers to district; representative of the house refers to type = 'rep';", "legislator's name refers to offical_full_name;", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31';", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)"]}} {"set": {"query": "What is the contact URL of Claire McCaskill?", "pos": ["contact URL refers to contact_form; Claire McCaskill is an official_full_name"], "neg": ["start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';", "female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)", "not senator refers to class is null;", "ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;", "Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31';", "legislator's name refers to offical_full_name;", "Todd Young is an official_full_name; username of current official Facebook presences refers to facebook;", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'"]}} {"set": {"query": "What is the username of the current official Facebook presence of the oldest current legislator?", "pos": ["username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)"], "neg": ["do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "Idaho refers to state = 'ID';", "served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "religion refers to religion_bio;", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is null then Thomas Carnes doesn't have an account on ballotpedia.org; if first_name = 'Thomas' and last_name = 'Carnes' AND ballotpedia_id is NOT null then Thomas Carnes have an account on ballotpedia.org;"]}} {"set": {"query": "Calculate the percentage of legislators who are Senator and were born in 1964.", "pos": ["are senator refers to class IS NOT NULL; born in 1964 refers to birthday_bio = 1964; calculation = MULTIPLY(DIVIDE(COUNT(class IS NOT NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)"], "neg": ["not senator refers to class is null;", "full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "religion refers to religion_bio;", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;", "full name refers to official_full_name;", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "Readjuster Democrats refers to party = 'Readjuster Democrat'"]}} {"set": {"query": "How many official social media does Mark Warner have?", "pos": ["official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name"], "neg": ["birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'", "religion refers to religion_bio;", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "term that started on 2013/1/3 refers to start = '2013-01-03';", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name"]}} {"set": {"query": "List all of the ids of the representatives belonging to the Democrat party in district 13 that ended their term on 1/3/2019?", "pos": ["ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';"], "neg": ["full name refers to official_full_name; female refers to gender_bio = 'F'; senators refers to type = 'sen'", "served for the most number of terms refers to MAX(COUNT(bioguide));", "have served in the U.S. House refers to house_history_id is not null;", "difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';", "religion refers to religion_bio;", "term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "gender refers to gender_bio", "term that started on 2013/1/3 refers to start = '2013-01-03';", "do not have an account on instagram refers to instagram is null", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')"]}} {"set": {"query": "Which current legislator is older, Sherrod Brown or Maria Cantwell?", "pos": ["older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name"], "neg": ["Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "do not have an account on instagram refers to instagram is null", "full official name refers to official_full_name", "once a senator during term refers to state_rank IS NOT NULL", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "MaxineWaters relates to youtube", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'"]}} {"set": {"query": "Among the legislators who started a term on 2nd December 1793, how many of them were males?", "pos": ["started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'"], "neg": ["do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "Idaho refers to state = 'ID';", "religion refers to religion_bio;", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'", "Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31';", "birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''"]}} {"set": {"query": "Among the current legislators who served the term starting on 2013/1/3, how many of them are female?", "pos": ["term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';"], "neg": ["official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name", "birthday on 2/20/1942 refers to birthday_bio = '1942-02-20'", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "full official name refers to official_full_name", "religion refers to religion_bio;", "Bluetkemeyer refers to youtube", "percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';"]}} {"set": {"query": "What is the full official name of the current legislator that has served for the most number of terms?", "pos": ["served for the most number of terms refers to MAX(COUNT(bioguide));"], "neg": ["term that started on 2013/1/3 refers to start = '2013-01-03';", "do not have instagram account refers to instagram is null;", "oldest legislator refers to MIN(birthday_bio);", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';", "have served in the U.S. House refers to house_history_id is not null;", "served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name", "born in 1736 refers to birthday_bio like '1736%';", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'"]}} {"set": {"query": "How many legislators were born in 1736?", "pos": ["born in 1736 refers to birthday_bio like '1736%';"], "neg": ["Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "district no. 13 refers to district = 13;", "full name refers to official_full_name;", "junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';", "have served in the U.S. House refers to house_history_id is not null;", "full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null;", "Idaho refers to state = 'ID';", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)"]}} {"set": {"query": "Among all the current female legislators, how many of them have attended in Senate roll call votes?", "pos": ["female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;"], "neg": ["full name refers to official_full_name;", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);", "gender refers to gender_bio", "official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name", "percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "female refers to gender_bio = 'F';", "Virginia refers to state = 'VA'", "contact URL refers to contact_form; Claire McCaskill is an official_full_name"]}} {"set": {"query": "What is the middle name of the legislator whose birthday was on 8/24/1956?", "pos": ["birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'"], "neg": ["not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "do not have instagram account refers to instagram is null;", "genders refers to gender_bio; Collins is a last_name", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "contact URL refers to contact_form; Claire McCaskill is an official_full_name", "name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';", "female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;", "term that started on 2013/1/3 refers to start = '2013-01-03';", "Sherrod Brown is an official_full_name"]}} {"set": {"query": "How many years had Jr. John Conyers served in total?", "pos": ["Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))"], "neg": ["served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "Twitter handle refers to twitter; Roger F. Wicker is an official_full_name", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "Idaho refers to state = 'ID';", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "female refers to gender_bio = 'F';", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';"]}} {"set": {"query": "Current legislator Roger F. Wicker has not been a representative for how many terms?", "pos": ["Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''"], "neg": ["start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "gender refers to gender_bio", "genders refers to gender_bio; Collins is a last_name", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name"]}} {"set": {"query": "List the IDs and full names of legislators from the Liberal Republican party.", "pos": ["full_name refers to first_name, last_name; from the Liberal Republican party refers to party = 'Liberal Republican'"], "neg": ["district number refers to district; representative of the house refers to type = 'rep';", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F'", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "have an Instagram account refers to instagram is NOT null and instagram <>''", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name", "term that started on 2013/1/3 refers to start = '2013-01-03';", "term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'"]}} {"set": {"query": "What is the ratio of males and females among historical legislators?", "pos": ["male refers to gender_bio = 'M'; female refers to gender_bio = 'F'; calculation = DIVIDE(COUNT(gender_bio = 'M' THEN bioguide_id), COUNT(gender_bio = 'F' THEN bioguide_id))"], "neg": ["legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "full official name refers to official_full_name", "female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;", "district no. 13 refers to district = 13;", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "not senator refers to class is null;", "oldest legislator refers to MIN(birthday_bio);"]}} {"set": {"query": "How many legislators are not senator?", "pos": ["not senator refers to class is null;"], "neg": ["female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)", "do not have an account on instagram refers to instagram is null", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)", "legislator's name refers to offical_full_name;", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')", "Todd Young is an official_full_name; username of current official Facebook presences refers to facebook;", "Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party", "Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';", "Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;", "start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';"]}} {"set": {"query": "Provide the current legislators' official full names who are from the Independent party.", "pos": ["Independent party refers to party = 'Independent'"], "neg": ["Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "legislator's name refers to offical_full_name;", "full name refers to official_full_name; chose Pro-Administration as their political party refers to party = 'Pro-Administration'; 1791 refers to start < = 1791 AND END > = 1791", "name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "have served in the U.S. House refers to house_history_id is not null;", "Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';"]}} {"set": {"query": "What are the Wikipedia page names of all the anti-administration senators?", "pos": ["Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';"], "neg": ["ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "woman refers to gender_bio = 'F';", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)", "difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';", "female refers to gender_bio = 'F'; have attended in Senate roll call votes refers to lis_id is not null;", "junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "MaxineWaters relates to youtube", "served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26"]}} {"set": {"query": "Based on the number of current legislators, calculate the percentage of legislators that served in 21st-Century.", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';"], "neg": ["Facebook, Twitter and YouTube usernames refers to facebook, twitter, youtube; Adam Kinzinger is an official_full_name", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);", "do not have an account on instagram refers to instagram is null", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "district no. 13 refers to district = 13;", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "once a senator during term refers to state_rank IS NOT NULL", "Todd Young is an official_full_name; username of current official Facebook presences refers to facebook;", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';"]}} {"set": {"query": "Give the religion of the legislator with RSS url of http://www.corker.senate.gov/public/index.cfm/rss/feed.", "pos": ["religion refers to religion_bio;"], "neg": ["Idaho refers to state = 'ID';", "female refers to gender_bio = 'F'; served for more than 4 terms refers to COUNT(bioguide > 4)", "male refers to gender_bio = 'M'; female refers to gender_bio = 'F'; calculation = DIVIDE(COUNT(gender_bio = 'M' THEN bioguide_id), COUNT(gender_bio = 'F' THEN bioguide_id))", "full name refers to official_full_name;", "Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;", "term that started on 2013/1/3 refers to start = '2013-01-03';", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;", "name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';"]}} {"set": {"query": "List the full names, Twitter IDs, and YouTube IDs of legislators who have Richard as their first name.", "pos": ["full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'"], "neg": ["female refers to gender_bio = 'F'", "born in 1736 refers to birthday_bio like '1736%';", "have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F'", "religion refers to religion_bio;", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "once a senator during term refers to state_rank IS NOT NULL", "do not have an account on instagram refers to instagram is null", "full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null;", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''"]}} {"set": {"query": "List down the district number of the representative of the house named Jonathan Grout.", "pos": ["district number refers to district; representative of the house refers to type = 'rep';"], "neg": ["difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';", "served for more than 6 terms refers to COUNT(bioguide > 6); born after 1960 refers to birthday_bio > = '1960-01-01'", "birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name", "Sherrod Brown is an full official name; started on 1993/1/5 refers to start = '1993-01-05';", "religion refers to religion_bio;", "Chris Van Hollen is an official_full_name; numeric ID on GovTrack.us refers to govtrack", "do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null", "full name refers to official_full_name;", "the legislators who will end in 2009 refers to END 2009; from the Republican party refers to party = 'Republican'", "start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';"]}} {"set": {"query": "How many districts are in Idaho?", "pos": ["Idaho refers to state = 'ID';"], "neg": ["difference = SUBTRACT(SUM(type = 'sen' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970'), SUM(type = 'rep' WHERE gender_bio = 'F' AND strftime('%Y', birthday_bio) between '1930' and '1970')); female refers to gender_bio = 'F'; senators refers to type = 'sen'; representatives refers to type = 'rep'; born between 1930 to 1970 strftime('%Y', birthday_bio) between '1930' and '1970';", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "full name refers to official_full_name;", "Sherrod Brown is an official_full_name", "female refers to gender_bio = 'F'", "not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';", "gender refers to gender_bio", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "official social media refers to facebook is not null, instagram is not null, twitter is not null, youtube is not null; Mark Warner is an official_full_name; official_full_name refers to first_name, last_name", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'"]}} {"set": {"query": "How many current legislators do not have an account on instagram?", "pos": ["do not have an account on instagram refers to instagram is null"], "neg": ["representatives refers to type = 'rep'; Maine refers to state = 'ME';", "term starting on 2013/1/3 refers to start = '2013-01-03; female refers to gender_bio = 'F';", "Lutheran refers to religion_bio = 'Lutheran'; representative refers to type = 'rep'; served for 14 years refers to SUBTRACT(SUM(CAST(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 14;", "legislators who do not have an account refers to cspan_id IS NULL OR cspan_id = ''", "genders refers to gender_bio; Collins is a last_name", "California refers to state = 'CA'; representatives refers to type = 'rep'; ended the term in 1995 refers to end like '1995%';", "Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31';", "start date refers to start; end date refers to end date; Pearl Peden Oldfield refers to official_full_name; official_full_name refers to first_name, middle_name, last_name", "full name refers to official_full_name; senior refers to state_rank = 'senior'; senators refers to type = 'sen'; 2013 refers to start LIKE '2013%'", "ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;"]}} {"set": {"query": "Please list the current official YouTube usernames of all the current female legislators.", "pos": ["official YouTube usernames refers to youtube; female refers to gender_bio = 'F'"], "neg": ["not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "legislator's name refers to offical_full_name;", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "male refers to gender_bio = 'M'; female refers to gender_bio = 'F'; calculation = DIVIDE(COUNT(gender_bio = 'M' THEN bioguide_id), COUNT(gender_bio = 'F' THEN bioguide_id))", "do not have instagram account refers to instagram is null;", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "once a senator during term refers to state_rank IS NOT NULL", "Independent party refers to party = 'Independent'", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)", "have a YouTube account but no Instagram account refers to facebook is not null and (instagram is null or instagram = '')"]}} {"set": {"query": "Give the religion of the legislator whose YouTube name is MaxineWaters.", "pos": ["MaxineWaters relates to youtube"], "neg": ["served for the most number of terms refers to MAX(COUNT(bioguide));", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "Independent party refers to party = 'Independent'", "Readjuster Democrats refers to party = 'Readjuster Democrat'", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "ids refers to bioguide; representatives refers to type = 'rep'; ended the term on 1/3/2019 refers to end = '2019-01-03';", "Jr. John Conyers is an official_full_name; years served refers to SUM(SUBTRACT(END, start))", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';", "Virginia refers to state = 'VA'"]}} {"set": {"query": "Please list the official full names of all the current legislators who have served in the U.S. House.", "pos": ["have served in the U.S. House refers to house_history_id is not null;"], "neg": ["do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "name of the legislator = first_name, last_name; ID of W000059 refers to bioguide_id = 'W000059';", "full name refers to official_full_name;", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)", "religion refers to religion_bio;", "not senator refers to class is null;", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "woman refers to gender_bio = 'F';", "district number refers to district; representative of the house refers to type = 'rep';", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'"]}} {"set": {"query": "Among the Independent senators that started their term in 2011 and onwards, what are the official full names of the senators that caucused with the Democrat?", "pos": ["Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';"], "neg": ["do not have an account on ballotpedia.org refers to ballotpedia_id IS NULL OR ballotpedia_id = ''", "Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "have an Instagram account refers to instagram is not null; full names refers to official_full_name; nicknames refers to nickname_name; Thomas ID of less than 1000 refers to thomas_id < 1000;", "average = DIVIDE(COUNT(bioguide), COUNT(bioguide_id)); legislator that's famous or impact refers to wikipedia_id is not null;", "junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';", "Veronica Grace Boland is a full name; full name refers to first_name, middle_name, last_name; party affiliated refers to party", "served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "ratio = DIVIDE(SUM(gender_bio = 'M'),\u00a0 SUM(gender_bio = 'F')); male refers to gender_bio = 'M'; female refers to gender_bio = 'F'", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''", "do not have an account on instagram refers to instagram is null"]}} {"set": {"query": "Please list the official full names of all the current legislators who were once a senator during his or her terms.", "pos": ["once a senator during term refers to state_rank IS NOT NULL"], "neg": ["religion refers to religion_bio;", "have served in the U.S. House refers to house_history_id IS NOT NULL; born in 1738 refers to birthday_bio = 1738", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "birthday refers to birthday_bio; Amy Klobuchar refers to full name; full name refers to first_name, last_name", "MaxineWaters relates to youtube", "older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name", "served for the most number of terms refers to MAX(COUNT(bioguide));", "full official name refers to official_full_name", "have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F'", "Roger F. Wicker is an official_full_name; not a representative refers to district IS NULL OR district = ''"]}} {"set": {"query": "Among the current legislators who do not have accounts on OpenSecrets.org., how many of them do not have instagram accounts either?", "pos": ["do not have accounts on OpenSecrets.org refers to opensecrets_ID is NULL OR opensecrets_id = ''; do not have instagram accounts refers to instagram is null"], "neg": ["full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null;", "full name = first_name, last_name; oldest legislator refers to MIN(birthday_bio);", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "female refers to gender_bio = 'F'; representatives refers to type = 'rep'; Michigan refers to state = 'MI';", "served only one district for 26 consecutive years refers to SUBTRACT(SUM(cast(strftime('%Y', end)), CAST(strftime('%Y', start)))) = 26", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "genders refers to gender_bio; Collins is a last_name", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';", "have served in the U.S. House refers to house_history_id is not null;"]}} {"set": {"query": "What is the current official Twitter handle of Roger F. Wicker?", "pos": ["Twitter handle refers to twitter; Roger F. Wicker is an official_full_name"], "neg": ["have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F'", "representatives refers to type = 'rep'; in 1789 refers to start like '1789%';", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "district number refers to district; representative of the house refers to type = 'rep';", "do not have an account on instagram refers to instagram is null", "are senator refers to class IS NOT NULL; born in 1964 refers to birthday_bio = 1964; calculation = MULTIPLY(DIVIDE(COUNT(class IS NOT NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "full names refers to official_full_name; Richard as their first name refers to first_name = 'Richard'", "representatives refers to type = 'rep'; Maine refers to state = 'ME';", "do not have instagram account refers to instagram is null;"]}} {"set": {"query": "State number of legislators who are not the senator among female legislators.", "pos": ["not the senator refers to class IS NULL OR class = ''; female refers to gender_bio = 'F';"], "neg": ["MaxineWaters relates to youtube", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "served for the most number of terms refers to MAX(COUNT(bioguide));", "full name refers to official_full_name; born in 1960 refers to birthday_bio like '1960%';", "open secrets refers to opensecrets_id; democrat refers to party = democrat; senators refers to type = 'sen'; New Jersey refers to state = 'NJ';", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "Pro-Administration refers to party = 'Pro-Administration'; senator refers to type = 'sen'; runs from March 4, 1789 refers to start = '1789-03-04'; runs to refers to end = '1791-12-31';", "older refers to MAX(birthday_bio); 'Sherrod Brown' and 'Maria Cantwell' are official_full_name", "once a senator during term refers to state_rank IS NOT NULL", "do not have an account on instagram refers to instagram is null"]}} {"set": {"query": "Provide the google entity ID of the senators in New York.", "pos": ["google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(strftime('%Y', start) between '2000' and '2017'), COUNT(bioguide_id)), 100.0); 1st-Century refers to strftime('%Y', T2.start) between '2000' and '2017';", "MaxineWaters relates to youtube", "term that started on 2013/1/3 refers to start = '2013-01-03';", "full official name refers to official_full_name", "gender refers to gender_bio", "female refers to gender_bio = 'F';", "Wikipedia page names refers to wikipedia_id; anti-administration refers to party = 'Anti-Administration'; senators refers to type = 'sen';", "Richard Durbin is an official_full_name;\u00a0 official_full_name refers to first_name, last_name; district 20 refers to district = 20", "do not have an account on instagram refers to instagram is null", "have served for more than 4 years refers to count(bioguide) > 4; percentage = MULTIPLY(DIVIDE(SUM(gender_bio = 'F'), count(bioguide)), 100.0); female refers to gender_bio = 'F'"]}} {"set": {"query": "Give the type and start date of the term of the legislator born on November 26, 1727.", "pos": ["start date of the term refers to start; born on November 26, 1727 refers to birthday_bio = '1727-11-26';"], "neg": ["junior senators refers to state_rank = 'junior'; in 1997 refers to start like '1997%';", "Independent refers to party = 'Independent'; senators refers to type = 'sen'; started the term in 2011 and onwards refers to strftime('%Y', start) > = '2011'; caucused with the Democrat refers to caucus = 'Democrat';", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "have facebook, instagram, twitter and youtube accounts refers to 'facebook' is not null AND 'instagram' is not null AND 'twitter' is not null AND 'youtube' is not null;", "username of the official Facebook refers to facebook; the oldest refers to MAX(birthday_bio)", "have served in the U.S. House refers to house_history_id is not null;", "full names = first_name, last_name; non-google entity refers to google_entity_id_id is null; female refers to gender_bio = 'F'; have not been registered in Federal Election Commission data refers to fec_id is null;", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "birthday was on 8/24/1956 refers to birthday_bio = '1956-08-24'", "Jr. F. James Sensenbrenner is an official_full_name; How old refers to SUBTRACT(MIN(start), birthday_bio)"]}} {"set": {"query": "What is the ratio between famous current legislators and famous historical legislators?", "pos": ["ratio = DIVIDE(COUNT(current.bioguide_id WHERE current.wikipedia_id is not null), COUNT(historical.bioguide_id WHERE historical.wikipedia_id is not null)); famous current legislators refers to current.wikipedia_id is not null; famous historical legislators refers to historical.wikipedia_id is not null;"], "neg": ["Washington, DC office phone number refers to phone; terms starting on 2013/1/3 refers to start = '2013-01-03';", "genders refers to gender_bio; Collins is a last_name", "not Senator refers to class is NULL; born before 1975 refers to birthday_bio < = 1975; calculation = MULTIPLY(DIVIDE(COUNT(class IS NULL THEN bioguide_id), COUNT(bioguide_id)), 1.0)", "official YouTube usernames refers to youtube; female refers to gender_bio = 'F'", "gender refers to gender_bio", "born in 1736 refers to birthday_bio like '1736%';", "started a term on 2nd December 1793 refers to start = '1793-12-02'; male refers to gender_bio = 'M'", "google entity ID refers to google_entity_id_id; senators refers to type = 'sen'; New York refers to state = 'NY';", "Todd Young is an official_full_name; username of current official Facebook presences refers to facebook;", "contact URL refers to contact_form; Claire McCaskill is an official_full_name"]}} {"set": {"query": "How many users answered \"Yes\" to the question \"Have you had a mental health disorder in the past?\" in 3 consecutive years starting from 2016?", "pos": ["question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018"], "neg": ["mental health survey for 2014 refers to SurveyID = 2014", "question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "mental health survey for 2018 refers to SurveyID = 2018", "respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))", "question refers to questiontext", "mental health survey for 2016 refers to SurveyID = 2016"]}} {"set": {"query": "How many users answered \"No\" to the question \"Would you bring up a mental health issue with a potential employer in an interview?\" in 2014's survey?", "pos": ["2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n"], "neg": ["respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%", "respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))", "mental health survey for 2016 refers to SurveyID = 2016", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))", "question refers to questiontext", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4", "mental health survey for 2018 refers to SurveyID = 2018"]}} {"set": {"query": "How many female users were surveyed in the mental health survey for 2017 in the state of Nebraska?", "pos": ["AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4"], "neg": ["2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6", "respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%", "From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID", "question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100", "mental health survey for 2018 refers to SurveyID = 2018", "question No.20 refers to QuestionID = 20", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))"]}} {"set": {"query": "What is the average age of the survey respondents in the United States?", "pos": ["Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3"], "neg": ["question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6", "question refers to questiontext; user No. 2681 refers to UserID = 2681\n\n", "question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34"]}} {"set": {"query": "From 2016 to 2019, how many users each year were asked the question 13?", "pos": ["From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID"], "neg": ["2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "question refers to questiontext", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n", "question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%", "2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))"]}} {"set": {"query": "How many questions in 2014's survey had more than 200 answers?", "pos": ["2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200"], "neg": ["\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))", "question refers to questiontext", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", "respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "mental health survey for 2014 refers to SurveyID = 2014"]}} {"set": {"query": "Please list all the common questions in 2014's survey and 2016's survey.", "pos": ["question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n"], "neg": ["question refers to questiontext", "Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'\n", "mental health survey for 2018 refers to SurveyID = 2018", "mental health survey for 2014 refers to SurveyID = 2014", "question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n"]}} {"set": {"query": "In 2019, how many users in the United States have a family history of mental illness?", "pos": ["2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6"], "neg": ["Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n", "question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "mental health survey for 2014 refers to SurveyID = 2014", "respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "question No.20 refers to QuestionID = 20", "mental health survey for 2018 refers to SurveyID = 2018", "mental health survey for 2016 refers to SurveyID = 2016", "question refers to questiontext; user No. 2681 refers to UserID = 2681\n\n"]}} {"set": {"query": "Please list the IDs of the users who answered \"Yes\" to the question \"Do you think that discussing a physical health issue with your employer would have negative consequences?\" in 2014's survey.", "pos": ["2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n"], "neg": ["question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "mental health survey for 2016 refers to SurveyID = 2016", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID", "mental health survey for 2018 refers to SurveyID = 2018", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "question No.20 refers to QuestionID = 20", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))"]}} {"set": {"query": "What was the most common answer for the question \"What country do you work in?\"?", "pos": ["most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))"], "neg": ["question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))", "mental health survey for 2016 refers to SurveyID = 2016", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n", "AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4", "respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "question refers to questiontext"]}} {"set": {"query": "How many users answered the question \"Overall, how much importance does your employer place on physical health?\"?", "pos": ["question refers to questiontext"], "neg": ["question refers to questiontext", "respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", "question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))", "respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%"]}} {"set": {"query": "How many users participated in the mental health survey for 2014?", "pos": ["mental health survey for 2014 refers to SurveyID = 2014"], "neg": ["question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))", "\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", "question refers to questiontext; user No. 2681 refers to UserID = 2681\n\n", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "mental health survey for 2016 refers to SurveyID = 2016", "Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n"]}} {"set": {"query": "How many users answered \"No\" to question 19?", "pos": ["Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'\n"], "neg": ["2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6", "2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4", "mental health survey for 2018 refers to SurveyID = 2018", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n", "\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))", "question refers to questiontext; user No. 2681 refers to UserID = 2681\n\n", "question refers to questiontext"]}} {"set": {"query": "How many respondents younger than 25 years old did participate in the survey in 2016?", "pos": ["respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25"], "neg": ["Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n", "mental health survey for 2018 refers to SurveyID = 2018", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))", "mental health survey for 2016 refers to SurveyID = 2016", "2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6"]}} {"set": {"query": "How many times more for the number of users who took the \"mental health survey for 2017\" than \"mental health survey for 2018\"?", "pos": ["How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))"], "neg": ["mental health survey for 2016 refers to SurveyID = 2016", "Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'\n", "Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3", "Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100", "question refers to questiontext; user No. 2681 refers to UserID = 2681\n\n", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "mental health survey for 2018 refers to SurveyID = 2018", "\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))", "respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%", "mental health survey for 2014 refers to SurveyID = 2014"]}} {"set": {"query": "Provide the number of users who took part in the \"mental health survey for 2016\".", "pos": ["mental health survey for 2016 refers to SurveyID = 2016"], "neg": ["question No.20 refers to QuestionID = 20", "question refers to questiontext", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", "question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))"]}} {"set": {"query": "How many users answered the question No.20?", "pos": ["question No.20 refers to QuestionID = 20"], "neg": ["mental health survey for 2016 refers to SurveyID = 2016", "\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3", "mental health survey for 2018 refers to SurveyID = 2018", "question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n"]}} {"set": {"query": "What is the percentage of the the users who would bring up a mental health issue with a potential employer in an interview?", "pos": ["Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100"], "neg": ["most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4", "respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%", "Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'\n", "2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200", "mental health survey for 2016 refers to SurveyID = 2016", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "mental health survey for 2014 refers to SurveyID = 2014", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34"]}} {"set": {"query": "Betweeen 2016 to 2019, which year recorded the highest number of people with mental illness?", "pos": ["Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34"], "neg": ["2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "question refers to questiontext", "Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'\n", "From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))", "mental health survey for 2018 refers to SurveyID = 2018", "mental health survey for 2014 refers to SurveyID = 2014", "respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%", "\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))"]}} {"set": {"query": "List the top three popular responses to the question of the survey in 2017 with the question ID no.85.", "pos": ["\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))"], "neg": ["question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'\n", "question refers to questiontext", "AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4", "mental health survey for 2016 refers to SurveyID = 2016", "question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "question refers to questiontext; user No. 2681 refers to UserID = 2681\n\n", "Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100", "From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))"]}} {"set": {"query": "What answer did user No. 2681 give to the question \"Do you currently have a mental health disorder?\"?", "pos": ["question refers to questiontext; user No. 2681 refers to UserID = 2681\n\n"], "neg": ["\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))", "Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100", "mental health survey for 2014 refers to SurveyID = 2014", "2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "2019 refer to SurveyID; Users in the United States refers to AnswerText = 'United States' where questionid = 3; have a family history of mental illness refers to AnswerText = 'Yes' where questionid = 6", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n", "AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n"]}} {"set": {"query": "Tell the number of surveys that contained the question \u201cWhat country do you work in?\u201d.", "pos": ["question refers to questiontext"], "neg": ["mental health survey for 2016 refers to SurveyID = 2016", "2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n", "question refers to questiontext", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4", "Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))"]}} {"set": {"query": "How many people wrote comments for the question \"Any additional notes or comments.\"?", "pos": ["question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1"], "neg": ["2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "question refers to questiontext; answered 'Yes' to question refers to AnswerText = 'Yes'; 3 consecutive years starting from 2016 refers to SurveyID = 2016 and SurveyID = 2017 and SurveyID = 2018", "question refers to questiontext", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100", "Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'\n", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n", "mental health survey for 2016 refers to SurveyID = 2016", "2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200"]}} {"set": {"query": "How many users, between the age 27 to 35, were surveyed in 2018?", "pos": ["Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n"], "neg": ["question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", "mental health survey for 2016 refers to SurveyID = 2016", "mental health survey for 2018 refers to SurveyID = 2018", "Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'\n", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "question refers to questiontext", "question No.20 refers to QuestionID = 20", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "mental health survey for 2014 refers to SurveyID = 2014"]}} {"set": {"query": "What is the average number of respondents per survey between 2014 and 2019?", "pos": ["respondents and 'users' are synonyms; average number = avg(count(userID(SurveyID = 2014)), count(userID(SurveyID = 2019)))"], "neg": ["respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200", "mental health survey for 2014 refers to SurveyID = 2014", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))", "question refers to questiontext", "respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%"]}} {"set": {"query": "For all the users who have been asked \"Have you ever been diagnosed with a mental health disorder?\", how many of them said \"Yes\"?", "pos": ["have asked refers to questiontext; said 'Yes' refers to AnswerText = 'Yes'"], "neg": ["Average age refer to AVG(AnswerText) where questionid = 1; respondents in the United States refers to AnswerText = 'United States' where questionid = 3", "\n\nsurvey in 2017 refers to SurveyID = 2017; questionID = 85; MAX(COUNT(AnswerText))", "How many times more = subtract(count(UserID(SurveyID = 2017)), count(UserID(SurveyID = 2018)))", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", "question refers to questiontext", "respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%", "question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1", "question refers to questiontext", "question refers to questiontext; all the common questions in 2014's survey and 2016's survey refers to QuestionID(SurveyID(2014)) = QuestionID(SurveyID(2016))\n", "AnswerText = 'Yes' where questiontext = 'Do you have a family history of mental illness?'; AnswerText = 'Female' where questionid = 2; AnswerText = 'Nebraska' where questionid = 4"]}} {"set": {"query": "State the number of questions that were asked in the \"mental health survey for 2018\".", "pos": ["mental health survey for 2018 refers to SurveyID = 2018"], "neg": ["Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", "mental health survey for 2014 refers to SurveyID = 2014", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "question refers to questiontext", "most common answer refers to AnswerText where MAX(COUNT(AnswerText(QuestionID = 3)))", "mental health survey for 2016 refers to SurveyID = 2016", "Question 19 refer to QuestionID = 19; No refer to AnswerText = 'No'\n", "2014 refer to SurveyID; COUNT(QuestionID) where COUNT(AnswerText) > 200", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n", "question refers to questiontext; wrote comments refers to AnswerText(QuestionID = 103) ! = -1"]}} {"set": {"query": "Among respondents who participated in the survey in 2016, what percentage had a mental health disorder in the past?", "pos": ["respondents and 'users' are synonyms; percentage = divide(count(SurveyID = 2016& QuestionID = 32 & AnswerText = 'Yes'), count(SurveyID = 2016& QuestionID = 32))*100%"], "neg": ["From 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; Question 13 refer to QuestionID", "mental health survey for 2018 refers to SurveyID = 2018", "Between 2016 to 2019 refer to SurveyID 2016 BETWEEN 2019; People with mental illness refers to AnswerText = 'Yes' where questionid = 34", "Age 27 to 35 refer to AnswerText 27 BETWEEN 35 where questionid = 1; 2018 refer to SurveyID\n\n", "Percentage = DIVIDE(SUM(AnswerText = 'Yes' Or AnswerText = 'Maybe'), COUNT(QuestionID = 12))* 100", "mental health survey for 2016 refers to SurveyID = 2016", "respondents' and 'users' are synonyms; younger than 25 years old refers to AnswerText(SurveyID = 2016& QuestionID = 1)< 25", "question No.20 refers to QuestionID = 20", "2014 refer to SurveyID; Answered No refer to AnswerText = 'No'; Question refer to questiontext\n\n", "2014 refer to SurveyID; Question refer to questiontext; yes refer to AnswerText = 'Yes'\n\n"]}} {"set": {"query": "Which dish has the highest price on the menu \"Zentral Theater Terrace\"? Please give its name.", "pos": ["highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;"], "neg": ["percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75;", "first appeared in 1861 refers to first_appeared = 1861;", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "created on 17th November 1898 refers to date = '1898-11-17';", "cost 180,000 refers to price = 180000;", "FALSE;", "FALSE;", "free refers to lowest_price = 0;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));"]}} {"set": {"query": "How much does the dish on page 2 of menu ID 12474 cost?", "pos": ["page 2 refers to page_number = 2;"], "neg": ["positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;", "highest price refers to MAX(Price); Clear green turtle is a name of dish;", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "first appeared in 1861 refers to first_appeared = 1861;", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "Clear green turtle is a name of dish;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;", "shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;"]}} {"set": {"query": "How many menus were created for lunch?", "pos": ["created for lunch refers to event = 'LUNCH';"], "neg": ["Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;", "page 2 refers to page_number = 2;", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;", "Clear green turtle is a name of dish;", "appeared on a menu more than once refers to times_appeared > menus_appeared;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4';", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';"]}} {"set": {"query": "What is the menu id of the menu sponsored by Occidental and Oriental Steamship Company with the highest number of pages?", "pos": ["sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));"], "neg": ["place refers to location;", "4 pages refers to page_count = 4;", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "highest price refers to MAX(Price); Clear green turtle is a name of dish;", "created for lunch refers to event = 'LUNCH';", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "menus that are DIYs of the restaurant refers to sponsor is null;"]}} {"set": {"query": "Provide the numbers of the menu item which includes Fresh lobsters in every style and location where that dish was used on a menu.", "pos": ["Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos);"], "neg": ["free refers to lowest_price = 0;", "Zentral Theater Terrace is a name of menu;", "mashed potatoes is a name of dish;", "cost 180,000 refers to price = 180000;", "if 'c02c9a3b-6881-7080-e040-e00a180631aa' can be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is the uuid for the menu called The Biltmore; if 'c02c9a3b-6881-7080-e040-e00a180631aa' can not be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is not the uuid for the menu called The Biltmore; The Biltmore is a name of menu;", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "longest full height refers to MAX(full_height);"]}} {"set": {"query": "Please list the IDs of all the menus that are DIYs of the restaurant.", "pos": ["menus that are DIYs of the restaurant refers to sponsor is null;"], "neg": ["shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "page 1 refers to page_number = 1;", "Clear green turtle is a name of dish; stable price refers to highest_price is null;", "first appeared in 1861 refers to first_appeared = 1861;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;", "first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900;"]}} {"set": {"query": "List the names and menu page IDs of the dishes that first appeared in 1861.", "pos": ["first appeared in 1861 refers to first_appeared = 1861;"], "neg": ["Dutcher House refers to location = 'Dutcher House';", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;", "page 2 refers to page_number = 2;", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "Clear Green Turtle is a name of dish; how long a dish appeared on the menu = SUBTRACT(last_appeared, first_appeared); latest update refers to latest updated_at;", "page ID of 130 refers MenuPage.id = 130;", "highest price refers to MAX(Price); Clear green turtle is a name of dish;", "cost 180,000 refers to price = 180000;"]}} {"set": {"query": "Calculate the total dish count for menu with uuid of \"510d47e4-2958-a3d9-e040-e00a18064a99\" & \"510d47e4-295a-a3d9-e040-e00a18064a99\".", "pos": ["total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99');"], "neg": ["place refers to location;", "longest full height refers to MAX(full_height);", "Clear green turtle is a name of dish;", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "highest price refers to MAX(highest_price);", "highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "4 pages refers to page_count = 4;", "total price = SUM(price);", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;"]}} {"set": {"query": "What is the average number of dishes per menu in the Souper de Luxe menus? Identify what is the name of the dish that appeared the most in all of its menus.", "pos": ["average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));"], "neg": ["highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;", "created on 17th November 1898 refers to date = '1898-11-17';", "highest price refers to MAX(highest_price);", "4 pages refers to page_count = 4;", "page ID of 130 refers MenuPage.id = 130;", "total price = SUM(price);", "Clear green turtle is a name of dish; stable price refers to highest_price is null;", "Zentral Theater Terrace is a name of menu;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "FALSE;"]}} {"set": {"query": "List the dishes that appeared at the left upper corner of the CHAS.BRADLEY'S OYSTER & DINING ROOM\"s sponsored menu.", "pos": ["appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';"], "neg": ["FALSE;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "4 pages refers to page_count = 4;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "total price = SUM(price);", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "Clear green turtle is a name of dish;", "appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;", "steamship refers to venue = 'STEAMSHIP';"]}} {"set": {"query": "Among the menu pages on which the dish \"Paysanne Soup\" had appeared, how many of them had a stable price for the dish?", "pos": ["Paysanne Soup is a name of dish; stable price refers to highest_price is null;"], "neg": ["total price = SUM(price);", "4 pages refers to page_count = 4;", "created for lunch refers to event = 'LUNCH';", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "appeared on a menu more than once refers to times_appeared > menus_appeared;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "highest dish count refers to MAX(dish_count);", "total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99');", "mashed potatoes is a name of dish;"]}} {"set": {"query": "Among the menus in which the dish \"Clear green turtle\" had appeared, how many of them did not support taking out or booking in advance?", "pos": ["Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;"], "neg": ["highest price refers to MAX(Price); Clear green turtle is a name of dish;", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "FALSE;", "first appeared in 1861 refers to first_appeared = 1861;", "longest full height refers to MAX(full_height);", "FALSE;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "Clear green turtle is a name of dish; stable price refers to highest_price is null;", "dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4';", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));"]}} {"set": {"query": "For how many times had the dish \"Chicken gumbo\" appeared on a menu page?", "pos": ["Chicken gumbo is a name of dish;"], "neg": ["menus that are DIYs of the restaurant refers to sponsor is null;", "free refers to lowest_price = 0;", "created for lunch refers to event = 'LUNCH';", "place refers to location;", "FALSE;", "mashed potatoes is a name of dish;", "appeared on a menu more than once refers to times_appeared > menus_appeared;", "shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;", "steamship refers to venue = 'STEAMSHIP';", "total price = SUM(price);"]}} {"set": {"query": "Please list the IDs of all the menus in which the dish \"Clear green turtle\" had appeared.", "pos": ["Clear green turtle is a name of dish;"], "neg": ["appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;", "cost 180,000 refers to price = 180000;", "page ID of 130 refers MenuPage.id = 130;", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;"]}} {"set": {"query": "Among all the menu pages with the appearance of the dish \"Clear green turtle\", how many of them have the dish at a stable price?", "pos": ["Clear green turtle is a name of dish; stable price refers to highest_price is null;"], "neg": ["Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "cost 180,000 refers to price = 180000;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "free refers to lowest_price = 0;", "steamship refers to venue = 'STEAMSHIP';", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "mashed potatoes is a name of dish;", "highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;"]}} {"set": {"query": "What is the average number of dishes per menu page of menu ID12882?", "pos": ["average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));"], "neg": ["appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;", "Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos);", "highest number of pages refers to MAX(COUNT(page_number));", "free refers to lowest_price = 0;", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;", "place refers to location;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "page 1 refers to page_number = 1;", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "highest dish count refers to MAX(dish_count);"]}} {"set": {"query": "What is the average page number of the menus that have the dish \"Clear green turtle\"?", "pos": ["average page number = AVG(page_number); Clear green turtle is a name of dish;"], "neg": ["page 2 refers to page_number = 2;", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;", "highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;", "longest full height refers to MAX(full_height);", "highest price refers to MAX(highest_price);", "total price = SUM(price);", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "cost 180,000 refers to price = 180000;"]}} {"set": {"query": "Please list the names of all the dishes that appeared on the menu \"Zentral Theater Terrace\".", "pos": ["Zentral Theater Terrace is a name of menu;"], "neg": ["appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;", "highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;", "total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99');", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "Clear green turtle is a name of dish;", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;", "menus that are DIYs of the restaurant refers to sponsor is null;", "appeared on a menu more than once refers to times_appeared > menus_appeared;"]}} {"set": {"query": "Tally the dishes that have appeared on the menu for more than 100 years.", "pos": ["appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;"], "neg": ["page 2 refers to page_number = 2;", "highest price refers to MAX(Price); Clear green turtle is a name of dish;", "Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos);", "FALSE;", "page ID of 130 refers MenuPage.id = 130;", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "highest price refers to MAX(highest_price);", "Clear green turtle is a name of dish; stable price refers to highest_price is null;", "Clear green turtle is a name of dish;"]}} {"set": {"query": "What are the names of the dishes with a stable price that were created in April of 2011?", "pos": ["dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4';"], "neg": ["highest price refers to MAX(Price); Clear green turtle is a name of dish;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "Dutcher House refers to location = 'Dutcher House';", "FALSE;", "created for lunch refers to event = 'LUNCH';", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "Clear green turtle is a name of dish;", "FALSE;"]}} {"set": {"query": "How many dishes are included in the menu page ID 144?", "pos": ["FALSE;"], "neg": ["if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "place refers to location;", "on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "most number of dishes refers to MAX(COUNT(dish_count));", "Dutcher House refers to location = 'Dutcher House';", "percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75;"]}} {"set": {"query": "Which menu page has a bigger width, page 1 of \"Zentral Theater Terrace\" or page 1 of \"Young's Hotel\"?", "pos": ["if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;"], "neg": ["steamship refers to venue = 'STEAMSHIP';", "Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "appeared on a menu more than once refers to times_appeared > menus_appeared;", "page ID of 130 refers MenuPage.id = 130;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "FALSE;", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "image area = MULTIPLY(full_height, full_width);", "positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;", "first appeared in 1861 refers to first_appeared = 1861;"]}} {"set": {"query": "State the name of menu with the longest full height.", "pos": ["longest full height refers to MAX(full_height);"], "neg": ["if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "appeared on a menu more than once refers to times_appeared > menus_appeared;", "total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99');", "on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;", "Zentral Theater Terrace is a name of menu;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "FALSE;", "highest price refers to MAX(Price); Clear green turtle is a name of dish;", "most number of dishes refers to MAX(COUNT(dish_count));", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';"]}} {"set": {"query": "Please list the prices of the dish \"Clear green turtle\" on every menu page it appeared on.", "pos": ["Clear green turtle is a name of dish;"], "neg": ["menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "first appeared in 1861 refers to first_appeared = 1861;", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "created for lunch refers to event = 'LUNCH';", "menus that are DIYs of the restaurant refers to sponsor is null;", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;"]}} {"set": {"query": "How many dishes have appeared on the menu in less than 5 years?", "pos": ["appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;"], "neg": ["most number of dishes refers to MAX(COUNT(dish_count));", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "highest number of pages refers to MAX(COUNT(page_number));", "first appeared in 1861 refers to first_appeared = 1861;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "FALSE;", "first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';"]}} {"set": {"query": "Among the dishes, how many of them are for free?", "pos": ["free refers to lowest_price = 0;"], "neg": ["Clear green turtle is a name of dish; stable price refers to highest_price is null;", "Clear green turtle is a name of dish;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "highest price refers to MAX(Price); Clear green turtle is a name of dish;", "most number of dishes refers to MAX(COUNT(dish_count));", "place refers to location;", "menus that are DIYs of the restaurant refers to sponsor is null;", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;"]}} {"set": {"query": "List down the image IDs for menu located at Manhattan Hotel.", "pos": ["located at Manhattan Hotel refers to location = 'Manhattan Hotel';"], "neg": ["first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "FALSE;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "image area = MULTIPLY(full_height, full_width);", "4 pages refers to page_count = 4;", "total price = SUM(price);", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "most number of dishes refers to MAX(COUNT(dish_count));", "percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75;"]}} {"set": {"query": "List down the name of dishes that were positioned on the left upper corner.", "pos": ["positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;"], "neg": ["mashed potatoes is a name of dish;", "4 pages refers to page_count = 4;", "highest number of pages refers to MAX(COUNT(page_number));", "highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "total price = SUM(price);", "total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99');", "first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900;", "FALSE;"]}} {"set": {"query": "Among the menu pages of \"Ritz Carlton\", how many of them have a width of over 1000?", "pos": ["Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;"], "neg": ["place refers to location;", "Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "FALSE;", "Chicken gumbo is a name of dish;", "free refers to lowest_price = 0;", "total price = SUM(price);", "positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;", "shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;", "FALSE;", "Clear Green Turtle is a name of dish; how long a dish appeared on the menu = SUBTRACT(last_appeared, first_appeared); latest update refers to latest updated_at;"]}} {"set": {"query": "How many dishes appeared on a menu more than once?", "pos": ["appeared on a menu more than once refers to times_appeared > menus_appeared;"], "neg": ["page ID of 130 refers MenuPage.id = 130;", "first appeared in 1861 refers to first_appeared = 1861;", "FALSE;", "page 1 refers to page_number = 1;", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;", "steamship refers to venue = 'STEAMSHIP';", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "4 pages refers to page_count = 4;"]}} {"set": {"query": "To which menu does the menu page image ID5189412 belong? Please give its name.", "pos": ["FALSE;"], "neg": ["appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "image area = MULTIPLY(full_height, full_width);", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "created on 17th November 1898 refers to date = '1898-11-17';", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "Clear green turtle is a name of dish;", "highest dish count refers to MAX(dish_count);", "Clear green turtle is a name of dish;"]}} {"set": {"query": "Among the menus with over 10 pages, how many of them have over 20 dishes?", "pos": ["menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;"], "neg": ["total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99');", "free refers to lowest_price = 0;", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75;", "highest price refers to MAX(highest_price);", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "FALSE;", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';"]}} {"set": {"query": "Write down the top ten menus with the highest dish count.", "pos": ["highest dish count refers to MAX(dish_count);"], "neg": ["highest price refers to MAX(highest_price);", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "cost 180,000 refers to price = 180000;", "total price = SUM(price);", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "longest full height refers to MAX(full_height);"]}} {"set": {"query": "How many dishes appear in the right upper corner of the menu page?", "pos": ["appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;"], "neg": ["highest number of pages refers to MAX(COUNT(page_number));", "free refers to lowest_price = 0;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "Chicken gumbo is a name of dish;", "Clear green turtle is a name of dish;", "FALSE;", "positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;"]}} {"set": {"query": "How many menus were created for steamship?", "pos": ["steamship refers to venue = 'STEAMSHIP';"], "neg": ["first appeared in 1861 refers to first_appeared = 1861;", "menus that are DIYs of the restaurant refers to sponsor is null;", "Dutcher House refers to location = 'Dutcher House';", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "FALSE;", "FALSE;", "highest dish count refers to MAX(dish_count);", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "Clear Green Turtle is a name of dish; how long a dish appeared on the menu = SUBTRACT(last_appeared, first_appeared); latest update refers to latest updated_at;", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;"]}} {"set": {"query": "What is the image ID of page 1 of the menu \"Zentral Theater Terrace\"?", "pos": ["page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;"], "neg": ["on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;", "appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "appeared on a menu more than once refers to times_appeared > menus_appeared;", "image area = MULTIPLY(full_height, full_width);", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "page 1 refers to page_number = 1;"]}} {"set": {"query": "What is the name of the dish that appeared on the upper left corner on menu page no. 1389?", "pos": ["appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;"], "neg": ["highest price refers to MAX(highest_price);", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos);", "4 pages refers to page_count = 4;", "menus that are DIYs of the restaurant refers to sponsor is null;", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900;", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;"]}} {"set": {"query": "Name the dishes that cost 180,000.", "pos": ["cost 180,000 refers to price = 180000;"], "neg": ["average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "highest number of pages refers to MAX(COUNT(page_number));", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "free refers to lowest_price = 0;", "page 2 refers to page_number = 2;", "FALSE;", "mashed potatoes is a name of dish;", "appeared on a menu more than once refers to times_appeared > menus_appeared;", "FALSE;", "first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900;"]}} {"set": {"query": "Calculate the image area of the page menu for the dish named \"Baked Stuffed Mullet & Sauce Pomard\". Please include the page number and image ID.", "pos": ["image area = MULTIPLY(full_height, full_width);"], "neg": ["page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;", "FALSE;", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "Clear green turtle is a name of dish; stable price refers to highest_price is null;", "Clear Green Turtle is a name of dish; how long a dish appeared on the menu = SUBTRACT(last_appeared, first_appeared); latest update refers to latest updated_at;", "FALSE;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos);", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "highest price refers to MAX(Price); Clear green turtle is a name of dish;"]}} {"set": {"query": "What are the names of the dishes shown in the lower right corner of menu page 48706?", "pos": ["shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;"], "neg": ["first appeared in 1861 refers to first_appeared = 1861;", "FALSE;", "FALSE;", "4 pages refers to page_count = 4;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "mashed potatoes is a name of dish;", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "steamship refers to venue = 'STEAMSHIP';", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;"]}} {"set": {"query": "Who is the sponsor of menu with ID 12463?", "pos": ["FALSE;"], "neg": ["if 'c02c9a3b-6881-7080-e040-e00a180631aa' can be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is the uuid for the menu called The Biltmore; if 'c02c9a3b-6881-7080-e040-e00a180631aa' can not be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is not the uuid for the menu called The Biltmore; The Biltmore is a name of menu;", "Clear green turtle is a name of dish;", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "Zentral Theater Terrace is a name of menu;", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;", "Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "image area = MULTIPLY(full_height, full_width);", "dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4';"]}} {"set": {"query": "Calculate the total price of items for menu with ID 12882.", "pos": ["total price = SUM(price);"], "neg": ["appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;", "appeared on a menu more than once refers to times_appeared > menus_appeared;", "dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4';", "steamship refers to venue = 'STEAMSHIP';", "created for lunch refers to event = 'LUNCH';", "Clear green turtle is a name of dish;", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;", "Zentral Theater Terrace is a name of menu;", "Dutcher House refers to location = 'Dutcher House';", "width refers to full_width; El Fuerte Del Palmar is a name of menu;"]}} {"set": {"query": "What dishes made their first and last appearances in 1855 and 1900, respectively?", "pos": ["first appearance in 1855 refers to first_appeared = 1855; last appearance in 1900 refers to last_appeared = 1900;"], "neg": ["Clear green turtle is a name of dish;", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "place refers to location;", "image area = MULTIPLY(full_height, full_width);", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;", "total price = SUM(price);", "most number of dishes refers to MAX(COUNT(dish_count));", "FALSE;", "Zentral Theater Terrace is a name of menu;", "cost 180,000 refers to price = 180000;"]}} {"set": {"query": "List down the page numbers for menu with dishes on the right upper corner.", "pos": ["on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;"], "neg": ["image area = MULTIPLY(full_height, full_width);", "created for lunch refers to event = 'LUNCH';", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;", "most number of dishes refers to MAX(COUNT(dish_count));", "Clear green turtle is a name of dish;", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "if 'c02c9a3b-6881-7080-e040-e00a180631aa' can be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is the uuid for the menu called The Biltmore; if 'c02c9a3b-6881-7080-e040-e00a180631aa' can not be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is not the uuid for the menu called The Biltmore; The Biltmore is a name of menu;"]}} {"set": {"query": "How many dishes do not have correct data for the year in which it appeared first?", "pos": ["do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;"], "neg": ["Clear Green Turtle is a name of dish; how long a dish appeared on the menu = SUBTRACT(last_appeared, first_appeared); latest update refers to latest updated_at;", "FALSE;", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "FALSE;", "shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;", "image area = MULTIPLY(full_height, full_width);", "steamship refers to venue = 'STEAMSHIP';"]}} {"set": {"query": "Where is the place that menu with ID 12472 was created for?", "pos": ["place refers to location;"], "neg": ["percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75;", "Clear green turtle is a name of dish; stable price refers to highest_price is null;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "page ID of 130 refers MenuPage.id = 130;", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "Clear Green Turtle is a name of dish; how long a dish appeared on the menu = SUBTRACT(last_appeared, first_appeared); latest update refers to latest updated_at;", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "FALSE;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;"]}} {"set": {"query": "How many menus with the name \"Waldorf Astoria\" have 4 pages?", "pos": ["4 pages refers to page_count = 4;"], "neg": ["located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "highest price refers to MAX(highest_price);", "FALSE;", "FALSE;", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "total price = SUM(price);", "created on 17th November 1898 refers to date = '1898-11-17';"]}} {"set": {"query": "Please list the names of all the dishes on page 1 of menu ID12882.", "pos": ["page 1 refers to page_number = 1;"], "neg": ["appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;", "first appeared in 1861 refers to first_appeared = 1861;", "free refers to lowest_price = 0;", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "4 pages refers to page_count = 4;", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "place refers to location;", "if 'c02c9a3b-6881-7080-e040-e00a180631aa' can be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is the uuid for the menu called The Biltmore; if 'c02c9a3b-6881-7080-e040-e00a180631aa' can not be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is not the uuid for the menu called The Biltmore; The Biltmore is a name of menu;", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "mashed potatoes is a name of dish;"]}} {"set": {"query": "Provide the menu page ids of all the menu that includes mashed potatoes.", "pos": ["mashed potatoes is a name of dish;"], "neg": ["menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "image area = MULTIPLY(full_height, full_width);", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;", "shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;", "steamship refers to venue = 'STEAMSHIP';", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "FALSE;", "highest dish count refers to MAX(dish_count);"]}} {"set": {"query": "How long has the \"Clear Green Turtle\" dish appeared on the menu, and tell me when its latest update was?", "pos": ["Clear Green Turtle is a name of dish; how long a dish appeared on the menu = SUBTRACT(last_appeared, first_appeared); latest update refers to latest updated_at;"], "neg": ["created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;", "Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos);", "steamship refers to venue = 'STEAMSHIP';", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;", "Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "average page number = AVG(page_number); Clear green turtle is a name of dish;"]}} {"set": {"query": "Write down the image ID, full height, and full width of the menu that were used in the \"100TH ANNIVERSARY OF BIRTH OF DANIEL WEBSTER\" event.", "pos": ["FALSE;"], "neg": ["FALSE;", "Chicken gumbo is a name of dish;", "shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;", "FALSE;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "image area = MULTIPLY(full_height, full_width);", "steamship refers to venue = 'STEAMSHIP';", "page 2 refers to page_number = 2;", "FALSE;", "highest price refers to MAX(Price); Clear green turtle is a name of dish;"]}} {"set": {"query": "How many pages were there on the menu created on 17th November 1898?", "pos": ["created on 17th November 1898 refers to date = '1898-11-17';"], "neg": ["sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "page 1 refers to page_number = 1;", "FALSE;", "Zentral Theater Terrace is a name of menu;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "longest full height refers to MAX(full_height);", "positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;"]}} {"set": {"query": "Among the dishes, how many of them were created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC.", "pos": ["created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';"], "neg": ["Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "Clear green turtle is a name of dish; stable price refers to highest_price is null;", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "steamship refers to venue = 'STEAMSHIP';", "mashed potatoes is a name of dish;", "Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "highest price refers to MAX(highest_price);", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "Clear green turtle is a name of dish;", "shown in the lower right corner refers to xpos > 0.75 AND ypos > 0.75;"]}} {"set": {"query": "What is the ID of the menu with the most number of dishes?", "pos": ["most number of dishes refers to MAX(COUNT(dish_count));"], "neg": ["Fresh lobsters in every style' is a name of dish; location where the dish was used on a menu = (xpos, ypos);", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "appeared on the menu in less than 5 years = SUBTRACT(last_appeared, first_appeared) < 5;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "page ID of 130 refers MenuPage.id = 130;", "created on 17th November 1898 refers to date = '1898-11-17';", "menus that are DIYs of the restaurant refers to sponsor is null;", "FALSE;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';"]}} {"set": {"query": "How many menus were used in Dutcher House?", "pos": ["Dutcher House refers to location = 'Dutcher House';"], "neg": ["Chicken gumbo is a name of dish;", "steamship refers to venue = 'STEAMSHIP';", "page 1 refers to page_number = 1;", "free refers to lowest_price = 0;", "longest full height refers to MAX(full_height);", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "created for lunch refers to event = 'LUNCH';", "page 2 refers to page_number = 2;", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "highest price refers to MAX(highest_price);"]}} {"set": {"query": "What is the highest price of the dish \"Clear green turtle\" on a menu page?", "pos": ["highest price refers to MAX(Price); Clear green turtle is a name of dish;"], "neg": ["total dish count for uuid of '510d47e4-2958-a3d9-e040-e00a18064a99' = SUM(dish_count WHERE uuid = '510d47e4-2958-a3d9-e040-e00a18064a99'); total dish count for uuid of '510d47e4-295a-a3d9-e040-e00a18064a99 = SUM(dish_count WHERE uuid = '510d47e4-295a-a3d9-e040-e00a18064a99');", "Clear green turtle is a name of dish;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "highest number of pages refers to MAX(COUNT(page_number));", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);", "highest dish count refers to MAX(dish_count);", "total price = SUM(price);", "on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;"]}} {"set": {"query": "List the top five dishes, by descending order, in terms of highest price.", "pos": ["highest price refers to MAX(highest_price);"], "neg": ["total price = SUM(price);", "menus that are DIYs of the restaurant refers to sponsor is null;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "most number of dishes refers to MAX(COUNT(dish_count));", "first appeared in 1861 refers to first_appeared = 1861;", "created on 17th November 1898 refers to date = '1898-11-17';", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "place refers to location;", "appeared on the menu for more than 100 years = SUBTRACT(last_appeared, first_appeared) > 100;"]}} {"set": {"query": "How many percent of Bluefish dishes are located at the center of the menu page?", "pos": ["percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75;"], "neg": ["Zentral Theater Terrace is a name of menu;", "Chicken gumbo is a name of dish;", "if 'c02c9a3b-6881-7080-e040-e00a180631aa' can be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is the uuid for the menu called The Biltmore; if 'c02c9a3b-6881-7080-e040-e00a180631aa' can not be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is not the uuid for the menu called The Biltmore; The Biltmore is a name of menu;", "page 1 refers to page_number = 1;", "FALSE;", "Ritz Carlton is a name of menu; width of over 2490 refers to full_width > 1000;", "FALSE;", "FALSE;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "menus that are DIYs of the restaurant refers to sponsor is null;"]}} {"set": {"query": "List down name of dishes from menu with menu page ID 1389.", "pos": ["FALSE;"], "neg": ["average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(page_count));", "Clear green turtle is a name of dish; not support taking out or booking in advance refers to call_number is null;", "page 2 refers to page_number = 2;", "highest price refers to MAX(Price); Zentral Theater Terrace is a name of menu;", "created on 17th November 1898 refers to date = '1898-11-17';", "Chicken gumbo is a name of dish;", "menus that are DIYs of the restaurant refers to sponsor is null;", "if 'c02c9a3b-6881-7080-e040-e00a180631aa' can be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is the uuid for the menu called The Biltmore; if 'c02c9a3b-6881-7080-e040-e00a180631aa' can not be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is not the uuid for the menu called The Biltmore; The Biltmore is a name of menu;", "average number of dishes per menu = DIVIDE(COUNT(dish_id), COUNT(menu_page_id)); Souper de Luxe is a name of menu; dish that appeared the most in all of its menus refers to MAX(COUNT(dish_id));", "on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;"]}} {"set": {"query": "Name the dishes that were on the menu page ID 174.", "pos": ["FALSE;"], "neg": ["Paysanne Soup is a name of dish; stable price refers to highest_price is null;", "created on 17th November 1898 refers to date = '1898-11-17';", "longest full height refers to MAX(full_height);", "percent = MULTIPLY(DIVIDE(SUM(xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75), COUNT(id)), 1.0); Bluefish is a sub name of dish; located at the center of the menu page refers to xpos BETWEEN 0.25 AND 0.75 and ypos BETWEEN 0.25 AND 0.75;", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "highest price refers to MAX(Price); Clear green turtle is a name of dish;", "FALSE;", "most number of dishes refers to MAX(COUNT(dish_count));"]}} {"set": {"query": "State the full height and width for menu called \"El Fuerte Del Palmar\".", "pos": ["width refers to full_width; El Fuerte Del Palmar is a name of menu;"], "neg": ["image area = MULTIPLY(full_height, full_width);", "first appeared in 1861 refers to first_appeared = 1861;", "Zentral Theater Terrace is a name of menu;", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "appeared on the upper left corner on menu refers to xpos < 0.25 AND ypos < 0.25; menu page no. refers to menu_page_id; menu_page_id = 1389;", "on the right upper corner refers to xpos > 0.75 AND ypos < 0.25;", "highest price refers to MAX(Price); Clear green turtle is a name of dish;", "cost 180,000 refers to price = 180000;", "FALSE;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';"]}} {"set": {"query": "Is \"c02c9a3b-6881-7080-e040-e00a180631aa\" the uuid for menu called \"The Biltmore\"?", "pos": ["if 'c02c9a3b-6881-7080-e040-e00a180631aa' can be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is the uuid for the menu called The Biltmore; if 'c02c9a3b-6881-7080-e040-e00a180631aa' can not be found in uuid, it means the 'c02c9a3b-6881-7080-e040-e00a180631aa' is not the uuid for the menu called The Biltmore; The Biltmore is a name of menu;"], "neg": ["mashed potatoes is a name of dish;", "appear in the right upper corner of the menu page refers to xpos > 0.75 and ypos < 0.25;", "Clear green turtle is a name of dish;", "menus with over 10 pages refers to page_count > 10; over 20 dishes refers to dish_count > 20;", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "4 pages refers to page_count = 4;", "appeared at the left upper corner refers to xpos < 0.25 and ypos < 0.25; CHAS.BRADLEY'S OYSTER & DINING ROOM refers to sponsor = 'CHAS.BRADLEY''S OYSTER & DINING ROOM';", "most number of dishes refers to MAX(COUNT(dish_count));", "FALSE;", "cost 180,000 refers to price = 180000;"]}} {"set": {"query": "What is the page count for menu with page ID of 130?", "pos": ["page ID of 130 refers MenuPage.id = 130;"], "neg": ["Dutcher House refers to location = 'Dutcher House';", "Clear green turtle is a name of dish;", "page 2 refers to page_number = 2;", "created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "width refers to full_width; El Fuerte Del Palmar is a name of menu;", "first appeared in 1861 refers to first_appeared = 1861;", "highest dish count refers to MAX(dish_count);", "sponsored by Occidental and Oriental Steamship Company refers to sponsor = 'OCCIDENTAL & ORIENTAL STEAMSHIP COMPANY'; highest number of pages refers to MAX(COUNT(page_number));", "Zentral Theater Terrace is a name of menu;"]}} {"set": {"query": "What is the name of the menu with the highest number of pages?", "pos": ["highest number of pages refers to MAX(COUNT(page_number));"], "neg": ["created between 2011-03-31 at 20:24:46 UTC and 2011-04-15 at 23:09:51 UTC refers to created_at between '2011-03-31 20:24:46 UTC' AND '2011-04-15 23:09:51 UTC';", "steamship refers to venue = 'STEAMSHIP';", "located at Manhattan Hotel refers to location = 'Manhattan Hotel';", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "most number of dishes refers to MAX(COUNT(dish_count));", "appeared on a menu more than once refers to times_appeared > menus_appeared;", "do not have correct data refers to first_appeared < 1851 or first_appeared > 2012;", "created for lunch refers to event = 'LUNCH';", "total price = SUM(price);", "positioned on the left upper corner refers to xpos < 0.25 AND ypos < 0.25;"]}} {"set": {"query": "Which menu page of \"Ritz Carlton\" has the biggest height?", "pos": ["Ritz Carlton is a name of menu; biggest height refers to MAX(full_height);"], "neg": ["dishes with a stable price refers to highest_price is null; created in April of 2011 refers to SUBSTR(created_at,1,4) = '2011' and SUBSTR(created_at, 7, 1) = '4';", "page 1 refers to page_number = 1; Zentral Theater Terrace is a name of menu;", "FALSE;", "free refers to lowest_price = 0;", "average page number = AVG(page_number); Clear green turtle is a name of dish;", "if SUM(full_width where page_number = 1 AND menu.name = 'Zentral Theater Terrace') > SUM(full_width where page_number = 1 AND menu.name = 'Young''s Hotel'), it means Zentral Theater Terrace menu page is bigger than Young's Hotel; if SUM(full_width WHERE page_number = 1 AND menu.name = 'Young''s Hotel') < SUM(full_width WHERE page_number = 1 AND menu.name = 'Zentral Theater Terrace'), it means Young's Hotel menu page is bigger than Zentral Theater Terrace;", "page 1 refers to page_number = 1;", "total price = SUM(price);", "mashed potatoes is a name of dish;", "Zentral Theater Terrace is a name of menu;"]}} {"set": {"query": "What is the name and length of rivers located at 'Orleans' city?", "pos": ["Orleans is a city in north-central France"], "neg": ["Percentage of country > 90% refers to percentage > 90; America is one of country names", "Amazonas flow is a river", "Nation refers to country", "Uganda is one of country names", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "TJ is an abbreviated country code of Tajikistan", "ratio of people per square meter of surface = Population / Area", "English and Scottish are two languages; United Kingdom is a country", "Coverage refers to mergesWith", "Dutch is one of language"]}} {"set": {"query": "Which federal republic country in Europe has the most provinces, and what proportion of GDP is devoted to services?\nCalculate the population density as well.", "pos": ["Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area"], "neg": ["Uganda is one of country names", "Communist is a government form", "Population gap = Total population of the United Kingdom - Total population of Italy", "English and Scottish are two languages; United Kingdom is a country", "Nation refers to country; Information of growth appears in the column Established", "GDP refers to gross domestic product", "population density = Population / Area", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Asia is a continent", "Japan is a country"]}} {"set": {"query": "How big is Africa, and how many nations make up the continent?", "pos": ["Area can measure the size of countries; Country and nation share the same meaning"], "neg": ["Political system refers to government form", "Percentage = 90 means 90% of the population", "GDP refers to gross domestic product", "population density = Population / Area", "Area * Depth can represents the metric in terms of both surface area and depth", "Moldoveanu is a mountain", "Nation refers to country", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Population gap = Total population of the United Kingdom - Total population of Italy", "Percentage = 100 means 100% of the population"]}} {"set": {"query": "What is the name of the country with the smallest population, and what is its gross domestic product?", "pos": ["GDP refers to gross domestic product"], "neg": ["Coverage refers to mergesWith", "London is a city", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning", "Nation and country are synonyms", "Asia is a continent", "Bosnian is one of language", "Total Number of People = Percentage * Population", "Japan is one of country names", "Bermuda is one of countries"]}} {"set": {"query": "How many mountains are there in Indonesia?", "pos": ["Indonesia refers to one of countries"], "neg": ["Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "USA is a country", "Uganda is one of country names", "Orleans is a city in north-central France", "Japan is one of country names", "Average population ratio = Population / Area", "Moldoveanu is a mountain", "Nation refers to country", "Nation refers to country; Information of growth appears in the column Established", "Warwickshire is a province"]}} {"set": {"query": "What other country does the most populated nation in the world share a border with and how long is the border between the two nations?", "pos": ["Nation and country are synonyms"], "neg": ["percentage can be computed by [count(City = 'Washington') / count(all cities)] * 100%", "Japan is a country", "Arabic-speaking country = country that speaks 100% Arabic", "Most prevalent religion refers to the religion with the most population percentage", "ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area", "Warwickshire is a province", "Asia is a continent", "GDP refers to gross domestic product", "Anguilla is a country", "Percentage of country > 90% refers to percentage > 90; America is one of country names"]}} {"set": {"query": "Which lake is the largest in terms of both surface area and depth?", "pos": ["Area * Depth can represents the metric in terms of both surface area and depth"], "neg": ["Moldoveanu is a mountain", "Total Number of People = Percentage * Population", "Area can measure the size of countries; Country and nation share the same meaning", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "Indonesia refers to one of countries", "coordinates consists of Latitude, Longitude", "Bermuda is one of countries", "Most prevalent religion refers to the religion with the most population percentage", "Bosnian is one of language", "Political system refers to government form"]}} {"set": {"query": "What is the infant mortality rate for Ethiopia?", "pos": ["Ethiopia is one of country names"], "neg": ["GDP refers to gross domestic product", "Amazonas flow is a river", "Japan is a country", "percentage can be computed by [count(City = 'Washington') / count(all cities)] * 100%", "Nation refers to country", "Communist is a government form", "Total Number of People = Percentage * Population", "Bolivia is the country", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "Nation and country are synonyms"]}} {"set": {"query": "Among the organizations where headquarters are in the 'USA', what is the percentage of the them are in 'Washington'?", "pos": ["percentage can be computed by [count(City = 'Washington') / count(all cities)] * 100%"], "neg": ["Asia is a continent", "ratio of people per square meter of surface = Population / Area", "GDP refers to gross domestic product", "Percentage of population in each city = population(city) / population(province) * 100%", "English and Scottish are two languages; United Kingdom is a country", "GDP per capita = GDP / Population", "population growth rate of over 3% means population_growth > 3", "Organization refers to corporation", "Warwickshire is a province", "Area can measure the size of countries; Country and nation share the same meaning"]}} {"set": {"query": "How many businesses were founded after 1960 in a nation that wasn't independent?", "pos": ["Established means founded; Country means nation; Organization means businesses"], "neg": ["Orleans is a city in north-central France", "Nation refers to country", "Coverage refers to mergesWith", "Longitude, Latitude = coordinates of the location", "coordinates consists of Latitude, Longitude", "GDP refers to gross domestic product", "Average population ratio = Population / Area", "GDP refers to gross domestic product", "Uganda is one of country names", "ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area"]}} {"set": {"query": "How many Italian regions are bordered by the Mediterranean Sea? How deep is the Mediterranean Sea?", "pos": ["Reigion refers to province"], "neg": ["Bolivia is the country", "Nation and country are synonyms", "coordinates consists of Latitude, Longitude", "Moldoveanu is a mountain", "Population gap = Total population of the United Kingdom - Total population of Italy", "Warwickshire is a province", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Nation refers to country", "Established means founded; Country means nation; Organization means businesses"]}} {"set": {"query": "What kind of government does Iran have?", "pos": ["Uganda is one of country names"], "neg": ["Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "Moldoveanu is a mountain", "coordinates consists of Latitude, Longitude", "GDP per capita = GDP / Population", "Nation refers to country", "Percentage of population in each city = population(city) / population(province) * 100%", "Percentage of country > 90% refers to percentage > 90; America is one of country names", "billion = 1000000000", "Amazonas flow is a river", "Area can measure the size of countries; Country and nation share the same meaning"]}} {"set": {"query": "List all islands that are greater than the island on which Warwickshire is located.", "pos": ["Warwickshire is a province"], "neg": ["Gross domestic product = GDP; Largest share of GDP in agricultural sector was mentioned in economy.Agriculture", "Nation refers to country", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "Population gap = Total population of the United Kingdom - Total population of Italy", "billion = 1000000000", "population growth rate of over 3% means population_growth > 3", "Area * Depth can represents the metric in terms of both surface area and depth", "Political system refers to government form", "GDP refers to gross domestic product", "Moldoveanu is a mountain"]}} {"set": {"query": "What percent of the non volcanic islands in the Lesser Antilles group of islands have an area of no more than 300 square kilometers?", "pos": ["Percent = [count(non volcanic islands Lesser Antilles area 300 or less) / count(non volcanic islands Lesser Antilles)] * 100%"], "neg": ["population growth rate of over 3% means population_growth > 3", "Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP", "coordinates consists of Latitude, Longitude", "Japan is a country", "Organization refers to corporation", "Bosnian is one of language", "London is a city", "Percentage = 90 means 90% of the population", "Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "Negative growth in population means population_growth < 0"]}} {"set": {"query": "Provide all rivers name and length in USA.", "pos": ["USA is a country"], "neg": ["Percentage = 90 means 90% of the population", "Uganda is one of country names", "GDP refers to gross domestic product", "percentage can be computed by [count(City = 'Washington') / count(all cities)] * 100%", "Bermuda is one of countries", "Coverage refers to mergesWith", "Political system refers to government form", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Nation refers to country; Information of growth appears in the column Established", "Japan is a country"]}} {"set": {"query": "Which countries have more than 90% of African? List the name of the country in full.", "pos": ["Percentage = 90 means 90% of the population"], "neg": ["Arabic-speaking country = country that speaks 100% Arabic", "Negative growth in population means population_growth < 0", "Nation refers to country", "Established means founded; Country means nation; Organization means businesses", "Nation and country are synonyms", "GDP refers to gross domestic product; Nation and country are synonyms", "Uganda is one of country names", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Longitude, Latitude = coordinates of the location", "Organization refers to corporation"]}} {"set": {"query": "Of all the lakes in Bolivia, which is the deepest?", "pos": ["Bolivia is the country"], "neg": ["Ethiopia is one of country names", "Percentage of country > 90% refers to percentage > 90; America is one of country names", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Average population ratio = Population / Area", "Total Number of People = Percentage * Population", "Cayman Islands is a country", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Dutch is one of language", "Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%", "Area * Depth can represents the metric in terms of both surface area and depth"]}} {"set": {"query": "Calculate the population of Arab in each country?", "pos": ["Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)"], "neg": ["Percentage of population in each city = population(city) / population(province) * 100%", "GDP refers to gross domestic product", "Ethiopia is one of country names", "Area can measure the size of countries; Country and nation share the same meaning", "Total Number of People = Percentage * Population", "Uganda is one of country names", "population density = Population / Area", "Nation refers to country", "English and Scottish are two languages; United Kingdom is a country", "Uganda is one of country names"]}} {"set": {"query": "What is the full name of the country with 100% Africans?", "pos": ["Percentage = 100 means 100% of the population"], "neg": ["Communist is a government form", "Established means founded; Country means nation; Organization means businesses", "Nation refers to country", "Anguilla is a country", "Average population ratio = Population / Area", "most people refers to largest population", "population growth rate of over 3% means population_growth > 3", "Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "Area * Depth can represents the metric in terms of both surface area and depth", "Bermuda is one of countries"]}} {"set": {"query": "What is the name of Anguilla's capital, and where is it located?", "pos": ["Anguilla is a country"], "neg": ["Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning", "Moldoveanu is a mountain", "Arabic-speaking country = country that speaks 100% Arabic", "Reigion refers to province", "USA is a country", "GDP per capita = GDP / Population", "Uganda is one of country names", "GDP refers to gross domestic product", "Nation refers to country", "Bolivia is the country"]}} {"set": {"query": "What is the average area of Asian countries?", "pos": ["Asia is a continent"], "neg": ["Nation and country are synonyms", "Most prevalent religion refers to the religion with the most population percentage", "Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning", "London is a city", "Organization refers to corporation", "Nation refers to country", "most people refers to largest population", "Negative growth in population means population_growth < 0", "Dutch is one of language", "Moldoveanu is a mountain"]}} {"set": {"query": "Which nation's GDP is the lowest among those that are communist states?", "pos": ["Communist is a government form"], "neg": ["Average population ratio = Population / Area", "Average population per area = population / area", "Bosnian is one of language", "Bolivia is the country", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Area * Depth can represents the metric in terms of both surface area and depth", "Nation and country share the same meaning. Proportion refers to percentage", "Gross domestic product = GDP; Largest share of GDP in agricultural sector was mentioned in economy.Agriculture", "Political system refers to government form", "GDP refers to gross domestic product"]}} {"set": {"query": "Which nation, with a population ranging from 60,000,000 to 99,000,000, has the greatest gross domestic product?", "pos": ["GDP refers to gross domestic product; Nation and country are synonyms"], "neg": ["Percentage = 100 means 100% of the population", "coordinates consists of Latitude, Longitude", "population density = Population / Area", "Negative growth in population means population_growth < 0", "percentage can be computed by [count(City = 'Washington') / count(all cities)] * 100%", "GDP refers to gross domestic product", "Political system refers to government form", "Percentage of country > 90% refers to percentage > 90; America is one of country names", "Saudi Arabia is a country", "ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area"]}} {"set": {"query": "Where does Bermuda belong to? Give the full name of the country.", "pos": ["Bermuda is one of countries"], "neg": ["Gross domestic product = GDP; Largest share of GDP in agricultural sector was mentioned in economy.Agriculture", "GDP refers to gross domestic product", "Most prevalent religion refers to the religion with the most population percentage", "Anguilla is a country", "'South Yorkshire' is a province", "Average population ratio = Population / Area", "Bolivia is the country", "Orleans is a city in north-central France", "Established means founded; Country means nation; Organization means businesses", "Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP"]}} {"set": {"query": "What is the population density of Hanoi's home country?", "pos": ["population density = Population / Area"], "neg": ["Total Number of People = Percentage * Population", "GDP per capita = GDP / Population", "Moldoveanu is a mountain", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Established means founded; Country means nation; Organization means businesses", "Percentage of country > 90% refers to percentage > 90; America is one of country names", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Reigion refers to province", "Average population per area = population / area", "coordinates consists of Latitude, Longitude"]}} {"set": {"query": "Which constitutional monarchy nations saw the greatest growth in the number of organizations after 1907?", "pos": ["Nation refers to country; Information of growth appears in the column Established"], "neg": ["Bolivia is the country", "Arabic-speaking country = country that speaks 100% Arabic", "Dutch is one of language", "Uganda is one of country names", "Bermuda is one of countries", "population growth rate of over 3% means population_growth > 3", "English and Scottish are two languages; United Kingdom is a country", "Negative growth in population means population_growth < 0", "Japan is one of country names", "Moldoveanu is a mountain"]}} {"set": {"query": "Which Arabic-speaking country has the smallest population?", "pos": ["Arabic-speaking country = country that speaks 100% Arabic"], "neg": ["Dutch is one of language", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "Bosnian is one of language", "coordinates consists of Latitude, Longitude", "Growth population = population_growth * population", "GDP per capita = GDP / Population", "Reigion refers to province", "Cayman Islands is a country", "Political system refers to government form", "Nation refers to country"]}} {"set": {"query": "What is the average population ratio of the countries in which organizations were established in 1947?", "pos": ["Average population ratio = Population / Area"], "neg": ["Japan is a country", "Indonesia refers to one of countries", "Amazonas flow is a river", "Japan is one of country names", "Nation refers to country", "Coverage refers to mergesWith", "London is a city", "Longitude, Latitude = coordinates of the location", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Percentage of country > 90% refers to percentage > 90; America is one of country names"]}} {"set": {"query": "Which nation has the lowest proportion of people who speak an African language? Please state the nation's full name.", "pos": ["Nation and country share the same meaning. Proportion refers to percentage"], "neg": ["GDP refers to gross domestic product", "Most prevalent religion refers to the religion with the most population percentage", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Established means founded; Country means nation; Organization means businesses", "Orleans is a city in north-central France", "coordinates consists of Latitude, Longitude", "Population gap = Total population of the United Kingdom - Total population of Italy", "Japan is one of country names", "Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "Anguilla is a country"]}} {"set": {"query": "What is the GDP per capita in Switzerland?", "pos": ["GDP per capita = GDP / Population"], "neg": ["Anguilla is a country", "London is a city", "Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP", "Area * Depth can represents the metric in terms of both surface area and depth", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Average population per area = population / area", "Amazonas flow is a river", "Coverage refers to mergesWith", "Bolivia is the country", "Uganda is one of country names"]}} {"set": {"query": "How many times longer is the longest river in Tajikistan than the shortest river?", "pos": ["TJ is an abbreviated country code of Tajikistan"], "neg": ["ratio of people per square meter of surface = Population / Area", "most people refers to largest population", "Coverage refers to mergesWith", "Nation refers to country; Information of growth appears in the column Established", "population density = Population / Area", "Growth population = population_growth * population", "Total Number of People = Percentage * Population", "Dutch is one of language", "GDP refers to gross domestic product", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area"]}} {"set": {"query": "What is the geographic location of Aarhus city? Please provide the answer with the coordinates of the location.", "pos": ["Longitude, Latitude = coordinates of the location"], "neg": ["ratio of people per square meter of surface = Population / Area", "Bermuda is one of countries", "Japan is one of country names", "Bolivia is the country", "Asia is a continent", "Warwickshire is a province", "Orleans is a city in north-central France", "Percent = [count(non volcanic islands Lesser Antilles area 300 or less) / count(non volcanic islands Lesser Antilles)] * 100%", "Anguilla is a country", "Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning"]}} {"set": {"query": "Which religion has the majority of the people in Japan?", "pos": ["Japan is a country"], "neg": ["Bosnian is one of language", "Japan is a country", "English and Scottish are two languages; United Kingdom is a country", "Japan is one of country names", "Average population per area = population / area", "most people refers to largest population", "Percentage = 90 means 90% of the population", "Coverage refers to mergesWith", "Asia is a continent", "coordinates consists of Latitude, Longitude"]}} {"set": {"query": "What percentage of nations have achieved independence since 1993 and practice parliamentary democracy? Please include any three parliament-based democracies that attained independence after 1993.", "pos": ["Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%"], "neg": ["Nation and country share the same meaning. Proportion refers to percentage", "coordinates consists of Latitude, Longitude", "Average population per area = population / area", "Total Number of People = Percentage * Population", "USA is a country", "Amazonas flow is a river", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Area * Depth can represents the metric in terms of both surface area and depth", "Established means founded; Country means nation; Organization means businesses", "Uganda is one of country names"]}} {"set": {"query": "What is the quantity of the mountains does Japan have?", "pos": ["Japan is one of country names"], "neg": ["Negative growth in population means population_growth < 0", "Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "TJ is an abbreviated country code of Tajikistan", "ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area", "Indonesia refers to one of countries", "Nation refers to country", "Nation and country are synonyms", "GDP per capita = GDP / Population", "Percentage = 90 means 90% of the population", "Coverage refers to mergesWith"]}} {"set": {"query": "Which three countries does the Amazonas flow through? Give the full name of the countries.", "pos": ["Amazonas flow is a river"], "neg": ["Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "Bolivia is the country", "Orleans is a city in north-central France", "Most prevalent religion refers to the religion with the most population percentage", "Area can measure the size of countries; Country and nation share the same meaning", "Nation refers to country", "Percentage = 90 means 90% of the population", "coordinates consists of Latitude, Longitude", "GDP refers to gross domestic product", "Negative growth in population means population_growth < 0"]}} {"set": {"query": "Please list the organization names established in the countries where Dutch is spoken.", "pos": ["Dutch is one of language"], "neg": ["Growth population = population_growth * population", "Nation refers to country", "Indonesia refers to one of countries", "GDP per capita = GDP / Population", "Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%", "Bermuda is one of countries", "Nation and country are synonyms", "Most prevalent religion refers to the religion with the most population percentage", "most people refers to largest population", "Average population per area = population / area"]}} {"set": {"query": "When did Uganda declare independence?", "pos": ["Uganda is one of country names"], "neg": ["Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP", "Indonesia refers to one of countries", "USA is a country", "Bermuda is one of countries", "GDP per capita = GDP / Population", "Percentage = 90 means 90% of the population", "Cayman Islands is a country", "Warwickshire is a province", "Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%", "GDP refers to gross domestic product"]}} {"set": {"query": "What is the capital city of the country that has the percentage of Armenian speakers over 90%?", "pos": ["Percentage of country > 90% refers to percentage > 90; America is one of country names"], "neg": ["Area * Depth can represents the metric in terms of both surface area and depth", "population growth rate of over 3% means population_growth > 3", "GDP refers to gross domestic product", "Asia is a continent", "Nation and country are synonyms", "Nation refers to country; Information of growth appears in the column Established", "Amazonas flow is a river", "GDP refers to gross domestic product", "Percentage = 90 means 90% of the population", "Japan is one of country names"]}} {"set": {"query": "How much does the gross domestic products goes to the industry sector for Singapore?", "pos": ["Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry"], "neg": ["Nation refers to country", "GDP refers to gross domestic product; Nation and country are synonyms", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "Nation and country share the same meaning. Proportion refers to percentage", "Uganda is one of country names", "'South Yorkshire' is a province", "GDP per capita = GDP / Population", "ratio of people per square meter of surface = Population / Area", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "Nation refers to country; Information of growth appears in the column Established"]}} {"set": {"query": "What is the total number of cities that Japan have?", "pos": ["Japan is a country"], "neg": ["Moldoveanu is a mountain", "Nation and country share the same meaning. Proportion refers to percentage", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning", "Percentage = 90 means 90% of the population", "Saudi Arabia is a country", "Japan is a country", "Uganda is one of country names", "Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "Percentage of country > 90% refers to percentage > 90; America is one of country names"]}} {"set": {"query": "Which religion is most prevalent in Asia?", "pos": ["Most prevalent religion refers to the religion with the most population percentage"], "neg": ["Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "GDP refers to gross domestic product", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Cayman Islands is a country", "USA is a country", "London is a city", "Bolivia is the country", "Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "Percentage of country > 90% refers to percentage > 90; America is one of country names"]}} {"set": {"query": "On what date did the country have a gross domestic product 400% higher than Saint Kitts and Nevis become independent?", "pos": ["GDP refers to gross domestic product"], "neg": ["Established means founded; Country means nation; Organization means businesses", "Uganda is one of country names", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Area can measure the size of countries; Country and nation share the same meaning", "Coverage refers to mergesWith", "Gross domestic product = GDP; Largest share of GDP in agricultural sector was mentioned in economy.Agriculture", "Amazonas flow is a river", "Bosnian is one of language", "Organization refers to corporation", "Uganda is one of country names"]}} {"set": {"query": "For the countries have the population north of a billion, which one has the lowest GDP? Give the full name of the country.", "pos": ["billion = 1000000000"], "neg": ["Area can measure the size of countries; Country and nation share the same meaning", "Uganda is one of country names", "Cayman Islands is a country", "Population gap = Total population of the United Kingdom - Total population of Italy", "Dutch is one of language", "Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "Nation refers to country; Information of growth appears in the column Established", "Communist is a government form", "population density = Population / Area", "Arabic-speaking country = country that speaks 100% Arabic"]}} {"set": {"query": "How many more people speak English than speak Scottish in United Kingdom?", "pos": ["English and Scottish are two languages; United Kingdom is a country"], "neg": ["Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Arabic-speaking country = country that speaks 100% Arabic", "Percentage = 100 means 100% of the population", "coordinates consists of Latitude, Longitude", "GDP refers to gross domestic product", "Total Number of People = Percentage * Population", "population growth rate of over 3% means population_growth > 3", "Percentage = 90 means 90% of the population", "Negative growth in population means population_growth < 0", "Political system refers to government form"]}} {"set": {"query": "Which city in Japan has the most people in the country?", "pos": ["most people refers to largest population"], "neg": ["Reigion refers to province", "Anguilla is a country", "ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area", "Nation and country are synonyms", "Coverage refers to mergesWith", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "GDP per capita = GDP / Population", "English and Scottish are two languages; United Kingdom is a country", "London is a city", "GDP refers to gross domestic product"]}} {"set": {"query": "How many organizations are established in countries where people speak Bosnian?", "pos": ["Bosnian is one of language"], "neg": ["Percentage = 90 means 90% of the population", "TJ is an abbreviated country code of Tajikistan", "Average population ratio = Population / Area", "Uganda is one of country names", "Japan is a country", "Nation refers to country", "Growth population = population_growth * population", "Saudi Arabia is a country", "USA is a country", "Nation refers to country"]}} {"set": {"query": "List all countries with negative growth in population. State the country, population and growth.", "pos": ["Negative growth in population means population_growth < 0"], "neg": ["percentage can be computed by [count(City = 'Washington') / count(all cities)] * 100%", "coordinates consists of Latitude, Longitude", "Total Number of People = Percentage * Population", "Nation and country are synonyms", "ratio of people per square meter of surface = Population / Area", "Anguilla is a country", "'South Yorkshire' is a province", "Bermuda is one of countries", "Arabic-speaking country = country that speaks 100% Arabic", "Japan is one of country names"]}} {"set": {"query": "Of all the countries of the Hindu religion, which has the lowest ratio of people per square meter of surface?", "pos": ["ratio of people per square meter of surface = Population / Area"], "neg": ["GDP refers to gross domestic product; Nation and country are synonyms", "Uganda is one of country names", "Area can measure the size of countries; Country and nation share the same meaning", "Nation and country are synonyms", "Nation refers to country; Information of growth appears in the column Established", "GDP refers to gross domestic product", "'South Yorkshire' is a province", "Nation refers to country", "Indonesia refers to one of countries", "Nation refers to country"]}} {"set": {"query": "What is the population density of the nation whose capital city is in the Distrito Federal province, and what portion of its gross domestic product is devoted to its industries?", "pos": ["ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area"], "neg": ["Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "Uganda is one of country names", "GDP per capita = GDP / Population", "Indonesia refers to one of countries", "Nation refers to country", "Moldoveanu is a mountain", "Communist is a government form", "Uganda is one of country names", "GDP refers to gross domestic product", "Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning"]}} {"set": {"query": "Provide a list of all organisations with headquarters in London?", "pos": ["London is a city"], "neg": ["Organization refers to corporation", "Nation refers to country", "Ethiopia is one of country names", "ratio of people per square meter of surface = Population / Area", "Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning", "ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area", "Japan is a country", "Longitude, Latitude = coordinates of the location", "Gross domestic product = GDP; Largest share of GDP in agricultural sector was mentioned in economy.Agriculture", "Growth population = population_growth * population"]}} {"set": {"query": "What is the number of growth population for country with the lowest infant mortality?", "pos": ["Growth population = population_growth * population"], "neg": ["Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "coordinates consists of Latitude, Longitude", "Negative growth in population means population_growth < 0", "Amazonas flow is a river", "GDP refers to gross domestic product; Nation and country are synonyms", "Uganda is one of country names", "Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%", "Saudi Arabia is a country", "Reigion refers to province", "Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning"]}} {"set": {"query": "What sea does the Baltic Sea converge with, and how deep is the Baltic Sea?", "pos": ["Coverage refers to mergesWith"], "neg": ["Nation and country are synonyms", "Nation refers to country", "Gross domestic product = GDP; Largest share of GDP in agricultural sector was mentioned in economy.Agriculture", "Average population ratio = Population / Area", "coordinates consists of Latitude, Longitude", "English and Scottish are two languages; United Kingdom is a country", "Most prevalent religion refers to the religion with the most population percentage", "population density = Population / Area", "population growth rate of over 3% means population_growth > 3", "ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area"]}} {"set": {"query": "List all the cities and provinces located at the rivers that flows to Atlantic Ocean.", "pos": ["Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning"], "neg": ["Moldoveanu is a mountain", "Negative growth in population means population_growth < 0", "Orleans is a city in north-central France", "Warwickshire is a province", "Nation and country share the same meaning. Proportion refers to percentage", "English and Scottish are two languages; United Kingdom is a country", "Bolivia is the country", "GDP refers to gross domestic product; Nation and country are synonyms", "Longitude, Latitude = coordinates of the location", "Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%"]}} {"set": {"query": "What form of governance does the least prosperous nation in the world have?", "pos": ["Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP"], "neg": ["Nation refers to country", "GDP refers to gross domestic product", "Growth population = population_growth * population", "Nation and country share the same meaning. Proportion refers to percentage", "percentage can be computed by [count(City = 'Washington') / count(all cities)] * 100%", "English and Scottish are two languages; United Kingdom is a country", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Amazonas flow is a river", "Uganda is one of country names", "Japan is a country"]}} {"set": {"query": "What is the total number of Afro-Asian people in the most populous Asian country governed by a monarchy?", "pos": ["Total Number of People = Percentage * Population"], "neg": ["Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Percentage of country > 90% refers to percentage > 90; America is one of country names", "Percentage = 100 means 100% of the population", "Bolivia is the country", "Dutch is one of language", "Political system refers to government form", "Nation and country share the same meaning. Proportion refers to percentage", "Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%", "Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP"]}} {"set": {"query": "In which province and country does Moldoveanu located? State its height.", "pos": ["Moldoveanu is a mountain"], "neg": ["coordinates consists of Latitude, Longitude", "Most prevalent religion refers to the religion with the most population percentage", "ratio of people per square meter of surface = Population / Area", "USA is a country", "ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area", "Warwickshire is a province", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "Nation and country share the same meaning. Proportion refers to percentage", "Arabic-speaking country = country that speaks 100% Arabic"]}} {"set": {"query": "What's the percentage of people in Cayman Islands speak English?", "pos": ["Cayman Islands is a country"], "neg": ["Average population ratio = Population / Area", "Area can measure the size of countries; Country and nation share the same meaning", "most people refers to largest population", "Area * Depth can represents the metric in terms of both surface area and depth", "'South Yorkshire' is a province", "Bermuda is one of countries", "GDP refers to gross domestic product", "population growth rate of over 3% means population_growth > 3", "Bosnian is one of language", "Amazonas flow is a river"]}} {"set": {"query": "What kind of mountain is Ampato? Which province and nation does this mountain belong to?", "pos": ["Nation refers to country"], "neg": ["Bolivia is the country", "Orleans is a city in north-central France", "Saudi Arabia is a country", "Bosnian is one of language", "GDP refers to gross domestic product; Nation and country are synonyms", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "most people refers to largest population", "Communist is a government form", "'South Yorkshire' is a province", "London is a city"]}} {"set": {"query": "Calculate the percentage of population in Edmonton city to the population of its province.", "pos": ["Percentage of population in each city = population(city) / population(province) * 100%"], "neg": ["Anguilla is a country", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "GDP refers to gross domestic product", "Communist is a government form", "GDP refers to gross domestic product", "Average population ratio = Population / Area", "Orleans is a city in north-central France", "Arabic-speaking country = country that speaks 100% Arabic", "Coverage refers to mergesWith", "billion = 1000000000"]}} {"set": {"query": "On which island does South Yorkshire situated? State it's longtitude and latitude.", "pos": ["'South Yorkshire' is a province"], "neg": ["Percentage of population in each city = population(city) / population(province) * 100%", "Warwickshire is a province", "Organization refers to corporation", "Moldoveanu is a mountain", "Japan is one of country names", "English and Scottish are two languages; United Kingdom is a country", "Bolivia is the country", "Japan is a country", "USA is a country", "Established means founded; Country means nation; Organization means businesses"]}} {"set": {"query": "Indicate the coordinates of all the deserts whose area is in more than one country.", "pos": ["coordinates consists of Latitude, Longitude"], "neg": ["Communist is a government form", "USA is a country", "Gross domestic product = GDP; Largest share of GDP in agricultural sector was mentioned in economy.Agriculture", "Nation refers to country", "Ethiopia is one of country names", "Percentage = 90 means 90% of the population", "ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area", "GDP per capita = GDP / Population", "Anguilla is a country", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area"]}} {"set": {"query": "Which United States province is home to the greatest number of corporations' corporate headquarters?", "pos": ["Organization refers to corporation"], "neg": ["Cayman Islands is a country", "Indonesia refers to one of countries", "GDP per capita = GDP / Population", "Communist is a government form", "most people refers to largest population", "Bermuda is one of countries", "English and Scottish are two languages; United Kingdom is a country", "Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Total Number of People = Percentage * Population"]}} {"set": {"query": "What kind of political system is in place in the country with the highest inflation rate?", "pos": ["Political system refers to government form"], "neg": ["Communist is a government form", "Japan is a country", "Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%", "Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry", "Bolivia is the country", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "Gross domestic product = GDP; Largest share of GDP in agricultural sector was mentioned in economy.Agriculture", "Indonesia refers to one of countries", "Longitude, Latitude = coordinates of the location", "Nation refers to country; Information of growth appears in the column Established"]}} {"set": {"query": "Which nations have a boundary with the Kalahari Desert?", "pos": ["Nation refers to country"], "neg": ["Nation and country are synonyms", "'South Yorkshire' is a province", "Moldoveanu is a mountain", "Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning", "GDP per capita = GDP / Population", "population growth rate of over 3% means population_growth > 3", "Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%", "Orleans is a city in north-central France", "ratio of people per square meter of surface = Population / Area", "Established means founded; Country means nation; Organization means businesses"]}} {"set": {"query": "What is the name of the most recently founded organization in Saudi Arabia?", "pos": ["Saudi Arabia is a country"], "neg": ["ation and country are synonyms; Gross domestic product = GDP; Portion of GDP devoted to industries appears in economy.Industry; Population Density = Population / Area", "'South Yorkshire' is a province", "Nation refers to country; Information of growth appears in the column Established", "Total Number of People = Percentage * Population", "Indonesia refers to one of countries", "Growth population = population_growth * population", "GDP refers to gross domestic product; Nation and country are synonyms", "Arabic-speaking country = country that speaks 100% Arabic", "population growth rate of over 3% means population_growth > 3", "Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP"]}} {"set": {"query": "Which Asian country gave its agricultural sector the largest share of its gross domestic product?", "pos": ["Gross domestic product = GDP; Largest share of GDP in agricultural sector was mentioned in economy.Agriculture"], "neg": ["Orleans is a city in north-central France", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "Most prevalent religion refers to the religion with the most population percentage", "Japan is one of country names", "'South Yorkshire' is a province", "Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%", "Japan is a country", "Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area", "coordinates consists of Latitude, Longitude", "Total Number of People = Percentage * Population"]}} {"set": {"query": "Please name any three sovereign nations that have been governed by the republic since 1991.", "pos": ["Nation refers to country"], "neg": ["Percentage of population in each city = population(city) / population(province) * 100%", "Warwickshire is a province", "ratio of people per square meter of surface = Population / Area", "Japan is one of country names", "Percentage of rivers with lengths greater than 3,000 miles = [(Total number of rivers with lengths greater than 3,000 miles) / (Total number of rivers)] * 100%", "Uganda is one of country names", "Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)", "Dutch is one of language", "Percent = [count(non volcanic islands Lesser Antilles area 300 or less) / count(non volcanic islands Lesser Antilles)] * 100%", "billion = 1000000000"]}} {"set": {"query": "Among the countries whose GDP is over 1000000, how many of them have a population groth rate of over 3%?", "pos": ["population growth rate of over 3% means population_growth > 3"], "neg": ["population density = Population / Area", "Area * Depth can represents the metric in terms of both surface area and depth", "billion = 1000000000", "Nation refers to country", "Communist is a government form", "Organization refers to corporation", "Uganda is one of country names", "Growth population = population_growth * population", "Nation refers to country; Information of growth appears in the column Established", "Political system refers to government form"]}} {"set": {"query": "What is the highest lake area coverage of a country?", "pos": ["Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%"], "neg": ["Percentage = 100 means 100% of the population", "Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%", "billion = 1000000000", "Uganda is one of country names", "Population gap = Total population of the United Kingdom - Total population of Italy", "Anguilla is a country", "coordinates consists of Latitude, Longitude", "Bermuda is one of countries", "Dutch is one of language", "Growth population = population_growth * population"]}} {"set": {"query": "What is the provincial capital of the province with a population of less than 80,000 that has the highest average population per area?", "pos": ["Average population per area = population / area"], "neg": ["Japan is a country", "Percentage = 100 means 100% of the population", "Ethiopia is one of country names", "Negative growth in population means population_growth < 0", "Cayman Islands is a country", "Growth population = population_growth * population", "Japan is a country", "Warwickshire is a province", "Average population ratio = Population / Area", "Japan is one of country names"]}} {"set": {"query": "How many percent of the mountains on Andes which are non-volcanic?", "pos": ["Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%"], "neg": ["most people refers to largest population", "Warwickshire is a province", "GDP refers to gross domestic product", "Indonesia refers to one of countries", "Growth population = population_growth * population", "Moldoveanu is a mountain", "Reigion refers to province", "Japan is one of country names", "Cayman Islands is a country", "billion = 1000000000"]}} {"set": {"query": "What is the population gap between the United Kingdom and Italy?", "pos": ["Population gap = Total population of the United Kingdom - Total population of Italy"], "neg": ["Saudi Arabia is a country", "Percentage of country > 90% refers to percentage > 90; America is one of country names", "Orleans is a city in north-central France", "coordinates consists of Latitude, Longitude", "Japan is a country", "Indonesia refers to one of countries", "Nation and country are synonyms; Form of governance was mentioned in politics.Government; Least prosperous means lowest GDP", "Ethiopia is one of country names", "Nation refers to country; Information of growth appears in the column Established", "English and Scottish are two languages; United Kingdom is a country"]}} {"set": {"query": "Give the biography of the actor who played \"Michael Moscovitz\".", "pos": ["\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'"], "neg": ["born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "actor's name refers to Name; as Don Altobello refers to Character Name = 'Don Altobello'; drama movie refers to Genre = 'Drama'", "'suggested by parental guidance' refers to mpaa_rating = 'PG'", "starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)", "\"Gabriel Martin\" refers to Character Name = 'Gabriel Martin'", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'"]}} {"set": {"query": "What is the name of male and white actor with actor ID 439?", "pos": ["male refers to Gender = 'Male'; white refers to Ethnicity = 'White'"], "neg": ["born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "a budget of 15000000 refers to Budget = 15000000; rating between 7 to 8 refers to Rating BETWEEN 7 and 8", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'", "movie Look Who's Talking refers to title = 'Look Who's Talking'", "played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'"]}} {"set": {"query": "Which movie is the character Dr. Archibald 'Moonlight' Graham from?", "pos": ["movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'"], "neg": ["actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'", "born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'", "movie Look Who's Talking refers to title = 'Look Who's Talking'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'"]}} {"set": {"query": "Find the actor's name that played as Don Altobello in a drama movie that has a gross of 136766062.", "pos": ["actor's name refers to Name; as Don Altobello refers to Character Name = 'Don Altobello'; drama movie refers to Genre = 'Drama'"], "neg": ["birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "'suggested by parental guidance' refers to mpaa_rating = 'PG'", "\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'", "longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "\"Gabriel Martin\" refers to Character Name = 'Gabriel Martin'", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'", "movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'"]}} {"set": {"query": "When is the birthday of the actor who played \"Sully\"?", "pos": ["birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'"], "neg": ["role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'", "movie Look Who's Talking refers to title = 'Look Who's Talking'", "played by Tom Cruise refers to name = 'Tom Cruise'", "starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)", "movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'", "\"Gabriel Martin\" refers to Character Name = 'Gabriel Martin'", "starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))", "'suggested by parental guidance' refers to mpaa_rating = 'PG'"]}} {"set": {"query": "What is the MPAA rating for the movie with the character named \"Peter Quill\" in it?", "pos": ["MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted"], "neg": ["played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'", "movie Look Who's Talking refers to title = 'Look Who's Talking'", "starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)", "longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5"]}} {"set": {"query": "Which character has the longest screen time in the movie Batman?", "pos": ["longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'"], "neg": ["birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'", "played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'", "movie Look Who's Talking refers to title = 'Look Who's Talking'", "male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'"]}} {"set": {"query": "How many movies star a male African American actor?", "pos": ["male refers to gender = 'Male'; African American refers to ethnicity = 'African American'"], "neg": ["Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'", "actor's name refers to Name; as Don Altobello refers to Character Name = 'Don Altobello'; drama movie refers to Genre = 'Drama'", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "played by Tom Cruise refers to name = 'Tom Cruise'", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'"]}} {"set": {"query": "List the character's name of actress born in Sherman Oaks and starred in the movie Bruce Almighty with height greater than the 50% of average height of all actors listed.", "pos": ["actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)"], "neg": ["MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted", "born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'", "Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'", "starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))", "male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "movie Look Who's Talking refers to title = 'Look Who's Talking'", "African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'"]}} {"set": {"query": "Count the male actors born in USA that starred in Ghost.", "pos": ["male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'"], "neg": ["longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted", "African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))", "Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'", "played by Tom Cruise refers to name = 'Tom Cruise'"]}} {"set": {"query": "Who played the No.2 character in the credit list of the movie \"American Hustle\"?", "pos": ["No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'"], "neg": ["born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'", "Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'", "starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))", "a budget of 15000000 refers to Budget = 15000000; rating between 7 to 8 refers to Rating BETWEEN 7 and 8", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "played by Tom Cruise refers to name = 'Tom Cruise'", "'suggested by parental guidance' refers to mpaa_rating = 'PG'"]}} {"set": {"query": "What is the name of the character played by Tom Cruise in the movie Born on the Fourth of July?", "pos": ["played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'"], "neg": ["male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'", "\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'", "role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "a budget of 15000000 refers to Budget = 15000000; rating between 7 to 8 refers to Rating BETWEEN 7 and 8", "longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'"]}} {"set": {"query": "What is the gross of a comedy movie with a rating lower than 7 and starred by an actor with a net worth greater than $375,000,000.00?", "pos": ["comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'"], "neg": ["male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted", "played by Tom Cruise refers to name = 'Tom Cruise'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'", "male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'", "'suggested by parental guidance' refers to mpaa_rating = 'PG'"]}} {"set": {"query": "Please list the names of the movies starring Tom Cruise.", "pos": ["movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'"], "neg": ["starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))", "longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "played by Tom Cruise refers to name = 'Tom Cruise'", "born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "actor's name refers to Name; as Don Altobello refers to Character Name = 'Don Altobello'; drama movie refers to Genre = 'Drama'", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'"]}} {"set": {"query": "List the height and net worth of actors starred in Three Men and a Little Lady.", "pos": ["Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'"], "neg": ["a budget of 15000000 refers to Budget = 15000000; rating between 7 to 8 refers to Rating BETWEEN 7 and 8", "\"Gabriel Martin\" refers to Character Name = 'Gabriel Martin'", "played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'", "actor's name refers to Name; as Don Altobello refers to Character Name = 'Don Altobello'; drama movie refers to Genre = 'Drama'", "starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)"]}} {"set": {"query": "Among the actors born in New York City, list the genre of their movie with a rating greater than 5.", "pos": ["born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5"], "neg": ["played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'", "African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'", "male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'"]}} {"set": {"query": "Among the movies starring Tom Cruise, which one of them has the best quality?", "pos": ["starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)"], "neg": ["No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "\"Gabriel Martin\" refers to Character Name = 'Gabriel Martin'", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'", "male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "'suggested by parental guidance' refers to mpaa_rating = 'PG'"]}} {"set": {"query": "Which actor played the role of Joker in the movie Batman?", "pos": ["role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'"], "neg": ["African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'", "Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'", "actor's name refers to Name; as Don Altobello refers to Character Name = 'Don Altobello'; drama movie refers to Genre = 'Drama'", "a budget of 15000000 refers to Budget = 15000000; rating between 7 to 8 refers to Rating BETWEEN 7 and 8", "movie Look Who's Talking refers to title = 'Look Who's Talking'", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'", "\"Gabriel Martin\" refers to Character Name = 'Gabriel Martin'", "\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'"]}} {"set": {"query": "Please list the names of all the characters played by Tom Cruise.", "pos": ["played by Tom Cruise refers to name = 'Tom Cruise'"], "neg": ["birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'", "male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "'suggested by parental guidance' refers to mpaa_rating = 'PG'", "\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'", "movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'", "MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted", "starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)", "starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'"]}} {"set": {"query": "Please list the names of the characters in the movie Look Who's Talking.", "pos": ["movie Look Who's Talking refers to title = 'Look Who's Talking'"], "neg": ["actor's name refers to Name; as Don Altobello refers to Character Name = 'Don Altobello'; drama movie refers to Genre = 'Drama'", "MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted", "born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "'suggested by parental guidance' refers to mpaa_rating = 'PG'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "played by Tom Cruise refers to name = 'Tom Cruise'", "movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'"]}} {"set": {"query": "How many movies starring Morgan Freeman are suggested by parental guidance?", "pos": ["'suggested by parental guidance' refers to mpaa_rating = 'PG'"], "neg": ["African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'", "starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)", "male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'", "MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted", "played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'", "starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))", "\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'"]}} {"set": {"query": "List the runtime of movies starred by an African-American actor born on December 28, 1954.", "pos": ["African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'"], "neg": ["PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "male refers to Gender = 'Male'; white refers to Ethnicity = 'White'", "starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))", "male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "played by Tom Cruise refers to name = 'Tom Cruise'", "\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)"]}} {"set": {"query": "Who played the No.1 character in the credit list of the movie which was released on \"2015/10/26\"?", "pos": ["No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'"], "neg": ["longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "\"Michael Moscovitz\" refers to Character Name = 'Michael Moscovitz'", "actor's name refers to Name; as Don Altobello refers to Character Name = 'Don Altobello'; drama movie refers to Genre = 'Drama'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'", "played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'", "male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "\"Gabriel Martin\" refers to Character Name = 'Gabriel Martin'"]}} {"set": {"query": "What is the average rating of all the movies starring Tom Cruise?", "pos": ["starring Tom Cruise refers to name = 'Tom Cruise'; average rating = divide(sum(rating where name = 'Tom Cruise'), count(movieid where name = 'Tom Cruise'))"], "neg": ["role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'", "movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "a budget of 15000000 refers to Budget = 15000000; rating between 7 to 8 refers to Rating BETWEEN 7 and 8", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'"]}} {"set": {"query": "What is the genre of PG rated movie starred by the actor with highest net worth?", "pos": ["PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)"], "neg": ["male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "actress refers to Gender = 'Female'; born in Sherman Oaks refers to Birth City = 'Sherman Oaks'; movie Bruce Almighty refers to Title = 'Bruce Almighty'; height greater than the 50% of average height refers to Height (Inches) > multiply(avg(Height (Inches)), 0.5)", "movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'", "played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'", "starring Tom Cruise refers to name = 'Tom Cruise'; best quality refers to max(rating)", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "comedy movie refers to Genre = 'Comedy'; rating lower than 7 refers to Rating < 7; net worth greater than $375,000,000.00 refers to NetWorth > '$375,000,000.00'", "MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted", "role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'", "'suggested by parental guidance' refers to mpaa_rating = 'PG'"]}} {"set": {"query": "Show the birth city of the actor who played \"Gabriel Martin\".", "pos": ["\"Gabriel Martin\" refers to Character Name = 'Gabriel Martin'"], "neg": ["PG rated refers to MPAA Rating = 'PG';\u00a0 highest net worth refers to max(NetWorth)", "MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted", "male refers to gender = 'Male'; African American refers to ethnicity = 'African American'", "No.2 character refers to creditOrder = '2'; movie \"American Hustle\" refers to Title = 'American Hustle'", "birthday refers to Date of Birth; \"Sully\" refers to Character Name = 'Sully'", "Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'", "longest screen time refers to max(screentime); movie Batman refers to title = 'Batman'", "played by Tom Cruise refers to name = 'Tom Cruise'", "born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "played by Tom Cruise refers to name = 'Tom Cruise'; movie Born on the Fourth of July refers to title = 'Born on the Fourth of July'"]}} {"set": {"query": "List down the movie ID of movie with a budget of 15000000 and a rating between 7 to 8.", "pos": ["a budget of 15000000 refers to Budget = 15000000; rating between 7 to 8 refers to Rating BETWEEN 7 and 8"], "neg": ["African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'", "male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'", "movie name refers to title; starring Tom Cruise refers to name = 'Tom Cruise'", "No.1 character refers to creditOrder = '1'; released on \"2015/10/26\" refers to Release Date = '2015-10-26'", "born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5", "played by Tom Cruise refers to name = 'Tom Cruise'", "role of Joker refers to character_name = 'Joker'; movie Batman refers to title = 'Batman'", "Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'", "\"Gabriel Martin\" refers to Character Name = 'Gabriel Martin'", "movie name refers to title; character Dr. Archibald 'Moonlight' Graham refers to character_name = 'Dr. Archibald 'Moonlight' Graham'"]}} {"set": {"query": "List the top 5 most-rented films.", "pos": ["film refers to title; most rented refers to MAX(inventory_id)"], "neg": ["the most customers refers to MAX(COUNT(customer_id))", "category refers to name; BABY HALL film refers to title = 'BABY HALL'", "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "the total payment amount refers to sum(amount)", "longest duration of film refers to Max(length)", "full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))", "highest replacement cost refers to Max(replacement_cost)", "total payment = sum(amount)"]}} {"set": {"query": "What is the description of the film Artist Coldblooded?", "pos": ["\"ARTIST COLDBLOODED\" is the title of film"], "neg": ["\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)", "\"ACADEMY DINOSAUR\" is the title of film; language refers to language.name", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "\"Horror\" is the name of category", "\"UPRISING UPTOWN\" is the title of film", "a duration of 100 minutes and below refers to length < 100", "category refers to name; most number of films refers to Max(Count(film_id))"]}} {"set": {"query": "Calculate the average payment amount per customer.", "pos": ["average payment refers to AVG(amount)"], "neg": ["Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "'Dan' is a first_name of an actor", "percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "documentary film refers to name = 'documentary'; longest length refers to max(length)", "'Texas' is a district"]}} {"set": {"query": "Give the name of the manager staff for store No.1.", "pos": ["store no. 1 refers to store_id = 1; name refers to first_name, last_name"], "neg": ["screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "film refers to title; rent for more than 5 days refers to rental_duration > 5", "the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "movies with the most price per day refers to MAX(rental_rate)", "the largest number of films refers to MAX(rental_id)", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "postal code that begins with 76 refers to postal_code like '76%'", "'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;", "film refers to title; rated as PG-13 refers to rating = 'PG-13'"]}} {"set": {"query": "What are the address numbers that are located in Gansu district?", "pos": ["address numbers refers to address_id;"], "neg": ["'Wyoming Storm' refers to title = 'WYOMING STORM'", "rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "total payment = sum(amount)", "77 min film refers to length = 77", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "store no. 1 refers to store_id = 1; name refers to first_name, last_name", "rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name", "\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name"]}} {"set": {"query": "Among the adult films, how many of them have a rental duration of fewer than 4 days?", "pos": ["adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4"], "neg": ["store no. 1 refers to store_id = 1; name refers to first_name, last_name", "the total amount = sum(amount)", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "postal code that begins with 76 refers to postal_code like '76%'", "\"1411 Lillydate Drive\" is the address", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "\"UPRISING UPTOWN\" is the title of film", "'Wyoming Storm' refers to title = 'WYOMING STORM'", "inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100"]}} {"set": {"query": "List down film titles from id 1 to 10.", "pos": ["id 1 to 10 refers to film_id BETWEEN 1 and 10"], "neg": ["indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))", "full name refers to first_name, last_name; \"Alabama Devil\" refers to title = 'ALABAMA DEVIL'", "length longer than 100 refers to length > 100", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name", "postal code that begins with 76 refers to postal_code like '76%'", "film refers to title; rent for more than 5 days refers to rental_duration > 5", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "longest duration of film refers to Max(length)", "active refers to active = 1"]}} {"set": {"query": "Please list the full names of all the actors that have starred in the film with the highest replacement cost.", "pos": ["highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name"], "neg": ["the most customers refers to MAX(COUNT(customer_id))", "category refers to name; most number of films refers to Max(Count(film_id))", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "highest replacement cost refers to Max(replacement_cost)", "the total payment amount refers to sum(amount)", "\"ARTIST COLDBLOODED\" is the title of film", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "\"UPRISING UPTOWN\" is the title of film", "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))"]}} {"set": {"query": "Please list any two films that Penelope Guiness acted in.", "pos": ["film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name"], "neg": ["full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "number of address refers to address_id", "actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'", "horror film refers to category.name = 'Horror'; English film refers to language.name = 'English'; percentage = divide(count(film_id where category.name = 'Horror'), count(film_id)) where language.name = 'English' * 100%", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'", "\"Horror\" is the name of category; PG-13 rated refers to rating = 'PG-13'", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100"]}} {"set": {"query": "From 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM, how many times did Susan Wilson pay for film rentals?", "pos": ["from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'"], "neg": ["full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0", "actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'", "\"India\" is the country; name refers to first_name, last_name", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99", "email address refers to email", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "average payment refers to AVG(amount)", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "active employee refers to active = 1; full name refers to first_name, last_name"]}} {"set": {"query": "How many rental IDs belong to Eleanor Hunt?", "pos": ["'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name"], "neg": ["the most common first name refers to MAX(COUNT(first_name))", "category refers to name; BABY HALL film refers to title = 'BABY HALL'", "the total payment amount refers to sum(amount)", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))", "highest replacement cost refers to Max(replacement_cost)", "film refers to title; rated as PG-13 refers to rating = 'PG-13'", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "full name refers to first_name, last_name; \"Alabama Devil\" refers to title = 'ALABAMA DEVIL'"]}} {"set": {"query": "What is the phone number of address No.72?", "pos": ["address no. 72 refers to address_id = 72; phone number refers to phone"], "neg": ["children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "\"1411 Lillydate Drive\" is the address", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'", "most common category refers to MAX(COUNT(category.name))", "film refers to title; rated as PG refers to rating = 'PG'", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'", "active refers to active = 1", "\"Horror\" is the name of category; PG-13 rated refers to rating = 'PG-13'", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "rental duration of over 6 days refers to rental_duration > 6"]}} {"set": {"query": "Provide the cast for the film \"Jason trap\".", "pos": ["'Jason trap' is a title of a film; cast means actor; actor refers to first_name, last_name"], "neg": ["full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))", "rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "\"United States\" is the country", "most common category refers to MAX(COUNT(category.name))", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100", "active refers to active = 1", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name"]}} {"set": {"query": "How many films with the rental rate of $2.99 have the special feature of \"Deleted Scenes\"?", "pos": ["rental rate of $2.99 refers to rental_rate = 2.99; film refers to title"], "neg": ["PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)", "'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "\"Documentary\" is the name of category; film name refers to title", "email address refers to email", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)"]}} {"set": {"query": "What is the percentage more for the rental payment for store No.2 than store No.1?", "pos": ["store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100"], "neg": ["'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "longest duration of film refers to Max(length)", "movie name refers to title; the most recent refers to max(rental_date)", "actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)", "average duration time = AVG(length)", "\"Clarksville\" is the city;", "released in 2006 refers to release_year = 2006", "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "'Texas' is a district"]}} {"set": {"query": "State the documentary film titles with longest length.", "pos": ["documentary film refers to name = 'documentary'; longest length refers to max(length)"], "neg": ["full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)", "forename means first_name; full name refers to first_name, last_name", "'Wyoming Storm' refers to title = 'WYOMING STORM'", "number of address refers to address_id", "name of movie refers to title", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "178 min long refers to length = '178'", "\"United States\" is the country", "category refers to name; most number of films refers to Max(Count(film_id))"]}} {"set": {"query": "Which actor acted in ANONYMOUS HUMAN?", "pos": ["actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'"], "neg": ["movies with the most price per day refers to MAX(rental_rate)", "id movies refers to film_id", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "\"UPRISING UPTOWN\" is the title of film", "duration between 100 to 110 minutes refers to length between 100 and 110", "address numbers refers to address_id;", "customer ID of 100 and below refers to customer_id < 100", "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100"]}} {"set": {"query": "List down the films titles with the lowest replacement cost under the general audiences rating.", "pos": ["lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G"], "neg": ["number of address refers to address_id", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "'Dan' is a first_name of an actor", "active refers to active = 1", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "address numbers refers to address_id;", "\"United States\" is the country", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)"]}} {"set": {"query": "What are the names of the movies which Laura Brody starred in?", "pos": ["name of movie refers to title"], "neg": ["inactive customers refers to active = 0;", "horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100", "movie name refers to title; the most recent refers to max(rental_date)", "longest duration of film refers to Max(length)", "\"CHOCOLATE DUCK\" is the title of film; full name refers to first_name, last_name", "the most customers refers to MAX(COUNT(customer_id))", "R rating refers to rating = 'R'", "released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'", "PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)", "lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G"]}} {"set": {"query": "Please list the titles of any three action films.", "pos": ["action is a name of category"], "neg": ["'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'", "store 1 refers to store_id = 1; average rent amount refers to AVG(amount); calculation = DIVIDE(amount > AVG(amount), COUNT(customer_id)) * 100", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'", "\"Documentary\" is the name of category; number of film refers to Count(film_id)", "'Dan' is a first_name of an actor", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "total payment = sum(amount)", "inactive customers refers to active = 0;"]}} {"set": {"query": "How much is the total rental payment for the first 10 rentals?", "pos": ["first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)"], "neg": ["'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "category refers to name; BABY HALL film refers to title = 'BABY HALL'", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "'Agent Truman' is a title of a film; category refers to name", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "store 1 refers to store_id = 1; average rent amount refers to AVG(amount); calculation = DIVIDE(amount > AVG(amount), COUNT(customer_id)) * 100", "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'", "full name refers to first_name, last_name"]}} {"set": {"query": "In store ID 2, how many of the films are R rating?\n", "pos": ["R rating refers to rating = 'R'"], "neg": ["active refers to active = 1", "\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name", "rental duration of over 6 days refers to rental_duration > 6", "postal code that begins with 76 refers to postal_code like '76%'", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "active employee refers to active = 1; full name refers to first_name, last_name", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)"]}} {"set": {"query": "Find and list the full name of customers who rented more than five types of movies.", "pos": ["full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5"], "neg": ["movie name refers to title; the most recent refers to max(rental_date)", "average payment refers to AVG(amount)", "full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))", "documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30", "the most common first name refers to MAX(COUNT(first_name))", "active refers to active = 1", "longest duration of film refers to Max(length)", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'"]}} {"set": {"query": "Give me the title and category name of films whose price per day is more than $30. Please include their special features.", "pos": ["category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30"], "neg": ["full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))", "'Texas' is a district", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "surname means last_name;", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)", "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "film refers to title; rated as PG-13 refers to rating = 'PG-13'", "inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100", "the total payment amount refers to sum(amount)"]}} {"set": {"query": "What are the full names of all the active employees?", "pos": ["active employee refers to active = 1; full name refers to first_name, last_name"], "neg": ["more than 2 special features refers to Count(special_features) > 2", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "name refers to first_name, last_name", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "\"Horror\" is the name of category", "film refers to title; rated as PG refers to rating = 'PG'", "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "postal code that begins with 76 refers to postal_code like '76%'"]}} {"set": {"query": "How many percent of customers were inactive?", "pos": ["inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100"], "neg": ["the biggest amount refers to max(amount)", "full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))", "highest replacement cost refers to Max (replacement_cost)", "'Texas' is a district", "'Dan' is a first_name of an actor", "actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'"]}} {"set": {"query": "How many actors played a role in the 2006 film whose rental duration is 7 days, rental rate is 4.99 and is 98 minutes duration?", "pos": ["in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)"], "neg": ["77 min film refers to length = 77", "\"India\" is the country; name refers to first_name, last_name", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "name refers to first_name, last_name", "full name refers to first_name, last_name; the biggest amount refers to max(amount)", "Algeria is a country", "id 1 to 10 refers to film_id BETWEEN 1 and 10", "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "\"UPRISING UPTOWN\" is the title of film"]}} {"set": {"query": "Write down the inventories' IDs and actors' names of \"STREETCAR INTENTIONS\".", "pos": ["\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name"], "neg": ["active employee refers to active = 1; full name refers to first_name, last_name", "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "English is a name of a language; for adults only refers to rating = 'NC-17'", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "film refers to title; rated as PG refers to rating = 'PG'", "the largest number of films refers to MAX(rental_id)", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4"]}} {"set": {"query": "How many films have a rental duration of over 6 days?", "pos": ["rental duration of over 6 days refers to rental_duration > 6"], "neg": ["'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "film refers to title; rated as PG refers to rating = 'PG'", "the most customers refers to MAX(COUNT(customer_id))", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "movie name refers to title; the most recent refers to max(rental_date)", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "address numbers refers to address_id;", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)", "more than 2 special features refers to Count(special_features) > 2", "rented on 24th May 2005 refers to rental_date = '2005-05-24%'"]}} {"set": {"query": "Among the films starred by Nick Wahlberg, what is the percentage of the films with G rating?", "pos": ["'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100"], "neg": ["category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "longest duration of film refers to Max(length)", "77 min film refers to length = 77", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "the most common first name refers to MAX(COUNT(first_name))", "the biggest amount refers to max(amount)", "category refers to name; most number of films refers to Max(Count(film_id))", "inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title"]}} {"set": {"query": "Calculate the percentage of total payment of MARGARET MOORE customers.", "pos": ["percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%"], "neg": ["'Jason trap' is a title of a film; cast means actor; actor refers to first_name, last_name", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "active employee refers to active = 1; full name refers to first_name, last_name", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "active refers to active = 1", "film refers to title; rated as PG refers to rating = 'PG'", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "the biggest amount refers to max(amount)", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))"]}} {"set": {"query": "Please give the full name of the customer that have rented the most films.", "pos": ["full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))"], "neg": ["category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "'Texas' is a district", "name of movie refers to title", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "forename means first_name; full name refers to first_name, last_name", "R rating refers to rating = 'R'"]}} {"set": {"query": "Sherri Rhodes rented a film at 12:27:27 on 2005/7/28, when did she/he return that film?", "pos": ["rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'"], "neg": ["non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "forename means first_name; full name refers to first_name, last_name", "Algeria is a country", "the most common first name refers to MAX(COUNT(first_name))", "more than 2 special features refers to Count(special_features) > 2", "R rating refers to rating = 'R'", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "'Agent Truman' is a title of a film; category refers to name"]}} {"set": {"query": "Calculate the total amount paid by Stephanie Mitchell for film rentals in June 2005.", "pos": ["the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'"], "neg": ["surname means last_name;", "\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))", "\"Clarksville\" is the city;", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "more than 2 special features refers to Count(special_features) > 2", "customer ID of 100 and below refers to customer_id < 100"]}} {"set": {"query": "Tell the special features of the film Uprising Uptown.", "pos": ["\"UPRISING UPTOWN\" is the title of film"], "neg": ["a duration of 100 minutes and below refers to length < 100", "name of movie refers to title", "the most common first name refers to MAX(COUNT(first_name))", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "\"1411 Lillydate Drive\" is the address", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'", "\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))", "'Jason trap' is a title of a film; cast means actor; actor refers to first_name, last_name", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name"]}} {"set": {"query": "Please list the top ten movies with the most price per day in descending order of price per day.", "pos": ["movies with the most price per day refers to MAX(rental_rate)"], "neg": ["\"Documentary\" is the name of category; film name refers to title", "full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))", "id movies refers to film_id", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "77 min film refers to length = 77", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "film refers to title; least rented refers to count(min(customer_id))", "the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "more than 180 min long refers to length > 180; name of film refers to title"]}} {"set": {"query": "Among the films with the longest duration, list any five title with their descriptions and special features.", "pos": ["longest duration of film refers to Max(length)"], "neg": ["highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "\"Clarksville\" is the city;", "film refers to title; least rented refers to count(min(customer_id))", "'Texas' is a district", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "category refers to name; BABY HALL film refers to title = 'BABY HALL'", "customer refers to customer_id"]}} {"set": {"query": "List the names of the films that are more than 180 minutes long.", "pos": ["more than 180 min long refers to length > 180; name of film refers to title"], "neg": ["store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "film refers to title; least rented refers to count(min(customer_id))", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "United Arab Emirates refers to country = 'United Arab Emirates'", "'Jason trap' is a title of a film; cast means actor; actor refers to first_name, last_name", "duration between 100 to 110 minutes refers to length between 100 and 110", "documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100", "number of address refers to address_id", "store no. 1 refers to store_id = 1; name refers to first_name, last_name"]}} {"set": {"query": "What is the full name of the actor who has the highest number of restricted films?", "pos": ["restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name"], "neg": ["customer ID of 100 and below refers to customer_id < 100", "\"Documentary\" is the name of category; number of film refers to Count(film_id)", "full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))", "178 min long refers to length = '178'", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "'classics' is the name of category", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "full name refers to first_name, last_name; 'comedy' is a name of a category;"]}} {"set": {"query": "Give the email address of the person who lives in \"1411 Lillydale Drive\".", "pos": ["\"1411 Lillydate Drive\" is the address"], "neg": ["active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "the biggest amount refers to max(amount)", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "id movies refers to film_id", "name of movie refers to title", "average duration time = AVG(length)"]}} {"set": {"query": "The actor Dan Harris played in a 77 minute film with replacement cost of 9.99, what was the rating for that film?", "pos": ["77 min film refers to length = 77"], "neg": ["category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30", "most rented movie refers to title where Max(Count(rental_id))", "active employee refers to active = 1; full name refers to first_name, last_name", "address numbers refers to address_id;", "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "the most customers refers to MAX(COUNT(customer_id))", "'Texas' is a district", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "category refers to name; BABY HALL film refers to title = 'BABY HALL'", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%"]}} {"set": {"query": "For how many times has the customer RUTH MARTINEZ rented a film?", "pos": ["times of rented refers to Count(rental_id)"], "neg": ["full name refers to first_name, last_name", "'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "English is a name of a language; for adults only refers to rating = 'NC-17'", "indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))", "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))"]}} {"set": {"query": "How many id movies have category id 11?", "pos": ["id movies refers to film_id"], "neg": ["\"1411 Lillydate Drive\" is the address", "film refers to title; most rented refers to MAX(inventory_id)", "'Texas' is a district", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "average payment refers to AVG(amount)", "\"United States\" is the country", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;", "'classics' is the name of category"]}} {"set": {"query": "Please give the full name of the customer who had made the biggest amount of payment in one single film rental.", "pos": ["full name refers to first_name, last_name; the biggest amount refers to max(amount)"], "neg": ["customer ID of 100 and below refers to customer_id < 100", "actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'", "email address refers to email", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "address no. 72 refers to address_id = 72; phone number refers to phone", "action is a name of category", "'Agent Truman' is a title of a film; category refers to name", "\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "\"Documentary\" is the name of category; film name refers to title"]}} {"set": {"query": "List all the films that are rated as PG-13.", "pos": ["film refers to title; rated as PG-13 refers to rating = 'PG-13'"], "neg": ["\"Documentary\" is the name of category; number of film refers to Count(film_id)", "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "\"Clarksville\" is the city;", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "English is a name of a language; for adults only refers to rating = 'NC-17'", "United Arab Emirates refers to country = 'United Arab Emirates'", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "average payment refers to AVG(amount)", "\"United States\" is the country"]}} {"set": {"query": "What is the full name of the actor who has acted the most times in comedy films?", "pos": ["full name refers to first_name, last_name; 'comedy' is a name of a category;"], "neg": ["category refers to name; BABY HALL film refers to title = 'BABY HALL'", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "77 min film refers to length = 77", "'Dan' is a first_name of an actor", "\"1411 Lillydate Drive\" is the address", "ID 996 refers to film_id = 996", "released in 2006 refers to release_year = 2006", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name"]}} {"set": {"query": "Calculate the percentage of movie titles with a screen length of more than 120 minutes that have a category of horror movies.", "pos": ["screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%"], "neg": ["77 min film refers to length = 77", "full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "number of address refers to address_id", "the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'", "ID 996 refers to film_id = 996", "animated film means animation; animation is a name of a category", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name", "more than 2 special features refers to Count(special_features) > 2"]}} {"set": {"query": "How many movies have a length longer than 100?", "pos": ["length longer than 100 refers to length > 100"], "neg": ["Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "animated film means animation; animation is a name of a category", "\"Horror\" is the name of category", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "'classics' is the name of category", "most common category refers to MAX(COUNT(category.name))", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "longest duration of film refers to Max(length)", "rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)", "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'"]}} {"set": {"query": "Among the films with a rental duration of 7 days, how many are comedies?", "pos": ["rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'"], "neg": ["\"India\" is the country; name refers to first_name, last_name", "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "active refers to active = 1", "full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'", "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))", "staff manager refers to manager_staff_id", "full name refers to first_name, last_name; the biggest amount refers to max(amount)"]}} {"set": {"query": "Among the films starred by Reese West, what is the difference between the films that have store ID of 1 and store ID of 2?", "pos": ["result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))"], "neg": ["PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "name refers to first_name, last_name", "postal code that begins with 76 refers to postal_code like '76%'", "active refers to active = 1", "full name refers to first_name, last_name; the biggest amount refers to max(amount)", "length longer than 100 refers to length > 100", "the total amount = sum(amount)", "full name refers to first_name, last_name", "film refers to title; most rented refers to MAX(inventory_id)"]}} {"set": {"query": "List the store ID of the films starred by Reese West with a duration of 100 minutes and below?", "pos": ["a duration of 100 minutes and below refers to length < 100"], "neg": ["highest replacement cost refers to Max(replacement_cost)", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "address numbers refers to address_id;", "ID 996 refers to film_id = 996", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)", "the most common first name refers to MAX(COUNT(first_name))", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "length longer than 100 refers to length > 100", "number of address refers to address_id", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30"]}} {"set": {"query": "How many cities are there in the United States?", "pos": ["\"United States\" is the country"], "neg": ["surname means last_name;", "average duration time = AVG(length)", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'", "\"Horror\" is the name of category", "full name refers to first_name, last_name; the biggest amount refers to max(amount)", "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "full name refers to first_name, last_name; \"Alabama Devil\" refers to title = 'ALABAMA DEVIL'", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99"]}} {"set": {"query": "What are the addresses of the inactive customers?", "pos": ["inactive customers refers to active = 0;"], "neg": ["indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))", "the total payment amount refers to sum(amount)", "category refers to name; BABY HALL film refers to title = 'BABY HALL'", "rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "the total amount = sum(amount)", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "\"UPRISING UPTOWN\" is the title of film", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name"]}} {"set": {"query": "How many payments were made throughout the month of August 2005?", "pos": ["payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'"], "neg": ["average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "animated film means animation; animation is a name of a category", "'Wyoming Storm' refers to title = 'WYOMING STORM'", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'", "movies with the most price per day refers to MAX(rental_rate)", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "store no. 1 refers to store_id = 1; name refers to first_name, last_name", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id"]}} {"set": {"query": "List the inventory ID of the film titled \"African Egg\".", "pos": ["'African Egg' is a title of a film"], "neg": ["film refers to title; rent for more than 5 days refers to rental_duration > 5", "email address refers to email", "actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'", "total payment = sum(amount)", "'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150", "ID 996 refers to film_id = 996", "actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "longest duration of film refers to Max(length)", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name"]}} {"set": {"query": "How many times is the number of Indian cities than Italian cities?", "pos": ["indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))"], "neg": ["English is a name of a language; for adults only refers to rating = 'NC-17'", "\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name", "'classics' is the name of category", "the total payment amount refers to sum(amount)", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "active refers to active = 1", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)", "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'"]}} {"set": {"query": "What is the title of the animated films that have the shortest length?", "pos": ["animated film means animation; animation is a name of a category"], "neg": ["full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "name refers to first_name, last_name", "total payment = sum(amount)", "forename means first_name; full name refers to first_name, last_name", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "\"Horror\" is the name of category"]}} {"set": {"query": "List the films' titles which were rented by Brian Wyman in July, 2005.", "pos": ["rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7"], "neg": ["United Arab Emirates refers to country = 'United Arab Emirates'", "film refers to title; rated as PG-13 refers to rating = 'PG-13'", "forename means first_name; full name refers to first_name, last_name", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'", "inactive customers refers to active = 0;", "Algeria is a country", "R rating refers to rating = 'R'"]}} {"set": {"query": "How many documentary films are rated PG-13?", "pos": ["documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'"], "neg": ["customer ID of 100 and below refers to customer_id < 100", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id", "animated film means animation; animation is a name of a category", "longest duration of film refers to Max(length)", "\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))", "horror film refers to category.name = 'Horror'; English film refers to language.name = 'English'; percentage = divide(count(film_id where category.name = 'Horror'), count(film_id)) where language.name = 'English' * 100%", "77 min film refers to length = 77"]}} {"set": {"query": "Calculate the total rental rate for animation film titles.", "pos": ["animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)"], "neg": ["restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name", "active refers to active = 1", "name refers to first_name, last_name", "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "customer ID of 100 and below refers to customer_id < 100", "full name refers to first_name, last_name; the biggest amount refers to max(amount)"]}} {"set": {"query": "Who are the top 5 actors with the highest number of films? List their full names and calculate the average number of films for each of the actors.", "pos": ["actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)"], "neg": ["'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "times of rented refers to Count(rental_id)", "animated film means animation; animation is a name of a category", "average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6", "\"Clarksville\" is the city;", "film refers to title; most rented refers to MAX(inventory_id)", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "longest duration of film refers to Max(length)", "more than 2 special features refers to Count(special_features) > 2"]}} {"set": {"query": "Write down any five film names under the documentary category.", "pos": ["\"Documentary\" is the name of category; film name refers to title"], "neg": ["for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)", "highest replacement cost refers to Max (replacement_cost)", "rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)", "category refers to name; most number of films refers to Max(Count(film_id))", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "number of address refers to address_id", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))"]}} {"set": {"query": "Which film has a higher replacement cost, ACE GOLDFINGER or ACADEMY DINOSAUR?", "pos": ["higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film"], "neg": ["'Jason trap' is a title of a film; cast means actor; actor refers to first_name, last_name", "film refers to title; most rented refers to MAX(inventory_id)", "\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "customer ID of 100 and below refers to customer_id < 100", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "\"Horror\" is the name of category", "\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name", "film refers to title; least rented refers to count(min(customer_id))"]}} {"set": {"query": "What is the full name of the actor who starred in most movies?", "pos": ["full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))"], "neg": ["lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G", "email address refers to email", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "category refers to name; most number of films refers to Max(Count(film_id))", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)", "active refers to active = 1", "longest duration of film refers to Max(length)", "\"Horror\" is the name of category"]}} {"set": {"query": "In films with a length duration of 113 minutes, how many of the films are starred by Kirk Jovovich?", "pos": ["length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name"], "neg": ["documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100", "a duration of 100 minutes and below refers to length < 100", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30", "length longer than 100 refers to length > 100", "name refers to first_name, last_name", "film refers to title; rated as PG-13 refers to rating = 'PG-13'", "forename means first_name; full name refers to first_name, last_name", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "ID 996 refers to film_id = 996"]}} {"set": {"query": "What is the inventory ID of the films starred by Russell Close with a duration between 110 to 150 minutes?", "pos": ["'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150"], "neg": ["\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "most rented movie refers to title where Max(Count(rental_id))", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'", "customer refers to customer_id", "highest replacement cost refers to Max(replacement_cost)", "active employee refers to active = 1; full name refers to first_name, last_name", "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "name of movie refers to title"]}} {"set": {"query": "What is the most common first name among the customers?", "pos": ["the most common first name refers to MAX(COUNT(first_name))"], "neg": ["PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)", "length longer than 100 refers to length > 100", "active employee refers to active = 1; full name refers to first_name, last_name", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "Algeria is a country", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "store no. 1 refers to store_id = 1; name refers to first_name, last_name", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "documentary film refers to name = 'documentary'; longest length refers to max(length)", "ID 996 refers to film_id = 996"]}} {"set": {"query": "Please list the full names of all the actors that have starred in the film ACADEMY DINOSAUR.", "pos": ["full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film"], "neg": ["id movies refers to film_id", "active refers to active = 1", "address numbers refers to address_id;", "actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "\"India\" is the country; name refers to first_name, last_name", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "'classics' is the name of category"]}} {"set": {"query": "What is the language of the film ACADEMY DINOSAUR?", "pos": ["\"ACADEMY DINOSAUR\" is the title of film; language refers to language.name"], "neg": ["full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "\"1411 Lillydate Drive\" is the address", "'Dan' is a first_name of an actor", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "\"ARTIST COLDBLOODED\" is the title of film", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name", "staff manager refers to manager_staff_id", "film refers to title; rent for more than 5 days refers to rental_duration > 5"]}} {"set": {"query": "How many different clients have rented materials from Jon Stephens?", "pos": ["'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;"], "neg": ["average duration time = AVG(length)", "highest replacement cost refers to Max (replacement_cost)", "English is a name of a language; for adults only refers to rating = 'NC-17'", "number of address refers to address_id", "77 min film refers to length = 77", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "\"CHOCOLATE DUCK\" is the title of film; full name refers to first_name, last_name", "length longer than 100 refers to length > 100", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))"]}} {"set": {"query": "Among the films rented by Natalie Meyer, describe the titles and categories of the films which were rented in February 2006.", "pos": ["category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2"], "neg": ["action is a name of category", "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "the biggest amount refers to max(amount)", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "active refers to active = 1", "times of rented refers to Count(rental_id)", "longest duration of film refers to Max(length)", "lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G", "longest duration of film refers to Max(length)"]}} {"set": {"query": "Find the full name and email address of inactive customers whose record was created in 2006.", "pos": ["full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0"], "neg": ["id movies refers to film_id", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;", "\"Clarksville\" is the city;", "rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)", "email address refers to email", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "active refers to active = 1", "'classics' is the name of category", "store no. 1 refers to store_id = 1; address location refers to address, address2, district"]}} {"set": {"query": "Which category is the film \"Beach Heartbreakers\" falls into?", "pos": ["category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'"], "neg": ["full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'", "rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "inactive customers refers to active = 0;", "\"Horror\" is the name of category", "more than 180 min long refers to length > 180; name of film refers to title", "film refers to title; most rented refers to MAX(inventory_id)", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)"]}} {"set": {"query": "What is the full name of the customer who rented the highest number of movies of all time?", "pos": ["full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))"], "neg": ["'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "film refers to title; least rented refers to count(min(customer_id))", "\"UPRISING UPTOWN\" is the title of film", "ID 996 refers to film_id = 996", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "\"United States\" is the country", "longest duration of film refers to Max(length)", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)", "store no. 1 refers to store_id = 1; name refers to first_name, last_name"]}} {"set": {"query": "List all the films that Karl Berr starred in and rated as PG.", "pos": ["film refers to title; rated as PG refers to rating = 'PG'"], "neg": ["full name refers to first_name, last_name; more than 10$ refers to amount > 10", "forename means first_name; full name refers to first_name, last_name", "rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'", "store no. 1 refers to store_id = 1; name refers to first_name, last_name", "'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name", "full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "\"United States\" is the country", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film"]}} {"set": {"query": "Please list the titles of all the films that have more than 2 special features.", "pos": ["more than 2 special features refers to Count(special_features) > 2"], "neg": ["first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "average duration time = AVG(length)", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99", "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "film refers to title; rent for more than 5 days refers to rental_duration > 5", "customer ID of 100 and below refers to customer_id < 100", "full name refers to first_name, last_name; the biggest amount refers to max(amount)", "category refers to name; BABY HALL film refers to title = 'BABY HALL'", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'"]}} {"set": {"query": "Among the classic movies, how many movies have a rental rate of less than 1?", "pos": ["classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id"], "neg": ["duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'", "\"Documentary\" is the name of category; film name refers to title", "duration between 100 to 110 minutes refers to length between 100 and 110", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "staff manager refers to manager_staff_id", "rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "address no. 72 refers to address_id = 72; phone number refers to phone", "postal code that begins with 76 refers to postal_code like '76%'", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null"]}} {"set": {"query": "Calculate the percentage of customers who paid more than the average rent amount in store 1.", "pos": ["store 1 refers to store_id = 1; average rent amount refers to AVG(amount); calculation = DIVIDE(amount > AVG(amount), COUNT(customer_id)) * 100"], "neg": ["full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))", "\"Horror\" is the name of category", "forename means first_name; full name refers to first_name, last_name", "'Dan' is a first_name of an actor", "inactive customers refers to active = 0;", "178 min long refers to length = '178'", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "\"Clarksville\" is the city;", "most rented movie refers to title where Max(Count(rental_id))", "store no. 1 refers to store_id = 1; address location refers to address, address2, district"]}} {"set": {"query": "Which movie title has the lowest movie rental in the horror category?", "pos": ["the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'"], "neg": ["address no. 72 refers to address_id = 72; phone number refers to phone", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name", "178 min long refers to length = '178'", "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99", "forename means first_name; full name refers to first_name, last_name", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "more than 2 special features refers to Count(special_features) > 2", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30"]}} {"set": {"query": "Identify the full name of the customer, who has the following email address: SHEILA.WELLS@sakilacustomer.org.", "pos": ["full name refers to first_name, last_name"], "neg": ["\"Documentary\" is the name of category; film name refers to title", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name", "active refers to active = 1", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'", "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "category refers to name; most number of films refers to Max(Count(film_id))", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "customer ID of 100 and below refers to customer_id < 100", "actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name"]}} {"set": {"query": "How many Italian film titles were special featured with deleted scenes?", "pos": ["Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'"], "neg": ["documentary film refers to name = 'documentary'; longest length refers to max(length)", "length longer than 100 refers to length > 100", "more than 180 min long refers to length > 180; name of film refers to title", "film refers to title; most rented refers to MAX(inventory_id)", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "active refers to active = 1", "id movies refers to film_id", "rental duration of over 6 days refers to rental_duration > 6", "full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'"]}} {"set": {"query": "How many times was \"Blanket Beverly\" rented?", "pos": ["\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)"], "neg": ["surname means last_name;", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "'African Egg' is a title of a film", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "active employee refers to active = 1; full name refers to first_name, last_name", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "\"Documentary\" is the name of category; number of film refers to Count(film_id)", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "English is a name of a language; for adults only refers to rating = 'NC-17'", "name of movie refers to title"]}} {"set": {"query": "Who is the customer that is active and lives at 1795 Santiago de Compostela Way, Texas?", "pos": ["active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name"], "neg": ["movie name refers to title; the most recent refers to max(rental_date)", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id", "'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "more than 180 min long refers to length > 180; name of film refers to title", "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))"]}} {"set": {"query": "In which country is the store where Hector Poinexter rents equipment located?", "pos": ["'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;"], "neg": ["active refers to active = 1", "address no. 72 refers to address_id = 72; phone number refers to phone", "movies with the most price per day refers to MAX(rental_rate)", "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name", "average duration time = AVG(length)"]}} {"set": {"query": "Indicate the title of all the films that are in the Classics category.", "pos": ["'classics' is the name of category"], "neg": ["active refers to active = 1", "'Agent Truman' is a title of a film; category refers to name", "full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'", "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "name of movie refers to title", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99", "average payment refers to AVG(amount)"]}} {"set": {"query": "What is the title of the restricted film, whose length is 71 minutes and whose replacement cost is $29.99?", "pos": ["restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99"], "neg": ["rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "film refers to title; most rented refers to MAX(inventory_id)", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "active refers to active = 1", "name refers to first_name, last_name", "documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100", "Algeria is a country", "active refers to active = 1", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4"]}} {"set": {"query": "List down the actors' full names who performed in \"CHOCOLATE DUCK\" film.", "pos": ["\"CHOCOLATE DUCK\" is the title of film; full name refers to first_name, last_name"], "neg": ["a duration of 100 minutes and below refers to length < 100", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "inactive customers refers to active = 0;", "highest replacement_cost refers to Max (replacement_cost); film refers to title", "77 min film refers to length = 77", "actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'", "action is a name of category", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30", "rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'"]}} {"set": {"query": "What is the difference between the number of children's films and action films?", "pos": ["'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))"], "neg": ["restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "address no. 72 refers to address_id = 72; phone number refers to phone", "rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)", "the largest number of films refers to MAX(rental_id)", "ID 996 refers to film_id = 996", "documentary film refers to name = 'documentary'; longest length refers to max(length)", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "longest duration of film refers to Max(length)", "surname means last_name;", "customer ID of 100 and below refers to customer_id < 100"]}} {"set": {"query": "Who are the actors starred in the film \"Bound Cheaper\"?", "pos": ["actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'"], "neg": ["movie name refers to title; the most recent refers to max(rental_date)", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "forename means first_name; full name refers to first_name, last_name", "\"Horror\" is the name of category", "horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "the total amount = sum(amount)", "active refers to active = 1", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)"]}} {"set": {"query": "How many films are categorized as horror?", "pos": ["\"Horror\" is the name of category"], "neg": ["highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'", "percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%", "name refers to first_name, last_name", "'African Egg' is a title of a film", "rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "highest replacement_cost refers to Max (replacement_cost); film refers to title", "\"ACADEMY DINOSAUR\" is the title of film; language refers to language.name", "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "178 min long refers to length = '178'"]}} {"set": {"query": "How many non-active clients have not returned the rented material?", "pos": ["non-active clients refers to active = 0; not returning a rented material refers to rental_date is null"], "neg": ["active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "documentary film refers to name = 'documentary'; longest length refers to max(length)", "film refers to title; least rented refers to count(min(customer_id))", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "the biggest amount refers to max(amount)", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)", "address no. 72 refers to address_id = 72; phone number refers to phone"]}} {"set": {"query": "What is the category of the film Agent Truman?", "pos": ["'Agent Truman' is a title of a film; category refers to name"], "neg": ["longest duration of film refers to Max(length)", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "\"Documentary\" is the name of category; number of film refers to Count(film_id)", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "most common category refers to MAX(COUNT(category.name))", "full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "'Dan' is a first_name of an actor", "\"Horror\" is the name of category"]}} {"set": {"query": "Please provide the full name of the customer at 692 Joliet Street.", "pos": ["full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'"], "neg": ["rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "film refers to title; least rented refers to count(min(customer_id))", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6", "film refers to title; rated as PG-13 refers to rating = 'PG-13'", "rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)", "full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)"]}} {"set": {"query": "List at least 10 films that the customers can rent for more than 5 days.", "pos": ["film refers to title; rent for more than 5 days refers to rental_duration > 5"], "neg": ["total payment = sum(amount)", "number of address refers to address_id", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "active employee refers to active = 1; full name refers to first_name, last_name", "'classics' is the name of category", "'Dan' is a first_name of an actor", "address numbers refers to address_id;", "film refers to title; most rented refers to MAX(inventory_id)", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100"]}} {"set": {"query": "List down email address of customers who were attended by staff with ID 2.", "pos": ["email address refers to email"], "neg": ["id 1 to 10 refers to film_id BETWEEN 1 and 10", "'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150", "most common category refers to MAX(COUNT(category.name))", "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "active refers to active = 1", "United Arab Emirates refers to country = 'United Arab Emirates'", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "'Dan' is a first_name of an actor"]}} {"set": {"query": "What percentage of the movies are PG-13?", "pos": ["PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100"], "neg": ["action is a name of category", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "movies with the most price per day refers to MAX(rental_rate)", "horror film refers to category.name = 'Horror'; English film refers to language.name = 'English'; percentage = divide(count(film_id where category.name = 'Horror'), count(film_id)) where language.name = 'English' * 100%", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "ID 996 refers to film_id = 996", "animated film means animation; animation is a name of a category", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'"]}} {"set": {"query": "Among the customers with customer ID of 100 and below, how many of them have Thomas as their last name?", "pos": ["customer ID of 100 and below refers to customer_id < 100"], "neg": ["email address refers to email", "highest replacement cost refers to Max (replacement_cost)", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))", "highest replacement_cost refers to Max (replacement_cost); film refers to title", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "R rating refers to rating = 'R'", "'Agent Truman' is a title of a film; category refers to name"]}} {"set": {"query": "What is the city with the most customers?", "pos": ["the most customers refers to MAX(COUNT(customer_id))"], "neg": ["\"Clarksville\" is the city;", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "address no. 72 refers to address_id = 72; phone number refers to phone", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id", "film refers to title; rent for more than 5 days refers to rental_duration > 5", "full name refers to first_name, last_name; the biggest amount refers to max(amount)", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "\"1411 Lillydate Drive\" is the address"]}} {"set": {"query": "For how long can you rent the movie 'Dirty Ace'?", "pos": ["length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'"], "neg": ["\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "active employee refers to active = 1; full name refers to first_name, last_name", "English is a name of a language; for adults only refers to rating = 'NC-17'", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'", "actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "longest duration of film refers to Max(length)", "email address refers to email"]}} {"set": {"query": "What is the percentage of horror film titles in English film titles?", "pos": ["horror film refers to category.name = 'Horror'; English film refers to language.name = 'English'; percentage = divide(count(film_id where category.name = 'Horror'), count(film_id)) where language.name = 'English' * 100%"], "neg": ["address no. 72 refers to address_id = 72; phone number refers to phone", "surname means last_name;", "\"ARTIST COLDBLOODED\" is the title of film", "longest duration of film refers to Max(length)", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "documentary film refers to name = 'documentary'; longest length refers to max(length)", "postal code that begins with 76 refers to postal_code like '76%'", "store 1 refers to store_id = 1; average rent amount refers to AVG(amount); calculation = DIVIDE(amount > AVG(amount), COUNT(customer_id)) * 100", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))"]}} {"set": {"query": "What is the description and film title of ID 996?", "pos": ["ID 996 refers to film_id = 996"], "neg": ["Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'", "full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))", "average duration time = AVG(length)", "postal code that begins with 76 refers to postal_code like '76%'", "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "name of movie refers to title", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "most common category refers to MAX(COUNT(category.name))", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null"]}} {"set": {"query": "What is the difference in the average number of films rented each day in Australia and Canada?", "pos": ["'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))"], "neg": ["the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0", "more than 2 special features refers to Count(special_features) > 2", "\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name", "longest duration of film refers to Max(length)", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "name of movie refers to title", "\"Clarksville\" is the city;", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "\"Horror\" is the name of category"]}} {"set": {"query": "What is the first name of the customers whose address is in the postal code that begins with 76?", "pos": ["postal code that begins with 76 refers to postal_code like '76%'"], "neg": ["highest replacement cost refers to Max(replacement_cost)", "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "\"UPRISING UPTOWN\" is the title of film", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "'Wyoming Storm' refers to title = 'WYOMING STORM'", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "\"Clarksville\" is the city;", "\"1411 Lillydate Drive\" is the address", "total payment = sum(amount)", "full name refers to first_name, last_name; more than 10$ refers to amount > 10"]}} {"set": {"query": "What is the largest number of films rented per customer?", "pos": ["the largest number of films refers to MAX(rental_id)"], "neg": ["length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "\"India\" is the country; name refers to first_name, last_name", "\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "longest duration of film refers to Max(length)", "film refers to title; rated as PG refers to rating = 'PG'", "name of movie refers to title", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'"]}} {"set": {"query": "How many actors with the surname Kilmer are there?", "pos": ["surname means last_name;"], "neg": ["children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "the total amount = sum(amount)", "forename means first_name; full name refers to first_name, last_name", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "number of address refers to address_id", "\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name", "postal code that begins with 76 refers to postal_code like '76%'", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "longest duration of film refers to Max(length)"]}} {"set": {"query": "List the address in Texas in the ascending order of city id.", "pos": ["'Texas' is a district"], "neg": ["restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99", "'Agent Truman' is a title of a film; category refers to name", "the total amount = sum(amount)", "'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "movies with the most price per day refers to MAX(rental_rate)", "staff manager refers to manager_staff_id", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G", "\"Horror\" is the name of category"]}} {"set": {"query": "How many rentals did Ella Oliver hire in June 2016?", "pos": ["'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'"], "neg": ["store no. 1 refers to store_id = 1; name refers to first_name, last_name", "the largest number of films refers to MAX(rental_id)", "surname means last_name;", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "email address refers to email", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "film refers to title; least rented refers to count(min(customer_id))", "longest duration of film refers to Max(length)", "\"Horror\" is the name of category", "Algeria is a country"]}} {"set": {"query": "What is the name and email of the staff in store ID 2?", "pos": ["name refers to first_name, last_name"], "neg": ["\"ACADEMY DINOSAUR\" is the title of film; language refers to language.name", "the largest number of films refers to MAX(rental_id)", "inactive customers refers to active = 0;", "\"Documentary\" is the name of category; number of film refers to Count(film_id)", "forename means first_name; full name refers to first_name, last_name", "film refers to title; least rented refers to count(min(customer_id))", "'African Egg' is a title of a film", "\"Documentary\" is the name of category; film name refers to title", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null"]}} {"set": {"query": "State the name of the category which has the most number of films.", "pos": ["category refers to name; most number of films refers to Max(Count(film_id))"], "neg": ["length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "film refers to title; rated as PG-13 refers to rating = 'PG-13'", "rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "customer refers to customer_id", "average duration time = AVG(length)", "customer ID of 100 and below refers to customer_id < 100", "surname means last_name;", "the largest number of films refers to MAX(rental_id)", "name of movie refers to title", "ID 996 refers to film_id = 996"]}} {"set": {"query": "Please list the titles of the top 3 films with the highest replacement cost.", "pos": ["highest replacement_cost refers to Max (replacement_cost); film refers to title"], "neg": ["R rating refers to rating = 'R'", "the biggest amount refers to max(amount)", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "United Arab Emirates refers to country = 'United Arab Emirates'", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "store no. 1 refers to store_id = 1; name refers to first_name, last_name", "\"ACADEMY DINOSAUR\" is the title of film; language refers to language.name"]}} {"set": {"query": "Who is the customer with the largest payment for rental films?", "pos": ["Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))"], "neg": ["returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7", "active employee refers to active = 1; full name refers to first_name, last_name", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "highest replacement cost refers to Max (replacement_cost)", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "staff manager refers to manager_staff_id"]}} {"set": {"query": "How many customers are still active?", "pos": ["active refers to active = 1"], "neg": ["active refers to active = 1", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0", "Algeria is a country", "number of address refers to address_id", "\"Horror\" is the name of category; PG-13 rated refers to rating = 'PG-13'", "the total amount = sum(amount)", "\"United States\" is the country", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'"]}} {"set": {"query": "What is the most common special features of science-fiction movies?", "pos": ["\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))"], "neg": ["id 1 to 10 refers to film_id BETWEEN 1 and 10", "average duration time = AVG(length)", "total payment = sum(amount)", "R rating refers to rating = 'R'", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "full name refers to first_name, last_name; \"Alabama Devil\" refers to title = 'ALABAMA DEVIL'", "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))", "actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)", "address numbers refers to address_id;", "most rented movie refers to title where Max(Count(rental_id))"]}} {"set": {"query": "Give the full name of the actor with the highest rental rate.", "pos": ["full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)"], "neg": ["actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "forename means first_name; full name refers to first_name, last_name", "number of address refers to address_id", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "inactive customers refers to active = 0;", "film refers to title; rated as PG refers to rating = 'PG'", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100"]}} {"set": {"query": "What is the name of the most rented movie?", "pos": ["most rented movie refers to title where Max(Count(rental_id))"], "neg": ["the most customers refers to MAX(COUNT(customer_id))", "active refers to active = 1", "\"Horror\" is the name of category", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "a duration of 100 minutes and below refers to length < 100", "length longer than 100 refers to length > 100", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'", "category refers to name; most number of films refers to Max(Count(film_id))"]}} {"set": {"query": "Give the full name of the actor who acted the most in drama movies?", "pos": ["full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))"], "neg": ["'Dan' is a first_name of an actor", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "film refers to title; rated as PG refers to rating = 'PG'", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))", "rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99", "released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'", "full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0"]}} {"set": {"query": "How many films are there under the category of \"Horror\"?", "pos": ["\"Horror\" is the name of category"], "neg": ["active refers to active = 1", "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "forename means first_name; full name refers to first_name, last_name", "full name refers to first_name, last_name; \"Alabama Devil\" refers to title = 'ALABAMA DEVIL'", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)", "documentary film refers to name = 'documentary'; longest length refers to max(length)", "\"UPRISING UPTOWN\" is the title of film"]}} {"set": {"query": "How long did Austin Cintron take to return the movie 'Destiny Saturday'?", "pos": ["'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)"], "neg": ["\"India\" is the country; name refers to first_name, last_name", "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))", "id 1 to 10 refers to film_id BETWEEN 1 and 10", "178 min long refers to length = '178'", "address numbers refers to address_id;", "'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name", "movie name refers to title; the most recent refers to max(rental_date)", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name"]}} {"set": {"query": "State the address location of store No.1.", "pos": ["store no. 1 refers to store_id = 1; address location refers to address, address2, district"], "neg": ["store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "most rented movie refers to title where Max(Count(rental_id))", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "highest replacement cost refers to Max(replacement_cost)", "duration between 100 to 110 minutes refers to length between 100 and 110"]}} {"set": {"query": "Calculate the total payment amount of customers in Nagasaki district.", "pos": ["the total payment amount refers to sum(amount)"], "neg": ["rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)", "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "more than 2 special features refers to Count(special_features) > 2", "Algeria is a country", "full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'", "PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "active refers to active = 1"]}} {"set": {"query": "How many films have a duration between 100 to 110 minutes?", "pos": ["duration between 100 to 110 minutes refers to length between 100 and 110"], "neg": ["restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "\"Horror\" is the name of category", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)", "action is a name of category", "ID 996 refers to film_id = 996", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name"]}} {"set": {"query": "What is the average duration time of the films starring PENELOPE GUINESS?", "pos": ["average duration time = AVG(length)"], "neg": ["customer ID of 100 and below refers to customer_id < 100", "surname means last_name;", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "length longer than 100 refers to length > 100", "active refers to active = 1", "inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100", "English is a name of a language; for adults only refers to rating = 'NC-17'", "full name refers to first_name, last_name; the biggest amount refers to max(amount)", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))"]}} {"set": {"query": "Who is the owner of email address \"JEREMY.HURTADO@sakilacustomer.org\"? Give the full name.", "pos": ["\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name"], "neg": ["length longer than 100 refers to length > 100", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100", "\"Horror\" is the name of category", "the total payment amount refers to sum(amount)", "documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "active refers to active = 1", "\"Documentary\" is the name of category; film name refers to title"]}} {"set": {"query": "What is the percentage of documentary films?", "pos": ["documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100"], "neg": ["staff manager refers to manager_staff_id", "\"UPRISING UPTOWN\" is the title of film", "children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))", "id 1 to 10 refers to film_id BETWEEN 1 and 10", "\"Horror\" is the name of category", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "surname means last_name;", "the most common first name refers to MAX(COUNT(first_name))", "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "full name refers to first_name, last_name; 'comedy' is a name of a category;"]}} {"set": {"query": "State the number of addresses in the Nordrhein-Westfalen district.", "pos": ["number of address refers to address_id"], "neg": ["full name refers to first_name, last_name; the biggest amount refers to max(amount)", "movie name refers to title; the most recent refers to max(rental_date)", "film refers to title; rated as PG-13 refers to rating = 'PG-13'", "'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;", "name of movie refers to title", "full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)", "'classics' is the name of category", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'"]}} {"set": {"query": "What is the total amount of money Mary Smith has spent on film rentals?", "pos": ["the total amount = sum(amount)"], "neg": ["the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6", "ID 996 refers to film_id = 996", "\"Horror\" is the name of category", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "'African Egg' is a title of a film", "\"UPRISING UPTOWN\" is the title of film", "name of movie refers to title", "rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7"]}} {"set": {"query": "What is the title of the film with the longest duration time and stars PENELOPE GUINESS?", "pos": ["longest duration of film refers to Max(length)"], "neg": ["documentary film refers to category.name = 'documentary'; rated PG-13 refers to rating = 'PG-13'", "'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name", "full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))", "address no. 72 refers to address_id = 72; phone number refers to phone", "Algeria is a country", "total payment = sum(amount)", "'Nick Wahlberg' is a full name of an actor; full name refers to first_name, last_name; G rating refers to rating = 'G'; calculation = DIVIDE(SUM(rating = 'G'), SUM(rating)) * 100", "film refers to title; most rented refers to MAX(inventory_id)", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))"]}} {"set": {"query": "What is the rental price per day of the most expensive children's film?", "pos": ["children's film refers to name = 'Children'; average price per day of most expensive film = Max(Divide(rental_rate, rental_duration))"], "neg": ["\"Documentary\" is the name of category; number of film refers to Count(film_id)", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id", "inactive customers refers to active = 0;", "\"UPRISING UPTOWN\" is the title of film", "'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name", "actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'", "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))", "'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "full name refers to first_name, last_name; more than 10$ refers to amount > 10"]}} {"set": {"query": "How much percentage of the film did Mary Keitel perform more than Angela Witherspoon?", "pos": ["'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100"], "neg": ["full name refers to first_name, last_name; more than 10$ refers to amount > 10", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'", "rental duration of over 6 days refers to rental_duration > 6", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "most common category refers to MAX(COUNT(category.name))", "\"Horror\" is the name of category; PG-13 rated refers to rating = 'PG-13'", "documentary film refers to name = 'documentary'; longest length refers to max(length)", "film refers to title; rent for more than 5 days refers to rental_duration > 5", "full name refers to first_name, last_name; the biggest amount refers to max(amount)"]}} {"set": {"query": "How many of the actors are named \"Dan\"?", "pos": ["'Dan' is a first_name of an actor"], "neg": ["category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "film refers to title; rent for more than 5 days refers to rental_duration > 5", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "\"Horror\" is the name of category; PG-13 rated refers to rating = 'PG-13'", "movie name refers to title; the most recent refers to max(rental_date)", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "full name refers to first_name, last_name", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "average duration time = AVG(length)"]}} {"set": {"query": "How many films in English are for adults only?", "pos": ["English is a name of a language; for adults only refers to rating = 'NC-17'"], "neg": ["most rented movie refers to title where Max(Count(rental_id))", "'African Egg' is a title of a film", "'Dan' is a first_name of an actor", "address numbers refers to address_id;", "inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "action is a name of category", "customer ID of 100 and below refers to customer_id < 100", "active refers to active = 1"]}} {"set": {"query": "How many films rented to the customer RUTH MARTINEZ were returned in August, 2005?", "pos": ["returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8"], "neg": ["highest replacement cost refers to Max (replacement_cost)", "email address refers to email", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "\"India\" is the country; name refers to first_name, last_name", "\"Horror\" is the name of category", "id 1 to 10 refers to film_id BETWEEN 1 and 10", "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G", "178 min long refers to length = '178'"]}} {"set": {"query": "Among the movies, what percentage are horror?", "pos": ["horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100"], "neg": ["actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'", "times of rented refers to Count(rental_id)", "actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0"]}} {"set": {"query": "How many customers are active?", "pos": ["active refers to active = 1"], "neg": ["animated film means animation; animation is a name of a category", "returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name", "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name", "77 min film refers to length = 77", "store 1 refers to store_id = 1; average rent amount refers to AVG(amount); calculation = DIVIDE(amount > AVG(amount), COUNT(customer_id)) * 100"]}} {"set": {"query": "Where is store number 2 located?", "pos": ["store number 2 refers to store_id = 2; where is a store located refers to address, address2, district"], "neg": ["returned in August, 2005 refers to year(return_date) = 2005 and month (return_date) = 8", "total payment = sum(amount)", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "a duration of 100 minutes and below refers to length < 100", "id 1 to 10 refers to film_id BETWEEN 1 and 10", "name of movie refers to title", "film refers to title; least rented refers to count(min(customer_id))", "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "surname means last_name;"]}} {"set": {"query": "List all the cities that belong to United Arab Emirates.", "pos": ["United Arab Emirates refers to country = 'United Arab Emirates'"], "neg": ["category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;", "PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)", "\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100", "film refers to title; least rented refers to count(min(customer_id))", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "\"CHOCOLATE DUCK\" is the title of film; full name refers to first_name, last_name", "\"United States\" is the country"]}} {"set": {"query": "What is the biggest amount of payment for a rental made by Mary Smith?", "pos": ["the biggest amount refers to max(amount)"], "neg": ["full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%", "documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100", "\"Horror\" is the name of category", "film refers to title; rated as PG refers to rating = 'PG'", "inactive customers refers to active = 0;", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))"]}} {"set": {"query": "Which category does BABY HALL film belong to?", "pos": ["category refers to name; BABY HALL film refers to title = 'BABY HALL'"], "neg": ["customer ID of 100 and below refers to customer_id < 100", "name of movie refers to title", "id 1 to 10 refers to film_id BETWEEN 1 and 10", "average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "full name refers to first_name, last_name; 692 Joliet Street refers to address = '692 Joliet Street'", "\"ACADEMY DINOSAUR\" is the title of film; language refers to language.name", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "\"UPRISING UPTOWN\" is the title of film", "more than 2 special features refers to Count(special_features) > 2"]}} {"set": {"query": "List the films' titles which were rented on 24th May,2005.", "pos": ["rented on 24th May 2005 refers to rental_date = '2005-05-24%'"], "neg": ["\"Horror\" is the name of category; PG-13 rated refers to rating = 'PG-13'", "active employee refers to active = 1; full name refers to first_name, last_name", "PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "'African Egg' is a title of a film", "horror film refers to category.name = 'Horror'; English film refers to language.name = 'English'; percentage = divide(count(film_id where category.name = 'Horror'), count(film_id)) where language.name = 'English' * 100%", "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)", "'Dan' is a first_name of an actor", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)"]}} {"set": {"query": "Please name three cities that belong to Algeria.", "pos": ["Algeria is a country"], "neg": ["name of movie refers to title", "'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name", "action is a name of category", "customer refers to customer_id", "English is a name of a language; for adults only refers to rating = 'NC-17'", "film refers to title; least rented refers to count(min(customer_id))", "\"CHOCOLATE DUCK\" is the title of film; full name refers to first_name, last_name", "released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'", "total payment = sum(amount)", "178 min long refers to length = '178'"]}} {"set": {"query": "State the number of films that are 178 minutes long.", "pos": ["178 min long refers to length = '178'"], "neg": ["active refers to active = 1", "active employee refers to active = 1; full name refers to first_name, last_name", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "English is a name of a language; for adults only refers to rating = 'NC-17'", "'African Egg' is a title of a film", "category name refers to category.name; price per day is more than $30 refers to multiply(rental_duration, rental_rate) > 30", "\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)"]}} {"set": {"query": "List movie titles with duration over 120 minutes that are in the action category.", "pos": ["duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'"], "neg": ["length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title", "Who refers to first_name, last_name; the largest payment for rental refers to MAX(SUM(amount))", "most common category refers to MAX(COUNT(category.name))", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'", "\"Horror\" is the name of category", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'"]}} {"set": {"query": "List the store ID of the films with a rental rate greater than the 60% of average rental rate of all listed films.", "pos": ["average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6"], "neg": ["'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;", "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "most common category refers to MAX(COUNT(category.name))", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))", "'classics' is the name of category", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'", "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "'Agent Truman' is a title of a film; category refers to name"]}} {"set": {"query": "Among the active customers, how many of them have Nina as their first name?", "pos": ["active refers to active = 1"], "neg": ["movies with the most price per day refers to MAX(rental_rate)", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name", "postal code that begins with 76 refers to postal_code like '76%'", "highest replacement cost refers to Max (replacement_cost)", "longest duration of film refers to Max(length)", "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "action is a name of category", "Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'", "inactive refers to active = 0; percent = Divide (Count (customer_id where active = 0), Count(customer_id)) * 100", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)"]}} {"set": {"query": "Which category is the most common?", "pos": ["most common category refers to MAX(COUNT(category.name))"], "neg": ["duration between 100 to 110 minutes refers to length between 100 and 110", "\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name", "\"Horror\" is the name of category", "\"Horror\" is the name of category", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%", "a duration of 100 minutes and below refers to length < 100", "times of rented refers to Count(rental_id)", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99", "forename means first_name; full name refers to first_name, last_name"]}} {"set": {"query": "Among the films that are released in 2006, how many of them are rated Adults Only in the Motion Picture Association Film Rating?", "pos": ["released in 2006 refers to release_year = 2006; rated Adults Only refers to rating = 'NC-17'"], "neg": ["\"1411 Lillydate Drive\" is the address", "times of rented refers to Count(rental_id)", "'Wyoming Storm' refers to title = 'WYOMING STORM'", "\"Documentary\" is the name of category; film name refers to title", "surname means last_name;", "full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0", "active refers to active = 1", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150", "full name refers to first_name, last_name"]}} {"set": {"query": "Give the full name of the actor who acted in the most number of movies?", "pos": ["full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))"], "neg": ["full name refers to first_name, last_name; the biggest amount refers to max(amount)", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "the largest number of films refers to MAX(rental_id)", "\"Clarksville\" is the city;", "name of movie refers to title", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)", "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "active refers to active = 1"]}} {"set": {"query": "Who is the staff manager in store id 2?", "pos": ["staff manager refers to manager_staff_id"], "neg": ["rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "full name refers to first_name, last_name; \"ACADEMY DINOSAUR\" is the title of film", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))", "highest replacement_cost refers to Max (replacement_cost); film refers to title", "category refers to name; film \"Beach Heartbreakers\" refers to title = 'BEACH HEARTBREAKERS'", "average payment refers to AVG(amount)", "rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "the largest number of films refers to MAX(rental_id)"]}} {"set": {"query": "What are the films that are least rented by the customers?", "pos": ["film refers to title; least rented refers to count(min(customer_id))"], "neg": ["film refers to title; most rented refers to MAX(inventory_id)", "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))", "the total amount = sum(amount)", "store number 2 refers to store_id = 2; where is a store located refers to address, address2, district", "total payment = sum(amount)", "horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100", "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'", "active refers to active = 1", "full name refers to first_name, last_name; the biggest amount refers to max(amount)"]}} {"set": {"query": "Provide the full names and emails of customers whose payments were greater than 70% of the average.", "pos": ["full name refers to first_name, last_name; average payment refers to AVG(amount); payments were greater than 70% of the average refers to amount > (AVG(amount) MULTIPLY 0.7)"], "neg": ["surname means last_name;", "'Dan' is a first_name of an actor", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "actors with highest number of films refers to actor_id with Max(Count(film_id)); full name refers to first_name, last_name; average number of film = Divide (Count(film_id), 5)", "staff manager refers to manager_staff_id", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "'Destiny Saturday' refers to title = 'DESTINY SATURDAY'; length = subtract(return_date, rental_date)", "'African Egg' is a title of a film", "times of rented refers to Count(rental_id)", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)"]}} {"set": {"query": "What is the rental price per day for Airplane Sierra?", "pos": ["rental price per day refers to DIVIDE(rental_price, rental_duration); 'Airplane Sierra' is a title of a film"], "neg": ["full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "id 1 to 10 refers to film_id BETWEEN 1 and 10", "action is a name of category", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "'Diane Collins' is a full name of a customer; full name refers to first_name, last_name", "\"ACADEMY DINOSAUR\" is the title of film; language refers to language.name", "film refers to title; most rented refers to MAX(inventory_id)", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id", "English is a name of a language; for adults only refers to rating = 'NC-17'"]}} {"set": {"query": "How many times is the number of films Gina DeGeneres acted in than Penelope Guinness?", "pos": ["\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))"], "neg": ["the most customers refers to MAX(COUNT(customer_id))", "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6", "adult film refers to rating = 'NC-17'; rental duration of fewer than 4 days refers to rental_duration < 4", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)", "\"ARTIST COLDBLOODED\" is the title of film", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "\"Clarksville\" is the city;", "active refers to active = 1", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))"]}} {"set": {"query": "What are the actors that have the same forename as Johnny? Please include in your answer the full names of these actors.", "pos": ["forename means first_name; full name refers to first_name, last_name"], "neg": ["rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "full name refers to first_name, last_name; record created in 2006 refers to create_date = 2006; inactive customers refers to active = 0", "store no. 1 refers to store_id = 1; name refers to first_name, last_name", "ID 996 refers to film_id = 996", "'classics' is the name of category", "percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%", "staff manager refers to manager_staff_id", "'Jason trap' is a title of a film; cast means actor; actor refers to first_name, last_name", "rental duration of over 6 days refers to rental_duration > 6", "horror is a name of film category; calculation = DIVIDE(COUNT('horror'), COUNT(category_id)) * 100"]}} {"set": {"query": "Among the films that the customer RUTH MARTINEZ has rented, what is the title of the one with the highest replacement cost?", "pos": ["highest replacement cost refers to Max(replacement_cost)"], "neg": ["active refers to active = 1", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "\"STREETCAR INTENTIONS\" is the title of film; actor's names refers to first_name, last_name", "\"1411 Lillydate Drive\" is the address", "film refers to title; rated as PG refers to rating = 'PG'", "\"Horror\" is the name of category", "movie name refers to title; the most recent refers to max(rental_date)", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "inactive customers refers to active = 0;", "lowest replacement cost refers to Min(replacement_cost); under general audience rating refers to rating = G"]}} {"set": {"query": "Where can you rent the movie 'Wyoming Storm'? Identify the address of the rental store and the rental rate.", "pos": ["'Wyoming Storm' refers to title = 'WYOMING STORM'"], "neg": ["United Arab Emirates refers to country = 'United Arab Emirates'", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)", "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "customer ID of 100 and below refers to customer_id < 100", "id 1 to 10 refers to film_id BETWEEN 1 and 10", "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "more than 2 special features refers to Count(special_features) > 2", "category refers to name; rented in February 2006 refers to year(rental_date) = 2006 and month (rental_rate) = 2", "customer refers to customer_id", "category refers to name; most number of films refers to Max(Count(film_id))"]}} {"set": {"query": "Which continent is the mother country of Clarksville city in?", "pos": ["\"Clarksville\" is the city;"], "neg": ["Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "rental duration of over 6 days refers to rental_duration > 6", "customer refers to customer_id", "longest duration of film refers to Max(length)", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "the total payment amount refers to sum(amount)", "'Russell Close' is a full name of an actor; full name refers to first_name, last_name; duration between 110 to 150 minutes refers to length BETWEEN 110 AND 150", "documentary film refers to name = 'documentary'; longest length refers to max(length)", "the most customers refers to MAX(COUNT(customer_id))", "rental rate of $2.99 refers to rental_rate = 2.99; film refers to title"]}} {"set": {"query": "List down all ratings of action film titles.", "pos": ["for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'"], "neg": ["indian refers to country = 'India'; Italian refers to country = 'Italy'; times = Divide(Count(city where country = 'India), Count(city where country = 'Italy'))", "full name refers to first_name, last_name; 'comedy' is a name of a category;", "\"UPRISING UPTOWN\" is the title of film", "'Australia' AND 'Canada' are country; average number of films refers to AVG('Australia') AND AVG('Canada'); calculation = SUBTRACT(AVG('Australia'), AVG('Canada'))", "\"India\" is the country; name refers to first_name, last_name", "'Agent Truman' is a title of a film; category refers to name", "length longer than 100 refers to length > 100", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'", "'Texas' is a district", "a duration of 100 minutes and below refers to length < 100"]}} {"set": {"query": "Among all the films starring PENELOPE GUINESS, what is the title of the one with the highest rental price per day?", "pos": ["highest rental price per day refers to Max(Divide(rental_rate, rental_duration))"], "neg": ["the largest number of films refers to MAX(rental_id)", "\"CHOCOLATE DUCK\" is the title of film; full name refers to first_name, last_name", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "highest replacement_cost refers to Max (replacement_cost); film refers to title", "store no. 1 refers to store_id = 1; store no.2 refers to store_id = 2; rental payment refers to amount; percent more = Divide (Subtract(amount where store_id = 2, amount where store_id = 1), amount where store_id = 1) *100", "'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "most rented movie refers to title where Max(Count(rental_id))", "id 1 to 10 refers to film_id BETWEEN 1 and 10", "rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)"]}} {"set": {"query": "Please give the title of the film starring PENELOPE GUINESS and has the highest replacement cost.", "pos": ["highest replacement cost refers to Max (replacement_cost)"], "neg": ["highest replacement cost refers to Max(replacement_cost)", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "rental duration of 7 refers to rental_duration = 7; comedies refers to name = 'Comedy'", "'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "'Jon Stephens' is a full name of a customer; full name refers to first_name, last_name;", "\"ARTIST COLDBLOODED\" is the title of film", "\"CHOCOLATE DUCK\" is the title of film; full name refers to first_name, last_name", "\"United States\" is the country", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))"]}} {"set": {"query": "How many film titles were released in 2006?", "pos": ["released in 2006 refers to release_year = 2006"], "neg": ["action is a name of category", "actor refers to first_name, last_name; ANONYMOUS HUMAN refers to title = 'ANONYMOUS HUMAN'", "movie name refers to title; the most recent refers to max(rental_date)", "result = subtract(count(film_id where store_id = 1), count(film_id where store_id = 2))", "77 min film refers to length = 77", "percentage = divide(sum(amount where first_name = 'MARGARET' and last_name = 'MOORE'), sum(amount)) * 100%", "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'", "178 min long refers to length = '178'", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "name of movie refers to title"]}} {"set": {"query": "List the names of the customers from India.", "pos": ["\"India\" is the country; name refers to first_name, last_name"], "neg": ["active refers to active = 1", "\"UPRISING UPTOWN\" is the title of film", "non-active clients refers to active = 0; not returning a rented material refers to rental_date is null", "'Mary Keitel' AND 'Angela Witherspoon' are full name of actors; full name refers to FirstName, LastName; calculation = DIVIDE(SUBTRACT(SUM('Mary Keitel'), SUM('Angela Witherspoon')), SUM('Angela Witherspoon')) * 100", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "the biggest amount refers to max(amount)", "active refers to active = 1", "'children' AND 'action' are names of a category; Calculation = SUBTRACT(AVG('children'), AVG('action'))", "rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)", "inactive customers refers to active = 0;"]}} {"set": {"query": "Name the most recent movie rented by Dorothy Taylor.", "pos": ["movie name refers to title; the most recent refers to max(rental_date)"], "neg": ["Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100", "length duration of 113 minutes refers to length = 113; 'Kirk Jovovich' is a full name of an actor; full name refers to first_name, last_name", "id movies refers to film_id", "film refers to title; rated as PG-13 refers to rating = 'PG-13'", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "animation film refers to category.name = 'Animation'; total rental rate = sum(rental_rate)", "\"UPRISING UPTOWN\" is the title of film"]}} {"set": {"query": "How many films rented on 26th May, 2005 were returned on 30th May, 2005?", "pos": ["rented on 26th May 2005 refers to rental_date = '2005-05-26'; return on 30th May, 2005 refers to return_date = '2005-05-30'; number of rented film refers to Count (rental_id)"], "neg": ["\"Documentary\" is the name of category; number of film refers to Count(film_id)", "postal code that begins with 76 refers to postal_code like '76%'", "'Texas' is a district", "English is a name of a language; for adults only refers to rating = 'NC-17'", "ID 996 refers to film_id = 996", "'Ella Oliver' is a full name of a customer; full name refers to first_name, last_name; rental hired in June 2016 refers to rental_date BETWEEN '2005-06-01' AND '2005-06-30'", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "rented on 24th May 2005 refers to rental_date = '2005-05-24%'", "full name refers to first_name, last_name; drama is a category of a film; acted the most in a movies refers to MAX(COUNT(film_id))", "store no. 1 refers to store_id = 1; name refers to first_name, last_name"]}} {"set": {"query": "How many films in the horror category were included in PG-13-rated?", "pos": ["\"Horror\" is the name of category; PG-13 rated refers to rating = 'PG-13'"], "neg": ["'Jason trap' is a title of a film; cast means actor; actor refers to first_name, last_name", "total payment = sum(amount)", "the most customers refers to MAX(COUNT(customer_id))", "address no. 72 refers to address_id = 72; phone number refers to phone", "\"ACADEMY DINOSAUR\" is the title of film; language refers to language.name", "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "action is a name of category", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name"]}} {"set": {"query": "List the full names of customers who have paid more than 10$.", "pos": ["full name refers to first_name, last_name; more than 10$ refers to amount > 10"], "neg": ["\"Horror\" is the name of category", "in 2006 refers to release_year = 2006; 98 min duration refers to length = 98; number of actors refers to count(actor_id)", "\"1411 Lillydate Drive\" is the address", "length longer than 100 refers to length > 100", "\"WORKING MICROCOSMOS\" is the title of film; category refers to name", "Italian is name of language; special featured with deleted scenes refers to special_features = 'deleted scenes'", "film refers to title; rent for more than 5 days refers to rental_duration > 5", "the most customers refers to MAX(COUNT(customer_id))", "178 min long refers to length = '178'", "full name refers to first_name, last_name; the highest rental rate refers to max(rental_rate)"]}} {"set": {"query": "Compute the total payment made by Sarah Lewis for film rentals so far.", "pos": ["total payment = sum(amount)"], "neg": ["action is a name of category", "ID 996 refers to film_id = 996", "Algeria is a country", "screen length of more than 120 minutes refers to length > 120; category of horror refers to category.name = 'Horror'; percentage = divide(count(title where length > 120 and category.name = 'Horror'), count(title)) * 100%", "for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "film refers to title; least rented refers to count(min(customer_id))", "178 min long refers to length = '178'", "first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "full name refers to first_name, last_name; \"Alabama Devil\" refers to title = 'ALABAMA DEVIL'", "restricted means rating = 'R'; length is 71 minutes refers to length = 71; replacement cost is $29.99 refers to replacement_cost = 29.99"]}} {"set": {"query": "How many customers are from the city of Lethbridge?", "pos": ["customer refers to customer_id"], "neg": ["PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "length refers to rental_duration; 'Dirty Ace' refers to title = 'DIRTY ACE'", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "full name refers to first_name, last_name; more than 10$ refers to amount > 10", "movie name refers to title; the most recent refers to max(rental_date)", "full name refers to first_name, last_name; actor who starred in the most movies refers to actor_id where Max(Count(film_id))", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'", "film refers to title of the film; 'Penelope Guiness' is a full name of an actor; full name refers to first_name, last_name", "from 5/30/2005 at 3:43:54 AM to 7/31/2005 at 10:08:29 PM refers to payment_date between '2005-05-30 03:43:54' and '2005-07-31 10:08:29'"]}} {"set": {"query": "What is the average rental rate for PG-13 rated movies?", "pos": ["PG-13 rated movie refers to rating = 'PG-13'; average rental rate = avg(rental_rate)"], "neg": ["full name refers to first_name, last_name; acted in the most number of movies refers to MAX(COUNT(film_id))", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "customer ID of 100 and below refers to customer_id < 100", "duration over 120 minutes refers to length > 120; action category refers to category.name = 'action'", "\"JEREMY.HURTADO@sakilacustomer.org\" is the email; owner refers to customer; full name refers to first_name, last_name", "'Eleanor Hunt' is the full name of a customer; full name refers to first_name, last_name", "rented in July 2005 refers to year (rental_date) = 2005 and month (rental_date) = 7", "average rental rate of all listed films refers to AVG(rental_rate); rental rate greater than the 60% of average rental rate refers to rental_rate > (AVG(rental_rate)) MULTIPLY 0.6", "documentary film refers to name = 'documentary'; longest length refers to max(length)", "address no. 72 refers to address_id = 72; phone number refers to phone"]}} {"set": {"query": "Calculate the total payment amount by Diane Collins.", "pos": ["'Diane Collins' is a full name of a customer; full name refers to first_name, last_name"], "neg": ["'Hector Poinexter' is a full name of a customer; full name refers to first_name, last_name;", "\"Horror\" is the name of category", "\"Clarksville\" is the city;", "movies with the most price per day refers to MAX(rental_rate)", "address no. 72 refers to address_id = 72; phone number refers to phone", "store no. 1 refers to store_id = 1; address location refers to address, address2, district", "film refers to title; most rented refers to MAX(inventory_id)", "77 min film refers to length = 77", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "id movies refers to film_id"]}} {"set": {"query": "Tally the full names of actors in the film \"Alabama Devil.\"", "pos": ["full name refers to first_name, last_name; \"Alabama Devil\" refers to title = 'ALABAMA DEVIL'"], "neg": ["for General Audiences means rating = 'G'; Parental Guidance Suggested means rating = 'PG'; Parents Strongly Cautioned means rating = 'PG-13'; Restricted means rating = 'R'; Adults Only means rating = 'NC-17'; action film refers to category.name = 'action'", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "longest duration of film refers to Max(length)", "classic movie refers to name = 'Classics'; rental rate of less than 1 refers to rental_rate < 1; movie refers to film_id", "highest replacement cost refers to Max (replacement_cost); full name refers to first_name, last_name", "highest replacement_cost refers to Max (replacement_cost); film refers to title", "active refers to active = 1; '1795 Santiago de Compostela Way' is an address; Texas is a district; who refers to first_name, last_name", "178 min long refers to length = '178'", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))", "name refers to first_name, last_name"]}} {"set": {"query": "What percentage of films with a length of less than 100 belong to the Drama category?", "pos": ["Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100"], "neg": ["highest replacement cost refers to Max (replacement_cost)", "actor refers to first_name, last_name; film \"Bound Cheaper\" refers to title = 'BOUND CHEAPER'", "highest rental price per day refers to Max(Divide(rental_rate, rental_duration))", "average payment refers to AVG(amount)", "email address refers to email", "most rented movie refers to title where Max(Count(rental_id))", "\"science fiction\" is the name of category; most common special features refers to Max(frequency(special_features))", "the most customers refers to MAX(COUNT(customer_id))", "PG-13 is a rating; calculation = DIVIDE(SUM(rating = PG-13), SUM(rating)) * 100", "178 min long refers to length = '178'"]}} {"set": {"query": "Which category does the film Working Microcosmos belong to?", "pos": ["\"WORKING MICROCOSMOS\" is the title of film; category refers to name"], "neg": ["documentary' is a name of a category; calculation = DIVIDE(SUM(name = 'Documentary'), COUNT(film_id)) * 100", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "\"BLANKET BEVERLY\" is the title of film; rented times refers to count(rental_id)", "store no. 1 refers to store_id = 1; name refers to first_name, last_name", "full name refers to first_name, last_name; customer who rented the most film refers to Max(count(rental_id))", "rented at 12:27:27 on 2005/7/28 refers to rental_date = '2005-07-28 12:27:27'", "the total amount = sum(amount); in June 2005 refers to payment_date like '2005-06%'", "\"CHOCOLATE DUCK\" is the title of film; full name refers to first_name, last_name", "restricted refers to rating = 'R'; highest number of film refers to Max(Count(film_id)); full name refers to first_name, last_name", "\"Gina DeGeneres\" and \"Penelope Guinness\" are both full name of actor; times number of film = Divide (Count (film_id where first_name = 'GINA' and last_name = 'DEGENERES'), Count(film_id where first_name = 'PENELOPE' and last_name = 'GUINESS'))"]}} {"set": {"query": "Give the number of documentary films.", "pos": ["\"Documentary\" is the name of category; number of film refers to Count(film_id)"], "neg": ["first 10 rental refers to rental id between 1 and 10; total rental payment refers to sum(amount)", "178 min long refers to length = '178'", "full name refers to first_name, last_name; the biggest amount refers to max(amount)", "more than 2 special features refers to Count(special_features) > 2", "higher replacement cost refers to Max(replacement_cost); 'ACE GOLDFIINGER' and 'ACADEMY DINOSAUR' are both the title of film", "\"UPRISING UPTOWN\" is the title of film", "Drama' is a name of a category; calculation = DIVIDE(SUM(length < 100 AND name = 'Drama'), COUNT(film_id)) * 100", "full name refers to first_name, last_name; types of movies means category of movies; \nrented more than five types of movies refers to COUNT(film_category) > 5", "the lowest movie rental refers to min(rental_rate); the horror category refers to category.name = 'Horror'", "action is a name of category"]}} {"set": {"query": "How many movie lists with over 100 movies had user 85981819 created when he or she was a paying subscriber?", "pos": ["the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;"], "neg": ["It's Winter' is movie_title;", "Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "A Way of Life refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 url refers to rating_url;", "The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score);", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')"]}} {"set": {"query": "Please provide the ID of the user with the most followers on the list.", "pos": ["most followers refers to Max(list_followers);"], "neg": ["Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "film released in 2007 refers to movie_release_year = 2007; film refers to movie", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "It's Winter' is movie_title;", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);"]}} {"set": {"query": "Which film rated by user 59988436 that received 21 comments?", "pos": ["user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;"], "neg": ["URL refer to rating_url; user 22030372 refer to user_id", "paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "Innocence Unprotected' is movie_title; '250 Favourite Films' is list_title; rating refers to rating_score;", "FALSE;"]}} {"set": {"query": "Name movie titles released in year 1945. Sort the listing by the descending order of movie popularity.", "pos": ["released in the year 1945 refers to movie_release_year = 1945;"], "neg": ["user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "Tokyo Eyes' is movie_title, director refers to director_name;", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));", "worst rating refers to rating_score = 1;", "film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie;", "When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;", "received more than 20 likes refers to critic_likes>20;", "250 Favourite Films refers to list_title;"]}} {"set": {"query": "Between 1/1/2017 to 12/31/2017, how many users who were eligible for trial when they rated the movie \"Patti Smith: Dream of Life\"and what is the image URL to the movie on Mubi?", "pos": ["Between 1/1/2017 to 12/31/2017 refers to rating_timestamp_utc between '2017-01-01 00:00:00' and '2017-12-31 00:00:00'; eligible for trial refers to user_eligible_for_trial = 1; movie \"Patti Smith: Dream of Life\" refers to movie_title = 'Patti Smith: Dream of Life'"], "neg": ["created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "director refer to director_name; The Crowd refer to movie_title; Average refer to AVG(rating_score)", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "the most comments refers to Max(list_comments);", "ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4;", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;"]}} {"set": {"query": "List all movie title rated in April 2020 from user who was a trialist.", "pos": ["movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;"], "neg": ["longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;", "A Way of Life refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 url refers to rating_url;", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "It's Winter' is movie_title;", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4"]}} {"set": {"query": "Give the number of followers for the user who posted the most lists.", "pos": ["number of followers refers to user_subscriber; posted the most lists refers to MAX(COUNT(list_id))"], "neg": ["not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "first created list refers to oldest list_creation_date_utc;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));", "\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "most popular movie of all time refers to MAX(movie_popularity); a trialist refers to user_trialist = 1; average rating score = AVG(rating_score)", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;"]}} {"set": {"query": "What is the average rating for movie titled 'When Will I Be Loved'?", "pos": ["average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));"], "neg": ["A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "list titled 'Sound and Vision' refers to list_title = 'Sound and Vision'; user_subscriber = 1 means the user was a subscriber when he rated the movie; user_subscriber = 0 means the user was not a subscriber when he rated the movie\n\n\n\n", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last update timestamp was on 2012 refers to list_update_timestamp_utc BETWEEN '2012-1-1' AND '2012-12-31';", "year refers to movie_release_year; most release films refers to MAX(COUNT(movie_id))\n\n", "film released in 2007 refers to movie_release_year = 2007; film refers to movie", "movie titled \"Red Blooded American Girl\" refers to movie_title = 'Red Blooded American Girl'"]}} {"set": {"query": "Among the lists created by user 4208563, which one has the highest number of followers? Indicate how many followers it has and whether the user was a subscriber or not when he created the list.", "pos": ["User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)"], "neg": ["4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic;", "5 ratings refers to rating_score = 5; name of the movie refers to movie_title"]}} {"set": {"query": "What is the list ID that was first created by user 85981819?", "pos": ["first created list refers to oldest list_creation_date_utc;"], "neg": ["Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "user 4208563 refers to user_id = 4208563", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;", "percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id))"]}} {"set": {"query": "Which of the films released in 2006 was the most popular among Mubi users?", "pos": ["released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;"], "neg": ["movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "Between 1/1/2017 to 12/31/2017 refers to rating_timestamp_utc between '2017-01-01 00:00:00' and '2017-12-31 00:00:00'; eligible for trial refers to user_eligible_for_trial = 1; movie \"Patti Smith: Dream of Life\" refers to movie_title = 'Patti Smith: Dream of Life'", "released in the year 1945 refers to movie_release_year = 1945;", "Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "highest movie popularity refers to MAX(movie_popularity)", "ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4;"]}} {"set": {"query": "How many users, who were a paying subscriber when they rated the movie, gave the movie that was released in 1924 and directed by Erich von Stroheim a rating score of 5?", "pos": ["Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n"], "neg": ["the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;", "user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));", "followers refers to list_followers;", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "most followers refers to Max(list_followers);", "more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)"]}} {"set": {"query": "Please list the id of the director of the movie \"It's Winter\".", "pos": ["It's Winter' is movie_title;"], "neg": ["directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "released in 1995 refers to movie_release_year = '1995'; lower than 3 ratings refers to rating_score <3; most popularity movie refers to MAX(movie_popularity)", "film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie;", "movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic;", "released in the year 1945 refers to movie_release_year = 1945;", "paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))", "more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)"]}} {"set": {"query": "Where can I find the movie list \"Short and pretty damn sweet\"?", "pos": ["Short and pretty damn sweet is list_title; location of the movie refers to list_url;"], "neg": ["number of followers refers to user_subscriber; posted the most lists refers to MAX(COUNT(list_id))", "250 Favourite Films' is list_title; movies refers to movie_title;", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n"]}} {"set": {"query": "State the most popular movie? When was it released and who is the director for the movie?", "pos": ["most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;"], "neg": ["more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "user 4208563 refers to user_id = 4208563", "created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n", "Highest average score refers to Max(Avg(rating_score));", "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "5 ratings refers to rating_score = 5; name of the movie refers to movie_title"]}} {"set": {"query": "What is the user avatar url for user 41579158? What is the latest movie rated by him / her?", "pos": ["user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;"], "neg": ["When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "user 4208563 refers to user_id = 4208563", "director refer to director_name; The Crowd refer to movie_title; Average refer to AVG(rating_score)", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')", "250 Favourite Films' is list_title; movies refers to movie_title;", "released in 1995 refers to movie_release_year = '1995'; lower than 3 ratings refers to rating_score <3; most popularity movie refers to MAX(movie_popularity)", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "followers refers to list_followers;"]}} {"set": {"query": "How many movie lists were created by user 83373278 when he or she was a subscriber?", "pos": ["the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;"], "neg": ["user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))", "FALSE;", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)", "percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;"]}} {"set": {"query": "What is the URL to the rating on Mubi of the Riff-Raff movie that was given the highest rating score by user 22030372?", "pos": ["URL refer to rating_url; user 22030372 refer to user_id"], "neg": ["user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4;", "4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'"]}} {"set": {"query": "Which title list has not been updated for the longest period of time? State how long it has not been updated?", "pos": ["not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc)"], "neg": ["released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "Short and pretty damn sweet is list_title; location of the movie refers to list_url;", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;", "most popular refers to Max(movie_popularity);", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "movie titled \"Red Blooded American Girl\" refers to movie_title = 'Red Blooded American Girl'", "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;"]}} {"set": {"query": "For movie titled 'Welcome to the Dollhouse', how many percentage of the ratings were rated with highest score.", "pos": ["rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)"], "neg": ["A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));", "user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "URL refer to rating_url; user 22030372 refer to user_id", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;"]}} {"set": {"query": "Give the url of movie which was rated 5 on 2013/5/3 5:11:17.", "pos": ["rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'"], "neg": ["When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc)", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "first created list refers to oldest list_creation_date_utc;", "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "most popular movie of all time refers to MAX(movie_popularity); a trialist refers to user_trialist = 1; average rating score = AVG(rating_score)"]}} {"set": {"query": "Please list the names of the movies that received more than 20 likes?", "pos": ["received more than 20 likes refers to critic_likes>20;"], "neg": ["Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4;", "movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4", "\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n"]}} {"set": {"query": "What are the URL to the list page on Mubi of the lists with followers between 1-2 and whose last update timestamp was on 2012?", "pos": ["URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last update timestamp was on 2012 refers to list_update_timestamp_utc BETWEEN '2012-1-1' AND '2012-12-31';"], "neg": ["more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)", "FALSE;", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "Short and pretty damn sweet is list_title; location of the movie refers to list_url;", "Tokyo Eyes' is movie_title, director refers to director_name;", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')", "Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5"]}} {"set": {"query": "How many more movie lists were created by the user who created the movie list \"250 Favourite Films\"?", "pos": ["250 Favourite Films refers to list_title;"], "neg": ["user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id))", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "250 Favourite Films' is list_title; movies refers to movie_title;", "updated most recently refers to MAX(list_update_date_utc)", "URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last update timestamp was on 2012 refers to list_update_timestamp_utc BETWEEN '2012-1-1' AND '2012-12-31';", "worst rating refers to rating_score = 1;", "Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;"]}} {"set": {"query": "What is the average number of movies added to the lists of user 8516503? Give the user profile image URL on Mubi.", "pos": ["user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n"], "neg": ["percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id))", "FALSE;", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "URL refer to rating_url; user 22030372 refer to user_id", "Tokyo Eyes' is movie_title, director refers to director_name;", "followers refers to list_followers;", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)"]}} {"set": {"query": "How many movies were added to the list with the most number of movies? Indicate whether the user was a paying subscriber or not when he created the list.", "pos": ["list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;"], "neg": ["the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "updated most recently refers to MAX(list_update_date_utc)", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;", "movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic;", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "Tokyo Eyes' is movie_title, director refers to director_name;", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n"]}} {"set": {"query": "What are the top 10 oldest movies and what are the average rating score for each movie? Indicate the name of the director and when the movies were released.", "pos": ["the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)"], "neg": ["most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "film released in 2007 refers to movie_release_year = 2007; film refers to movie", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "user 4208563 refers to user_id = 4208563", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')"]}} {"set": {"query": "How many users, who were not a a trialist when they rated the movie, gave the movie \"The South\" a rating score of not more than 2?", "pos": ["not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n"], "neg": ["the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));", "year refers to movie_release_year; most release films refers to MAX(COUNT(movie_id))\n\n", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score);", "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;"]}} {"set": {"query": "What is the URL to the movie director page on Mubi of the movie titled \"Red Blooded American Girl\"", "pos": ["movie titled \"Red Blooded American Girl\" refers to movie_title = 'Red Blooded American Girl'"], "neg": ["created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "the most comments refers to Max(list_comments);", "received more than 20 likes refers to critic_likes>20;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "Short and pretty damn sweet is list_title; location of the movie refers to list_url;"]}} {"set": {"query": "Please list the names of the movies that user 94978 scored as 5.", "pos": ["user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;"], "neg": ["head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "A Way of Life refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 url refers to rating_url;", "most followers refers to Max(list_followers);", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "movie titled \"Red Blooded American Girl\" refers to movie_title = 'Red Blooded American Girl'", "movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;"]}} {"set": {"query": "What's the description of user 85981819's movie list with the most followers?", "pos": ["user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;"], "neg": ["the most comments refers to Max(list_comments);", "4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));", "released in 1995 refers to movie_release_year = '1995'; lower than 3 ratings refers to rating_score <3; most popularity movie refers to MAX(movie_popularity)"]}} {"set": {"query": "Who is the director of the movie Sex, Drink and Bloodshed?", "pos": ["Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';"], "neg": ["released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "250 Favourite Films refers to list_title;", "user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "most popular refers to Max(movie_popularity);", "Innocence Unprotected' is movie_title; '250 Favourite Films' is list_title; rating refers to rating_score;"]}} {"set": {"query": "List all the titles created by user who was a subsriber when he created the list and have less than 50 movies in the list.", "pos": ["have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1"], "neg": ["paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "most popular refers to Max(movie_popularity);", "user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)", "directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year\n", "paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;", "percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id))", "worst rating refers to rating_score = 1;", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4"]}} {"set": {"query": "How many films were released in 2007?", "pos": ["film released in 2007 refers to movie_release_year = 2007; film refers to movie"], "neg": ["received more than 20 likes refers to critic_likes>20;", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "Tokyo Eyes' is movie_title, director refers to director_name;", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;"]}} {"set": {"query": "Which of the films directed by \u00c1lex de la Iclesia is the most popular among Mubi users?", "pos": ["Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;"], "neg": ["created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n", "When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last update timestamp was on 2012 refers to list_update_timestamp_utc BETWEEN '2012-1-1' AND '2012-12-31';", "worst rating refers to rating_score = 1;", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))", "most popular refers to Max(movie_popularity);", "It's Winter' is movie_title;", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'"]}} {"set": {"query": "Please list the titles of the movie lists user 32172230 created when he or she was eligible for trial.", "pos": ["the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;"], "neg": ["rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "Tokyo Eyes' is movie_title, director refers to director_name;", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "It's Winter' is movie_title;", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));", "Highest average score refers to Max(Avg(rating_score));", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "highest movie popularity refers to MAX(movie_popularity)", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;"]}} {"set": {"query": "How many followers does the list created by the user whose user_avatar_image_url is https://assets.mubicdn.net/images/avatars/74983/images-w150.jpg?1523895214 have?", "pos": ["followers refers to list_followers;"], "neg": ["A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "Between 1/1/2017 to 12/31/2017 refers to rating_timestamp_utc between '2017-01-01 00:00:00' and '2017-12-31 00:00:00'; eligible for trial refers to user_eligible_for_trial = 1; movie \"Patti Smith: Dream of Life\" refers to movie_title = 'Patti Smith: Dream of Life'", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'", "more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)"]}} {"set": {"query": "Show the head portrait of the user who gave the most \"5\" ratings.", "pos": ["head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5"], "neg": ["like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;", "number of followers refers to user_subscriber; posted the most lists refers to MAX(COUNT(list_id))", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "Tokyo Eyes' is movie_title, director refers to director_name;", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;", "film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie;"]}} {"set": {"query": "When did the creator of the list \"250 Favourite Films\" last updated a movie list?", "pos": ["250 Favourite Films refers to list_title; last update refers to list_update_date_utc;"], "neg": ["When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "250 Favourite Films refers to list_title;", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "first created list refers to oldest list_creation_date_utc;", "URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last update timestamp was on 2012 refers to list_update_timestamp_utc BETWEEN '2012-1-1' AND '2012-12-31';", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "FALSE;", "The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score);"]}} {"set": {"query": "How many users liked the movie \"A Way of Life\" to the highest extent?", "pos": ["like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;"], "neg": ["Tokyo Eyes' is movie_title, director refers to director_name;", "film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie;", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic;", "directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year\n", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;"]}} {"set": {"query": "Which movie has the highest average score in Mubi?", "pos": ["Highest average score refers to Max(Avg(rating_score));"], "neg": ["film released in 2007 refers to movie_release_year = 2007; film refers to movie", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;", "Short and pretty damn sweet is list_title; location of the movie refers to list_url;", "paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))"]}} {"set": {"query": "How many movies directed by Felipe Cazals was realeased on 1976?", "pos": ["directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976"], "neg": ["least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')\n\n", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n", "ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4;", "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;", "FALSE;", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;"]}} {"set": {"query": "How many users gave \"Pavee Lackeen: The Traveller Girl\" movie a rating score of 4?", "pos": ["FALSE;"], "neg": ["When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie;", "A Way of Life refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 url refers to rating_url;", "released in the year 1945 refers to movie_release_year = 1945;", "4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'", "most popular refers to Max(movie_popularity);"]}} {"set": {"query": "Which user made a critic for the film \"When Will I Be Loved\" and got 2 comments for the critic?", "pos": ["When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;"], "neg": ["released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "highest movie popularity refers to MAX(movie_popularity)", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "received more than 20 likes refers to critic_likes>20;", "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;", "updated most recently refers to MAX(list_update_date_utc)"]}} {"set": {"query": "Which year has the least number of movies that was released and what is the title of the movie in that year that has the highest number of rating score of 1?", "pos": ["least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')\n\n"], "neg": ["paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;", "Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));", "the most comments refers to Max(list_comments);", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "list titled 'Sound and Vision' refers to list_title = 'Sound and Vision'; user_subscriber = 1 means the user was a subscriber when he rated the movie; user_subscriber = 0 means the user was not a subscriber when he rated the movie\n\n\n\n", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)"]}} {"set": {"query": "What is the average rating score of the movie \"The Crowd\" and who was its director?", "pos": ["director refer to director_name; The Crowd refer to movie_title; Average refer to AVG(rating_score)"], "neg": ["It's Winter' is movie_title;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year\n", "more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)", "created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "first created list refers to oldest list_creation_date_utc;", "URL refer to rating_url; user 22030372 refer to user_id", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;"]}} {"set": {"query": "What is the name of the movie whose critic received the highest number of likes related to the critic made by the user rating the movie?", "pos": ["number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);"], "neg": ["percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "highest movie popularity refers to MAX(movie_popularity)", "most followers refers to Max(list_followers);", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "FALSE;", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;", "Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n", "paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;"]}} {"set": {"query": "Please list the movies rated by the user who created the movie list \"250 Favourite Films\".", "pos": ["250 Favourite Films' is list_title; movies refers to movie_title;"], "neg": ["The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score);", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie;", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;", "Highest average score refers to Max(Avg(rating_score));", "released in 1995 refers to movie_release_year = '1995'; lower than 3 ratings refers to rating_score <3; most popularity movie refers to MAX(movie_popularity)", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;"]}} {"set": {"query": "Which of the film released in 2008 scored the highest?", "pos": ["film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie;"], "neg": ["year refers to movie_release_year; most release films refers to MAX(COUNT(movie_id))\n\n", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "250 Favourite Films' is list_title; movies refers to movie_title;", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "movie titled \"Red Blooded American Girl\" refers to movie_title = 'Red Blooded American Girl'", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "followers refers to list_followers;", "not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc)"]}} {"set": {"query": "From all the movies that got more than 13000 popularity number, which one had the least ratings.", "pos": ["more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)"], "neg": ["\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "followers refers to list_followers;", "Tokyo Eyes' is movie_title, director refers to director_name;", "most followers refers to Max(list_followers);", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;"]}} {"set": {"query": "What's the average rating score of the movie \"A Way of Life\"?", "pos": ["A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));"], "neg": ["head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id))", "The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score);", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "received more than 20 likes refers to critic_likes>20;", "film released in 2007 refers to movie_release_year = 2007; film refers to movie", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;"]}} {"set": {"query": "How many users in Mubi give the movie \"White Night Wedding for 5\"?", "pos": ["White Night Wedding' is movie_title; for 5 refers to rating_score = 5;"], "neg": ["directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year\n", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "released in the year 1945 refers to movie_release_year = 1945;", "user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "user 4208563 refers to user_id = 4208563", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "250 Favourite Films refers to list_title;", "5 ratings refers to rating_score = 5; name of the movie refers to movie_title"]}} {"set": {"query": "Was user 39115684 a trialist when he or she rated the movie \"A Way of Life\"?", "pos": ["A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;"], "neg": ["user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year\n", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));", "most followers refers to Max(list_followers);", "not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc)", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;"]}} {"set": {"query": "Among all movies in the list, calculate the percentage of movies that were never been rated?", "pos": ["percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id))"], "neg": ["percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc)", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "It's Winter' is movie_title;", "film released in 2007 refers to movie_release_year = 2007; film refers to movie", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));"]}} {"set": {"query": "Who was the earliest user created a list but didn't get any followers? Give the user ID.", "pos": ["earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0"], "neg": ["Between 1/1/2017 to 12/31/2017 refers to rating_timestamp_utc between '2017-01-01 00:00:00' and '2017-12-31 00:00:00'; eligible for trial refers to user_eligible_for_trial = 1; movie \"Patti Smith: Dream of Life\" refers to movie_title = 'Patti Smith: Dream of Life'", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "user 4208563 refers to user_id = 4208563", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;"]}} {"set": {"query": "Who is the user who created the list titled 'Sound and Vision'? Was he a subcriber when he created the list?", "pos": ["list titled 'Sound and Vision' refers to list_title = 'Sound and Vision'; user_subscriber = 1 means the user was a subscriber when he rated the movie; user_subscriber = 0 means the user was not a subscriber when he rated the movie\n\n\n\n"], "neg": ["Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "most popular movie of all time refers to MAX(movie_popularity); a trialist refers to user_trialist = 1; average rating score = AVG(rating_score)", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));", "5 ratings refers to rating_score = 5; name of the movie refers to movie_title", "Between 1/1/2017 to 12/31/2017 refers to rating_timestamp_utc between '2017-01-01 00:00:00' and '2017-12-31 00:00:00'; eligible for trial refers to user_eligible_for_trial = 1; movie \"Patti Smith: Dream of Life\" refers to movie_title = 'Patti Smith: Dream of Life'", "250 Favourite Films' is list_title; movies refers to movie_title;", "paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'", "received more than 20 likes refers to critic_likes>20;"]}} {"set": {"query": "What's of rating on the movie \"Innocence Unprotected\" by the user who created the movie list \"250 Favourite Films\"?", "pos": ["Innocence Unprotected' is movie_title; '250 Favourite Films' is list_title; rating refers to rating_score;"], "neg": ["rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year\n", "more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));", "It's Winter' is movie_title;", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;"]}} {"set": {"query": "For all the users who gave \"A Shot in the Dark\" a rating, how many percent of them is a paying subscriber?", "pos": ["\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100"], "neg": ["percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "received more than 20 likes refers to critic_likes>20;"]}} {"set": {"query": "For all the movies that were released in 1995, how many lower than 3 ratings did the most popularity movie had?", "pos": ["released in 1995 refers to movie_release_year = '1995'; lower than 3 ratings refers to rating_score <3; most popularity movie refers to MAX(movie_popularity)"], "neg": ["most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id))", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')", "most followers refers to Max(list_followers);", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)"]}} {"set": {"query": "How many users have rated the most popular movie?", "pos": ["most popular refers to Max(movie_popularity);"], "neg": ["not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc)", "250 Favourite Films refers to list_title;", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)", "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "first created list refers to oldest list_creation_date_utc;", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)"]}} {"set": {"query": "When did user 39115684 rate the movie \"A Way of Life\"?", "pos": ["A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;"], "neg": ["followers refers to list_followers;", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "released in 1995 refers to movie_release_year = '1995'; lower than 3 ratings refers to rating_score <3; most popularity movie refers to MAX(movie_popularity)", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "most popular movie of all time refers to MAX(movie_popularity); a trialist refers to user_trialist = 1; average rating score = AVG(rating_score)"]}} {"set": {"query": "For the 1998 movie which got the highest popularity, how many \"4\" rating did the movie get?", "pos": ["1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4"], "neg": ["number of followers refers to user_subscriber; posted the most lists refers to MAX(COUNT(list_id))", "created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n", "percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "Highest average score refers to Max(Avg(rating_score));", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;"]}} {"set": {"query": "How many likes did the critic of the movie \"Apocalypse Now\" received after giving the movie a rating score of 5?", "pos": ["Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n"], "neg": ["released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "director refer to director_name; The Crowd refer to movie_title; Average refer to AVG(rating_score)", "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "number of followers refers to user_subscriber; posted the most lists refers to MAX(COUNT(list_id))", "followers refers to list_followers;", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5"]}} {"set": {"query": "What is the percentage of list created by user who was a subscriber when he created the list?", "pos": ["was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))"], "neg": ["Short and pretty damn sweet is list_title; location of the movie refers to list_url;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "number of followers refers to user_subscriber; posted the most lists refers to MAX(COUNT(list_id))", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie;", "user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;"]}} {"set": {"query": "For movie id 1269, how many users, who was a paying subscriber and was eligible for trial when he rated the movie, gave the movie a rating score of less than or equal to 2?", "pos": ["paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;"], "neg": ["user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "Innocence Unprotected' is movie_title; '250 Favourite Films' is list_title; rating refers to rating_score;", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));"]}} {"set": {"query": "Give the name of the movie that got the most \"5\" ratings.", "pos": ["5 ratings refers to rating_score = 5; name of the movie refers to movie_title"], "neg": ["created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "followers refers to list_followers;", "percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'"]}} {"set": {"query": "What's the number of the paying subscribers when rating a movie after the year 2014?", "pos": ["paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'"], "neg": ["Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));", "most followers refers to Max(list_followers);", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "followers refers to list_followers;", "Highest average score refers to Max(Avg(rating_score));", "created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "the most comments refers to Max(list_comments);", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);"]}} {"set": {"query": "Which of the film directed by director Abbas Kiarostami has the highest average score?", "pos": ["Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));"], "neg": ["4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "Tokyo Eyes' is movie_title, director refers to director_name;", "not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc)", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;"]}} {"set": {"query": "How many movies did the director of the highest movie popularity make?", "pos": ["highest movie popularity refers to MAX(movie_popularity)"], "neg": ["have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "A Way of Life refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 url refers to rating_url;", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "followers refers to list_followers;", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "user avatar url refers to user_avatar_image_url; latest movie rated refers to latest rating_date;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)"]}} {"set": {"query": "Which 1988 movie got the most ratings?", "pos": ["1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)"], "neg": ["The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "film released in 2007 refers to movie_release_year = 2007; film refers to movie", "5 ratings refers to rating_score = 5; name of the movie refers to movie_title", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "most followers refers to Max(list_followers);", "FALSE;", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "the most comments refers to Max(list_comments);", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;"]}} {"set": {"query": "Which movie is more popular, \"The General\" or \"Il grido\"?", "pos": ["The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);"], "neg": ["user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4", "average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));", "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;"]}} {"set": {"query": "For all movies where users left a critic, find the movie name, user, rating and critics comments from the user.", "pos": ["movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic;"], "neg": ["director refer to director_name; The Crowd refer to movie_title; Average refer to AVG(rating_score)", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4", "created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n", "Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')\n\n"]}} {"set": {"query": "Which year had the most released films?", "pos": ["year refers to movie_release_year; most release films refers to MAX(COUNT(movie_id))\n\n"], "neg": ["1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "updated most recently refers to MAX(list_update_date_utc)", "least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')\n\n", "user 4208563 refers to user_id = 4208563", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;"]}} {"set": {"query": "How many critics of the movie \"Imitation of Life\" got more than 1 like?", "pos": ["Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;"], "neg": ["the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc)", "released in the year 1945 refers to movie_release_year = 1945;", "Highest average score refers to Max(Avg(rating_score));", "worst rating refers to rating_score = 1;", "number of followers refers to user_subscriber; posted the most lists refers to MAX(COUNT(list_id))", "first created list refers to oldest list_creation_date_utc;"]}} {"set": {"query": "User 58149469's critic on which film got 1 like and 2 comments?", "pos": ["user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;"], "neg": ["5 ratings refers to rating_score = 5; name of the movie refers to movie_title", "1988 movie refers to movie_release_year = '1998'; most ratings refers to MAX(rating_score)", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;", "Highest average score refers to Max(Avg(rating_score));", "worst rating refers to rating_score = 1;", "more than 13000 popularity number refers to movie_popularity > 13000; least ratings refers to MIN(rating_score)"]}} {"set": {"query": "What is the average score of the movie \"The Fall of Berlin\" in 2019?", "pos": ["The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score);"], "neg": ["movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic;", "most popular movie of all time refers to MAX(movie_popularity); a trialist refers to user_trialist = 1; average rating score = AVG(rating_score)", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4", "least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')\n\n", "year refers to movie_release_year; most release films refers to MAX(COUNT(movie_id))\n\n", "list titled 'Sound and Vision' refers to list_title = 'Sound and Vision'; user_subscriber = 1 means the user was a subscriber when he rated the movie; user_subscriber = 0 means the user was not a subscriber when he rated the movie\n\n\n\n", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "film released in 2007 refers to movie_release_year = 2007; film refers to movie", "directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year\n"]}} {"set": {"query": "For all ratings which are rated in year 2020, name the movies which has the rating scored 4 and above.", "pos": ["ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4;"], "neg": ["most followers refers to Max(list_followers);", "250 Favourite Films' is list_title; movies refers to movie_title;", "most popular refers to Max(movie_popularity);", "URL refer to rating_url; user 22030372 refer to user_id", "movies where users left a critic refers to critic IS NOT NULL; critic comments refers to critic;", "user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "the most comments refers to Max(list_comments);", "not been updated for the longest period of time refers to MIN(list_update_timestamp_utc); how long it has not been updated refers to SUBTRACT(CURRENT_TIMESTAMP, list_update_timestamp_utc)", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;"]}} {"set": {"query": "What is the name of the movie that was rated recently by user 57756708?", "pos": ["user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)"], "neg": ["paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'", "list titled 'Sound and Vision' refers to list_title = 'Sound and Vision'; user_subscriber = 1 means the user was a subscriber when he rated the movie; user_subscriber = 0 means the user was not a subscriber when he rated the movie\n\n\n\n", "most followers refers to Max(list_followers);", "URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last update timestamp was on 2012 refers to list_update_timestamp_utc BETWEEN '2012-1-1' AND '2012-12-31';", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "250 Favourite Films refers to list_title;", "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;"]}} {"set": {"query": "For the user who post the list that contained the most number of the movies, is he/she a paying subscriber when creating that list?", "pos": ["the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n"], "neg": ["directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year\n", "paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;", "movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4", "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "ratings in year 2020 refers to rating_timestamp_utc like '%2020%'; rating_score > = 4;", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "worst rating refers to rating_score = 1;"]}} {"set": {"query": "Name all the list titles created by user 4208563.", "pos": ["user 4208563 refers to user_id = 4208563"], "neg": ["highest movie popularity refers to MAX(movie_popularity)", "least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')\n\n", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "director refer to director_name; The Crowd refer to movie_title; Average refer to AVG(rating_score)", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id))", "5 ratings refers to rating_score = 5; name of the movie refers to movie_title", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "250 Favourite Films' is list_title; movies refers to movie_title;", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4"]}} {"set": {"query": "Who is the director of the most popular movie of all time and when was it released? Indicate the average rating score of the users who were on a trialist when they rated the movie.", "pos": ["most popular movie of all time refers to MAX(movie_popularity); a trialist refers to user_trialist = 1; average rating score = AVG(rating_score)"], "neg": ["user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "Highest average score refers to Max(Avg(rating_score));", "user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "received more than 20 likes refers to critic_likes>20;", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "Between 1/1/2017 to 12/31/2017 refers to rating_timestamp_utc between '2017-01-01 00:00:00' and '2017-12-31 00:00:00'; eligible for trial refers to user_eligible_for_trial = 1; movie \"Patti Smith: Dream of Life\" refers to movie_title = 'Patti Smith: Dream of Life'", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;"]}} {"set": {"query": "What is the average popularity of each movie that was directed by Christopher Nolan? Indicate which movie directed by him has received the highest number of 5 rating scores.", "pos": ["5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')"], "neg": ["paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;", "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "Imitation of Life refers to movie_title; critics got more than 1 like refers to critic_likes >1;", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))", "Short and pretty damn sweet is list_title; location of the movie refers to list_url;", "lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "first created list refers to oldest list_creation_date_utc;", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')\n\n"]}} {"set": {"query": "How many directors have directed atleast 10 movies between 1960 to 1985? Indicate the name of the movie in those years of each director that received the highest amount of 5 rating score.", "pos": ["directed at least 10 movies refers to count(direct_name)>10; 1960 to 1985 refer to movie_release_year\n"], "neg": ["list titled 'Sound and Vision' refers to list_title = 'Sound and Vision'; user_subscriber = 1 means the user was a subscriber when he rated the movie; user_subscriber = 0 means the user was not a subscriber when he rated the movie\n\n\n\n", "film released in 2007 refers to movie_release_year = 2007; film refers to movie", "least number of movies refers to MIN(movie_release_year); highest rating score refers to MAX(SUM(movie_id) where rating_score = '1')\n\n", "released in 2006 refers to movie_release_year = 2006; most popular refers to Max(movie_popularity); film refers to movie;", "5 ratings refers to rating_score = 5; name of the movie refers to movie_title", "Between 1/1/2017 to 12/31/2017 refers to rating_timestamp_utc between '2017-01-01 00:00:00' and '2017-12-31 00:00:00'; eligible for trial refers to user_eligible_for_trial = 1; movie \"Patti Smith: Dream of Life\" refers to movie_title = 'Patti Smith: Dream of Life'", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n"]}} {"set": {"query": "What is the name of the list that was updated most recently?", "pos": ["updated most recently refers to MAX(list_update_date_utc)"], "neg": ["movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "most popular movie refers to MAX(movie_popularity); when it was released refers to movie_release_year; director for the movie refers to director_name;", "5 ratings refers to rating_score = 5; name of the movie refers to movie_title", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "most popular movie of all time refers to MAX(movie_popularity); a trialist refers to user_trialist = 1; average rating score = AVG(rating_score)", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "worst rating refers to rating_score = 1;", "the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;"]}} {"set": {"query": "Among the lists with at least one follower, how many were created by user who was subscriber when created the list?", "pos": ["lists with at least one follower refers to list_followers > = 1; was a subscriber refers to user_subscriber = 1"], "neg": ["Abbas Kiarostami' is director_name; the highest Average score refers to Max(Avg(rating_score));", "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;", "the most comments refers to Max(list_comments);", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));", "created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "URL refer to rating_url; user 22030372 refer to user_id", "paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;"]}} {"set": {"query": "Who gave a \"4\" rating to the movie \"Freaks\" at 2013/5/4 6:33:32? Give his/her user id.", "pos": ["4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'"], "neg": ["the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "most popular refers to Max(movie_popularity);", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 when the user rate refers to rating_timestamp_utc;", "FALSE;", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "URL to the list page on Mubi refers to list_url; list_followers = 1 OR list_followers = 2; last update timestamp was on 2012 refers to list_update_timestamp_utc BETWEEN '2012-1-1' AND '2012-12-31';", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;"]}} {"set": {"query": "Who was the director of the movie \"Tokyo Eyes\"\uff1f", "pos": ["Tokyo Eyes' is movie_title, director refers to director_name;"], "neg": ["the average rating score refers to AVG(T2.rating_score); oldest movies refers to MIN(rating_timestamp_utc)", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "most popular refers to Max(movie_popularity);", "When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;", "percentage of movies that were never been rated refers to DIVIDE(COUNT(main_movies.movie_id ! = main_ratings.movie_id),COUNT(movie_id))", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')"]}} {"set": {"query": "What is the name of the longest movie title? When was it released?", "pos": ["longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;"], "neg": ["movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "list titled 'Sound and Vision' refers to list_title = 'Sound and Vision'; user_subscriber = 1 means the user was a subscriber when he rated the movie; user_subscriber = 0 means the user was not a subscriber when he rated the movie\n\n\n\n", "FALSE;", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n", "Highest average score refers to Max(Avg(rating_score));", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "URL refer to rating_url; user 22030372 refer to user_id", "250 Favourite Films' is list_title; movies refers to movie_title;", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'"]}} {"set": {"query": "What's the url of user 39115684's rating on the movie 'When Will I Be Loved'?", "pos": ["A Way of Life refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 url refers to rating_url;"], "neg": ["Innocence Unprotected' is movie_title; '250 Favourite Films' is list_title; rating refers to rating_score;", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "movie title rated in April 2020 refers to rating_timestamp_utc LIKE '%2020-04-%'; user is a trial list refers to user_trialist = 1;", "user 94978 refers to user_id = 94978; scored as 5 refers to rating_score = 5;", "The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score);", "movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4", "created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)", "user 59988436 refers to user_id = 59988436; received 21 comments refers to critic_comments = 21; film refers to movie;", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;"]}} {"set": {"query": "Among the lists created in 2016, which is the list that was updated most recently.", "pos": ["created in 2016 refers to list_creation_timestamp_utc like '2016%'; updated most recently refers to MAX(list_update_timestamp_utc)"], "neg": ["list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n", "FALSE;", "Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;", "1998 movie refers to movie_release_year = '1998'; the highest popularity refers to MAX(movie_popularity) ; \"4\" rating refers to rating_score = 4", "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "Innocence Unprotected' is movie_title; '250 Favourite Films' is list_title; rating refers to rating_score;", "4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'", "year refers to movie_release_year; most release films refers to MAX(COUNT(movie_id))\n\n", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;"]}} {"set": {"query": "List ther users who gave the worst rating for movie 'Love Will Tear Us Apart'.", "pos": ["worst rating refers to rating_score = 1;"], "neg": ["the user was eligible for trail when he created the list refers to user_eligile_for_trail = 1; user 32172230 refers to user_id = 32172230;", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "followers refers to list_followers;", "Highest average score refers to Max(Avg(rating_score));", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n"]}} {"set": {"query": "How many users who created a list in the February of 2016 were eligible for trial when they created the list? Indicate the user id of the user who has the most number of followers in his list in February of 2016.", "pos": ["created a list in the February of 2016 refer to list_creation_date_utc BETWEEN 2/1/2016 and 2/29/2016; eligible for trial refers to user_eligible_for_trial = 1;\n"], "neg": ["list titled 'Sound and Vision' refers to list_title = 'Sound and Vision'; user_subscriber = 1 means the user was a subscriber when he rated the movie; user_subscriber = 0 means the user was not a subscriber when he rated the movie\n\n\n\n", "250 Favourite Films refers to list_title;", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "250 Favourite Films' is list_title; movies refers to movie_title;", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;", "rated with highest score refers to rating_score = 5; percentage = MULTIPLY(DIVIDE(SUM(rating_score = 5), COUNT(rating_score)), 100)", "worst rating refers to rating_score = 1;"]}} {"set": {"query": "What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the movies and their corresponding popularity.", "pos": ["movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;"], "neg": ["Highest average score refers to Max(Avg(rating_score));", "\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "year refers to movie_release_year; most release films refers to MAX(COUNT(movie_id))\n\n", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "rated 5 refers to rating_score = 5; on 2013/5/3 5:11:17 refers to rating_timestamp_utc = '2013-05-03 05:11:17'", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;", "FALSE;", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))"]}} {"set": {"query": "Please provide the title of the list with the most comments on the list.", "pos": ["the most comments refers to Max(list_comments);"], "neg": ["user 57756708 refers to user_id = 57756708; rated recently refers to MAX(rating_timestamp_utc)", "directed by Felipe Cazals refers to director_name = 'Felipe Cazals' ; realeased on 1976 refers to movie_release_year = 1976", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "A Way of Life' refers to movie_title; user 39115684 refers to userid = 39115684;\u00a0 the user was a trialist when he rated the movie refers to user_trialist = 1;", "Sex, Drink and Bloodshed refers to movie title = 'Sex, Drink and Bloodshed';", "year refers to movie_release_year; most release films refers to MAX(COUNT(movie_id))\n\n", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')", "user 4208563 refers to user_id = 4208563", "The Fall of Berlin' is movie_title; in 2019 refers to rating_timestamp_utc = 2019; Average score refers to Avg(rating_score);", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));"]}} {"set": {"query": "What's the number of users gave the movie \"Downfall\" a rating of \"4\"?", "pos": ["movie \"Downfall\" refers to movie_title = 'Downfall'; rating of \"4\" refers to rating_score = 4"], "neg": ["user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "average rating = DIVIDE((SUM(rating_score where movie_title = 'When Will I Be Loved')), COUNT(rating_score));", "250 Favourite Films refers to list_title; last update refers to list_update_date_utc;", "5 ratings refers to rating_score = 5; name of the movie refers to movie_title", "\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "the list that contained the most number of the movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list ; \nuser_has_payment_method = 0 means the user was not a paying subscriber when he created the list \n\n", "Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n"]}} {"set": {"query": "What is the user ID of the user, who was a subscriber when he created the list, who created a list for 10 consecutive years? If there are multiple users, indicate each of their user IDs.", "pos": ["user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;"], "neg": ["longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;", "250 Favourite Films' is list_title; movies refers to movie_title;", "user 58149469 refers to user_id = 58149469; critic with 1 like refers to critic_likes = 1; critic with 2 comments refers to critic_comments = 2;", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "4 rating refers to rating_score = 4; the movie \"Freaks\" refers to movie_title = 'Freaks' ; at 2013/5/4 6:33:32 refers to rating_timestamp_utc = '2013-05-04 06:33:32'", "released in the year 1945 refers to movie_release_year = 1945;", "not a trialist refer to user_trialist = 0; rating score of not more than 2 refer to rating_score <2; The South refers to movie_title\n", "earliest user created a list refers to MIN(list_creation_date_utc); didn't get any followers refers to user_subscriber = 0", "followers refers to list_followers;"]}} {"set": {"query": "How many users were trialists when they rated the movie \"A Way of Life\"?", "pos": ["A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;"], "neg": ["film released in 2007 refers to movie_release_year = 2007; film refers to movie", "released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;", "URL refer to rating_url; user 22030372 refer to user_id", "User 4208563 refers to user_id;highest number of followers refers to MAX(list_followers); user_subscriber = 1 means that the user was a subscriber when he created the list; user_subscriber = 0 means the user was not a subscriber when he created the list (to replace)", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "White Night Wedding' is movie_title; for 5 refers to rating_score = 5;", "number of likes received refers to critic likes; received the highest number of likes refers to MAX(critic_likes);", "250 Favourite Films refers to list_title;", "have less than 50 movies in the list refers to list_movie_number <50; was a subscriber refers to user_subscriber = 1", "user was a subscriber when he created the list refers to user_subscriber = 1; user who created a list for 10 consecutive years refers to user_id with list_creation_date_utc for 10 succeeding years;"]}} {"set": {"query": "Among the users who are trailists when rating the movie \"When Will I Be Loved\", how many of them have rated \"1\" on the movie?", "pos": ["When Will I Be Loved refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;rated 1 on the movie refers to rating_score = 1;"], "neg": ["worst rating refers to rating_score = 1;", "most popular movie of all time refers to MAX(movie_popularity); a trialist refers to user_trialist = 1; average rating score = AVG(rating_score)", "paying subscriber refers to user_has_payment_method = 1; eligible for trial refers to user_eligible_for_trial = 1; rating_score< = 2;", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "When Will I Be Loved refers to movie_title;\u00a0 2 comments for the critic refers to critic_comments = 2;", "list with the most number of movies refers to MAX(list_movie_number); user_has_payment_method = 1 means the user was a paying subscriber when he created the list; user_has_payment_method = 0 means the user was not a paying subscriber when he created the list;", "received more than 20 likes refers to critic_likes>20;", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))", "250 Favourite Films refers to list_title;", "A Way of Life' is movie_title; average rating score = Divide (Sum(rating_score), Count(rating_id));"]}} {"set": {"query": "Please list the names of the films released in 2003 among the films scored by user 2941 .", "pos": ["released in 2003 refers to movie_release_year = 2003; user 2941 refers to user_id = 2941; film refers to movie;"], "neg": ["Alex de la Iclesia is the director name; the most popular refers to Max(movie_popularity); films refers to movies;", "movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;", "The General and Il grido are movie_title; more popular movie refers to higher (movie_popularity);", "film released in 2008 refers to movie_release_year = 2008; scored the highest refers to Max(rating_score); film refers to movie;", "was a subscriber refers to user_subscriber = 1; percentage refers to DIVIDE(COUNT(user_subscriber = 1),COUNT(list_id))", "the user was a subscriber when he created the list refers to user_subscriber = 1; user 83373278 refers to user_id = 83373278;", "user profile image URL refers to user_avatar_image_url; user 8516503 refers to user_id; Average refers to AVG(list_movie_number where user_id = 8516503)\n\n", "like the movie highest to the extent refers to rating_score = 5; A Way of Life refers to movie_title;", "5 rating scores refer to rating_score; Christopher Nolan refer to director_name; average popularity of each movie refer to AVG(movie_popularity where director_name = 'Christopher Nolan')", "the user was a paying subscriber when he created the list refers to user_has_payment_method = 1;\u00a0 movie lists with over 100 refers to list_movie_number >100;\u00a0 user 85981819 refers to user_id = 85981819;"]}} {"set": {"query": "What is the percentage of rated movies were released in year 2021?", "pos": ["percentage = DIVIDE(SUM(movie_release_year = 2021), COUNT(rating_id)) as percent; movies released in year 2021 refers to movie_release_year = 2021;"], "neg": ["paying subscribers refers to user_has_payment_method = 1; rating a movie after the year 2014 refers to rating_date_utc>'2014%'", "Apocalypse Now refer to movie_title; rating score refer to rating_score = '5';likes received refers to critic_likes\n", "head portrait refers to user_avatar_image_url; \"5\" ratings refers to rating_score = 5", "received more than 20 likes refers to critic_likes>20;", "longest movie title refers to MAX(LENGTH(movie_title)); when it was released refers to movie_release_year;", "250 Favourite Films refers to list_title;", "Directed by Buster Keaton refers to director_name; released in 1924 refers to movie_release_year = 1924; paying subscriber refers to user_has_payment_method = 1\n\n", "\"A Shot in the Dark\" refers to movie_title = 'A Shot in the Dark'; paying subscriber refers to user_has_payment_method = 1; percentage refers to DIVIDE(COUNT(user_has_payment_method = 1),COUNT(user_has_payment_method))*100", "user 85981819 refers to user_id = 85981819; most followers refers to Max(list_followers); description refers to list_descriptions;", "Short and pretty damn sweet is list_title; location of the movie refers to list_url;"]}} {"set": {"query": "What is the ID of actors that acted in the movies most viewed by audience with occupation 5?", "pos": ["The audience and users are the same meaning"], "neg": ["UK is a country", "Female users refers to u_gender = 'F'", "d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors", "USA is a country", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "Male users refers to u_gender = 'M'", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "UK is a country", "USA is a country; not in English can be represented by isEnglish = 'F'", "The audience and users are the same meaning"]}} {"set": {"query": "How many horror movies were made by the worst directors?", "pos": ["d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst"], "neg": ["isEnglish = 'T' means English movie", "Female actors mean that a_gender = 'F'; percentage can be computed by [cast_num = 2 AND a_quality = 2 in female) / (all female actors)] * 100%", "Female users refers to u_gender = 'F'", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "direct well means the quality of directing is good, which means d_quality = 4.", "France a one country", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "UK is a country", "USA is a country", "UK is a country"]}} {"set": {"query": "What is the percentage difference of English and non-English-language crime movies in other countries in year 3?", "pos": ["non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%"], "neg": ["d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "Female users mean that u_gender = 'F'", "UK is a country", "The audience and users are the same meaning", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "The audience and users are the same meaning", "US and UK are 2 countries", "Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date", "French and USA are two countries; Female actors mean that a_gender = 'F'", "Female users mean that u_gender = 'F'"]}} {"set": {"query": "How many users have rated 1 each for the UK's second newest movies with a running time of 2?", "pos": ["second newest movies refers to year = 2 since year in this database is a relative value, less is the newer"], "neg": ["France is a country; year = 4 represents the newest date.", "USA is a country", "isEnglish = 'T' means English movie", "France a one country", "UK is a country", "Female actors mean that a_gender = 'F'; percentage can be computed by [cast_num = 2 AND a_quality = 2 in female) / (all female actors)] * 100%", "The audience and users are the same meaning", "USA is a country", "'box office success paradox' means average revenue exceeds their quality; The proportion can be computed by [(avg_revenue > d_quality) / ()] * 100%", "Worst actresses means a_quality is the least; The least a_quality is 0"]}} {"set": {"query": "What are the genres of all the English-language foreign films having a runtime of two hours or less? List each one.", "pos": ["isEnglish = 'T' means films in English; Film and movie share the same meaning"], "neg": ["The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "France is a country", "Male users refers to u_gender = 'M'", "UK is a country", "d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "USA is a country", "France is a country", "UK is a country", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst"]}} {"set": {"query": "Among the worst actresses, how many of them got a rating of more than 3 to the movies they starred?", "pos": ["Worst actresses means a_quality is the least; The least a_quality is 0"], "neg": ["French and USA are two countries; Female actors mean that a_gender = 'F'", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "The audience and users are the same meaning", "Female actors mean that a_gender = 'F'", "USA is a country; not in English can be represented by isEnglish = 'F'", "d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors", "France is a country; year = 4 represents the newest date.", "France is a country"]}} {"set": {"query": "How many of the users who rate the movie with the id '2462959' are female?", "pos": ["Female users mean that u_gender = 'F'"], "neg": ["d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "UK is a country", "USA is a country", "US and UK are 2 countries", "USA is a country", "Female users mean that u_gender = 'F'", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "UK is a country"]}} {"set": {"query": "Calculate the percentage of female actors and quality 2 who have appeared twice at the casting of the film 1672580.", "pos": ["Female actors mean that a_gender = 'F'; percentage can be computed by [cast_num = 2 AND a_quality = 2 in female) / (all female actors)] * 100%"], "neg": ["isEnglish = 'F' means non-English", "US and UK are 2 countries", "USA is a country", "Female actors mean that a_gender = 'F'", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "UK is a country", "Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date", "Male users refers to u_gender = 'M'", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "France a one country"]}} {"set": {"query": "What are the most common film genres made by the worst directors?", "pos": ["d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors"], "neg": ["isEnglish = 'F' means non-English", "Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date", "France a one country", "Female actors mean that a_gender = 'F'; percentage can be computed by [cast_num = 2 AND a_quality = 2 in female) / (all female actors)] * 100%", "France is a country; year = 4 represents the newest date.", "Female users mean that u_gender = 'F'", "direct well means the quality of directing is good, which means d_quality = 4.", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "USA is a country", "isEnglish = 'T' means English movie"]}} {"set": {"query": "What's the ratio of gender in actors to actress in all the UK movies?", "pos": ["UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'"], "neg": ["d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors", "France is a country; year = 4 represents the newest date.", "Female users refers to u_gender = 'F'", "Female actors mean that a_gender = 'F'; percentage can be computed by [cast_num = 2 AND a_quality = 2 in female) / (all female actors)] * 100%", "French and USA are two countries; Female actors mean that a_gender = 'F'", "UK is a country", "The audience and users are the same meaning", "isEnglish = 'F' means non-English", "isEnglish = 'T' means films in English; Film and movie share the same meaning", "Male users mean that u_gender = 'M'; France is a country"]}} {"set": {"query": "What are the ID of actors with quality rating of 3 acted in English USA movies?", "pos": ["English movies refers to isEnglish = 'T'; USA is a country"], "neg": ["Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date", "USA is a country", "UK is a country", "isEnglish = 'T' means English movie", "France a one country", "Female users refers to u_gender = 'F'", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "isEnglish = 'F' means non-English", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "not in English can be represented by isEnglish = 'F'"]}} {"set": {"query": "What is the highest average rating for action movies made in the USA?", "pos": ["USA is a country"], "neg": ["Female users refers to u_gender = 'F'", "UK is a country", "France is a country; year = 4 represents the newest date.", "The audience and users are the same meaning", "Male users mean that u_gender = 'M'; France is a country", "isEnglish = 'T' means English movie", "US and UK are 2 countries", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "The audience and users are the same meaning", "UK is a country"]}} {"set": {"query": "UK produced what genre of movies?", "pos": ["UK is a country"], "neg": ["Male users refers to u_gender = 'M'", "French and USA are two countries; Female actors mean that a_gender = 'F'", "Female users mean that u_gender = 'F'", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "USA is a country; not in English can be represented by isEnglish = 'F'", "USA is a country", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "Male users mean that u_gender = 'M'; France is a country", "non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%", "US and UK are 2 countries"]}} {"set": {"query": "List the top 5 movies from other countries which to language is not in English.", "pos": ["not in English can be represented by isEnglish = 'F'"], "neg": ["USA is a country", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%", "France is a country", "France is a country", "Female users mean that u_gender = 'F'", "France a one country", "Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date", "Male users refers to u_gender = 'M'", "isEnglish = 'T' means English movie"]}} {"set": {"query": "What is the average rating of the newest movies from France?", "pos": ["France is a country; year = 4 represents the newest date."], "neg": ["Films and movies share the same meaning; oldest film refers to the movie with year = 1", "Female users mean that u_gender = 'F'", "isEnglish = 'F' means non-English", "USA is a country", "isEnglish = 'T' means English movie", "not in English can be represented by isEnglish = 'F'", "France is a country", "Male users mean that u_gender = 'M'; France is a country", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "UK is a country"]}} {"set": {"query": "Among the movies from France, how many of them are drama?", "pos": ["France a one country"], "neg": ["French and USA are two countries; Female actors mean that a_gender = 'F'", "USA is a country", "UK is a country", "Female users mean that u_gender = 'F'", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "USA is a country", "USA is a country; not in English can be represented by isEnglish = 'F'", "isEnglish = 'T' means films in English; Film and movie share the same meaning", "France is a country", "Female actors mean that a_gender = 'F'; percentage can be computed by [cast_num = 2 AND a_quality = 2 in female) / (all female actors)] * 100%"]}} {"set": {"query": "What is the ID of audiences that gave the most rating of 5?", "pos": ["The audience and users are the same meaning"], "neg": ["non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%", "Male users refers to u_gender = 'M'", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'", "'box office success paradox' means average revenue exceeds their quality; The proportion can be computed by [(avg_revenue > d_quality) / ()] * 100%", "The audience and users are the same meaning", "France is a country", "Female actors mean that a_gender = 'F'", "French and USA are two countries; Female actors mean that a_gender = 'F'", "USA is a country; not in English can be represented by isEnglish = 'F'", "Higher value of running time means running time is longer"]}} {"set": {"query": "Among the English comedy movies produced in the UK, how many movies with a running time of 3 was rated the highest by users between the age 45-50? Indicate the movie names.", "pos": ["UK is a country"], "neg": ["Female users refers to u_gender = 'F'", "Male users refers to u_gender = 'M'", "Female users mean that u_gender = 'F'", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "France is a country", "isEnglish = 'T' means English movie", "isEnglish = 'T' means films in English; Film and movie share the same meaning", "English movies refers to isEnglish = 'T'; USA is a country", "The audience and users are the same meaning", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'"]}} {"set": {"query": "How many French movies got the highest ranking?", "pos": ["France is a country"], "neg": ["The audience and users are the same meaning", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "The audience and users are the same meaning", "UK is a country", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "isEnglish = 'F' means non-English", "US and UK are 2 countries", "UK is a country", "non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%", "Female users mean that u_gender = 'F'"]}} {"set": {"query": "What horror movies have a running time of at least 2? Please list movie IDs.", "pos": ["Higher value of running time means running time is longer"], "neg": ["UK is a country", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "The audience and users are the same meaning", "France is a country", "France a one country", "direct well means the quality of directing is good, which means d_quality = 4.", "France is a country", "Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date", "USA is a country; not in English can be represented by isEnglish = 'F'", "Female actors mean that a_gender = 'F'"]}} {"set": {"query": "What is the average number of casts of movies that are from the USA?", "pos": ["USA is a country"], "neg": ["Female users mean that u_gender = 'F'", "Male users mean that u_gender = 'M'; France is a country", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'", "UK is a country", "UK is a country", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%", "France is a country", "isEnglish = 'T' means films in English; Film and movie share the same meaning"]}} {"set": {"query": "Among divergent movies that got the highest rating, how many of them are from the UK?", "pos": ["UK is a country"], "neg": ["Worst actresses means a_quality is the least; The least a_quality is 0", "non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%", "France is a country", "France is a country", "Female users mean that u_gender = 'F'", "direct well means the quality of directing is good, which means d_quality = 4.", "The audience and users are the same meaning", "France is a country; year = 4 represents the newest date.", "Female users mean that u_gender = 'F'", "Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date"]}} {"set": {"query": "For the male users no older than 18, how many times have they given the highest rating?", "pos": ["Male users refers to u_gender = 'M'"], "neg": ["Films and movies share the same meaning; oldest film refers to the movie with year = 1", "France a one country", "Male users mean that u_gender = 'M'; France is a country", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "French and USA are two countries; Female actors mean that a_gender = 'F'", "isEnglish = 'T' means films in English; Film and movie share the same meaning", "isEnglish = 'T' means English movie", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'", "Female users mean that u_gender = 'F'"]}} {"set": {"query": "Please list movie IDs which has the oldest publication date and the cast numbers are zero.", "pos": ["Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date"], "neg": ["Female users refers to u_gender = 'F'", "Female users mean that u_gender = 'F'", "UK is a country", "France a one country", "The audience and users are the same meaning", "UK is a country", "Worst actresses means a_quality is the least; The least a_quality is 0", "Higher value of running time means running time is longer", "d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors", "The audience and users are the same meaning"]}} {"set": {"query": "How many female actors have been played a role in any of French or USA movies?", "pos": ["French and USA are two countries; Female actors mean that a_gender = 'F'"], "neg": ["d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors", "not in English can be represented by isEnglish = 'F'", "The audience and users are the same meaning", "UK is a country", "'box office success paradox' means average revenue exceeds their quality; The proportion can be computed by [(avg_revenue > d_quality) / ()] * 100%", "The audience and users are the same meaning", "France a one country", "Higher value of running time means running time is longer", "Male users refers to u_gender = 'M'", "Female users mean that u_gender = 'F'"]}} {"set": {"query": "Among the actors who acted in UK movies, what percentage of actors received a rating of at least 3?", "pos": ["UK is a country"], "neg": ["isEnglish = 'F' means non-English", "France is a country", "direct well means the quality of directing is good, which means d_quality = 4.", "USA is a country", "The audience and users are the same meaning", "USA is a country; not in English can be represented by isEnglish = 'F'", "'box office success paradox' means average revenue exceeds their quality; The proportion can be computed by [(avg_revenue > d_quality) / ()] * 100%", "French and USA are two countries; Female actors mean that a_gender = 'F'", "English movies refers to isEnglish = 'T'; USA is a country", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer"]}} {"set": {"query": "What is the difference of female and male audiences in number who viewed horror movies?", "pos": ["The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'"], "neg": ["USA is a country", "Female users refers to u_gender = 'F'", "not in English can be represented by isEnglish = 'F'", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "France is a country", "Female users mean that u_gender = 'F'", "France a one country", "USA is a country; not in English can be represented by isEnglish = 'F'", "Higher value of running time means running time is longer", "French and USA are two countries; Female actors mean that a_gender = 'F'"]}} {"set": {"query": "Which actor has acted in at least 2 French films? Please list their IDs.", "pos": ["France is a country"], "neg": ["d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "France a one country", "isEnglish = 'T' means films in English; Film and movie share the same meaning", "USA is a country; not in English can be represented by isEnglish = 'F'", "isEnglish = 'F' means non-English", "USA is a country", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'", "Male users mean that u_gender = 'M'; France is a country", "Male users refers to u_gender = 'M'", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'"]}} {"set": {"query": "What is the proportion of action movies directors who are called 'box office success paradox'?", "pos": ["'box office success paradox' means average revenue exceeds their quality; The proportion can be computed by [(avg_revenue > d_quality) / ()] * 100%"], "neg": ["Female actors mean that a_gender = 'F'", "Male users mean that u_gender = 'M'; France is a country", "USA is a country; not in English can be represented by isEnglish = 'F'", "USA is a country", "France is a country; year = 4 represents the newest date.", "Male users refers to u_gender = 'M'", "France is a country", "UK is a country", "French and USA are two countries; Female actors mean that a_gender = 'F'", "USA is a country"]}} {"set": {"query": "Please give the ids of the oldest films that got the most ratings.", "pos": ["Films and movies share the same meaning; oldest film refers to the movie with year = 1"], "neg": ["Female users refers to u_gender = 'F'", "USA is a country", "non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "The audience and users are the same meaning", "USA is a country", "Female actors mean that a_gender = 'F'; percentage can be computed by [cast_num = 2 AND a_quality = 2 in female) / (all female actors)] * 100%", "direct well means the quality of directing is good, which means d_quality = 4.", "UK is a country", "Male users mean that u_gender = 'M'; France is a country"]}} {"set": {"query": "List the id of male users who gave ratings of less than 3 to French movies with running time of 2.", "pos": ["Male users mean that u_gender = 'M'; France is a country"], "neg": ["Higher value of running time means running time is longer", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'", "non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%", "isEnglish = 'F' means non-English", "English movies refers to isEnglish = 'T'; USA is a country", "Worst actresses means a_quality is the least; The least a_quality is 0", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "USA is a country; not in English can be represented by isEnglish = 'F'", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "USA is a country"]}} {"set": {"query": "How many female actors acted in the movies of year 4?", "pos": ["Female actors mean that a_gender = 'F'"], "neg": ["direct well means the quality of directing is good, which means d_quality = 4.", "France is a country", "French and USA are two countries; Female actors mean that a_gender = 'F'", "France a one country", "English movies refers to isEnglish = 'T'; USA is a country", "USA is a country", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "UK is a country", "Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date", "UK is a country"]}} {"set": {"query": "Among the action movies from the USA, how many of them are not in English?", "pos": ["USA is a country; not in English can be represented by isEnglish = 'F'"], "neg": ["direct well means the quality of directing is good, which means d_quality = 4.", "Female actors mean that a_gender = 'F'; percentage can be computed by [cast_num = 2 AND a_quality = 2 in female) / (all female actors)] * 100%", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'", "not in English can be represented by isEnglish = 'F'", "France is a country; year = 4 represents the newest date.", "Female users mean that u_gender = 'F'", "Female users mean that u_gender = 'F'", "isEnglish = 'T' means films in English; Film and movie share the same meaning", "UK is a country", "isEnglish = 'T' means English movie"]}} {"set": {"query": "Who are cast members in an English movie which has a running time equal to 2? Please list their IDs.", "pos": ["isEnglish = 'T' means English movie"], "neg": ["The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "isEnglish = 'T' means films in English; Film and movie share the same meaning", "US and UK are 2 countries", "USA is a country; not in English can be represented by isEnglish = 'F'", "The audience and users are the same meaning", "'box office success paradox' means average revenue exceeds their quality; The proportion can be computed by [(avg_revenue > d_quality) / ()] * 100%", "France a one country", "The audience and users are the same meaning", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "French and USA are two countries; Female actors mean that a_gender = 'F'"]}} {"set": {"query": "How many actors have acted in both US or UK films?", "pos": ["US and UK are 2 countries"], "neg": ["The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "isEnglish = 'F' means non-English", "isEnglish = 'T' means English movie", "direct well means the quality of directing is good, which means d_quality = 4.", "The audience and users are the same meaning", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "non-English-language refers to isEnglish = 'F'; The percentage difference can be computed by [count(isEnglish = 'T' in movies) - count(isEnglish = 'F' in movies) / (all movies)] * 100%", "UK is a country", "USA is a country; not in English can be represented by isEnglish = 'F'", "Male users refers to u_gender = 'M'"]}} {"set": {"query": "Movies with rating 3 are viewed by audiences in which distinct age group?", "pos": ["The audience and users are the same meaning"], "neg": ["USA is a country", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'", "France is a country", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "French and USA are two countries; Female actors mean that a_gender = 'F'", "isEnglish = 'T' means films in English; Film and movie share the same meaning", "Worst actresses means a_quality is the least; The least a_quality is 0", "Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date", "US and UK are 2 countries"]}} {"set": {"query": "For different directors who direct well, how many of them have directed an action film?", "pos": ["direct well means the quality of directing is good, which means d_quality = 4."], "neg": ["The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "The audience and users are the same meaning", "second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "Female users mean that u_gender = 'F'", "Male users refers to u_gender = 'M'", "The audience and users are the same meaning", "d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors", "French and USA are two countries; Female actors mean that a_gender = 'F'", "Higher value of running time means running time is longer"]}} {"set": {"query": "Which genre contains the greatest number of non-English films?", "pos": ["isEnglish = 'F' means non-English"], "neg": ["d_quality = 5 refers to the best directors, d_quality = 0 refers to the worst directors", "direct well means the quality of directing is good, which means d_quality = 4.", "Male users mean that u_gender = 'M'; France is a country", "English movies refers to isEnglish = 'T'; USA is a country", "not in English can be represented by isEnglish = 'F'", "UK is a country", "France a one country", "USA is a country", "UK is a country; Male actors mean that a_gender = 'M'; Female actors mean that a_gender = 'F'; ratio; ratio of gender in actors = count(a_gender = 'M') / a_gender = 'F'", "US and UK are 2 countries"]}} {"set": {"query": "Which movies have received the greatest ratings from female users whose occupations fall within the category of 3?", "pos": ["Female users mean that u_gender = 'F'"], "neg": ["France is a country", "Male users mean that u_gender = 'M'; France is a country", "The audience and users are the same meaning", "France is a country; year = 4 represents the newest date.", "Higher value of running time means running time is longer", "The audience and users are the same meaning", "UK is a country", "French and USA are two countries; Female actors mean that a_gender = 'F'", "France is a country", "Female actors mean that a_gender = 'F'"]}} {"set": {"query": "Please list the ID of the movie that has been mostly rated by female users.", "pos": ["Female users refers to u_gender = 'F'"], "neg": ["isEnglish = 'F' means non-English", "direct well means the quality of directing is good, which means d_quality = 4.", "Higher value of running time means running time is longer", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "France is a country; year = 4 represents the newest date.", "Worst actresses means a_quality is the least; The least a_quality is 0", "English movies refers to isEnglish = 'T'; USA is a country", "Year contains relative value, higher year value refers to newer date; Year = 1 refer to oldest date", "US and UK are 2 countries", "France is a country"]}} {"set": {"query": "How many American movies have cast number more than 1?", "pos": ["USA is a country"], "neg": ["second newest movies refers to year = 2 since year in this database is a relative value, less is the newer", "Films and movies share the same meaning; oldest film refers to the movie with year = 1", "The audience and users are the same meaning; Difference of female and male audiences = count(female users) - count(male users); Female users refers to u_gender = 'F'; Male users refers to u_gender = 'M'", "France a one country", "direct well means the quality of directing is good, which means d_quality = 4.", "d_quality = 5 refers to direct the best, d_quality = 0 refers to direct the worst", "isEnglish = 'T' means films in English; Film and movie share the same meaning", "France is a country", "isEnglish = 'F' means non-English", "Female users refers to u_gender = 'F'"]}} {"set": {"query": "Which movies have the participation of actor Harrison Ford?", "pos": ["Which movies refers to title; actor refers to person_name"], "neg": ["worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "characters refers to character_name; gender = 'Unspecified'", "most-liked by a large number of people refers to max(popularity)", "director's name refers to person_name where job = 'Director'; released between 1/01/1916 and 12/31/1925 refers to release_date BETWEEN '1916-01-02' AND '1925-12-30'", "most recent movie refers to max(release_date)", "crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "release date of the latest movie refers to max(release_date)", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'"]}} {"set": {"query": "What is the language ID of the movie \"Walk the Line\"?", "pos": ["movie \"Walk the Line\" refers to title = 'Walk the Line'"], "neg": ["genre of thriller refers to genre_name = 'Thriller'", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "name of the production company refers to company_name; most movies refers to max(count(company_name))", "produced in Canada refers to country_name = 'Canada'", "director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "highest popularity refers to max(popularity)", "when the first movie refers to release_date where min(release_date)"]}} {"set": {"query": "Provide the genre ID of the movie with the title of \"The Dark Knight\".", "pos": ["movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'"], "neg": ["crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "horror movies refers to genre_name = 'Horror'", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "Paramount Animation refers to company_name = 'Paramount Animation'", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage", "genre refers to genre_name; lowest revenue refers to min(revenue)", "director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))", "name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "most used keyword refers to keyword_name where max(count(keyword_name))", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'"]}} {"set": {"query": "In Movie No. 19, how many people are there in Department No. 7? Please give me their job.", "pos": ["Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7"], "neg": ["most-liked by a large number of people refers to max(popularity)", "names of the production company refers to movie_company; movie \"Four Rooms\" refers to title = 'Four Rooms'", "characters refers to character_name; gender = 'Unspecified'", "release date of the latest movie refers to max(release_date)", "Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'", "have made at least 1 Billion at the box office refers to revenue > 1000000000"]}} {"set": {"query": "Provide the most used keyword in the movies.", "pos": ["most used keyword refers to keyword_name where max(count(keyword_name))"], "neg": ["first crime movie ever released refers to min(release_date) and genre_name = 'Crime'", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "\"Open Water\" movie refers to title = 'Open Water'", "\"Land of the Dead\" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "movie \"Walk the Line\" refers to title = 'Walk the Line'", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage"]}} {"set": {"query": "Which movies did the company Paramount Pictures produce in 2000?", "pos": ["Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'"], "neg": ["highest popularity refers to max(popularity)", "when the first movie refers to release_date where min(release_date)", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "all companies refers to company_name; movie 'Ultramarines: A Warhammer 40,000 Movie' refers to title = 'Ultramarines: A Warhammer 40,000 Movie'", "name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "language refers to language_name; original language refers to language_role = 'Original'", "movie \"Walk the Line\" refers to title = 'Walk the Line'"]}} {"set": {"query": "Among the zero-budget movie titles, which one has made the highest revenue?", "pos": ["zero-budget refers to budget = 0; highest revenue refers to max(revenue)"], "neg": ["movie \"Four Rooms\" refers to title = 'Four Rooms'", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "department refers to department_name; most people refers to max(count(department_id))", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "\"vi\" as their language code refers to language_code = 'vi'"]}} {"set": {"query": "When was the first movie released?", "pos": ["when the first movie refers to release_date where min(release_date)"], "neg": ["rumoured movie refers to movie_status = 'rumoured'; genre of Drama refers to genre_name = 'Drama'", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "produced in Canada refers to country_name = 'Canada'", "highest vote count refers to max(vote_count)", "have made at least 1 Billion at the box office refers to revenue > 1000000000", "Paramount Animation refers to company_name = 'Paramount Animation'", "genre refers to genre_name; revenue is at least 120,000,000 refers to revenue > = 120000000; between 2012 and 2015 refers to release_date BETWEEN '2012-01-01' AND '2015-12-31'"]}} {"set": {"query": "What is the average revenue made by Latin movies?", "pos": ["Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)"], "neg": ["genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "adventure movies refers to genre_name = 'Adventure'; released in 2000 refers to release_date LIKE '2000%'", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "director's name refers to person_name where job = 'Director'; released between 1/01/1916 and 12/31/1925 refers to release_date BETWEEN '1916-01-02' AND '1925-12-30'", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'"]}} {"set": {"query": "How many horror movies are there?", "pos": ["horror movies refers to genre_name = 'Horror'"], "neg": ["post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "release date of the latest movie refers to max(release_date)", "male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))", "Which keywords refers to keyword_name; highest popularity refers to max(popularity)", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage", "Indian movies refers to country_name = 'India'; between 1/2/1990 and 12/30/2003 refers to release_date BETWEEN '1990-01-02' AND '2003-12-30'; revenue of more than 75,000,000 refers to revenue > 75000000; popularity of no less than 20 refers to popularity > = 20", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "genre of thriller refers to genre_name = 'Thriller'", "department refers to department_name; most people refers to max(count(department_id))", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "Find out the language ID of the movie with the highest popularity.", "pos": ["highest popularity refers to max(popularity)"], "neg": ["directed by refers to job = 'Director'; average budget = AVG(budget)", "income refers to revenue; keyword \"paris\" refers to keyword_name = 'paris'; average income = AVG(revenue)", "genre refers to genre_name; lowest revenue refers to min(revenue)", "male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "directors refers to job = 'Director'; most popular refers to max(popularity)", "movie \"Walk the Line\" refers to title = 'Walk the Line'", "American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "Write down the release date of the movies produced by Twentieth Century Fox Film Corporation.", "pos": ["produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'"], "neg": ["directed by refers to job = 'Director'; average budget = AVG(budget)", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "name of the production company refers to company_name; most movies refers to max(count(company_name))", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "most recent movie refers to max(release_date)"]}} {"set": {"query": "Are there any post-production movies in Nederlands?", "pos": ["post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';"], "neg": ["under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "Indian movies refers to country_name = 'India'; between 1/2/1990 and 12/30/2003 refers to release_date BETWEEN '1990-01-02' AND '2003-12-30'; revenue of more than 75,000,000 refers to revenue > 75000000; popularity of no less than 20 refers to popularity > = 20", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "average number of crews = divide(count(person_id), COUNT(movie_id))", "adventure movies refers to genre_name = 'Adventure'; released in 2000 refers to release_date LIKE '2000%'", "genre of thriller refers to genre_name = 'Thriller'", "most recent movie refers to max(release_date)", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)"]}} {"set": {"query": "What is the average revenue of the movie in which Dariusz Wolski works as the director of photography?", "pos": ["director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))"], "neg": ["names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "most-liked by a large number of people refers to max(popularity)", "made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'", "first crime movie ever released refers to min(release_date) and genre_name = 'Crime'", "American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'"]}} {"set": {"query": "What is the genre of the movie title with the lowest revenue generated?", "pos": ["genre refers to genre_name; lowest revenue refers to min(revenue)"], "neg": ["\"Days of Thunder\" refers to title = 'Days of Thunder'", "name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'", "when the first movie refers to release_date where min(release_date)", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "adventure movies refers to genre_name = 'Adventure'; released in 2000 refers to release_date LIKE '2000%'", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "Indian movies refers to country_name = 'India'; between 1/2/1990 and 12/30/2003 refers to release_date BETWEEN '1990-01-02' AND '2003-12-30'; revenue of more than 75,000,000 refers to revenue > 75000000; popularity of no less than 20 refers to popularity > = 20", "language refers to language_name; original language refers to language_role = 'Original'", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)"]}} {"set": {"query": "Who is the main actor in the \"Pirates of the Caribbean: At World's End\" movie?", "pos": ["main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"], "neg": ["crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "\"Land of the Dead\" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'", "Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'", "most recent movie refers to max(release_date)", "Which production company refers to company_name; most money at the box office refers to max(revenue)", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)"]}} {"set": {"query": "How many adventure movies are there that were released in 2000?", "pos": ["adventure movies refers to genre_name = 'Adventure'; released in 2000 refers to release_date LIKE '2000%'"], "neg": ["iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "released in 1995 refers to release_date LIKE '1995%'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "director's name refers to person_name where job = 'Director'; released between 1/01/1916 and 12/31/1925 refers to release_date BETWEEN '1916-01-02' AND '1925-12-30'", "keyword of \"civil war\" refers to keyword_name = 'civil war'; average revenue = AVG(revenue)", "name of the production company refers to company_name; most movies refers to max(count(company_name))", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'"]}} {"set": {"query": "How many movies have \"vi\" as their language code?", "pos": ["\"vi\" as their language code refers to language_code = 'vi'"], "neg": ["\"Days of Thunder\" refers to title = 'Days of Thunder'", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)", "genre of thriller refers to genre_name = 'Thriller'", "job titles refers to job", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'"]}} {"set": {"query": "List all the keywords with \"christmas\" in them.", "pos": ["keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'"], "neg": ["French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "keyword of \"civil war\" refers to keyword_name = 'civil war'; average revenue = AVG(revenue)", "characters refers to character_name; gender = 'Unspecified'", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage", "first crime movie ever released refers to min(release_date) and genre_name = 'Crime'", "character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "Find out the popularity of the movies with the highest vote count.", "pos": ["highest vote count refers to max(vote_count)"], "neg": ["genre refers to genre_name; lowest revenue refers to min(revenue)", "Which production company refers to company_name; most money at the box office refers to max(revenue)", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "most recent movie refers to max(release_date)", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "keyword of \"angel\" refers to keyword_name = 'angel'", "released before 2000 refers to release_date < '2000-01-01'", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "names of the production company refers to movie_company; movie \"Four Rooms\" refers to title = 'Four Rooms'", "genre of thriller refers to genre_name = 'Thriller'"]}} {"set": {"query": "Write the person ID and character name of casts between order numbers 1 and 10 in Movie No. 285.", "pos": ["casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285"], "neg": ["names refers to person_name; camera supervisors refers to job = 'Camera Supervisor';", "\"Open Water\" movie refers to title = 'Open Water'", "released before 2000 refers to release_date < '2000-01-01'", "rumoured movie refers to movie_status = 'rumoured'; genre of Drama refers to genre_name = 'Drama'", "directed by refers to job = 'Director'", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "highest popularity refers to max(popularity)", "job titles refers to job", "language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'"]}} {"set": {"query": "List the character names in the \"Open Water\" movie.", "pos": ["\"Open Water\" movie refers to title = 'Open Water'"], "neg": ["directed by refers to job = 'Director'; average budget = AVG(budget)", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium'", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "horror movies refers to genre_name = 'Horror'", "keyword of \"video game\" refers to keyword_name = 'video game'", "names refers to person_name; camera supervisors refers to job = 'Camera Supervisor';", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "Which keywords refers to keyword_name; highest popularity refers to max(popularity)"]}} {"set": {"query": "Which movie did the company 'Radiant Film GmbH' work on?", "pos": ["Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'"], "neg": ["average number of crews = divide(count(person_id), COUNT(movie_id))", "names refers to person_name; camera supervisors refers to job = 'Camera Supervisor';", "highest popularity refers to max(popularity)", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "Which movies refers to title; actor refers to person_name", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "genre refers to genre_name; lowest revenue refers to min(revenue)", "genre refers to genre_name; revenue is at least 120,000,000 refers to revenue > = 120000000; between 2012 and 2015 refers to release_date BETWEEN '2012-01-01' AND '2015-12-31'"]}} {"set": {"query": "Calculate the average budget of the movies directed by Jaume Collet-Serra.", "pos": ["directed by refers to job = 'Director'; average budget = AVG(budget)"], "neg": ["\"vi\" as their language code refers to language_code = 'vi'", "Paramount Animation refers to company_name = 'Paramount Animation'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'", "produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "List the names of camera supervisors in the crew.", "pos": ["names refers to person_name; camera supervisors refers to job = 'Camera Supervisor';"], "neg": ["made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "release date of the latest movie refers to max(release_date)", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "average number of crews = divide(count(person_id), COUNT(movie_id))", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "names of the production company refers to movie_company; movie \"Four Rooms\" refers to title = 'Four Rooms'"]}} {"set": {"query": "What is the name of the production company that made the most movies?", "pos": ["name of the production company refers to company_name; most movies refers to max(count(company_name))"], "neg": ["language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "horror movies refers to genre_name = 'Horror'", "Paramount Animation refers to company_name = 'Paramount Animation'", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "most-liked by a large number of people refers to max(popularity)", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "director's name refers to person_name where job = 'Director'; released between 1/01/1916 and 12/31/1925 refers to release_date BETWEEN '1916-01-02' AND '1925-12-30'", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage"]}} {"set": {"query": "What is the percentage of male characters in the movie \"Bride Wars\"?", "pos": ["male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage"], "neg": ["\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "genre refers to genre_name; lowest revenue refers to min(revenue)", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "directed by refers to job = 'Director'", "first crime movie ever released refers to min(release_date) and genre_name = 'Crime'", "\"Open Water\" movie refers to title = 'Open Water'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "release date of the latest movie refers to max(release_date)", "Paramount Animation refers to company_name = 'Paramount Animation'"]}} {"set": {"query": "What is the name of the director of photography of the movie \"Pirates of the Caribbean: At World's End\"?", "pos": ["name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"], "neg": ["language refers to language_name; original language refers to language_role = 'Original'", "Indian movies refers to country_name = 'India'; between 1/2/1990 and 12/30/2003 refers to release_date BETWEEN '1990-01-02' AND '2003-12-30'; revenue of more than 75,000,000 refers to revenue > 75000000; popularity of no less than 20 refers to popularity > = 20", "the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'", "director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "released in 1995 refers to release_date LIKE '1995%'", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "directed by refers to job = 'Director'; average budget = AVG(budget)"]}} {"set": {"query": "How many movies released in 1995 did Quentin Tarantino appear in?", "pos": ["released in 1995 refers to release_date LIKE '1995%'"], "neg": ["names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "job titles refers to job", "when the first movie refers to release_date where min(release_date)", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "\"Open Water\" movie refers to title = 'Open Water'", "the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'", "movie \"Four Rooms\" refers to title = 'Four Rooms'", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "most common first name refers to max(count(person_name))", "ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium'"]}} {"set": {"query": "How many movies were directed by Michael Bay?", "pos": ["directed by refers to job = 'Director'"], "neg": ["produced in Canada refers to country_name = 'Canada'", "character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'", "language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "released before 2000 refers to release_date < '2000-01-01'", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "\"Open Water\" movie refers to title = 'Open Water'", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "How many production companies does the movie \"Four Rooms\" have?", "pos": ["movie \"Four Rooms\" refers to title = 'Four Rooms'"], "neg": ["from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "rumoured movie refers to movie_status = 'rumoured'; genre of Drama refers to genre_name = 'Drama'", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "adventure movies refers to genre_name = 'Adventure'; released in 2000 refers to release_date LIKE '2000%'", "name of the production company refers to company_name; most movies refers to max(count(company_name))"]}} {"set": {"query": "How many Indian movies between 1/2/1990 and 12/30/2003 have revenue of more than 75,000,000 and popularity of no less than 20?", "pos": ["Indian movies refers to country_name = 'India'; between 1/2/1990 and 12/30/2003 refers to release_date BETWEEN '1990-01-02' AND '2003-12-30'; revenue of more than 75,000,000 refers to revenue > 75000000; popularity of no less than 20 refers to popularity > = 20"], "neg": ["male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))", "directed by refers to job = 'Director'", "names refers to person_name; camera supervisors refers to job = 'Camera Supervisor';", "most recent movie refers to max(release_date)", "genre refers to genre_name; lowest revenue refers to min(revenue)", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)", "when the first movie refers to release_date where min(release_date)"]}} {"set": {"query": "What percentage of movies that came from Japan belong in the 'animation' genre?", "pos": ["from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage"], "neg": ["most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium'", "the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'", "Which movies refers to title; actor refers to person_name", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "For movies with the keyword of \"civil war\", calculate the average revenue generated by these movies.", "pos": ["keyword of \"civil war\" refers to keyword_name = 'civil war'; average revenue = AVG(revenue)"], "neg": ["Which movies refers to title; actor refers to person_name", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "\"vi\" as their language code refers to language_code = 'vi'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "horror movies refers to genre_name = 'Horror'", "genre refers to genre_name; lowest revenue refers to min(revenue)", "produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)", "Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)"]}} {"set": {"query": "Give the genre and popularity of movies whose revenue is at least 120,000,000 between 2012 and 2015.", "pos": ["genre refers to genre_name; revenue is at least 120,000,000 refers to revenue > = 120000000; between 2012 and 2015 refers to release_date BETWEEN '2012-01-01' AND '2015-12-31'"], "neg": ["Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "released in 1995 refers to release_date LIKE '1995%'", "\"Land of the Dead\" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'", "all companies refers to company_name; movie 'Ultramarines: A Warhammer 40,000 Movie' refers to title = 'Ultramarines: A Warhammer 40,000 Movie'", "Paramount Animation refers to company_name = 'Paramount Animation'", "made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'", "male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))"]}} {"set": {"query": "What are the genres of Sky Captain and the World of Tomorrow?", "pos": ["genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'"], "neg": ["language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "directed by refers to job = 'Director'; average budget = AVG(budget)", "release date of the latest movie refers to max(release_date)", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "keyword of \"civil war\" refers to keyword_name = 'civil war'; average revenue = AVG(revenue)", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'"]}} {"set": {"query": "What are the top 5 most popular movie directors?", "pos": ["directors refers to job = 'Director'; most popular refers to max(popularity)"], "neg": ["language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "keyword of \"video game\" refers to keyword_name = 'video game'", "most-liked by a large number of people refers to max(popularity)", "Paramount Animation refers to company_name = 'Paramount Animation'", "most recent movie refers to max(release_date)", "Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'", "director's name refers to person_name where job = 'Director'; released between 1/01/1916 and 12/31/1925 refers to release_date BETWEEN '1916-01-02' AND '1925-12-30'", "made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'"]}} {"set": {"query": "List down the movies produced by Lucasfilm.", "pos": ["movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'"], "neg": ["released in 1995 refers to release_date LIKE '1995%'", "Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "horror movies refers to genre_name = 'Horror'", "keyword of \"video game\" refers to keyword_name = 'video game'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "keyword of \"angel\" refers to keyword_name = 'angel'", "most-liked by a large number of people refers to max(popularity)"]}} {"set": {"query": "Please list the names of the production company of the movie \"Four Rooms\".", "pos": ["names of the production company refers to movie_company; movie \"Four Rooms\" refers to title = 'Four Rooms'"], "neg": ["name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'", "average number of crews = divide(count(person_id), COUNT(movie_id))", "American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "directors refers to job = 'Director'; most popular refers to max(popularity)", "Which movies refers to title; actor refers to person_name", "movie \"Four Rooms\" refers to title = 'Four Rooms'", "keyword of \"video game\" refers to keyword_name = 'video game'", "Indian movies refers to country_name = 'India'; between 1/2/1990 and 12/30/2003 refers to release_date BETWEEN '1990-01-02' AND '2003-12-30'; revenue of more than 75,000,000 refers to revenue > 75000000; popularity of no less than 20 refers to popularity > = 20"]}} {"set": {"query": "What is the most common keyword among all the movies released in 2006?", "pos": ["most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'"], "neg": ["release date of the latest movie refers to max(release_date)", "genre of thriller refers to genre_name = 'Thriller'", "characters refers to character_name; gender = 'Unspecified'", "Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium'", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "keyword of \"video game\" refers to keyword_name = 'video game'", "produced in Canada refers to country_name = 'Canada'"]}} {"set": {"query": "For the movie \"Land of the Dead\", who is its director?", "pos": ["\"Land of the Dead\" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'"], "neg": ["produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)", "names of the production company refers to movie_company; movie \"Four Rooms\" refers to title = 'Four Rooms'", "keyword of \"video game\" refers to keyword_name = 'video game'", "movie \"Walk the Line\" refers to title = 'Walk the Line'", "released before 2000 refers to release_date < '2000-01-01'", "Indian movies refers to country_name = 'India'; between 1/2/1990 and 12/30/2003 refers to release_date BETWEEN '1990-01-02' AND '2003-12-30'; revenue of more than 75,000,000 refers to revenue > 75000000; popularity of no less than 20 refers to popularity > = 20", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "highest popularity refers to max(popularity)", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'"]}} {"set": {"query": "Find the difference in percentage of the movies under keywords of \"woman director\" and \"independent film\".", "pos": ["under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage"], "neg": ["movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)", "highest vote count refers to max(vote_count)", "characters refers to character_name; gender = 'Unspecified'", "made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'", "produced in Canada refers to country_name = 'Canada'", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "Which movies refers to title; actor refers to person_name", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "movie \"Walk the Line\" refers to title = 'Walk the Line'"]}} {"set": {"query": "List 10 crews alongside their jobs who worked on the movie 'Mad Max: Fury Road.'", "pos": ["crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'"], "neg": ["directed by refers to job = 'Director'; average budget = AVG(budget)", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "Paramount Animation refers to company_name = 'Paramount Animation'", "highest vote count refers to max(vote_count)", "average number of crews = divide(count(person_id), COUNT(movie_id))", "\"Land of the Dead\" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'", "job titles refers to job", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'"]}} {"set": {"query": "For all the movies which were produced by Cruel and Unusual Films, which one has the most popularity?", "pos": ["produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)"], "neg": ["main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "genre of thriller refers to genre_name = 'Thriller'", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "Paramount Animation refers to company_name = 'Paramount Animation'", "most common first name refers to max(count(person_name))", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)", "Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)"]}} {"set": {"query": "What is the gender of the character 'USAF Master Sgt. Epps?'", "pos": ["character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'"], "neg": ["genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "released before 2000 refers to release_date < '2000-01-01'", "American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)", "produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)", "released in 1995 refers to release_date LIKE '1995%'", "Paramount Animation refers to company_name = 'Paramount Animation'", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "genre refers to genre_name; revenue is at least 120,000,000 refers to revenue > = 120000000; between 2012 and 2015 refers to release_date BETWEEN '2012-01-01' AND '2015-12-31'", "most common first name refers to max(count(person_name))", "Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)"]}} {"set": {"query": "Provide the ID and ISO code of Belgium.", "pos": ["ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium'"], "neg": ["most-liked by a large number of people refers to max(popularity)", "language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "job titles refers to job", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "department refers to department_name; most people refers to max(count(department_id))", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'"]}} {"set": {"query": "What is the most common first name?", "pos": ["most common first name refers to max(count(person_name))"], "neg": ["adventure movies refers to genre_name = 'Adventure'; released in 2000 refers to release_date LIKE '2000%'", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "keyword of \"video game\" refers to keyword_name = 'video game'", "released before 2000 refers to release_date < '2000-01-01'", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'", "language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'"]}} {"set": {"query": "Look for the movie title with the keyword of \"angel\".", "pos": ["keyword of \"angel\" refers to keyword_name = 'angel'"], "neg": ["when the first movie refers to release_date where min(release_date)", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "characters refers to character_name; gender = 'Unspecified'", "release date of the latest movie refers to max(release_date)", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "all companies refers to company_name; movie 'Ultramarines: A Warhammer 40,000 Movie' refers to title = 'Ultramarines: A Warhammer 40,000 Movie'", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "most-liked by a large number of people refers to max(popularity)", "first crime movie ever released refers to min(release_date) and genre_name = 'Crime'"]}} {"set": {"query": "Provide the average revenue of all the French movies.", "pos": ["French movies refers to country_name = 'France'; average revenue = AVG(revenue)"], "neg": ["\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "most-liked by a large number of people refers to max(popularity)", "Which production company refers to company_name; most money at the box office refers to max(revenue)", "language refers to language_name; original language refers to language_role = 'Original'", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)", "highest popularity refers to max(popularity)", "rumoured movie refers to movie_status = 'rumoured'; genre of Drama refers to genre_name = 'Drama'"]}} {"set": {"query": "How many movies have made at least 1 Billion at the box office?", "pos": ["have made at least 1 Billion at the box office refers to revenue > 1000000000"], "neg": ["adventure movies refers to genre_name = 'Adventure'; released in 2000 refers to release_date LIKE '2000%'", "job titles refers to job", "names of the production company refers to movie_company; movie \"Four Rooms\" refers to title = 'Four Rooms'", "most common first name refers to max(count(person_name))", "Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'", "crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)", "director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))"]}} {"set": {"query": "Accumulate the budget of the movie titles with the keyword of \"video game\".", "pos": ["keyword of \"video game\" refers to keyword_name = 'video game'"], "neg": ["zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "directors refers to job = 'Director'; most popular refers to max(popularity)", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "Which movies refers to title; actor refers to person_name", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "all companies refers to company_name; movie 'Ultramarines: A Warhammer 40,000 Movie' refers to title = 'Ultramarines: A Warhammer 40,000 Movie'", "genre refers to genre_name; lowest revenue refers to min(revenue)", "American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)", "most-liked by a large number of people refers to max(popularity)"]}} {"set": {"query": "Which department has the most people?", "pos": ["department refers to department_name; most people refers to max(count(department_id))"], "neg": ["name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "most recent movie refers to max(release_date)", "release date of the latest movie refers to max(release_date)", "horror movies refers to genre_name = 'Horror'"]}} {"set": {"query": "Among the movie in which Dariusz Wolski works as the director of photography, what is the title of the one with the highest average vote?", "pos": ["director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)"], "neg": ["directed by refers to job = 'Director'", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "release date of the latest movie refers to max(release_date)", "\"vi\" as their language code refers to language_code = 'vi'", "genre refers to genre_name; revenue is at least 120,000,000 refers to revenue > = 120000000; between 2012 and 2015 refers to release_date BETWEEN '2012-01-01' AND '2015-12-31'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "movie \"Four Rooms\" refers to title = 'Four Rooms'", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'"]}} {"set": {"query": "How many female characters are there in the movie \"Spider-Man 3\"?", "pos": ["female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'"], "neg": ["\"vi\" as their language code refers to language_code = 'vi'", "keyword of \"video game\" refers to keyword_name = 'video game'", "genre of thriller refers to genre_name = 'Thriller'", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)", "Which movies refers to title; actor refers to person_name", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'"]}} {"set": {"query": "What is the average revenue of American movies in 2006?", "pos": ["American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)"], "neg": ["movie \"Walk the Line\" refers to title = 'Walk the Line'", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'", "average number of crews = divide(count(person_id), COUNT(movie_id))", "income refers to revenue; keyword \"paris\" refers to keyword_name = 'paris'; average income = AVG(revenue)", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'"]}} {"set": {"query": "What keyword can the user use to search for the movie Finding Nemo?", "pos": ["What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'"], "neg": ["\"vi\" as their language code refers to language_code = 'vi'", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "name of the production company refers to company_name; most movies refers to max(count(company_name))", "department refers to department_name; most people refers to max(count(department_id))", "most recent movie refers to max(release_date)", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)"]}} {"set": {"query": "How many crew members worked as producer in the movie \"Pirates of the Caribbean: At World's End\"?", "pos": ["worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"], "neg": ["casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "keyword of \"angel\" refers to keyword_name = 'angel'", "Which production company refers to company_name; most money at the box office refers to max(revenue)", "American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "\"Open Water\" movie refers to title = 'Open Water'", "Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "keyword of \"video game\" refers to keyword_name = 'video game'", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "When was the release date of the latest movie in which Dariusz Wolski worked as a crew member?", "pos": ["release date of the latest movie refers to max(release_date)"], "neg": ["the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))", "Paramount Animation refers to company_name = 'Paramount Animation'", "genre refers to genre_name; lowest revenue refers to min(revenue)", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "most common first name refers to max(count(person_name))", "Indian movies refers to country_name = 'India'; between 1/2/1990 and 12/30/2003 refers to release_date BETWEEN '1990-01-02' AND '2003-12-30'; revenue of more than 75,000,000 refers to revenue > 75000000; popularity of no less than 20 refers to popularity > = 20", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'"]}} {"set": {"query": "Calculate the revenues made by Fantasy Films and Live Entertainment.", "pos": ["made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'"], "neg": ["crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "\"Land of the Dead\" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'", "highest vote count refers to max(vote_count)", "directors refers to job = 'Director'; most popular refers to max(popularity)", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "highest popularity refers to max(popularity)", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'", "\"vi\" as their language code refers to language_code = 'vi'", "names of the production company refers to movie_company; movie \"Four Rooms\" refers to title = 'Four Rooms'", "income refers to revenue; keyword \"paris\" refers to keyword_name = 'paris'; average income = AVG(revenue)"]}} {"set": {"query": "What is the title of Jamie Foxx's most recent movie?", "pos": ["most recent movie refers to max(release_date)"], "neg": ["ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium'", "movie \"Walk the Line\" refers to title = 'Walk the Line'", "release date of the latest movie refers to max(release_date)", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "Which movies refers to title; actor refers to person_name", "genre refers to genre_name; revenue is at least 120,000,000 refers to revenue > = 120000000; between 2012 and 2015 refers to release_date BETWEEN '2012-01-01' AND '2015-12-31'", "directed by refers to job = 'Director'; average budget = AVG(budget)", "director's name refers to person_name where job = 'Director'; released between 1/01/1916 and 12/31/1925 refers to release_date BETWEEN '1916-01-02' AND '1925-12-30'", "Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'"]}} {"set": {"query": "Who is the director for the movie 'Transformers?'", "pos": ["the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'"], "neg": ["ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium'", "most common first name refers to max(count(person_name))", "Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "genre refers to genre_name; lowest revenue refers to min(revenue)", "first crime movie ever released refers to min(release_date) and genre_name = 'Crime'", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage"]}} {"set": {"query": "Which production company produced the movie that made the most money at the box office?", "pos": ["Which production company refers to company_name; most money at the box office refers to max(revenue)"], "neg": ["the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'", "most recent movie refers to max(release_date)", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "\"vi\" as their language code refers to language_code = 'vi'", "Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'"]}} {"set": {"query": "What is the ratio between male and female cast members of the movie 'Iron Man?' Count how many have unspecified genders.", "pos": ["male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))"], "neg": ["produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "first crime movie ever released refers to min(release_date) and genre_name = 'Crime'", "released before 2000 refers to release_date < '2000-01-01'", "most used keyword refers to keyword_name where max(count(keyword_name))", "movie \"Walk the Line\" refers to title = 'Walk the Line'", "Which production company refers to company_name; most money at the box office refers to max(revenue)", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "keyword of \"video game\" refers to keyword_name = 'video game'", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'"]}} {"set": {"query": "What is the iso code of \"Kyrgyz Republic\"?", "pos": ["iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'"], "neg": ["most used keyword refers to keyword_name where max(count(keyword_name))", "Which production company refers to company_name; most money at the box office refers to max(revenue)", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "income refers to revenue; keyword \"paris\" refers to keyword_name = 'paris'; average income = AVG(revenue)", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage", "release date of the latest movie refers to max(release_date)", "directed by refers to job = 'Director'; average budget = AVG(budget)", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "characters refers to character_name; gender = 'Unspecified'"]}} {"set": {"query": "Tell the language of the movie \"C'era una volta il West\".", "pos": ["language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'"], "neg": ["\"Land of the Dead\" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'", "produced in Canada refers to country_name = 'Canada'", "Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "movie \"Walk the Line\" refers to title = 'Walk the Line'", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "released in 1995 refers to release_date LIKE '1995%'"]}} {"set": {"query": "What is the title of the first crime movie ever released?", "pos": ["first crime movie ever released refers to min(release_date) and genre_name = 'Crime'"], "neg": ["\"Open Water\" movie refers to title = 'Open Water'", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "Which movies refers to title; actor refers to person_name", "character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'", "language refers to language_name; original language refers to language_role = 'Original'", "keyword of \"angel\" refers to keyword_name = 'angel'", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "most common first name refers to max(count(person_name))", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)"]}} {"set": {"query": "List the director's name of the movies released between 1/01/1916 and 12/31/1925.", "pos": ["director's name refers to person_name where job = 'Director'; released between 1/01/1916 and 12/31/1925 refers to release_date BETWEEN '1916-01-02' AND '1925-12-30'"], "neg": ["male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))", "directed by refers to job = 'Director'; average budget = AVG(budget)", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "movie \"Walk the Line\" refers to title = 'Walk the Line'", "most recent movie refers to max(release_date)", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "highest popularity refers to max(popularity)", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "produced in Canada refers to country_name = 'Canada'"]}} {"set": {"query": "What is the original language of the movie with the tagline \"An offer you can't refuse.\"?", "pos": ["language refers to language_name; original language refers to language_role = 'Original'"], "neg": ["keyword of \"video game\" refers to keyword_name = 'video game'", "\"Open Water\" movie refers to title = 'Open Water'", "\"Land of the Dead\" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'", "keyword of \"civil war\" refers to keyword_name = 'civil war'; average revenue = AVG(revenue)", "most used keyword refers to keyword_name where max(count(keyword_name))", "male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "Which movies refers to title; actor refers to person_name", "income refers to revenue; keyword \"paris\" refers to keyword_name = 'paris'; average income = AVG(revenue)", "genre of thriller refers to genre_name = 'Thriller'"]}} {"set": {"query": "How many movies were produced in Canada?", "pos": ["produced in Canada refers to country_name = 'Canada'"], "neg": ["zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "when the first movie refers to release_date where min(release_date)", "most-liked by a large number of people refers to max(popularity)", "department refers to department_name; most people refers to max(count(department_id))", "directed by refers to job = 'Director'", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "released before 2000 refers to release_date < '2000-01-01'", "Paramount Animation refers to company_name = 'Paramount Animation'"]}} {"set": {"query": "What is the average number of crews for a movie?", "pos": ["average number of crews = divide(count(person_id), COUNT(movie_id))"], "neg": ["IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "keyword of \"angel\" refers to keyword_name = 'angel'", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "American movies refers to country_name = 'United States of America'; in 2006 refers to release_date LIKE '2006%'; average revenue = AVG(revenue)", "characters refers to character_name; gender = 'Unspecified'", "directed by refers to job = 'Director'; average budget = AVG(budget)", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)"]}} {"set": {"query": "Provide the homepage of the Bahasa Indonesia movies.", "pos": ["Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'"], "neg": ["keyword of \"civil war\" refers to keyword_name = 'civil war'; average revenue = AVG(revenue)", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "most recent movie refers to max(release_date)", "released in 1995 refers to release_date LIKE '1995%'", "\"Land of the Dead\" refers to title = 'Land of the Dead'; director refers to person_name where job = 'Director'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'"]}} {"set": {"query": "Give the number of movies with \"saving the world\" as the keyword.", "pos": ["\"saving the world\" as the keyword refers to keyword_name = 'saving the world'"], "neg": ["Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)", "highest vote count refers to max(vote_count)", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "all companies refers to company_name; movie 'Ultramarines: A Warhammer 40,000 Movie' refers to title = 'Ultramarines: A Warhammer 40,000 Movie'", "name of the director of photography refers to person_name where job = 'Director of Photography'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "post-production movies refers to movie_status = 'Post Production'; Nederlands refers to language_name = 'Nederlands';"]}} {"set": {"query": "List the job titles of Sally Menke in the crew.", "pos": ["job titles refers to job"], "neg": ["highest vote count refers to max(vote_count)", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "directed by refers to job = 'Director'; average budget = AVG(budget)", "directors refers to job = 'Director'; most popular refers to max(popularity)", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "name of the production company refers to company_name; most movies refers to max(count(company_name))", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "genre of thriller refers to genre_name = 'Thriller'", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7"]}} {"set": {"query": "Provide the title of the movie that is most-liked by a large number of people.", "pos": ["most-liked by a large number of people refers to max(popularity)"], "neg": ["characters refers to character_name; gender = 'Unspecified'", "directed by refers to job = 'Director'", "keyword of \"civil war\" refers to keyword_name = 'civil war'; average revenue = AVG(revenue)", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "average number of crews = divide(count(person_id), COUNT(movie_id))"]}} {"set": {"query": "Please list the names of all the producers in the movie \"Pirates of the Caribbean: At World's End\".", "pos": ["names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"], "neg": ["produced in Canada refers to country_name = 'Canada'", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "most-liked by a large number of people refers to max(popularity)", "director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'", "directed by refers to job = 'Director'; average budget = AVG(budget)", "names of the production company refers to movie_company; movie \"Four Rooms\" refers to title = 'Four Rooms'"]}} {"set": {"query": "State the genre of the movie title with a runtime of only 14 minutes.", "pos": ["genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14"], "neg": ["most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "average number of crews = divide(count(person_id), COUNT(movie_id))", "Which keywords refers to keyword_name; highest popularity refers to max(popularity)", "language refers to language_name; original language refers to language_role = 'Original'", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "directed by refers to job = 'Director'", "name of the production company refers to company_name; most movies refers to max(count(company_name))", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "List down the movie titles within the genre of thriller.", "pos": ["genre of thriller refers to genre_name = 'Thriller'"], "neg": ["director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "released in 1995 refers to release_date LIKE '1995%'", "made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "keyword of \"angel\" refers to keyword_name = 'angel'", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "Which keywords refers to keyword_name; highest popularity refers to max(popularity)", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage"]}} {"set": {"query": "Write down five rumoured movie titles within the genre of Drama.", "pos": ["rumoured movie refers to movie_status = 'rumoured'; genre of Drama refers to genre_name = 'Drama'"], "neg": ["made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "all companies refers to company_name; movie 'Ultramarines: A Warhammer 40,000 Movie' refers to title = 'Ultramarines: A Warhammer 40,000 Movie'", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "Paramount Animation refers to company_name = 'Paramount Animation'", "movie \"Four Rooms\" refers to title = 'Four Rooms'", "Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'"]}} {"set": {"query": "List down five movie titles that were released before 2000.", "pos": ["released before 2000 refers to release_date < '2000-01-01'"], "neg": ["worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "directed by refers to job = 'Director'; average budget = AVG(budget)", "most used keyword refers to keyword_name where max(count(keyword_name))", "character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'", "male refers to gender = 'Male'; \"Bride Wars\" refers to title = 'Bride Wars'; percentage = divide(sum(gender = 'Male'), count(gender)) * 100 as percentage", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "Which production company refers to company_name; most money at the box office refers to max(revenue)", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "highest popularity refers to max(popularity)", "movie \"Four Rooms\" refers to title = 'Four Rooms'"]}} {"set": {"query": "Show the total number of keywords of the movie \"I Hope They Serve Beer in Hell\".", "pos": ["\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';"], "neg": ["Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'", "movie \"Walk the Line\" refers to title = 'Walk the Line'", "Paramount Animation refers to company_name = 'Paramount Animation'", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "Which movies refers to title; actor refers to person_name", "have made at least 1 Billion at the box office refers to revenue > 1000000000", "Which keywords refers to keyword_name; highest popularity refers to max(popularity)", "characters refers to character_name; gender = 'Unspecified'", "rumoured movie refers to movie_status = 'rumoured'; genre of Drama refers to genre_name = 'Drama'", "highest popularity refers to max(popularity)"]}} {"set": {"query": "List down the IDs of the production companies that released the movies in 1916.", "pos": ["IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'"], "neg": ["Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "when the first movie refers to release_date where min(release_date)", "movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285", "rumoured movie refers to movie_status = 'rumoured'; genre of Drama refers to genre_name = 'Drama'", "Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)", "\"vi\" as their language code refers to language_code = 'vi'", "worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "released before 2000 refers to release_date < '2000-01-01'"]}} {"set": {"query": "What is Walt Disney Pictures' most popular movie?", "pos": ["Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)"], "neg": ["director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'", "language refers to language_name; original language refers to language_role = 'Original'", "produced by Twentieth Century Fox Film Corporation refers to company_name = 'Twentieth Century Fox Film Corporation'", "director of photography refers to job = 'Director of Photography'; average revenue = divide(sum(revenue), count(movie_id))", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "genre refers to genre_name; lowest revenue refers to min(revenue)", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "most recent movie refers to max(release_date)"]}} {"set": {"query": "Which keywords belong to the movie titles with the highest popularity?", "pos": ["Which keywords refers to keyword_name; highest popularity refers to max(popularity)"], "neg": ["worked as producer refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "keyword of \"civil war\" refers to keyword_name = 'civil war'; average revenue = AVG(revenue)", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7", "What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "keyword of \"video game\" refers to keyword_name = 'video game'", "Walt Disney Pictures refers to company_name = 'Walt Disney Pictures'; most popular movie refers to max(popularity)"]}} {"set": {"query": "Which character did Orlando Bloom play in the movie Pirates of the Caribbean: The Curse of the Black Pearl?", "pos": ["Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'"], "neg": ["movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "\"Open Water\" movie refers to title = 'Open Water'", "keywords with \"christmas\" in them refers to keyword_name LIKE '%christmas%'", "when the first movie refers to release_date where min(release_date)", "job titles refers to job", "Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)", "Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'", "made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'", "language refers to language_name; original language refers to language_role = 'Original'"]}} {"set": {"query": "What was David Rubin's job in the movie \"Days of Thunder\"?", "pos": ["\"Days of Thunder\" refers to title = 'Days of Thunder'"], "neg": ["movie \"Four Rooms\" refers to title = 'Four Rooms'", "language refers to language_name; movie \"C'era una volta il West\" refers to title = 'C''era una volta il West'", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium'", "horror movies refers to genre_name = 'Horror'", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "have made at least 1 Billion at the box office refers to revenue > 1000000000", "rumoured movie refers to movie_status = 'rumoured'; genre of Drama refers to genre_name = 'Drama'", "most recent movie refers to max(release_date)", "adventure movies refers to genre_name = 'Adventure'; released in 2000 refers to release_date LIKE '2000%'"]}} {"set": {"query": "Provide the names and departments of the person who worked as a music editor in the \"Pirates of the Caribbean: At World's End\" movie.", "pos": ["names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"], "neg": ["French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "ID refers to country_id; ISO code refers to country_iso_code; Belgium refers to country_name = 'Belgium'", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)", "horror movies refers to genre_name = 'Horror'", "movies refers to title; produced by Lucasfil refers to company_name = 'Lucasfilm'", "produced in Canada refers to country_name = 'Canada'", "job titles refers to job", "produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "What was the job of Dariusz Wolski in the movie \"Pirates of the Caribbean: At World's End\"?", "pos": ["movie \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"], "neg": ["genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "Which movies refers to title; actor refers to person_name", "characters refers to character_name; gender = 'Unspecified'", "movie with the title of \"The Dark Knight\" refers to title = 'The Dark Knight'", "keyword of \"video game\" refers to keyword_name = 'video game'", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "Movie No. 19 refers to movie_id = 19; Department No. 7 refers to department_id = 7", "Bahasa Indonesia movies refers to language_name = 'Bahasa indonesia'", "produced by Cruel and Unusual Films refers to company_name = 'Cruel and Unusual Films'; most popularity refers to max(popularity)"]}} {"set": {"query": "Tell the number of movies made by Paramount Animation.", "pos": ["Paramount Animation refers to company_name = 'Paramount Animation'"], "neg": ["genre refers to genre_name; revenue is at least 120,000,000 refers to revenue > = 120000000; between 2012 and 2015 refers to release_date BETWEEN '2012-01-01' AND '2015-12-31'", "the director refers to person_name where job = 'Director'; movie 'Transformers' refers to title = 'Transformers'", "most recent movie refers to max(release_date)", "directed by refers to job = 'Director'; average budget = AVG(budget)", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "female characters refer to gender = 'Female'; \"Spider-Man 3\" refers to title = 'Spider-Man 3'", "Which keywords refers to keyword_name; highest popularity refers to max(popularity)", "male refers to gender = 'Male'; female refers to gender = 'Female'; movie 'Iron Man' refers to title = 'Iron Man'; ratio = divide(sum(gender = 'Female'), sum(gender = 'Male'))", "most common first name refers to max(count(person_name))", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'"]}} {"set": {"query": "Calculate the average income made by movies using the keyword \"paris\". List the title of the movies.", "pos": ["income refers to revenue; keyword \"paris\" refers to keyword_name = 'paris'; average income = AVG(revenue)"], "neg": ["job titles refers to job", "crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "made by Fantasy Films refers to company_name = 'Fantasy Films'; Live Entertainment refers to company_name = 'Live Entertainment'", "genres refers to genre_name; Sky Captain and the World of Tomorrow refers to title = 'Sky Captain and the World of Tomorrow'", "under keywords of \"woman director\" and \"independent film\" refers to keyword_name = 'woman director' and keyword_name = 'independent film'; difference in percentage = divide(subtract(count(movie_id) when keyword_name = 'woman director', count(movie_id) when keyword_name = 'independent film'), count(movie_id)) as percentage", "genre refers to genre_name; runtime of only 14 minutes refers to runtime = 14", "IDs of the production companies refers to company_id; movies in 1916 refers to release_date LIKE '1916%'", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "all companies refers to company_name; movie 'Ultramarines: A Warhammer 40,000 Movie' refers to title = 'Ultramarines: A Warhammer 40,000 Movie'", "casts between order numbers 1 and 10 refers to cast_order BETWEEN 2 AND 9; Movie No. 285 refers to movie_id = 285"]}} {"set": {"query": "Name the horror movies with positive ratings greater than 7.", "pos": ["Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7"], "neg": ["What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'", "French movies refers to country_name = 'France'; average revenue = AVG(revenue)", "Which production company refers to company_name; most money at the box office refers to max(revenue)", "zero-budget refers to budget = 0; highest revenue refers to max(revenue)", "names refers to person_name; departments refers to department_name; worked as a music editor refers to job = 'Music Editor'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "Which movie refers to title; company 'Radiant Film GmbH' refers to company_name = 'Radiant Film GmbH'", "directed by refers to job = 'Director'", "movie \"Four Rooms\" refers to title = 'Four Rooms'", "Latin movies refers to language_name = 'Latin'; average revenue = AVG(revenue)", "main actor refers to person_name where Min(cast_order); \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "List all the unspecified gender characters.", "pos": ["characters refers to character_name; gender = 'Unspecified'"], "neg": ["highest vote count refers to max(vote_count)", "released in 1995 refers to release_date LIKE '1995%'", "most common first name refers to max(count(person_name))", "highest popularity refers to max(popularity)", "\"I Hope They Serve Beer in Hell\" refers to title = 'I Hope They Serve Beer in Hell';", "\"saving the world\" as the keyword refers to keyword_name = 'saving the world'", "character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'", "first crime movie ever released refers to min(release_date) and genre_name = 'Crime'", "Paramount Animation refers to company_name = 'Paramount Animation'", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'"]}} {"set": {"query": "List all companies who worked in the movie 'Ultramarines: A Warhammer 40,000 Movie.'", "pos": ["all companies refers to company_name; movie 'Ultramarines: A Warhammer 40,000 Movie' refers to title = 'Ultramarines: A Warhammer 40,000 Movie'"], "neg": ["character 'USAF Master Sgt. Epps' refers to character_name = 'USAF Master Sgt. Epps'", "crews refers to person_name; movie 'Mad Max: Fury Road' refers to title = 'Mad Max: Fury Road'", "have made at least 1 Billion at the box office refers to revenue > 1000000000", "highest popularity refers to max(popularity)", "\"Days of Thunder\" refers to title = 'Days of Thunder'", "names refers to person_name; producers refers to job = 'Producer'; \"Pirates of the Caribbean: At World's End\" refers to title = 'Pirates of the Caribbean: At World''s End'", "from Japan refers to country_name = 'Japan'; in the 'animation' genre refers to genre_name = 'animation'; percentage = divide(sum(movie_id) when genre_name = 'animation', count(movie_id)) as percentage", "most common keyword refers to max(count(keyword_name)); movies released in 2006 refers to release_date LIKE '%2006%'", "iso code refers to country_iso_code; \"Kyrgyz Republic\" refers to country_name = 'Kyrgyz Republic'", "director of photography refers to job = 'Director of Photography'; highest average vote refers to max(vote_average)"]}} {"set": {"query": "Name all the podcast title and its category with average rating of more than 3.0.", "pos": ["average rating of more than 3.0 refers to avg(rating) > 3.0"], "neg": ["fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "category 'arts-performing-arts' refers to category = 'arts-performing-arts';", "\"Planet Money\" is the title of podcast", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "review refers to content; longest review refers to Max(content)"]}} {"set": {"query": "Of the arts-books and arts-design categories, which one has more podcasts and what is the numerical difference between them?", "pos": ["arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))"], "neg": ["created in last six months of 2016 refers to created_at BETWEEN '2016-07-01T00:00:00-07:00' and '2016-12-31T23:59:59-07:00'", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "category 'arts-performing-arts' refers to category = 'arts-performing-arts';", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "two-stars review refers to rating = 2"]}} {"set": {"query": "List all reviews created in May 2019. State the title of podcast and review rating.", "pos": ["created in May 2019 refers to created_at like '2019-05%'"], "neg": ["\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "reviewer whose id is EFB34EAC8E9397C refers to author_id = 'EFB34EAC8E9397C'", "two-stars review refers to rating = 2", "review refers to content; longest review refers to Max(content)", "\"Planet Money\" is the title of podcast", "average rating of more than 3.0 refers to avg(rating) > 3.0", "comment refers to review; 'Long time listener, calling it quits' is the title of review;\u00a0 name of the podcast refers to title of podcast; URL refers to itunes_url", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))"]}} {"set": {"query": "Provide the itunes id and url for podcast titled 'Brown Suga Diaries'.", "pos": ["url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast"], "neg": ["Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id", "podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "entitled refers to title; 'Sitcomadon' is the title of podcast", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'", "category art refers to category = 'arts'; average rating = Divide (Sum (rating), Count (podcast_id))", "review refers to content; longest review refers to Max(content)"]}} {"set": {"query": "What is the rating and category of the podcast entitled Sitcomadon?", "pos": ["entitled refers to title; 'Sitcomadon' is the title of podcast"], "neg": ["average rating of more than 3.0 refers to avg(rating) > 3.0", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "two-stars review refers to rating = 2", "Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "\"Inspired & On Fire\" refers to title of review", "created in May 2019 refers to created_at like '2019-05%'", "\"Scaling Global\" is the title of podcast", "\"Planet Money\" is the title of podcast"]}} {"set": {"query": "What is the review with the title \"Hosts bring the show down\" for?", "pos": ["\"Hosts bring the show down\" refers to title of review"], "neg": ["\"Inspired & On Fire\" refers to title of review", "podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'", "\"crime-junkie\" podcast refers to title = 'crime-junkie'; average rating = Divide (Sum(rating), Count(rating))", "created in May 2019 refers to created_at like '2019-05%'", "\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "review refers to content; longest review refers to Max(content)"]}} {"set": {"query": "Which titles have the content \"love\" but the category is art produced between 2018 and 2019.", "pos": ["content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019"], "neg": ["music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "reviewer whose id is EFB34EAC8E9397C refers to author_id = 'EFB34EAC8E9397C'", "Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id", "art category refers to category = 'arts'", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))"]}} {"set": {"query": "Indicate the slug and the itunes url of the podcast whose review content was written Can't stop listening.", "pos": ["review content was written Can't stop listening refers to content = 'Can't stop listening'"], "neg": ["\"Planet Money\" is the title of podcast", "\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "\"Scaling Global\" is the title of podcast", "content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "review refers to content; longest review refers to Max(content)"]}} {"set": {"query": "Please list the titles of all the podcasts under the category \"arts-performing-arts\".", "pos": ["category 'arts-performing-arts' refers to category = 'arts-performing-arts';"], "neg": ["podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "worst rating refers to rating = 1", "two-stars review refers to rating = 2", "\"In The Thick\" is the title of podcast; author refers to author_id; creation date refers to created_at", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019", "review content was written Can't stop listening refers to content = 'Can't stop listening'"]}} {"set": {"query": "Among the reviews for the podcast \"Please Excuse My Dead Aunt Sally\", how many of them are made in the year 2019?", "pos": ["\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'"], "neg": ["average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "review content was written Can't stop listening refers to content = 'Can't stop listening'", "worst rating refers to rating = 1", "average rating of more than 3.0 refers to avg(rating) > 3.0", "created in May 2019 refers to created_at like '2019-05%'", "two-stars review refers to rating = 2", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "created in last six months of 2016 refers to created_at BETWEEN '2016-07-01T00:00:00-07:00' and '2016-12-31T23:59:59-07:00'"]}} {"set": {"query": "What is the content of the earliest review for the \"Stuff You Should Know\" podcast?", "pos": ["\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)"], "neg": ["url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "\"Scaling Global\" is the title of podcast", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "\"Inspired & On Fire\" refers to title of review", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "comment refers to review; 'Long time listener, calling it quits' is the title of review;\u00a0 name of the podcast refers to title of podcast; URL refers to itunes_url", "\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "worst rating refers to rating = 1", "Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id"]}} {"set": {"query": "For all reviews with the worst rating, state the podcast title as well as the review title and content.", "pos": ["worst rating refers to rating = 1"], "neg": ["\"Scaling Global\" is the title of podcast", "\"In The Thick\" is the title of podcast; author refers to author_id; creation date refers to created_at", "\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "review refers to content; longest review refers to Max(content)", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "category art refers to category = 'arts'; average rating = Divide (Sum (rating), Count (podcast_id))", "comment refers to review; 'Long time listener, calling it quits' is the title of review;\u00a0 name of the podcast refers to title of podcast; URL refers to itunes_url", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))"]}} {"set": {"query": "How many podcast reviews with a rating of 3 were created during the first quarter of 2015?", "pos": ["rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'"], "neg": ["review content was written Can't stop listening refers to content = 'Can't stop listening'", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "\"Planet Money\" is the title of podcast", "category 'arts-performing-arts' refers to category = 'arts-performing-arts';", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "\"Inspired & On Fire\" refers to title of review", "entitled refers to title; 'Sitcomadon' is the title of podcast"]}} {"set": {"query": "What is the longest review?", "pos": ["review refers to content; longest review refers to Max(content)"], "neg": ["\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "\"Inspired & On Fire\" refers to title of review", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "worst rating refers to rating = 1", "\"Planet Money\" is the title of podcast", "review content was written Can't stop listening refers to content = 'Can't stop listening'", "art category refers to category = 'arts'", "\"In The Thick\" is the title of podcast; author refers to author_id; creation date refers to created_at"]}} {"set": {"query": "What are the titles and categories of all the podcasts with a review that has \"Absolutely fantastic\" in it?", "pos": ["review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'"], "neg": ["art category refers to category = 'arts'", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "category 'arts-performing-arts' refers to category = 'arts-performing-arts';", "worst rating refers to rating = 1", "Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "\"Hosts bring the show down\" refers to title of review"]}} {"set": {"query": "Find the author, rating and review creation date of review for podcast title 'In The Thick'.", "pos": ["\"In The Thick\" is the title of podcast; author refers to author_id; creation date refers to created_at"], "neg": ["review refers to content; longest review refers to Max(content)", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "reviewer whose id is EFB34EAC8E9397C refers to author_id = 'EFB34EAC8E9397C'", "review content was written Can't stop listening refers to content = 'Can't stop listening'", "Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100", "comment refers to review; 'Long time listener, calling it quits' is the title of review;\u00a0 name of the podcast refers to title of podcast; URL refers to itunes_url", "content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url"]}} {"set": {"query": "What percentage of podcasts are \"technology\" podcasts? List all of them.", "pos": ["\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100"], "neg": ["arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))", "\"Scaling Global\" is the title of podcast", "podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "\"Scaling Global\" is the title of podcast", "\"Hosts bring the show down\" refers to title of review", "\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "worst rating refers to rating = 1", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast"]}} {"set": {"query": "List all content reviewed for podcast with the best rating under the 'fiction' category. State the podcast title.", "pos": ["'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content"], "neg": ["art category refers to category = 'arts'", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "\"Scaling Global\" is the title of podcast", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "created in last six months of 2016 refers to created_at BETWEEN '2016-07-01T00:00:00-07:00' and '2016-12-31T23:59:59-07:00'", "\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100", "\"In The Thick\" is the title of podcast; author refers to author_id; creation date refers to created_at", "\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))"]}} {"set": {"query": "What is the average rating of all the podcasts in category art?", "pos": ["category art refers to category = 'arts'; average rating = Divide (Sum (rating), Count (podcast_id))"], "neg": ["\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "average rating of more than 3.0 refers to avg(rating) > 3.0", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "entitled refers to title; 'Sitcomadon' is the title of podcast", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "worst rating refers to rating = 1", "arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))"]}} {"set": {"query": "Write all the review titles and the contents belonging to the podcast 'More Stupider: A 90-Day Fiance Podcast' with a review rating of 1.", "pos": ["podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1"], "neg": ["review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "category art refers to category = 'arts'; average rating = Divide (Sum (rating), Count (podcast_id))", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "\"Scaling Global\" is the title of podcast", "\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "\"crime-junkie\" podcast refers to title = 'crime-junkie'; average rating = Divide (Sum(rating), Count(rating))", "average rating of more than 3.0 refers to avg(rating) > 3.0", "art category refers to category = 'arts'", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))"]}} {"set": {"query": "To which categories do the podcasts of the reviewer whose id is EFB34EAC8E9397C belong?", "pos": ["reviewer whose id is EFB34EAC8E9397C refers to author_id = 'EFB34EAC8E9397C'"], "neg": ["podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'", "category 'arts-performing-arts' refers to category = 'arts-performing-arts';", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))", "\"Hosts bring the show down\" refers to title of review", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url"]}} {"set": {"query": "List the titles of the art category.", "pos": ["art category refers to category = 'arts'"], "neg": ["\"Planet Money\" is the title of podcast", "review refers to content; longest review refers to Max(content)", "category 'arts-performing-arts' refers to category = 'arts-performing-arts';", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id", "created in May 2019 refers to created_at like '2019-05%'", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "\"In The Thick\" is the title of podcast; author refers to author_id; creation date refers to created_at", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'"]}} {"set": {"query": "Write the names of the podcasts in the music category that have a rating greater than 3.", "pos": ["music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title"], "neg": ["\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url"]}} {"set": {"query": "Which \"music\" podcast has the longest title?", "pos": ["music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))"], "neg": ["created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "average rating of more than 3.0 refers to avg(rating) > 3.0", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "entitled refers to title; 'Sitcomadon' is the title of podcast", "\"Planet Money\" is the title of podcast", "worst rating refers to rating = 1", "\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1"]}} {"set": {"query": "What is the percentage of reviews added each year of the total reviews added?", "pos": ["review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100"], "neg": ["review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))", "\"In The Thick\" is the title of podcast; author refers to author_id; creation date refers to created_at", "\"Planet Money\" is the title of podcast", "\"Scaling Global\" is the title of podcast", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'", "review refers to content; longest review refers to Max(content)", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))"]}} {"set": {"query": "List all the podcasts reviewed by a reviewer who has a review titled \"Inspired & On Fire!\".", "pos": ["\"Inspired & On Fire\" refers to title of review"], "neg": ["rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "art category refers to category = 'arts'", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'", "created in last six months of 2016 refers to created_at BETWEEN '2016-07-01T00:00:00-07:00' and '2016-12-31T23:59:59-07:00'", "created in May 2019 refers to created_at like '2019-05%'", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))"]}} {"set": {"query": "Calculate the average rating of the true crime category.", "pos": ["average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))"], "neg": ["\"Inspired & On Fire\" refers to title of review", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "art category refers to category = 'arts'", "podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "\"Hosts bring the show down\" refers to title of review", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'"]}} {"set": {"query": "How many reviews does \"Planet Money\" have?", "pos": ["\"Planet Money\" is the title of podcast"], "neg": ["review content was written Can't stop listening refers to content = 'Can't stop listening'", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "average rating of more than 3.0 refers to avg(rating) > 3.0", "\"crime-junkie\" podcast refers to title = 'crime-junkie'; average rating = Divide (Sum(rating), Count(rating))", "\"Inspired & On Fire\" refers to title of review", "art category refers to category = 'arts'", "\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'", "review refers to content; longest review refers to Max(content)"]}} {"set": {"query": "What is the average rating of the podcast \"Please Excuse My Dead Aunt Sally\"?", "pos": ["\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))"], "neg": ["\"Inspired & On Fire\" refers to title of review", "\"Stuff You Should Know\" is the title of podcast; earliest refers to Min(created_at)", "entitled refers to title; 'Sitcomadon' is the title of podcast", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "\"Scaling Global\" is the title of podcast", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "comment refers to review; 'Long time listener, calling it quits' is the title of review;\u00a0 name of the podcast refers to title of podcast; URL refers to itunes_url"]}} {"set": {"query": "What is the average rating for the \"crime-junkie\" podcast?", "pos": ["\"crime-junkie\" podcast refers to title = 'crime-junkie'; average rating = Divide (Sum(rating), Count(rating))"], "neg": ["category 'arts-performing-arts' refers to category = 'arts-performing-arts';", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "created in last six months of 2016 refers to created_at BETWEEN '2016-07-01T00:00:00-07:00' and '2016-12-31T23:59:59-07:00'", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "\"Scaling Global\" is the title of podcast", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "category art refers to category = 'arts'; average rating = Divide (Sum (rating), Count (podcast_id))", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "reviewer whose id is EFB34EAC8E9397C refers to author_id = 'EFB34EAC8E9397C'"]}} {"set": {"query": "What is the average rating of all the podcasts with reviews created in 2019?", "pos": ["created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))"], "neg": ["average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "\"Inspired & On Fire\" refers to title of review", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019", "\"Scaling Global\" is the title of podcast", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title"]}} {"set": {"query": "Which category is the podcast \"Scaling Global\" under?", "pos": ["\"Scaling Global\" is the title of podcast"], "neg": ["art category refers to category = 'arts'", "\"In The Thick\" is the title of podcast; author refers to author_id; creation date refers to created_at", "\"Inspired & On Fire\" refers to title of review", "created in May 2019 refers to created_at like '2019-05%'", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "category art refers to category = 'arts'; average rating = Divide (Sum (rating), Count (podcast_id))", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "created in last six months of 2016 refers to created_at BETWEEN '2016-07-01T00:00:00-07:00' and '2016-12-31T23:59:59-07:00'", "\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100", "\"crime-junkie\" podcast refers to title = 'crime-junkie'; average rating = Divide (Sum(rating), Count(rating))"]}} {"set": {"query": "List the urls for all the \"fiction-science-fiction\" podcasts.", "pos": ["fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url"], "neg": ["'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "average rating of more than 3.0 refers to avg(rating) > 3.0", "Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "category art refers to category = 'arts'; average rating = Divide (Sum (rating), Count (podcast_id))", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "review content was written Can't stop listening refers to content = 'Can't stop listening'", "\"Inspired & On Fire\" refers to title of review"]}} {"set": {"query": "List the authors who created review for podcast titled 'Pop Rocket' in 2016 with rating less than 5.", "pos": ["Pop Rocket' is the title of podcast; in 2016 refers to created_at like'2016%'; rating less than 5 refers to rating < 5; author refers to author_id"], "neg": ["fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "reviewer whose id is EFB34EAC8E9397C refers to author_id = 'EFB34EAC8E9397C'", "\"Scaling Global\" is the title of podcast", "arts-books' and 'arts-design' are category; numerical difference = Subtract(Count(podcast_id(category = 'arts-books')), Count(podcast_id(category = 'arts-design'))); one has much more podcast refers to Max(Count(podcast_id))", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "\"crime-junkie\" podcast refers to title = 'crime-junkie'; average rating = Divide (Sum(rating), Count(rating))", "created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "\"Scaling Global\" is the title of podcast", "content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast"]}} {"set": {"query": "Which category does the podcast titled 'SciFi Tech Talk' belong to?", "pos": ["podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'"], "neg": ["'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content", "music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "\"Scaling Global\" is the title of podcast", "\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100", "two-stars review refers to rating = 2", "reviewer whose id is EFB34EAC8E9397C refers to author_id = 'EFB34EAC8E9397C'", "\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "content love refers to content = 'love'; 'arts' is the category; produced between 2018 and 2019 refers to year (created_at) BETWEEN 2018 and 2019", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))"]}} {"set": {"query": "How many reviews are created for the podcast \"Scaling Global\" under?", "pos": ["\"Scaling Global\" is the title of podcast"], "neg": ["comment refers to review; 'Long time listener, calling it quits' is the title of review;\u00a0 name of the podcast refers to title of podcast; URL refers to itunes_url", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "\"Please Excuse My Dead Aunty Sally\" is the title of podcast; Average rating = Divide (Sum(rating), Count(rating))", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "average rating of more than 3.0 refers to avg(rating) > 3.0", "category 'arts-performing-arts' refers to category = 'arts-performing-arts';", "\"Scaling Global\" is the title of podcast", "review refers to content; longest review refers to Max(content)", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "'fiction' is the category name; best rating refers to rating = 5; content reviewed refers to content"]}} {"set": {"query": "What is the name of the podcast in which a commentor left a comment with the title 'Long time listener, calling it quits?' Include the URL of the podcast as well.", "pos": ["comment refers to review; 'Long time listener, calling it quits' is the title of review;\u00a0 name of the podcast refers to title of podcast; URL refers to itunes_url"], "neg": ["podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "\"Scaling Global\" is the title of podcast", "fiction-science-fiction podcasts refers to category = 'fiction-science-fiction'; urls refers to itunes_url", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'", "\"Inspired & On Fire\" refers to title of review", "average rating of more than 3.0 refers to avg(rating) > 3.0", "average rating = Divide (Sum(rating(category = 'true-crime')), Count(podcast_id(category = 'true-crime')))", "rating of 3 refers to rating = 3; created during the first quarter of 2015 refers to created_at BETWEEN'2015-01-01T00:00:00-07:00' and '2015-03-31T23:59:59-07:00'", "\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'"]}} {"set": {"query": "List all of the two-star reviews and their categories.", "pos": ["two-stars review refers to rating = 2"], "neg": ["created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'", "category 'arts-performing-arts' refers to category = 'arts-performing-arts';", "created in May 2019 refers to created_at like '2019-05%'", "category art refers to category = 'arts'; average rating = Divide (Sum (rating), Count (podcast_id))", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "\"Scaling Global\" is the title of podcast", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "\"Scaling Global\" is the title of podcast", "comment refers to review; 'Long time listener, calling it quits' is the title of review;\u00a0 name of the podcast refers to title of podcast; URL refers to itunes_url", "podcast titled 'SciFi Tech Talk' refers to title = 'SciFi Tech Talk'"]}} {"set": {"query": "What are the titles of the podcasts whose reviews were created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00?", "pos": ["created between 2018-08-22T11:53:16-07:00 and 2018-11-20T11:14:20-07:00 refers to created at BETWEEN '2018-08-22T11:53:16-07:00' and '2018-11-20T11:14:20-07:00'"], "neg": ["music category refers to category = 'music'; rating greater than 3 refers to rating > 3; name of the podcast refers to title", "podcast 'More Stupider: A 90-Day Fiance Podcast'\u00a0 refers to title = 'More Stupider: A 90-Day Fiance Podcast'; rating of 1 refers to rating = 1", "url refers to itunes_url; 'Brown Suga Diaries' is the title of podcast", "\"In The Thick\" is the title of podcast; author refers to author_id; creation date refers to created_at", "music podcasts refers to category = 'music'; longest title refers to title = Max(length(title))", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "art category refers to category = 'arts'", "\"Hosts bring the show down\" refers to title of review", "\"technology\" podcast refers to category = 'technology'; percentage = Divide (Count (podcast_id (category = 'technology')), Count (podcast_id)) * 100", "created in May 2019 refers to created_at like '2019-05%'"]}} {"set": {"query": "In how many categories were podcast reviews created in the last six months of 2016? List them.", "pos": ["created in last six months of 2016 refers to created_at BETWEEN '2016-07-01T00:00:00-07:00' and '2016-12-31T23:59:59-07:00'"], "neg": ["\"crime-junkie\" podcast refers to title = 'crime-junkie'; average rating = Divide (Sum(rating), Count(rating))", "review added each year refers to runs_at like '2021%' and runs_at like '2022%'; percentage for 2021 = Divide (Sum(reviews_added(runs_at like '2021%)), Sum(reviews_added)) * 100; percentage of 2022 = Divide (Sum(reviews_added(runs_at like '2022%')), Sum(reviews_added)) * 100", "created in 2019 refers to created_at BETWEEN '2019-01-01T00:00:00' and '2019-12-31T23:59:59'; average rating\u00a0 = Divide (Sum(rating), Count(podcast_id))", "worst rating refers to rating = 1", "\"Hosts bring the show down\" refers to title of review", "review refers to content; 'Absolutely fantastic' in it refers to content like '%Absolutely fantastic%'", "\"Please Excuse My Dead Aunt Sally\" is the title of podcast; made in the year 2019 refers to created_at like '2019%'", "\"Planet Money\" is the title of podcast", "\"Inspired & On Fire\" refers to title of review", "two-stars review refers to rating = 2"]}} {"set": {"query": "Among the artists from 1980 to 1982. Which artist was tagged as \"disco\"?", "pos": ["from 1980 to 1982 refers to groupYear between 1980 and 1982; tag = 'disco';"], "neg": ["releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;", "releaseType = 'single'; downloaded at least 20 refers to totalSnatched \u2265 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;", "tag = 'pop';", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "releaseType = 'single';", "releaseType = 'single'; between 1980 to 1982 refers to groupYear between 1980 and 1982;", "the most singles refer to MAX(COUNT(releaseType = 'single'));", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');"]}} {"set": {"query": "Indicates groups with id from 10 to 20 with singles downloaded at least 20.", "pos": ["releaseType = 'single'; downloaded at least 20 refers to totalSnatched \u2265 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;"], "neg": ["the most singles refer to MAX(COUNT(releaseType = 'single'));", "2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);", "from 1980 to 1982 refers to groupYear between 1980 and 1982; tag = 'disco';", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "the most downloaded refers to MAX(totalSnatched); tag = 'jazz'; from 1982 or later refers to groupYear \u2265 1982;", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;"]}} {"set": {"query": "In 1980, how many singles were released by sugar daddy?", "pos": ["sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;"], "neg": ["releaseType = 'single'; groupYear = 1979;", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);", "groupYear = 2000; album refers to releaseType;", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');"]}} {"set": {"query": "Among id from 10 to 50. Which artist tagged as \"new.york\" has the most downloads?", "pos": ["Among id from 10 to 50 refers to id between 10 and 50; tag = 'new.york'; the most downloads refer to MAX(totalSnatched);"], "neg": ["release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;", "release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);", "2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);", "releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "the most downloaded refers to MAX(totalSnatched); tag = 'jazz'; from 1982 or later refers to groupYear \u2265 1982;", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "releaseType = 'single';"]}} {"set": {"query": "From 1980 to 2000, which artist had the most disco releases?", "pos": ["From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));"], "neg": ["the most downloaded refers to MAX(totalSnatched); tag = 'jazz'; from 1982 or later refers to groupYear \u2265 1982;", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');", "releaseType = 'single';", "releaseType = 'single'; between 1980 to 1982 refers to groupYear between 1980 and 1982;", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "Among id from 10 to 50 refers to id between 10 and 50; tag = 'new.york'; the most downloads refer to MAX(totalSnatched);", "album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;"]}} {"set": {"query": "Among the artists with the id from 10 to 30. Which artist released the product with the tag \"funk\" in 1980?", "pos": ["id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;"], "neg": ["releaseType = 'single'; between 1980 to 1982 refers to groupYear between 1980 and 1982;", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));", "groupYear = 2000; album refers to releaseType;", "tag = 'pop';", "releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;", "2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);", "kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;"]}} {"set": {"query": "How many singles were released between 1979 and 1981 labeled as \"soul\"?", "pos": ["releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';"], "neg": ["the most singles refer to MAX(COUNT(releaseType = 'single'));", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');", "release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);", "sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "releaseType = 'single'; groupYear = 1979;", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;"]}} {"set": {"query": "From 1979 to 1982, what was the percentage of united.states albums out of total albums were released?", "pos": ["From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;"], "neg": ["release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;", "releaseType = 'single';", "sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;", "releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;", "the most downloaded refers to MAX(totalSnatched); tag = 'jazz'; from 1982 or later refers to groupYear \u2265 1982;", "album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "releaseType = 'single'; between 1980 to 1982 refers to groupYear between 1980 and 1982;"]}} {"set": {"query": "Which artists have released singles with the tag 1970s?", "pos": ["releaseType = 'single';"], "neg": ["releaseType = 'single'; groupYear = 1979;", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "releaseType = 'single'; between 1980 to 1982 refers to groupYear between 1980 and 1982;", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "tag = 'pop';", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;", "album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);"]}} {"set": {"query": "What is the tag and the artist of the most downloaded single?", "pos": ["the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');"], "neg": ["the most downloaded refers to MAX(totalSnatched); tag = 'jazz'; from 1982 or later refers to groupYear \u2265 1982;", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "tag = 'pop';", "2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);", "releaseType = 'single';", "album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "groupYear = 2000; album refers to releaseType;"]}} {"set": {"query": "What are the tags of the release \"sugarhill gang\"?", "pos": ["release \"sugarhill gang\" refers to groupName = 'sugarhill gang';"], "neg": ["millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "Among id from 10 to 50 refers to id between 10 and 50; tag = 'new.york'; the most downloads refer to MAX(totalSnatched);", "the most singles refer to MAX(COUNT(releaseType = 'single'));", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "from 1980 to 1982 refers to groupYear between 1980 and 1982; tag = 'disco';", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "tag = 'pop';", "kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;"]}} {"set": {"query": "How many albums and Single-Tables were released by the artist named '50 cent' between 2010 and 2015?", "pos": ["albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;"], "neg": ["id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "the most singles refer to MAX(COUNT(releaseType = 'single'));", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "from 1980 to 1982 refers to groupYear between 1980 and 1982; tag = 'disco';", "releaseType = 'single'; between 1980 to 1982 refers to groupYear between 1980 and 1982;", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));", "groupYear = 2000; album refers to releaseType;"]}} {"set": {"query": "What is the tag of the album with the highest amount of downloads?", "pos": ["album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);"], "neg": ["release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);", "sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;", "tag = 'pop';", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "groupYear = 2000; album refers to releaseType;"]}} {"set": {"query": "How many times was the album released by blowfly in 1980 downloaded?", "pos": ["blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;"], "neg": ["2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);", "tag = 'pop';", "release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;", "releaseType = 'single'; downloaded at least 20 refers to totalSnatched \u2265 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;", "releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));", "releaseType = 'single';"]}} {"set": {"query": "Please list the releases that have been downloaded for more than 20000 times.", "pos": ["releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;"], "neg": ["album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "groupYear = 2000; album refers to releaseType;", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "from 1980 to 1982 refers to groupYear between 1980 and 1982; tag = 'disco';", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "tag = 'pop';"]}} {"set": {"query": "Which album title and tag that millie jackson released in 1980?", "pos": ["millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;"], "neg": ["id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "releaseType = 'single'; downloaded at least 20 refers to totalSnatched \u2265 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;", "release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');", "sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;"]}} {"set": {"query": "Please list all tags of kurtis blow from 2000 to 2010.", "pos": ["kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;"], "neg": ["sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "the most downloaded refers to MAX(totalSnatched); tag = 'jazz'; from 1982 or later refers to groupYear \u2265 1982;", "releaseType = 'single'; downloaded at least 20 refers to totalSnatched \u2265 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;", "release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);", "2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');", "album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "releaseType = 'single';"]}} {"set": {"query": "Among the releases that were released in 2000, how many of them were released as an album and tagged \"pop\"?", "pos": ["groupYear = 2000; album refers to releaseType;"], "neg": ["tag = 'pop';", "releaseType = 'single';", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "releaseType = 'single'; groupYear = 1979;", "From 1979 to 1982 refers to groupYear between 1979 and 1982; United States refer to tag; albums refer to releaseType; DIVIDE(COUNT(releaseType = 'album' where tag = 'united.states' and groupYear between 1979 and 1982), COUNT(releaseType = 'album' where groupYear between 1979 and 1982)) as percentage;", "sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;"]}} {"set": {"query": "What is the release title of the single that was released by Ron Hunt in 1979 that was downloaded 239 times?", "pos": ["release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;"], "neg": ["blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "releaseType = 'single';", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);", "tag = 'pop';", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');"]}} {"set": {"query": "How many singles were released in 1979?", "pos": ["releaseType = 'single'; groupYear = 1979;"], "neg": ["the most singles refer to MAX(COUNT(releaseType = 'single'));", "groupYear = 2000; album refers to releaseType;", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "tag = 'pop';"]}} {"set": {"query": "What is the release title of the single under the \"funk\" tag that was released the oldest?", "pos": ["release title of single refers to groupName where releaseType = 'single'; the oldest means coming before all others in time and refers to MIN(groupYear);"], "neg": ["album refers to releaseType; the highest amount of downloads refers to MAX(totalSnatched);", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "releaseType = 'single'; downloaded at least 20 refers to totalSnatched \u2265 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "the most downloaded refers to MAX(totalSnatched); tag = 'jazz'; from 1982 or later refers to groupYear \u2265 1982;", "sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;", "the most singles refer to MAX(COUNT(releaseType = 'single'));"]}} {"set": {"query": "How many releases by the artist michael jackson are tagged \"pop\"?", "pos": ["tag = 'pop';"], "neg": ["albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;", "groupYear = 2000; album refers to releaseType;", "the most singles refer to MAX(COUNT(releaseType = 'single'));", "releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;", "sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;", "from 1980 to 1982 refers to groupYear between 1980 and 1982; tag = 'disco';"]}} {"set": {"query": "Which artist has released the most singles with the tag \"soul\"?", "pos": ["the most singles refer to MAX(COUNT(releaseType = 'single'));"], "neg": ["release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "tag = 'pop';", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');", "2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);", "Among id from 10 to 50 refers to id between 10 and 50; tag = 'new.york'; the most downloads refer to MAX(totalSnatched);", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;"]}} {"set": {"query": "Which artist released singles between 1980 to 1982?", "pos": ["releaseType = 'single'; between 1980 to 1982 refers to groupYear between 1980 and 1982;"], "neg": ["releaseType = 'single'; groupYear = 1979;", "from 1980 to 1982 refers to groupYear between 1980 and 1982; tag = 'disco';", "releaseType = 'single'; downloaded at least 20 refers to totalSnatched \u2265 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;", "releases refer to groupName; downloaded for more than 20000 times refers to totalSnatched > 20000;", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "Among id from 10 to 50 refers to id between 10 and 50; tag = 'new.york'; the most downloads refer to MAX(totalSnatched);", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));"]}} {"set": {"query": "An American rapper '2Pac' released his first solo album in 1991, how many years have passed until his next album was released?", "pos": ["2Pac is an artist; album refers to releaseType; groupYear = 1991; SUBTRACT(groupYear = 1991, groupYear where releaseType = 'album' LIMIT 1 OFFSET 1);"], "neg": ["sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));", "releaseType = 'single'; downloaded at least 20 refers to totalSnatched \u2265 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;", "the most singles refer to MAX(COUNT(releaseType = 'single'));", "release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "releaseType = 'single'; between 1980 to 1982 refers to groupYear between 1980 and 1982;", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;"]}} {"set": {"query": "List the group name has the most downloaded that have released jazz genres from 1982 or later.", "pos": ["the most downloaded refers to MAX(totalSnatched); tag = 'jazz'; from 1982 or later refers to groupYear \u2265 1982;"], "neg": ["from 1980 to 1982 refers to groupYear between 1980 and 1982; tag = 'disco';", "blowfly is an artist; groupYear = 1980; album refers to releaseType; downloaded refers to totalSnatched;", "releaseType = 'single'; groupYear = 1979;", "release \"sugarhill gang\" refers to groupName = 'sugarhill gang';", "releaseType = 'single';", "tag = 'pop';", "releaseType = 'single'; between 1979 and 1981 refers to groupYear between 1979 and 1981; tag = 'soul';", "release titles of the \"ep's\" refer to groupName where releaseType = 'ep';", "the most downloaded single refers to MAX(totalSnatched where releaseType = 'single');", "groupYear = 2000; album refers to releaseType;"]}} {"set": {"query": "Name all the release titles of the \"ep's\" under the alternative tag.", "pos": ["release titles of the \"ep's\" refer to groupName where releaseType = 'ep';"], "neg": ["sugar daddy is an artist; releaseType = 'single'; groupYear = 1980;", "groupYear = 2000; album refers to releaseType;", "millie jackson is an artist; album title refers to groupName where releaseType = 'album'; groupYear = 1980;", "id from 10 to 30 refers to id between 10 and 30; groupYear = 1980;", "releaseType = 'single'; downloaded at least 20 refers to totalSnatched \u2265 20; id from 10 to 20 refer to id between 10 and 20; groups refer to groupName;", "albums refer to releaseType = 'album'; releaseType = 'single'; between 2010 and 2015 refers to groupYear between 2010 and 2015;", "release title refers to groupName; Ron Hunt is an artist; groupYear = 1979; releaseType = 'single'; downloaded 239 times refer to totalSnatched = 239;", "kurtis blow is an artist; from 2000 to 2010 refers to groupYear between 2000 and 2010;", "From 1980 to 2000 refers to groupYear between 1980 and 2000; tag = 'disco'; the most releases refer to MAX(COUNT(id));", "the most singles refer to MAX(COUNT(releaseType = 'single'));"]}} {"set": {"query": "When John Aalberg took part in the 1994 Winter Olympic Game, how old was he?", "pos": ["how old was he refers to age; 1994 Winter refers to games_name = '1994 Winter';"], "neg": ["London refers to city_name = 'London';", "swimming refers to sport_name = 'Swimming';", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';", "cities beginning with the letter M refer to city_name LIKE 'M%';", "Roma refers to city_name = 'Roma'; When host refers to games_year;", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "name of the cities refers to city_name", "AVG(weight) where region_name = 'Tonga' and gender = 'M';", "events refer to event_name; football refers to sport_name = 'Football';"]}} {"set": {"query": "What is the name of the Olympic game with the most competitors held in Barcelona?", "pos": ["Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;"], "neg": ["competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';", "Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));", "name refers to full_name; the oldest refers to MAX(age);", "over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "sport refers to sport_name; event \"Shooting Women's Trap\" refers to event_name = 'Shooting Women''s Trap';", "Where competitor is from refers to region_name;", "region refers to region_name; NOC code \"COL\" refers to noc = 'COL';", "DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';"]}} {"set": {"query": "In which cities beginning with the letter M have the Olympic Games been held?", "pos": ["cities beginning with the letter M refer to city_name LIKE 'M%';"], "neg": ["competitor who weighted 73 kg and 180 cm tall refers to person_id where height = 180 and weight = 73;", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "Roma refers to city_name = 'Roma'; When host refers to games_year;", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "events refer to event_name; football refers to sport_name = 'Football';", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';"]}} {"set": {"query": "How many Olympic competitors are from Finland?", "pos": ["competitors refer to person_id; from Finland refers to region_name = 'Finland';"], "neg": ["fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';", "SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;", "DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "At what age join the Olympics refers to MIN(age);", "games refer to games_id;", "name of the cities refers to city_name", "kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "name of games refers to games_name;", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';"]}} {"set": {"query": "Who is the youngest competitor that participated in 2014 Winter?", "pos": ["the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';"], "neg": ["Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';", "kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));", "gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';", "DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';", "2012 Summer refers to games_name = '2012 Summer';", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';"]}} {"set": {"query": "Among the competitors with age ranges 24 and below, calculate the difference between the number of competitors who weighed greater than 70 kg and competitors who weighted less than 70 kg.", "pos": ["SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;"], "neg": ["DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';", "games refer to games_id;", "DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);", "DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II';", "AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "gold medals refer to medal_name = 'Gold';", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';"]}} {"set": {"query": "How many kinds of events belong to the sport of cycling?", "pos": ["kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';"], "neg": ["age is the most numerous refers to age where MAX(COUNT(person_id));", "athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));", "Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "the largest number of women participation refers to MAX(COUNT(gender = 'F')); In which Olympic Games refer to games_year;", "city refers to city_name; in 1992 refers to games_year = 1992;", "name refers to full_name; the oldest refers to MAX(age);", "gold medals refer to medal_name = 'Gold';", "fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';"]}} {"set": {"query": "What is the average height of the male Olympic competitors from Finland?", "pos": ["DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';"], "neg": ["gold medals refer to medal_name = 'Gold';", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "AVG(weight) where region_name = 'Tonga' and gender = 'M';", "Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';"]}} {"set": {"query": "What is the name of medal that competitor id 9 obtained?", "pos": ["name of medal refers to medal_name;"], "neg": ["from Guatemala refers to region_name = 'Guatemala';", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "AVG(weight) where region_name = 'Tonga' and gender = 'M';", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);", "cities beginning with the letter M refer to city_name LIKE 'M%';", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "At what age join the Olympics refers to MIN(age);", "years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';", "host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';"]}} {"set": {"query": "Provide hockey's sport id.", "pos": ["hockey's sport refers to sport_name = 'hockey';"], "neg": ["At what age join the Olympics refers to MIN(age);", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);", "athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));", "Where competitor is from refers to region_name;", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';", "Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;", "name refers to full_name; the oldest refers to MAX(age);"]}} {"set": {"query": "How many athletes playing in Canoeing fall into overweight BMI category in the 2008 Summer games?", "pos": ["fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';"], "neg": ["gold medals refer to medal_name = 'Gold';", "AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';", "name of medal refers to medal_name;", "DIVIDE(weight), MULTIPLY(height, height) where id = 147420;", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));", "the heaviest athlete refers to full_name where MAX(weight); from Russia refers to region_name = 'Russia';", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);"]}} {"set": {"query": "Where is competitor Estelle Nze Minko from?", "pos": ["Where competitor is from refers to region_name;"], "neg": ["DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';", "Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));", "NOC code refers to noc; the heaviest refers to MAX(weight);", "host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';", "the gold medal refers to medal_name = 'Gold';", "hockey's sport refers to sport_name = 'hockey';"]}} {"set": {"query": "What is the id of Rio de Janeiro?", "pos": ["Rio de Janeiro refers to city_name = 'Rio de Janeiro';"], "neg": ["name refers to full_name; Greece refers to region_name = 'Greece';", "name of city refers to city_name", "games refer to games_id;", "name of his/her region refers to region_name;", "gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';", "city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "year refers to games_year;", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';"]}} {"set": {"query": "How many athletes from region 151 have won a medal?", "pos": ["athletes refer to person_id; region 151 refers to region_id = 151; won a medal refers to medal_id <> 4;"], "neg": ["the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "name of city refers to city_name", "name of the cities refers to city_name", "competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';", "Modern Pentathlon refers to sport_name = 'Modern Pentathlon';", "from Guatemala refers to region_name = 'Guatemala';", "host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';", "DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';", "events refer to event_name; football refers to sport_name = 'Football';", "20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';"]}} {"set": {"query": "How many males from Belgium have participated in an Olympic Games?", "pos": ["males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';"], "neg": ["Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "gold medals refer to medal_name = 'Gold';", "from Guatemala refers to region_name = 'Guatemala';", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "name refers to full_name; the youngest refers to MIN(age);", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';"]}} {"set": {"query": "How many athlete from China participate in the 2016 Summer Olympics?", "pos": ["athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';"], "neg": ["games refer to games_id;", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "AVG(height) where age BETWEEN 22 AND 28;", "SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;", "the 1984 Summer Olympic Games refer to games_name = '1984 Summer'; athletes more than 50 years old refer to person_id where age > 50;", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';", "20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "name of games refers to games_name;"]}} {"set": {"query": "Who is the heaviest athlete from Russia?", "pos": ["the heaviest athlete refers to full_name where MAX(weight); from Russia refers to region_name = 'Russia';"], "neg": ["AVG(weight) where region_name = 'Tonga' and gender = 'M';", "Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);", "athletes refer to person_id; region 151 refers to region_id = 151; won a medal refers to medal_id <> 4;", "cities refer to city_name; 1976 winter and summer games refer to games_name IN ('1976 Winter', '1976 Summer');", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "name of sport refers to sport_name", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';"]}} {"set": {"query": "Which city were the Olympic games held in 1992?", "pos": ["city refers to city_name; in 1992 refers to games_year = 1992;"], "neg": ["cities refer to city_name; 1976 winter and summer games refer to games_name IN ('1976 Winter', '1976 Summer');", "DIVIDE(COUNT(season = 'Winter' and age > 24), COUNT(person_id)) as percentage;", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';", "sport refers to sport_name; event \"Shooting Women's Trap\" refers to event_name = 'Shooting Women''s Trap';", "hockey's sport refers to sport_name = 'hockey';", "Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "in which city refers to city_name; the oldest refers to MAX(age);", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';"]}} {"set": {"query": "How many Belgian men have competed in an Olympic Games?", "pos": ["Belgian men refer to gender = 'M' where region_name = 'Belgium';"], "neg": ["over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "name refers to full_name; Greece refers to region_name = 'Greece';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "NOC code refers to noc; the heaviest refers to MAX(weight);", "the tallest refers to MAX(height);", "the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "the largest number of women participation refers to MAX(COUNT(gender = 'F')); In which Olympic Games refer to games_year;", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "Who refers to full_name; the heaviest refers to MAX(weight);"]}} {"set": {"query": "What is the percentage of people whose age greater than 24 and participate in winter season?", "pos": ["DIVIDE(COUNT(season = 'Winter' and age > 24), COUNT(person_id)) as percentage;"], "neg": ["kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "the tallest refers to MAX(height);", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;"]}} {"set": {"query": "How many athletes in the database are from Guatemala?", "pos": ["from Guatemala refers to region_name = 'Guatemala';"], "neg": ["names of competitors refer to full_name; from Finland refers to region_name = 'Finland';", "London refers to city_name = 'London';", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "age is the most numerous refers to age where MAX(COUNT(person_id));", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';", "2012 Summer refers to games_name = '2012 Summer';", "the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';", "Who refers to full_name; the heaviest refers to MAX(weight);", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';"]}} {"set": {"query": "At what age did Michael Fred Phelps, II join the Olympics?", "pos": ["At what age join the Olympics refers to MIN(age);"], "neg": ["male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';", "city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';", "host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "sport refers to sport_name; event \"Shooting Women's Trap\" refers to event_name = 'Shooting Women''s Trap';", "AVG(height) where age BETWEEN 22 AND 28;", "competitor who weighted 73 kg and 180 cm tall refers to person_id where height = 180 and weight = 73;", "DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';", "Where competitor is from refers to region_name;"]}} {"set": {"query": "Among the Olympic games held in Los Angeles, what is the name of the Olympic game that has the most number of competitors?", "pos": ["Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));"], "neg": ["NOC code refers to noc; the heaviest refers to MAX(weight);", "Who refers to full_name; the heaviest refers to MAX(weight);", "the 1984 Summer Olympic Games refer to games_name = '1984 Summer'; athletes more than 50 years old refer to person_id where age > 50;", "hockey's sport refers to sport_name = 'hockey';", "At what age join the Olympics refers to MIN(age);", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';", "name of games refers to games_name;", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);"]}} {"set": {"query": "What is the season of the game where a competitor who weighted 73 kg and 180 cm tall, participated?", "pos": ["competitor who weighted 73 kg and 180 cm tall refers to person_id where height = 180 and weight = 73;"], "neg": ["Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));", "cities refer to city_name; 1976 winter and summer games refer to games_name IN ('1976 Winter', '1976 Summer');", "events refer to event_name; football refers to sport_name = 'Football';", "London refers to city_name = 'London';", "DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';", "in which city refers to city_name; the oldest refers to MAX(age);", "NOC code refers to noc; the heaviest refers to MAX(weight);", "kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';"]}} {"set": {"query": "In which city was the game held where the oldest competitor participated?", "pos": ["in which city refers to city_name; the oldest refers to MAX(age);"], "neg": ["London refers to city_name = 'London';", "name of games refers to games_name;", "\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';", "hockey's sport refers to sport_name = 'hockey';", "the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "games refer to games_id;", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';", "20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';", "AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';", "sport refers to sport_name; event \"Shooting Women's Trap\" refers to event_name = 'Shooting Women''s Trap';"]}} {"set": {"query": "Which sport does the event \"Shooting Women's Trap\" belong to?", "pos": ["sport refers to sport_name; event \"Shooting Women's Trap\" refers to event_name = 'Shooting Women''s Trap';"], "neg": ["24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "region refers to region_name; NOC code \"COL\" refers to noc = 'COL';", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "competitor who weighted 73 kg and 180 cm tall refers to person_id where height = 180 and weight = 73;", "name of city refers to city_name"]}} {"set": {"query": "State the name of sport id 19.", "pos": ["name of sport refers to sport_name"], "neg": ["region refers to region_name; NOC code \"COL\" refers to noc = 'COL';", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "the gold medal refers to medal_name = 'Gold';", "DIVIDE(weight), MULTIPLY(height, height) where id = 147420;", "the tallest refers to MAX(height);", "people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';", "Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "the largest number of women participation refers to MAX(COUNT(gender = 'F')); In which Olympic Games refer to games_year;"]}} {"set": {"query": "In which cities were the 1976 winter and summer games held?", "pos": ["cities refer to city_name; 1976 winter and summer games refer to games_name IN ('1976 Winter', '1976 Summer');"], "neg": ["city refers to city_name; in 1992 refers to games_year = 1992;", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "from Australia refer region_name = 'Australia';", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';", "the heaviest athlete refers to full_name where MAX(weight); from Russia refers to region_name = 'Russia';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));"]}} {"set": {"query": "How many gold medals were given to the winners in the Ice Hockey Men's Ice Hockey event?", "pos": ["gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';"], "neg": ["London refers to city_name = 'London';", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';", "city refers to city_name; in 1992 refers to games_year = 1992;", "Where competitor is from refers to region_name;", "Modern Pentathlon refers to sport_name = 'Modern Pentathlon';", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "swimming refers to sport_name = 'Swimming';", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "name of games refers to games_name;"]}} {"set": {"query": "How many different football events are there?", "pos": ["events refer to event_name; football refers to sport_name = 'Football';"], "neg": ["name of games refers to games_name;", "city refers to city_name; in 1992 refers to games_year = 1992;", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "swimming refers to sport_name = 'Swimming';", "competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';", "Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "the heaviest athlete refers to full_name where MAX(weight); from Russia refers to region_name = 'Russia';"]}} {"set": {"query": "Calculate the average weight of male athletes from Tonga.", "pos": ["AVG(weight) where region_name = 'Tonga' and gender = 'M';"], "neg": ["DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "name refers to full_name; Greece refers to region_name = 'Greece';", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "in which city refers to city_name; the oldest refers to MAX(age);", "name of medal refers to medal_name;", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));", "DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';", "AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';", "fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';"]}} {"set": {"query": "How many games has Prithipal Singh participated in?", "pos": ["games refer to games_id;"], "neg": ["AVG(weight) where region_name = 'Tonga' and gender = 'M';", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "year refers to games_year;", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "from Australia refer region_name = 'Australia';", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);"]}} {"set": {"query": "How many persons participated in the Sapporo Olympics?", "pos": ["the Sapporo Olympics refer to games_id where city_name = 'Sapporo';"], "neg": ["competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';", "from Guatemala refers to region_name = 'Guatemala';", "NOC code refers to noc; the heaviest refers to MAX(weight);", "Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));", "Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;", "cities refer to city_name; 1976 winter and summer games refer to games_name IN ('1976 Winter', '1976 Summer');", "the tallest refers to MAX(height);", "the gold medal refers to medal_name = 'Gold';", "Belgian men refer to gender = 'M' where region_name = 'Belgium';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));"]}} {"set": {"query": "Provide the age of the tallest competitor.", "pos": ["the tallest refers to MAX(height);"], "neg": ["name of games refers to games_name;", "gold medals refer to medal_name = 'Gold';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "year refers to games_year;", "years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "athletes refer to person_id; region 151 refers to region_id = 151; won a medal refers to medal_id <> 4;", "Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';"]}} {"set": {"query": "Which summer Olympic have the highest and lowest number of participants?", "pos": ["the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';"], "neg": ["age is the most numerous refers to age where MAX(COUNT(person_id));", "DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II';", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "Who refers to full_name; the heaviest refers to MAX(weight);", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "city refers to city_name; in 1992 refers to games_year = 1992;", "Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));", "from Guatemala refers to region_name = 'Guatemala';", "name of city refers to city_name", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';"]}} {"set": {"query": "What is the sport name of \"Cross Country Skiing Men's 10/15 kilometres Pursuit\" event?", "pos": ["\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';"], "neg": ["people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "2012 Summer refers to games_name = '2012 Summer';", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;", "the gold medal refers to medal_name = 'Gold';", "DIVIDE(weight), MULTIPLY(height, height) where id = 147420;", "Belgian men refer to gender = 'M' where region_name = 'Belgium';", "AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';"]}} {"set": {"query": "What is the name of the youngest competitor?", "pos": ["name refers to full_name; the youngest refers to MIN(age);"], "neg": ["DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "London refers to city_name = 'London';", "games refer to games_id;", "kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "name of his/her region refers to region_name;", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';"]}} {"set": {"query": "How many 24 years old competitors competed in Men's Basketball?", "pos": ["24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';"], "neg": ["DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "name refers to full_name; the oldest refers to MAX(age);", "events refer to event_name; football refers to sport_name = 'Football';", "gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';", "games refer to games_id;", "host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';", "AVG(weight) where region_name = 'Tonga' and gender = 'M';", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';"]}} {"set": {"query": "Calculate the bmi of the competitor id 147420.", "pos": ["DIVIDE(weight), MULTIPLY(height, height) where id = 147420;"], "neg": ["events refer to event_name; football refers to sport_name = 'Football';", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "competitor who weighted 73 kg and 180 cm tall refers to person_id where height = 180 and weight = 73;", "DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II';", "NOC code refers to noc; the heaviest refers to MAX(weight);", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "hockey's sport refers to sport_name = 'hockey';", "name of city refers to city_name", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "Roma refers to city_name = 'Roma'; When host refers to games_year;"]}} {"set": {"query": "How many athletes are from Australia?", "pos": ["from Australia refer region_name = 'Australia';"], "neg": ["AVG(weight) where region_name = 'Tonga' and gender = 'M';", "Belgian men refer to gender = 'M' where region_name = 'Belgium';", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);", "how old was he refers to age; 1994 Winter refers to games_name = '1994 Winter';", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;"]}} {"set": {"query": "How many athletes participated in the 2014 Winter Olympics?", "pos": ["athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';"], "neg": ["gold medals refer to medal_name = 'Gold';", "host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';", "AVG(age) where games_name = '1988 Winter';", "the largest number of women participation refers to MAX(COUNT(gender = 'F')); In which Olympic Games refer to games_year;", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "in which city refers to city_name; the oldest refers to MAX(age);", "over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';"]}} {"set": {"query": "Show the name of the sport with the most events.", "pos": ["name of the sport with the most events refers to sport_name where MAX(COUNT(id));"], "neg": ["where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';", "2012 Summer refers to games_name = '2012 Summer';", "cities refer to city_name; 1976 winter and summer games refer to games_name IN ('1976 Winter', '1976 Summer');", "kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "Belgian men refer to gender = 'M' where region_name = 'Belgium';", "city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "the gold medal refers to medal_name = 'Gold';"]}} {"set": {"query": "In the 2014 Winter game, what is the percentage of competitors who age 28 years old?", "pos": ["DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';"], "neg": ["DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';", "athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "NOC code refers to noc; the heaviest refers to MAX(weight);", "from Guatemala refers to region_name = 'Guatemala';", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));", "name of games refers to games_name;", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';"]}} {"set": {"query": "Where was the first Olympic game held?", "pos": ["Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);"], "neg": ["AVG(weight) where region_name = 'Tonga' and gender = 'M';", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;", "from Guatemala refers to region_name = 'Guatemala';", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "cities refer to city_name; 1976 winter and summer games refer to games_name IN ('1976 Winter', '1976 Summer');", "DIVIDE(COUNT(season = 'Winter' and age > 24), COUNT(person_id)) as percentage;", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';", "gold medals refer to medal_name = 'Gold';"]}} {"set": {"query": "Who has participated in the most Olympic Games in the database?", "pos": ["Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));"], "neg": ["Belgian men refer to gender = 'M' where region_name = 'Belgium';", "cities beginning with the letter M refer to city_name LIKE 'M%';", "NOC code refers to noc; the heaviest refers to MAX(weight);", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "2012 Summer refers to games_name = '2012 Summer';", "years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';", "swimming refers to sport_name = 'Swimming';", "competitor who weighted 73 kg and 180 cm tall refers to person_id where height = 180 and weight = 73;"]}} {"set": {"query": "How many different events are there of Modern Pentathlon?", "pos": ["Modern Pentathlon refers to sport_name = 'Modern Pentathlon';"], "neg": ["From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "gold medals refer to medal_name = 'Gold';", "DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II';", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "name refers to full_name; the oldest refers to MAX(age);", "games refer to games_id;", "hockey's sport refers to sport_name = 'hockey';", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));", "kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';"]}} {"set": {"query": "How many Men's 200 Metres Freestyle events did Ian James Thorpe compete in?", "pos": ["Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;"], "neg": ["DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "Roma refers to city_name = 'Roma'; When host refers to games_year;", "Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "name of the cities refers to city_name", "Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));", "fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';", "year refers to games_year;", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';"]}} {"set": {"query": "Give the NOC code and region name of the heaviest competitor.", "pos": ["NOC code refers to noc; the heaviest refers to MAX(weight);"], "neg": ["region refers to region_name; NOC code \"COL\" refers to noc = 'COL';", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';", "city refers to city_name; in 1992 refers to games_year = 1992;", "name refers to full_name; Greece refers to region_name = 'Greece';", "the gold medal refers to medal_name = 'Gold';", "the tallest refers to MAX(height);", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));"]}} {"set": {"query": "At which age did A Lamusi participate in 2012 Summer?", "pos": ["2012 Summer refers to games_name = '2012 Summer';"], "neg": ["DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';", "Modern Pentathlon refers to sport_name = 'Modern Pentathlon';", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';", "gold medals refer to medal_name = 'Gold';", "name of his/her region refers to region_name;", "\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';", "name of city refers to city_name", "DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';"]}} {"set": {"query": "What are the id of the games held in London?", "pos": ["London refers to city_name = 'London';"], "neg": ["Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "from Guatemala refers to region_name = 'Guatemala';", "AVG(age) where games_name = '1988 Winter';", "2012 Summer refers to games_name = '2012 Summer';", "gold medals refer to medal_name = 'Gold';", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "the tallest refers to MAX(height);", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';", "name of sport refers to sport_name"]}} {"set": {"query": "For Peter Kohnke, show the name of his/her region.", "pos": ["name of his/her region refers to region_name;"], "neg": ["Roma refers to city_name = 'Roma'; When host refers to games_year;", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';", "NOC code refers to noc; the heaviest refers to MAX(weight);", "Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "hockey's sport refers to sport_name = 'hockey';", "Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;", "games refer to games_id;"]}} {"set": {"query": "In what year and season did Sohail Abbas compete?", "pos": ["year refers to games_year;"], "neg": ["SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;", "people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "name refers to full_name; the youngest refers to MIN(age);", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "age is the most numerous refers to age where MAX(COUNT(person_id));", "2012 Summer refers to games_name = '2012 Summer';", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "AVG(weight) where region_name = 'Tonga' and gender = 'M';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';"]}} {"set": {"query": "For how many times has London held the Olympic games?", "pos": ["London refers to city_name = 'London'; how many times refer to COUNT(games_id);"], "neg": ["Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "Modern Pentathlon refers to sport_name = 'Modern Pentathlon';", "name refers to full_name; the oldest refers to MAX(age);", "athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "sport refers to sport_name; event \"Shooting Women's Trap\" refers to event_name = 'Shooting Women''s Trap';", "AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';", "swimming refers to sport_name = 'Swimming';", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';"]}} {"set": {"query": "How many Summer games were held in Stockholm?", "pos": ["Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';"], "neg": ["DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';", "London refers to city_name = 'London';", "name of city refers to city_name", "events refer to event_name; football refers to sport_name = 'Football';", "name refers to full_name; Greece refers to region_name = 'Greece';", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';", "Roma refers to city_name = 'Roma'; When host refers to games_year;", "SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;", "Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;"]}} {"set": {"query": "What is the percentage of athletes from Vanuatu who are taller than 175?", "pos": ["DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';"], "neg": ["Roma refers to city_name = 'Roma'; When host refers to games_year;", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "region refers to region_name; NOC code \"COL\" refers to noc = 'COL';", "cities beginning with the letter M refer to city_name LIKE 'M%';", "athletes refer to person_id; region 151 refers to region_id = 151; won a medal refers to medal_id <> 4;", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "AVG(height) where age BETWEEN 22 AND 28;", "AVG(weight) where region_name = 'Tonga' and gender = 'M';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';", "SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;"]}} {"set": {"query": "In which year did London hold its earliest Olympic game?", "pos": ["In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);"], "neg": ["gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';", "name refers to full_name; the youngest refers to MIN(age);", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';", "name of the cities refers to city_name", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "London refers to city_name = 'London';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "name refers to full_name; the oldest refers to MAX(age);"]}} {"set": {"query": "Among all the Olympic competitors from Finland, how many of them are female?", "pos": ["competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';"], "neg": ["the 1984 Summer Olympic Games refer to games_name = '1984 Summer'; athletes more than 50 years old refer to person_id where age > 50;", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "AVG(height) where age BETWEEN 22 AND 28;", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';", "Who refers to full_name; the heaviest refers to MAX(weight);", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';"]}} {"set": {"query": "List out years that only have summer games.", "pos": ["years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';"], "neg": ["Belgian men refer to gender = 'M' where region_name = 'Belgium';", "DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "name of his/her region refers to region_name;", "name refers to full_name; the oldest refers to MAX(age);", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "name of the cities refers to city_name", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));", "kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';"]}} {"set": {"query": "In which Olympic Games have the largest number of women participation?", "pos": ["the largest number of women participation refers to MAX(COUNT(gender = 'F')); In which Olympic Games refer to games_year;"], "neg": ["from Guatemala refers to region_name = 'Guatemala';", "gold medals refer to medal_name = 'Gold';", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "events refer to event_name; football refers to sport_name = 'Football';", "DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;", "name of medal refers to medal_name;", "the heaviest athlete refers to full_name where MAX(weight); from Russia refers to region_name = 'Russia';", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';"]}} {"set": {"query": "Which region is the majority of the athletes from?", "pos": ["region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));"], "neg": ["name of the cities refers to city_name", "Belgian men refer to gender = 'M' where region_name = 'Belgium';", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';", "DIVIDE(weight), MULTIPLY(height, height) where id = 147420;", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "name of sport refers to sport_name", "Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);"]}} {"set": {"query": "What is the average age of competitors who participated in 1988 Winter?", "pos": ["AVG(age) where games_name = '1988 Winter';"], "neg": ["DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';", "Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "from Australia refer region_name = 'Australia';", "name of sport refers to sport_name", "2012 Summer refers to games_name = '2012 Summer';", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "region refers to region_name; NOC code \"COL\" refers to noc = 'COL';", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';"]}} {"set": {"query": "Among the competitors of the 1994 Winter Olympic Game, what is the percentage of those from Finland?", "pos": ["DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';"], "neg": ["names of competitors refer to full_name; from Finland refers to region_name = 'Finland';", "name of medal refers to medal_name;", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "the heaviest athlete refers to full_name where MAX(weight); from Russia refers to region_name = 'Russia';", "from Guatemala refers to region_name = 'Guatemala';", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';"]}} {"set": {"query": "Which city was the 1992 Summer Olympic held?", "pos": ["city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';"], "neg": ["fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "games refer to games_id;", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "DIVIDE(weight), MULTIPLY(height, height) where id = 147420;", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "Where competitor is from refers to region_name;"]}} {"set": {"query": "Provide the name of competitors from Greece.", "pos": ["name refers to full_name; Greece refers to region_name = 'Greece';"], "neg": ["In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);", "gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';", "name of medal refers to medal_name;", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "gold medals refer to medal_name = 'Gold';", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "Where competitor is from refers to region_name;", "competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "name of the cities refers to city_name"]}} {"set": {"query": "How many Olympic events did Michael Phelps II join in total? Find the percentage of the events where he won a gold medal.", "pos": ["DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II';"], "neg": ["DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "name of his/her region refers to region_name;", "hockey's sport refers to sport_name = 'hockey';", "year refers to games_year;", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);", "\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';", "AVG(age) where games_name = '1988 Winter';", "city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));", "the largest number of women participation refers to MAX(COUNT(gender = 'F')); In which Olympic Games refer to games_year;"]}} {"set": {"query": "Where was the 1920 Summer held?", "pos": ["where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';"], "neg": ["Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));", "NOC code refers to noc; the heaviest refers to MAX(weight);", "cities refer to city_name; 1976 winter and summer games refer to games_name IN ('1976 Winter', '1976 Summer');", "Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;", "20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "name of the cities refers to city_name", "Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';"]}} {"set": {"query": "What is the name of the oldest competitor?", "pos": ["name refers to full_name; the oldest refers to MAX(age);"], "neg": ["From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "sport refers to sport_name; event \"Shooting Women's Trap\" refers to event_name = 'Shooting Women''s Trap';", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';", "swimming refers to sport_name = 'Swimming';", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));", "London refers to city_name = 'London';", "the largest number of women participation refers to MAX(COUNT(gender = 'F')); In which Olympic Games refer to games_year;", "\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';"]}} {"set": {"query": "Calculate the average age of the persons who participated in the 1992 Summer Games.", "pos": ["DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';"], "neg": ["Who refers to full_name; the heaviest refers to MAX(weight);", "in which city refers to city_name; the oldest refers to MAX(age);", "Where competitor is from refers to region_name;", "competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';", "AVG(weight) where region_name = 'Tonga' and gender = 'M';", "the gold medal refers to medal_name = 'Gold';", "name refers to full_name; the youngest refers to MIN(age);", "Modern Pentathlon refers to sport_name = 'Modern Pentathlon';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));", "DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II';"]}} {"set": {"query": "What age of the competitors is the most numerous?", "pos": ["age is the most numerous refers to age where MAX(COUNT(person_id));"], "neg": ["won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "hockey's sport refers to sport_name = 'hockey';", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "name refers to full_name; the oldest refers to MAX(age);", "gold medals refer to medal_name = 'Gold';", "AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';", "gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';", "sport refers to sport_name; event \"Shooting Women's Trap\" refers to event_name = 'Shooting Women''s Trap';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "city refers to city_name; in 1992 refers to games_year = 1992;"]}} {"set": {"query": "How many female competitors were from Iran?", "pos": ["female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';"], "neg": ["name of games refers to games_name;", "gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';", "\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';", "name of city refers to city_name", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "AVG(weight) where region_name = 'Tonga' and gender = 'M';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "AVG(height) where age BETWEEN 22 AND 28;", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;"]}} {"set": {"query": "State the number of athletes in the 1984 Summer Olympic Games who were more than 50 years old.", "pos": ["the 1984 Summer Olympic Games refer to games_name = '1984 Summer'; athletes more than 50 years old refer to person_id where age > 50;"], "neg": ["males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "the tallest refers to MAX(height);", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "year refers to games_year;", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';", "name refers to full_name; Greece refers to region_name = 'Greece';", "Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));", "city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';"]}} {"set": {"query": "What is the average height of male athletes playing basketball sport?", "pos": ["AVG(height) where sport_name = 'Basketball' and event_name = 'Basketball Men''s';"], "neg": ["hockey's sport refers to sport_name = 'hockey';", "Roma refers to city_name = 'Roma'; When host refers to games_year;", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "2012 Summer refers to games_name = '2012 Summer';", "the tallest refers to MAX(height);", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "games refer to games_id;", "name refers to full_name; the oldest refers to MAX(age);", "DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II';"]}} {"set": {"query": "How many athletes over the age of 59 competed in the 2016 Summer Olympics?", "pos": ["over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';"], "neg": ["swimming refers to sport_name = 'Swimming';", "AVG(age) where games_name = '1988 Winter';", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';", "Roma refers to city_name = 'Roma'; When host refers to games_year;", "gold medals refer to medal_name = 'Gold';", "in which city refers to city_name; the oldest refers to MAX(age);", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));", "the tallest refers to MAX(height);", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';"]}} {"set": {"query": "How many 20 years old athletes were there in the 1984 Summer Olympic Games?", "pos": ["20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';"], "neg": ["region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));", "people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "DIVIDE(COUNT(season = 'Winter' and age > 24), COUNT(person_id)) as percentage;", "hockey's sport refers to sport_name = 'hockey';", "name refers to full_name; the youngest refers to MIN(age);", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "Where competitor is from refers to region_name;"]}} {"set": {"query": "Which region has the highest medal number?", "pos": ["region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));"], "neg": ["name of his/her region refers to region_name;", "At what age join the Olympics refers to MIN(age);", "name of city refers to city_name", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';", "people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "swimming refers to sport_name = 'Swimming';", "AVG(weight) where region_name = 'Tonga' and gender = 'M';"]}} {"set": {"query": "Tell the number of swimming related events.", "pos": ["swimming refers to sport_name = 'Swimming';"], "neg": ["the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "cities beginning with the letter M refer to city_name LIKE 'M%';", "years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';", "fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';", "the gold medal refers to medal_name = 'Gold';", "DIVIDE(COUNT(event_id where medal_name = 'Gold'), COUNT(event_id)) as percentage where full_name = 'Michael Fred Phelps, II';", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "DIVIDE(COUNT(season = 'Winter' and age > 24), COUNT(person_id)) as percentage;", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;"]}} {"set": {"query": "Give the id of the event \"Shooting Mixed Skeet\".", "pos": ["\"Shooting Mixed Skeet\" refers to event_name = 'Shooting Mixed Skeet';"], "neg": ["people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "name refers to full_name; the oldest refers to MAX(age);", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "name of the cities refers to city_name", "Belgian men refer to gender = 'M' where region_name = 'Belgium';", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);"]}} {"set": {"query": "How many times was Larysa Semenivna Latynina (Diriy-) declared as champion in Gymnastics Women's Individual All-Around?", "pos": ["Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;"], "neg": ["name of the cities refers to city_name", "Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));", "AVG(age) where games_name = '1988 Winter';", "the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "athletes refer to person_id; region 151 refers to region_id = 151; won a medal refers to medal_id <> 4;", "the gold medal refers to medal_name = 'Gold';"]}} {"set": {"query": "Calculate the percentage of bronze medals won by men's basketball players.", "pos": ["DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';"], "neg": ["Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);", "name of his/her region refers to region_name;", "SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "the tallest refers to MAX(height);", "London refers to city_name = 'London';", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "AVG(age) where games_name = '1988 Winter';", "age is the most numerous refers to age where MAX(COUNT(person_id));"]}} {"set": {"query": "State the name of the city that held game id 3.", "pos": ["name of city refers to city_name"], "neg": ["name refers to full_name; the oldest refers to MAX(age);", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "DIVIDE(COUNT(season = 'Winter' and age > 24), COUNT(person_id)) as percentage;", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "from Guatemala refers to region_name = 'Guatemala';", "how old was he refers to age; 1994 Winter refers to games_name = '1994 Winter';", "the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "Men's 200 Metres Freestyle events refer to event_name = 'Swimming Men''s 200 metres Freestyle'; events compete in refers to event_id;", "20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';"]}} {"set": {"query": "What is the percentage of the people who are under 35 and participated in the summer season?", "pos": ["DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';"], "neg": ["name of medal refers to medal_name;", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "\"Cross Country Skiing Men's 10/15 kilometres Pursuit\" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';", "Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';", "in which city refers to city_name; the oldest refers to MAX(age);", "the tallest refers to MAX(height);", "Roma refers to city_name = 'Roma'; When host refers to games_year;", "males refer to gender = 'M'; Belgium refers to region_name = 'Belgium';", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';", "Belgian men refer to gender = 'M' where region_name = 'Belgium';"]}} {"set": {"query": "Please list the names of all the Olympic competitors from Finland.", "pos": ["names of competitors refer to full_name; from Finland refers to region_name = 'Finland';"], "neg": ["DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "name refers to full_name; Greece refers to region_name = 'Greece';", "city refers to city_name; in 1992 refers to games_year = 1992;", "2012 Summer refers to games_name = '2012 Summer';", "DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';", "year refers to games_year;", "hockey's sport refers to sport_name = 'hockey';", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';"]}} {"set": {"query": "How many people have won the gold medal of the event \"Rowing Women's Coxed Eights\"?", "pos": ["won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';"], "neg": ["the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "London refers to city_name = 'London';", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "the heaviest athlete refers to full_name where MAX(weight); from Russia refers to region_name = 'Russia';", "hockey's sport refers to sport_name = 'hockey';", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);", "people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "the Sapporo Olympics refer to games_id where city_name = 'Sapporo';", "Who refers to full_name; the heaviest refers to MAX(weight);", "gold medals refer to medal_name = 'Gold';"]}} {"set": {"query": "List out the id of event that achieve the gold medal.", "pos": ["the gold medal refers to medal_name = 'Gold';"], "neg": ["AVG(age) where games_name = '1988 Winter';", "competitor who weighted 73 kg and 180 cm tall refers to person_id where height = 180 and weight = 73;", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "name of games refers to games_name;", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "the tallest refers to MAX(height);", "games refer to games_id;", "20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';", "name refers to full_name; the oldest refers to MAX(age);"]}} {"set": {"query": "Who is the heaviest athlete?", "pos": ["Who refers to full_name; the heaviest refers to MAX(weight);"], "neg": ["Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));", "swimming refers to sport_name = 'Swimming';", "London refers to city_name = 'London';", "cities beginning with the letter M refer to city_name LIKE 'M%';", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "NOC code refers to noc; the heaviest refers to MAX(weight);", "athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "At what age join the Olympics refers to MIN(age);", "AVG(age) where games_name = '1988 Winter';", "name of medal refers to medal_name;"]}} {"set": {"query": "What are the names of the cities where Carl Lewis Borack competed?", "pos": ["name of the cities refers to city_name"], "neg": ["DIVIDE(SUM(height), COUNT(id)) where region_name = 'Finland' and gender = 'M';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));", "the youngest competitor refers to full_name where MIN(age); in 2014 Winter refers to games_name = '2014 Winter';", "name of his/her region refers to region_name;", "host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';", "Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';", "how old was he refers to age; 1994 Winter refers to games_name = '1994 Winter';"]}} {"set": {"query": "Which city was the host of 1936 Winter Olympic Games?", "pos": ["Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';"], "neg": ["competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';", "the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "name of the cities refers to city_name", "from Guatemala refers to region_name = 'Guatemala';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));", "region refers to region_name; the highest medal number refers to MAX(COUNT(medal_id <> 4));", "swimming refers to sport_name = 'Swimming';", "DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';", "NOC code refers to noc; the heaviest refers to MAX(weight);", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';"]}} {"set": {"query": "How many people who are below 30 and participated in the summer season?", "pos": ["people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';"], "neg": ["Who refers to full_name; the heaviest refers to MAX(weight);", "Los Angeles refers to city_name = 'Lost Angeles'; the Olympic game refers to games_name; the most number of competitors refers to MAX(COUNT(games_name));", "DIVIDE(weight), MULTIPLY(height, height) where id = 147420;", "gold medals given to the winners refer to competitor_id where medal_name = 'Gold'; Ice Hockey Men's Ice Hockey refers to event_name = 'Ice Hockey Men''s Ice Hockey';", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "NOC code refers to noc; the heaviest refers to MAX(weight);", "cities beginning with the letter M refer to city_name LIKE 'M%';", "Which city refers to city_name; 1936 Winter Olympic refers to games_name = '1936 Winter';", "Who refers to full_name; participated in the most Olympic Games refers to MAX(COUNT(games_id));", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';"]}} {"set": {"query": "Tell the host city of the 1968 Winter Olympic Games.", "pos": ["host city refers to city_name; the 1968 Winter Olympic Games refer to games_name = '1968 Winter';"], "neg": ["people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';", "age is the most numerous refers to age where MAX(COUNT(person_id));", "sport refers to sport_name; event \"Shooting Women's Trap\" refers to event_name = 'Shooting Women''s Trap';", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "At what age join the Olympics refers to MIN(age);", "hockey's sport refers to sport_name = 'hockey';", "city refers to city_name; 1992 Summer Olympic refers to games_name = '1992 Summer';", "over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';"]}} {"set": {"query": "From 1900 to 1992, how many games did London host?", "pos": ["From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;"], "neg": ["athletes from China refer to person_id where region_name = 'China'; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "athletes refer to person_id; 2014 Winter Olympics refer to games_name = '2014 Winter';", "DIVIDE(COUNT(id where height > 175), COUNT(id)) as percentage where region_name = 'Vanuatu';", "age is the most numerous refers to age where MAX(COUNT(person_id));", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';", "DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';", "the gold medal refers to medal_name = 'Gold';", "24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "name refers to full_name; Greece refers to region_name = 'Greece';", "fall into overweight BMI category refers to DIVIDE(weight), MULTIPLY(height, height) < 30; Canoeing refers to a sport name; the 2008 Summer games refer to games_name = '2008 Summer';"]}} {"set": {"query": "How many gold medals does Henk Jan Zwolle have?", "pos": ["gold medals refer to medal_name = 'Gold';"], "neg": ["20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';", "years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';", "events refer to event_name; football refers to sport_name = 'Football';", "Where competitor is from refers to region_name;", "Roma refers to city_name = 'Roma'; When host refers to games_year;", "London refers to city_name = 'London';", "hockey's sport refers to sport_name = 'hockey';", "At what age join the Olympics refers to MIN(age);", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));"]}} {"set": {"query": "Calculate the percentage of women who have participated in Equestrianism Mixed Three-Day Event, Individual.", "pos": ["DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';"], "neg": ["over the age of 59 refers to age > 59; the 2016 Summer Olympics refer to games_name = '2016 Summer';", "name refers to full_name; the oldest refers to MAX(age);", "name of city refers to city_name", "From 1900 to 1992 refers to games_year BETWEEN 1900 AND 1992; London refers to city_name = 'London'; games refer to games_name;", "how old was he refers to age; 1994 Winter refers to games_name = '1994 Winter';", "competitors from Finland refer to id where region_name = 'Finland'; female refers to gender = 'F';", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';", "DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "DIVIDE(weight), MULTIPLY(height, height) where id = 147420;"]}} {"set": {"query": "How many male competitors were there who participated in 1948 Summer?", "pos": ["male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';"], "neg": ["DIVIDE(COUNT(id where region_name = 'Finland'), COUNT(id)) as percentage where games_name = '1994 Winter';", "Belgian men refer to gender = 'M' where region_name = 'Belgium';", "name of his/her region refers to region_name;", "name refers to full_name; the youngest refers to MIN(age);", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "name of medal refers to medal_name;", "the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "London refers to city_name = 'London'; how many times refer to COUNT(games_id);", "the largest number of women participation refers to MAX(COUNT(gender = 'F')); In which Olympic Games refer to games_year;"]}} {"set": {"query": "When did Roma host the Olympic Games?", "pos": ["Roma refers to city_name = 'Roma'; When host refers to games_year;"], "neg": ["Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "the gold medal refers to medal_name = 'Gold';", "cities beginning with the letter M refer to city_name LIKE 'M%';", "DIVIDE(weight), MULTIPLY(height, height) where id = 147420;", "Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;", "DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';", "hockey's sport refers to sport_name = 'hockey';", "Where competitor is from refers to region_name;", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';", "how old was he refers to age; 1994 Winter refers to games_name = '1994 Winter';"]}} {"set": {"query": "How many Summer games are there that were held in Paris?", "pos": ["Summer games refer to games_id where season = 'Summer'; Paris refers to city_name = 'Paris';"], "neg": ["years refer to games_year; only have summer games refer to games_year where COUNT(games_name) = 1 and season = 'Summer';", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "the highest number of participants refers to MAX(COUNT(person_id)); the lowest number of participants refers to MIN(COUNT(person_id)); Which summer Olympic refers to games_name where season = 'Summer';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "male competitors refers to id where gender = 'M'; in 1948 Summer refers to games_name = '1948 Summer';", "region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));", "AVG(age) where games_name = '1988 Winter';", "city refers to city_name; in 1992 refers to games_year = 1992;", "Where it was held refers to city_name; the first Olympic game refers to id where MIN(games_year);", "DIVIDE(SUM(age), COUNT(person_id)) where games_name = '1992 Summer';"]}} {"set": {"query": "Compute the average height of competitors whose age ranges from 22 to 28.", "pos": ["AVG(height) where age BETWEEN 22 AND 28;"], "neg": ["Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;", "people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';", "20 years old athletes refer to person_id where age = 20; 1984 Summer Olympic Games refer to games_name = '1984 Summer';", "how old was he refers to age; 1994 Winter refers to games_name = '1994 Winter';", "hockey's sport refers to sport_name = 'hockey';", "name of the cities refers to city_name", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';", "In which year refers to games_year; London refers to city_name = 'London'; earliest Olympic game refers to MIN(games_year);", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';", "won the gold medal refers to medal_name = 'Gold'; event \"Rowing Women's Coxed Eights\" refers to event_name = 'Rowing Women''s Coxed Eights';"]}} {"set": {"query": "Which region does the NOC code \"COL\" stand for?", "pos": ["region refers to region_name; NOC code \"COL\" refers to noc = 'COL';"], "neg": ["Modern Pentathlon refers to sport_name = 'Modern Pentathlon';", "where it was held refers to city_name; the 1920 Summer refers to games_name = '1920 Summer';", "Roma refers to city_name = 'Roma'; When host refers to games_year;", "in which city refers to city_name; the oldest refers to MAX(age);", "Summer games refer to id where season = 'Summer'; in Stockholm refers to city_name = 'Stockholm';", "2012 Summer refers to games_name = '2012 Summer';", "events refer to event_name; football refers to sport_name = 'Football';", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "kinds of events refer to event_name; sport of cycling refers to sport_name = 'Cycling';", "name of the sport with the most events refers to sport_name where MAX(COUNT(id));"]}} {"set": {"query": "List out the name of the game that the people participated in games id 13.", "pos": ["name of games refers to games_name;"], "neg": ["24 years old competitors refer to id where age = 24; Men's Basketball refers to event_name = 'Basketball Men''s Basketball';", "Rio de Janeiro refers to city_name = 'Rio de Janeiro';", "name refers to full_name; the oldest refers to MAX(age);", "name of sport refers to sport_name", "names of competitors refer to full_name; from Finland refers to region_name = 'Finland';", "Gymnastics Women's Individual All-Around refers to event_name = 'Gymnastics Women''s Individual All-Around'; declared as champion refers to medal_name = 'Gold' or medal_id = 1;", "DIVIDE(COUNT(person_id where gender = 'F), COUNT(person_id)) as percentage where event_name = 'Equestrianism Mixed Three-Day Event, Individual';", "competitors refer to person_id; from Finland refers to region_name = 'Finland';", "female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';", "cities beginning with the letter M refer to city_name LIKE 'M%';"]}} {"set": {"query": "Please list the birth date of the player who has won the most MVPs.", "pos": ["won the most MVP refers to Max(Count(award = 'Most Valuable Player'))"], "neg": ["team with 90% games won refers to Divide (won, games) > 0.9", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))", "player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'", "more than 2 different teams refers to count(tmID) > 2", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "more than 50 games won refers to won > 50", "high school in Chicago refers to hsCity = 'Chicago'; belong to the west conference refers to divID = 'WE'", "average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))"]}} {"set": {"query": "What is the birth date of the player with the most assists during the 1985 All-Star season?", "pos": ["most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985"], "neg": ["NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))", "from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'", "from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "the 'NBA coach of the year' award refers to award = 'NBA coach of the year'; from 1971 - 1975 refers to year between 1971 and 1975; 'POR' team refers to tmID = 'POR'", "team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "1973 season refers to season_id = 1973; black refers to race = 'B'", "the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'"]}} {"set": {"query": "Among the Most improved Players awarded from 1985-1990, how many player whose country is USA?", "pos": ["the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'"], "neg": ["more than 50 games won refers to won > 50", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)", "NBA refers to lgID = 'NBA'; 'LAL' team refers to tmID = 'LAL'; performed steals movement refers to steals > 0; percent = divide(count(playerID where steals > 0), count(playerID)) where lgID = 'NBA' and tmID = 'LAL' * 100%", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "from 1960 to 1970 refers to season_id between 1960 and 1970; still alive refers to deathDate = '0000-00-00'"]}} {"set": {"query": "What is the percentage of offense rebounds from the total rebounds of the players in year 2000.", "pos": ["in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%"], "neg": ["full name refers to teams.name", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "the 'NBA coach of the year' award refers to award = 'NBA coach of the year'; from 1971 - 1975 refers to year between 1971 and 1975; 'POR' team refers to tmID = 'POR'", "completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'", "won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'"]}} {"set": {"query": "Please list the last names and first names of all-star players who are higher than 75 inch.", "pos": ["higher than 75 inch refers to height > 75"], "neg": ["BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100", "coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "more than 2 different teams refers to count(tmID) > 2", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))"]}} {"set": {"query": "Please list the name of the coach who has served more than 2 NBA teams.", "pos": ["\"NBA\" is the lgID; server more than 2 teams refers to Count(tmID) = 2"], "neg": ["completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "between 1951 and 1953 refers to season_id; field goal refers to fg_made", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))"]}} {"set": {"query": "Among the NBA All-star players in 1996 season , which have more than 70% free throw rate? Please give their player id.", "pos": ["NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7"], "neg": ["in 1990 refers to season_id = 1990; 50% or less of oRebounds than dRebounds refers to o_rebounds < = multiply(d_rebounds, 0.5)", "team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970", "in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "from 1960 to 1970 refers to season_id between 1960 and 1970; still alive refers to deathDate = '0000-00-00'", "team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513", "beat the Huston refers to tmIDLoser = 'HSM';\u00a0 in final round of post season refers to round = 'DSF'", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "in 1937 refers to year = 1937; player got at least 500 points refers to Sum(points) > = 500", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979"]}} {"set": {"query": "Which team that didn't play in playoffs had the most total rebounds in the year 1997?", "pos": ["didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)"], "neg": ["greater than 75% lost refers to Divide(lost, games) > 0.75; team refers to tmID", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "in year '1988' refers to year = 1988; the most 'won' than 'lost' refers to max(subtract(won, lost))", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "the most rebounds refers to max(rebounds)", "higher than 75 inch refers to height > 75"]}} {"set": {"query": "State the name of teams ranked first five or more times and lost a league two or more times between 1980 and 2000?", "pos": ["name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2"], "neg": ["the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "\"UCLA\" is the college; team with most players refers to tmID where Max(Count(playerID))", "average height refers to avg(height)", "the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988", "from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "between 1951 and 1953 refers to season_id; field goal refers to fg_made", "home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'", "year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010"]}} {"set": {"query": "What division did the team coached by the winner of the 1977 NBA Coach of the Year award play in in 1976?", "pos": ["\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID"], "neg": ["home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000", "coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "final round of post season refers to round = 'CSF'; won against LAL refers to tmIDLoser = 'LAL'; in the NBA league refers to lgID = 'NBA'; won more than 60 games refers to won > 60", "the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988", "completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'", "greater than 75% lost refers to Divide(lost, games) > 0.75; team refers to tmID", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)"]}} {"set": {"query": "List the full name of players who are drafted from round 1 in 1973 but not born in USA.", "pos": ["full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'"], "neg": ["born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "higher than 75 inch refers to height > 75", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12", "No.1 draft pick refers to draftRound = 1; in the 2003 season refers to draftyear = 2003; increase = subtract(divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2004, divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2003)", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7"]}} {"set": {"query": "What is the percentage of players who attended Auburn University and won an \"All-Defensive Second Team\" award?", "pos": ["Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%"], "neg": ["served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)", "played more than 3800 points refers to Sum(points) > = 3800", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'", "\"NBL\" is the lgID; 'Spencer' is the birthCity", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "average height refers to avg(height)", "full name refers to teams.name"]}} {"set": {"query": "Among the coaches who have served more than 2 NBA teams, during which coach's period of coaching, a team has the least numbers of games lost in the post-season games?", "pos": ["served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)"], "neg": ["in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'", "\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm", "from 1960 to 1970 refers to season_id between 1960 and 1970; still alive refers to deathDate = '0000-00-00'", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12"]}} {"set": {"query": "What is the name of the team with the highest home lost rate?", "pos": ["highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))"], "neg": ["team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "more than 2 different teams refers to count(tmID) > 2", "full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "\"BLB\" is the tmID", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'"]}} {"set": {"query": "List the team name and the total wins of the team in year 2005 which has greater winning from the previous year.", "pos": ["2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID"], "neg": ["NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "team with 90% games won refers to Divide (won, games) > 0.9", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "percentage of winning at the home = Divide(homeWon, won) * 100", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "final round of post season refers to round = 'CSF'; won against LAL refers to tmIDLoser = 'LAL'; in the NBA league refers to lgID = 'NBA'; won more than 60 games refers to won > 60", "name of the university refers to highSchool; NBA refers to lgID = 'NBA'; Finals MVP refers to award = 'Finals MVP'; in 1990 refers to year = 1990"]}} {"set": {"query": "What is the nickname of the NBA player whose team competed in the Western Conference in the season 2006 and who had a total of two blocks?", "pos": ["completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick"], "neg": ["player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))", "in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "1973 season refers to season_id = 1973; black refers to race = 'B'", "\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "\"NBA\" is the lgID; server more than 2 teams refers to Count(tmID) = 2", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)"]}} {"set": {"query": "From 1960 to 1970, what is the total point of all-star players who are still alive?", "pos": ["from 1960 to 1970 refers to season_id between 1960 and 1970; still alive refers to deathDate = '0000-00-00'"], "neg": ["in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon", "from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "\"BLB\" is the tmID", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970", "player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'", "beat the Huston refers to tmIDLoser = 'HSM';\u00a0 in final round of post season refers to round = 'DSF'", "from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'"]}} {"set": {"query": "What is the percentage of coaches in 1969 who were awarded \"NBA Coach of the Year\"?", "pos": ["in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%"], "neg": ["Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "\"UCLA\" is the college; team with most players refers to tmID where Max(Count(playerID))", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "No.1 draft pick refers to draftRound = 1; in the 2003 season refers to draftyear = 2003; increase = subtract(divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2004, divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2003)", "between 1951 and 1953 refers to season_id; field goal refers to fg_made"]}} {"set": {"query": "For all the full attendence players in 1995, which player had most turnovers? Give the full name of the player.", "pos": ["full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name"], "neg": ["\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)", "served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7", "the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975", "\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'"]}} {"set": {"query": "How many awards were given out in 2010 to players who attended high school in Chicago?", "pos": ["in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'"], "neg": ["the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "NBA refers to lgID = 'NBA'; 'LAL' team refers to tmID = 'LAL'; performed steals movement refers to steals > 0; percent = divide(count(playerID where steals > 0), count(playerID)) where lgID = 'NBA' and tmID = 'LAL' * 100%", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "college refers to highSchool; won the most award refers to max(count(award)); in 1970 refers to year = 1970", "more than 2 different teams refers to count(tmID) > 2"]}} {"set": {"query": "Which winning team in the 1947 playoff quarterfinals managed to score 3,513 defensive points that same year?", "pos": ["team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513"], "neg": ["highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))", "\"UCLA\" is the college; team with most players refers to tmID where Max(Count(playerID))", "shortest player refers to Min(height); black players refers to race = 'B'", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'", "home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'"]}} {"set": {"query": "For the player who was drafted in the 1st round, 6th position in 1976, which team did he play in that year?", "pos": ["drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID"], "neg": ["completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "in 1973 refers to year = 1973; player with highest field goal made refers to Max(Divide(fgMade, fgAttempted))", "in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%", "\"AFS\" is the tmID; tallest height refers to Max(height)", "average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2"]}} {"set": {"query": "What is the name of the university that was drafted from the player who won the NBA Finals MVP in 1990?", "pos": ["name of the university refers to highSchool; NBA refers to lgID = 'NBA'; Finals MVP refers to award = 'Finals MVP'; in 1990 refers to year = 1990"], "neg": ["team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970", "\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "\"AFS\" is the tmID; tallest height refers to Max(height)", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513", "the 'NBA coach of the year' award refers to award = 'NBA coach of the year'; from 1971 - 1975 refers to year between 1971 and 1975; 'POR' team refers to tmID = 'POR'", "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))", "served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7"]}} {"set": {"query": "Player from which team has the highest point per minute in NBA from 1991 to 2000?", "pos": ["team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000"], "neg": ["\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "\"AFS\" is the tmID; tallest height refers to Max(height)", "coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "Wake Forest college refers to highSchool = 'Wake Forest college'; did the most offensive rebounds than defensive rebounds refers to max(subtract(sum(oRebounds), sum(dRebounds))); full name refers to first_name, middle_name, last_name"]}} {"set": {"query": "In 1937, how many teams whose players got at least 500 points?", "pos": ["in 1937 refers to year = 1937; player got at least 500 points refers to Sum(points) > = 500"], "neg": ["champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "from 1960 to 1970 refers to season_id between 1960 and 1970; still alive refers to deathDate = '0000-00-00'", "college refers to highSchool; won the most award refers to max(count(award)); in 1970 refers to year = 1970", "served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "the 'NBA coach of the year' award refers to award = 'NBA coach of the year'; from 1971 - 1975 refers to year between 1971 and 1975; 'POR' team refers to tmID = 'POR'", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "\"BLB\" is the tmID"]}} {"set": {"query": "Which winning team in the final round of the postseason series games against the LAL won more than 60 games in the NBA league during the year 1996?", "pos": ["final round of post season refers to round = 'CSF'; won against LAL refers to tmIDLoser = 'LAL'; in the NBA league refers to lgID = 'NBA'; won more than 60 games refers to won > 60"], "neg": ["more than 2 different teams refers to count(tmID) > 2", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000", "full name refers to teams.name", "\"NBA\" is the lgID; server more than 2 teams refers to Count(tmID) = 2", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "No.1 draft pick refers to draftRound = 1; in the 2003 season refers to draftyear = 2003; increase = subtract(divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2004, divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2003)", "higher than 75 inch refers to height > 75", "in 1990 refers to season_id = 1990; 50% or less of oRebounds than dRebounds refers to o_rebounds < = multiply(d_rebounds, 0.5)", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'"]}} {"set": {"query": "Who is the tallest player in Denver Nuggets since 1980?", "pos": ["\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)"], "neg": ["1973 season refers to season_id = 1973; black refers to race = 'B'", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "\"UCLA\" is the college; team with most players refers to tmID where Max(Count(playerID))", "completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "\"BLB\" is the tmID", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979"]}} {"set": {"query": "From 1962 to 2011, how many coaches received both NBA and ABA awards?", "pos": ["from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'"], "neg": ["average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))", "the most rebounds refers to max(rebounds)", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "in year '1988' refers to year = 1988; the most 'won' than 'lost' refers to max(subtract(won, lost))", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "full name refers to teams.name", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "shortest player refers to Min(height); black players refers to race = 'B'"]}} {"set": {"query": "What is the minimum weight of all-star players coming from UCLA college?", "pos": ["minimum weight refers to Min(weight)"], "neg": ["Wake Forest college refers to highSchool = 'Wake Forest college'; did the most offensive rebounds than defensive rebounds refers to max(subtract(sum(oRebounds), sum(dRebounds))); full name refers to first_name, middle_name, last_name", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "the most rebounds refers to max(rebounds)", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "more than 2 different teams refers to count(tmID) > 2", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "greater than 75% lost refers to Divide(lost, games) > 0.75; team refers to tmID"]}} {"set": {"query": "For team who has more home won than home lost more than 80%, list the team name and the offense points.", "pos": ["home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm"], "neg": ["most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12", "team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970", "high school in Chicago refers to hsCity = 'Chicago'; belong to the west conference refers to divID = 'WE'", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'"]}} {"set": {"query": "List the champion (team name) and year from year 1950 to 1960.", "pos": ["champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960"], "neg": ["from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "\"UCLA\" is the college; team with most players refers to tmID where Max(Count(playerID))", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'", "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID"]}} {"set": {"query": "Which team did the MVP of 1997 NBA season play in?", "pos": ["team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'"], "neg": ["weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "average height refers to avg(height)", "college refers to highSchool; won the most award refers to max(count(award)); in 1970 refers to year = 1970", "more than 50 games won refers to won > 50", "NBA refers to lgID = 'NBA'; 'LAL' team refers to tmID = 'LAL'; performed steals movement refers to steals > 0; percent = divide(count(playerID where steals > 0), count(playerID)) where lgID = 'NBA' and tmID = 'LAL' * 100%", "home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "\"AFS\" is the tmID; tallest height refers to Max(height)"]}} {"set": {"query": "How much did the win rate increase for the team after getting the No.1 NBA draft pick in the 2003 season than previous season?", "pos": ["No.1 draft pick refers to draftRound = 1; in the 2003 season refers to draftyear = 2003; increase = subtract(divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2004, divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2003)"], "neg": ["more than 2 different teams refers to count(tmID) > 2", "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))", "\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID", "average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))", "high school in Chicago refers to hsCity = 'Chicago'; belong to the west conference refers to divID = 'WE'", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "the most rebounds refers to max(rebounds)", "between 1951 and 1953 refers to season_id; field goal refers to fg_made", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3"]}} {"set": {"query": "What's the full name of the team that won the most games in 2001 but didn't make the playoffs?", "pos": ["full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)"], "neg": ["\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7", "played more than 3800 points refers to Sum(points) > = 3800", "BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'", "minimum weight refers to Min(weight)"]}} {"set": {"query": "What is the average height of an East conference All-star player?", "pos": ["average height refers to avg(height)"], "neg": ["won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)", "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID"]}} {"set": {"query": "Which player had the most game presentatons in 2011 NBA season.", "pos": ["player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'"], "neg": ["in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "Wake Forest college refers to highSchool = 'Wake Forest college'; did the most offensive rebounds than defensive rebounds refers to max(subtract(sum(oRebounds), sum(dRebounds))); full name refers to first_name, middle_name, last_name", "in 1973 refers to year = 1973; player with highest field goal made refers to Max(Divide(fgMade, fgAttempted))", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12", "in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'", "won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "the 'NBA coach of the year' award refers to award = 'NBA coach of the year'; from 1971 - 1975 refers to year between 1971 and 1975; 'POR' team refers to tmID = 'POR'", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7"]}} {"set": {"query": "Among the coaches who won the 'NBA coach of the year' award from 1971 - 1975, how many of them were in 'POR' team?", "pos": ["the 'NBA coach of the year' award refers to award = 'NBA coach of the year'; from 1971 - 1975 refers to year between 1971 and 1975; 'POR' team refers to tmID = 'POR'"], "neg": ["Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "between 1951 and 1953 refers to season_id; field goal refers to fg_made", "team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID"]}} {"set": {"query": "In year 2000, who are the coaches with more than 50 games won. List the coachID, team name and number of game won at home game.", "pos": ["more than 50 games won refers to won > 50"], "neg": ["coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "percentage of winning at the home = Divide(homeWon, won) * 100", "shortest player refers to Min(height); black players refers to race = 'B'", "year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "No.1 draft pick refers to draftRound = 1; in the 2003 season refers to draftyear = 2003; increase = subtract(divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2004, divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2003)", "BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75"]}} {"set": {"query": "In 2000, which team did the player who played the least minutes without missing a single game play in? Give the full name of the team.", "pos": ["in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name"], "neg": ["full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "\"AFS\" is the tmID; tallest height refers to Max(height)", "between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "the 'NBA coach of the year' award refers to award = 'NBA coach of the year'; from 1971 - 1975 refers to year between 1971 and 1975; 'POR' team refers to tmID = 'POR'", "\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)", "high school in Chicago refers to hsCity = 'Chicago'; belong to the west conference refers to divID = 'WE'", "from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'", "served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)"]}} {"set": {"query": "Among the players from the NBL league, how many of them were born in Spencer?", "pos": ["\"NBL\" is the lgID; 'Spencer' is the birthCity"], "neg": ["won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "shortest player refers to Min(height); black players refers to race = 'B'", "home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "\"AFS\" is the tmID; tallest height refers to Max(height)", "higher than 75 inch refers to height > 75"]}} {"set": {"query": "List the first name, last name and team name of players who are drafted from 'Seattle' between year 1965 to 1970.", "pos": ["team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970"], "neg": ["\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))", "more than 2 different teams refers to count(tmID) > 2", "the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'"]}} {"set": {"query": "Which player, born in Winter Haven, played 12 minutes per season during the 1980s in the All-Stars?", "pos": ["born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12"], "neg": ["most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "in 1990 refers to season_id = 1990; 50% or less of oRebounds than dRebounds refers to o_rebounds < = multiply(d_rebounds, 0.5)", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))", "team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'"]}} {"set": {"query": "Where was the high school of the player who had the most rebounds in the NBA allstar history?", "pos": ["the most rebounds refers to max(rebounds)"], "neg": ["average height refers to avg(height)", "\"AFS\" is the tmID; tallest height refers to Max(height)", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "beat the Huston refers to tmIDLoser = 'HSM';\u00a0 in final round of post season refers to round = 'DSF'", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'", "completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'", "\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID"]}} {"set": {"query": "Among the winning game from the team, what is the percentage of the winning was home game.", "pos": ["percentage of winning at the home = Divide(homeWon, won) * 100"], "neg": ["Wake Forest college refers to highSchool = 'Wake Forest college'; did the most offensive rebounds than defensive rebounds refers to max(subtract(sum(oRebounds), sum(dRebounds))); full name refers to first_name, middle_name, last_name", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "more than 2 different teams refers to count(tmID) > 2", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "\"AFS\" is the tmID; tallest height refers to Max(height)", "average height refers to avg(height)", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))"]}} {"set": {"query": "Among the teams that were ranked 3 from 1937 to 1940, what is the team name whose players had the highest point?", "pos": ["from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)"], "neg": ["name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "the 'NBA coach of the year' award refers to award = 'NBA coach of the year'; from 1971 - 1975 refers to year between 1971 and 1975; 'POR' team refers to tmID = 'POR'", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "final round of post season refers to round = 'CSF'; won against LAL refers to tmIDLoser = 'LAL'; in the NBA league refers to lgID = 'NBA'; won more than 60 games refers to won > 60", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%"]}} {"set": {"query": "Between the years 1990 and 2007, of the total rebounds achieved by each player, how many managed to exceed 75% of defensive rebounds?", "pos": ["the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75"], "neg": ["average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))", "beat the Huston refers to tmIDLoser = 'HSM';\u00a0 in final round of post season refers to round = 'DSF'", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'", "team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "played more than 3800 points refers to Sum(points) > = 3800", "name of the university refers to highSchool; NBA refers to lgID = 'NBA'; Finals MVP refers to award = 'Finals MVP'; in 1990 refers to year = 1990", "\"NBL\" is the lgID; 'Spencer' is the birthCity"]}} {"set": {"query": "How many times between 1975 and 1980 did the player abdulka01 play for LAL?", "pos": ["between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'"], "neg": ["in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12", "full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)"]}} {"set": {"query": "What are the basketball players' BMI ranges?", "pos": ["BMI = Multiply(Divide(weight, Multiply(height, height)), 703)"], "neg": ["team with 90% games won refers to Divide (won, games) > 0.9", "in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%", "full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)", "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))", "home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7", "in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm"]}} {"set": {"query": "How many percent of points were scored by NBA players who belonged to 'LAL' team and had performed steals movement.", "pos": ["NBA refers to lgID = 'NBA'; 'LAL' team refers to tmID = 'LAL'; performed steals movement refers to steals > 0; percent = divide(count(playerID where steals > 0), count(playerID)) where lgID = 'NBA' and tmID = 'LAL' * 100%"], "neg": ["drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "shortest player refers to Min(height); black players refers to race = 'B'", "\"UCLA\" is the college; team with most players refers to tmID where Max(Count(playerID))", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "\"NBL\" is the lgID; 'Spencer' is the birthCity", "\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "more than 2 different teams refers to count(tmID) > 2", "Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975", "team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970"]}} {"set": {"query": "What is the average weight of the players who have won the award of Rookie of the year?", "pos": ["\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))"], "neg": ["\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100", "BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "played more than 3800 points refers to Sum(points) > = 3800", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "more than 2 different teams refers to count(tmID) > 2", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "between 1951 and 1953 refers to season_id; field goal refers to fg_made"]}} {"set": {"query": "What is the full name of the team that selected Mike Lynn?", "pos": ["full name refers to teams.name"], "neg": ["\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "average height refers to avg(height)", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "the most rebounds refers to max(rebounds)", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "No.1 draft pick refers to draftRound = 1; in the 2003 season refers to draftyear = 2003; increase = subtract(divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2004, divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2003)", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975"]}} {"set": {"query": "How many games did team of the scoring champion win in 2001 NBA season?", "pos": ["the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'"], "neg": ["team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975", "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "in 1937 refers to year = 1937; player got at least 500 points refers to Sum(points) > = 500", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'"]}} {"set": {"query": "Among players who were born after 1950, who had offence rebounds rates more than 30%? Please list their last names and first names.", "pos": ["born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3"], "neg": ["2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "1973 season refers to season_id = 1973; black refers to race = 'B'", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "the 'NBA coach of the year' award refers to award = 'NBA coach of the year'; from 1971 - 1975 refers to year between 1971 and 1975; 'POR' team refers to tmID = 'POR'", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "college refers to highSchool; won the most award refers to max(count(award)); in 1970 refers to year = 1970", "the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'"]}} {"set": {"query": "List the full name and age of the player when he won the \"Finals MVP\" in 2003.", "pos": ["full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003"], "neg": ["\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75", "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm", "\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID", "college refers to highSchool; won the most award refers to max(count(award)); in 1970 refers to year = 1970", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'"]}} {"set": {"query": "Which team(s) had 90% games won. List the coach ID for the team and year played.", "pos": ["team with 90% games won refers to Divide (won, games) > 0.9"], "neg": ["more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988", "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "full name refers to teams.name", "more than 2 different teams refers to count(tmID) > 2", "the most rebounds refers to max(rebounds)", "team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "percentage of winning at the home = Divide(homeWon, won) * 100"]}} {"set": {"query": "How many teams have played more than 3800 points and have player with \"Most Valuable Player\" award?", "pos": ["played more than 3800 points refers to Sum(points) > = 3800"], "neg": ["completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513", "player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "the same starting player refers to GP = GS; full name of the team refers to teams.name"]}} {"set": {"query": "What is the full name of the team that has the most players from UCLA?", "pos": ["\"UCLA\" is the college; team with most players refers to tmID where Max(Count(playerID))"], "neg": ["in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))", "shortest player refers to Min(height); black players refers to race = 'B'"]}} {"set": {"query": "Please list the top three shortest black players.", "pos": ["shortest player refers to Min(height); black players refers to race = 'B'"], "neg": ["\"BLB\" is the tmID", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)", "in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%", "player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID"]}} {"set": {"query": "Which player from Wake Forest college did the most offensive rebounds than defensive rebounds in the all-star? Please mention the full name of the player including the middle name if have any.", "pos": ["Wake Forest college refers to highSchool = 'Wake Forest college'; did the most offensive rebounds than defensive rebounds refers to max(subtract(sum(oRebounds), sum(dRebounds))); full name refers to first_name, middle_name, last_name"], "neg": ["didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "\"AFS\" is the tmID; tallest height refers to Max(height)", "more than 2 different teams refers to count(tmID) > 2", "highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))", "1973 season refers to season_id = 1973; black refers to race = 'B'", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'"]}} {"set": {"query": "What is the percentage of player who won \"All-Defensive First Team\" from 1980 - 2000 is from 'NY'.", "pos": ["\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100"], "neg": ["name of the university refers to highSchool; NBA refers to lgID = 'NBA'; Finals MVP refers to award = 'Finals MVP'; in 1990 refers to year = 1990", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "played more than 3800 points refers to Sum(points) > = 3800", "coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'", "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "\"NBA\" is the lgID; server more than 2 teams refers to Count(tmID) = 2", "team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))"]}} {"set": {"query": "Among the coaches who won the 'ABA Coach of the Year' award, which is the coach with the highest number of won games?", "pos": ["\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))"], "neg": ["highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))", "\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "from 1960 to 1970 refers to season_id between 1960 and 1970; still alive refers to deathDate = '0000-00-00'", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'", "more than 50 games won refers to won > 50", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "in year '1988' refers to year = 1988; the most 'won' than 'lost' refers to max(subtract(won, lost))"]}} {"set": {"query": "List out all the coach ID who have served more than 2 different teams.", "pos": ["more than 2 different teams refers to count(tmID) > 2"], "neg": ["the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "the most rebounds refers to max(rebounds)", "from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'", "team refers to tmID; MVP refers to award like '%MVP'; 1997 refers to year = 1997; NBA refers to lgID = 'NBA'", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5"]}} {"set": {"query": "How many players, in games played in 1990, achieved 50% or less of oRebounds than dRebounds.", "pos": ["in 1990 refers to season_id = 1990; 50% or less of oRebounds than dRebounds refers to o_rebounds < = multiply(d_rebounds, 0.5)"], "neg": ["\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID", "high school in Chicago refers to hsCity = 'Chicago'; belong to the west conference refers to divID = 'WE'", "full name refers to teams.name", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "beat the Huston refers to tmIDLoser = 'HSM';\u00a0 in final round of post season refers to round = 'DSF'", "full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)", "\"NBL\" is the lgID; 'Spencer' is the birthCity", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'"]}} {"set": {"query": "Give the player id of the man who had the most turnovers whose team missed the playoffs in year 1988.", "pos": ["the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988"], "neg": ["team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "1973 season refers to season_id = 1973; black refers to race = 'B'"]}} {"set": {"query": "Who is the longest serving coach from year 1970 to 1980. List the coach ID and the team(s) he served.", "pos": ["1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID"], "neg": ["between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'", "Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975", "year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm", "\"AFS\" is the tmID; tallest height refers to Max(height)", "BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000", "the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988", "\"BLB\" is the tmID", "minimum weight refers to Min(weight)"]}} {"set": {"query": "Which NBA team that didn't play in playoffs had the most winning rate in the 2000 NBA regular season?", "pos": ["NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))"], "neg": ["Wake Forest college refers to highSchool = 'Wake Forest college'; did the most offensive rebounds than defensive rebounds refers to max(subtract(sum(oRebounds), sum(dRebounds))); full name refers to first_name, middle_name, last_name", "\"NBA\" is the lgID; server more than 2 teams refers to Count(tmID) = 2", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "average height refers to avg(height)", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "from 1960 to 1970 refers to season_id between 1960 and 1970; still alive refers to deathDate = '0000-00-00'", "weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID", "\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100", "the most rebounds refers to max(rebounds)"]}} {"set": {"query": "Among the players who went to high school in Chicago, how many of them belongs to the west conference?", "pos": ["high school in Chicago refers to hsCity = 'Chicago'; belong to the west conference refers to divID = 'WE'"], "neg": ["from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "higher than 75 inch refers to height > 75", "home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "percentage of winning at the home = Divide(homeWon, won) * 100", "completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'", "\"UCLA\" is the college; team with most players refers to tmID where Max(Count(playerID))"]}} {"set": {"query": "Which team had more than one player who grabbed more than 600 rebounds in 2011? Give the full name of the team.", "pos": ["more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name"], "neg": ["in year '1988' refers to year = 1988; the most 'won' than 'lost' refers to max(subtract(won, lost))", "higher than 75 inch refers to height > 75", "in 1973 refers to year = 1973; player with highest field goal made refers to Max(Divide(fgMade, fgAttempted))", "\"AFS\" is the tmID; tallest height refers to Max(height)", "played more than 3800 points refers to Sum(points) > = 3800", "\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID", "the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "from 1962 to 2011 refers to year between 1960 and 2011; received both NBA and ABA award refers to coachID where award LIKE 'NBA%' and 'ABA%'", "between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'"]}} {"set": {"query": "Of all the All-star players who played in the Eastern Conference for no more than 5 minutes, how many went to Illinois College?", "pos": ["Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5"], "neg": ["\"AFS\" is the tmID; tallest height refers to Max(height)", "won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "team with 90% games won refers to Divide (won, games) > 0.9", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "\"BLB\" is the tmID", "team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970", "full name refers to teams.name", "in 1973 refers to year = 1973; player with highest field goal made refers to Max(Divide(fgMade, fgAttempted))", "played more than 3800 points refers to Sum(points) > = 3800", "\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)"]}} {"set": {"query": "For the latest passing player who could play all the positions in the court, how many points did he have in his career?", "pos": ["the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'"], "neg": ["Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "between 1951 and 1953 refers to season_id; field goal refers to fg_made", "the most rebounds refers to max(rebounds)", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988", "NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))", "Wake Forest college refers to highSchool = 'Wake Forest college'; did the most offensive rebounds than defensive rebounds refers to max(subtract(sum(oRebounds), sum(dRebounds))); full name refers to first_name, middle_name, last_name"]}} {"set": {"query": "Which teams have winning rate less than 50%?", "pos": ["team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5"], "neg": ["highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))", "\"BLB\" is the tmID", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "more than 50 games won refers to won > 50", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "minimum weight refers to Min(weight)", "won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010"]}} {"set": {"query": "For the 2001 rebounds leader in the league, when was his birthday?", "pos": ["2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate"], "neg": ["the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988", "percentage of winning at the home = Divide(homeWon, won) * 100", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'", "home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "college refers to highSchool; won the most award refers to max(count(award)); in 1970 refers to year = 1970", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "average height refers to avg(height)"]}} {"set": {"query": "Which are the teams coached by 'adelmri01' from year 1990-1995. List the team name, year and offense point.", "pos": ["year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm"], "neg": ["2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)", "more than 50 games won refers to won > 50", "1973 season refers to season_id = 1973; black refers to race = 'B'", "\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100", "average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979"]}} {"set": {"query": "In the year 1998, how many home wins did the team which had the 1st round, 12th pick have that year?", "pos": ["in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon"], "neg": ["NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))", "the same starting player refers to GP = GS; full name of the team refers to teams.name", "\"NBA Coach of the Year\" is the award; in 1977 refers to year = 1977; in 1976 refers to year = 1976; division refers to divisionID", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "won the most MVP refers to Max(Count(award = 'Most Valuable Player'))", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000", "team with 90% games won refers to Divide (won, games) > 0.9", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "more than 2 different teams refers to count(tmID) > 2"]}} {"set": {"query": "Please list the top five players with the most steals in the year 1997. Please give their full name.", "pos": ["full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)"], "neg": ["name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "shortest player refers to Min(height); black players refers to race = 'B'", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "the latest passing refers to max(season_id); play all the positions refers to pos like '%C%' or pos like '%F%' or pos like '%G%'", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "higher than 75 inch refers to height > 75", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "in 1937 refers to year = 1937; player got at least 500 points refers to Sum(points) > = 500", "in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon"]}} {"set": {"query": "List all the coatches of the Oklahoma City Thunder", "pos": ["coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'"], "neg": ["completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))", "team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "minimum weight refers to Min(weight)", "percentage of winning at the home = Divide(homeWon, won) * 100", "served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)", "the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75"]}} {"set": {"query": "What is the average BMI of an All-star player?", "pos": ["average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))"], "neg": ["in 1973 refers to year = 1973; player with highest field goal made refers to Max(Divide(fgMade, fgAttempted))", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "team with 90% games won refers to Divide (won, games) > 0.9", "more than 2 different teams refers to count(tmID) > 2", "percentage of winning at the home = Divide(homeWon, won) * 100", "NBA refers to lgID = 'NBA'; didn't play in the playoffs refers to PostGP = 0; 2000 refers to year = 2000; the most winning rate refers to max(divide(won, add(won, lost)))", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "name of the university refers to highSchool; NBA refers to lgID = 'NBA'; Finals MVP refers to award = 'Finals MVP'; in 1990 refers to year = 1990", "greater than 75% lost refers to Divide(lost, games) > 0.75; team refers to tmID"]}} {"set": {"query": "Which team had the most same starting players througout the season? Give the full name of the team.", "pos": ["the same starting player refers to GP = GS; full name of the team refers to teams.name"], "neg": ["NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7", "in 1937 refers to year = 1937; player got at least 500 points refers to Sum(points) > = 500", "full name refers to teams.name", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "from 1960 to 1970 refers to season_id between 1960 and 1970; still alive refers to deathDate = '0000-00-00'", "\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)", "didn't play in playoffs refers to PostGP = 0; in the year 1997 refers to year = 1997; the most total rebounds refers to max(o_tmRebound)", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'", "team name refers to teams.name; drafted from 'Seattle' refers to draftFrom = 'Seattle'; between year 1965 to 1970 refers to draftYear between 1965 and 1970"]}} {"set": {"query": "From which college was the player who won the most award in 1970.", "pos": ["college refers to highSchool; won the most award refers to max(count(award)); in 1970 refers to year = 1970"], "neg": ["the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "highest home lost rate = Max(Divide(homelost, Sum(homeWon, homeLost)))", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "in 1973 refers to year = 1973; player with highest field goal made refers to Max(Divide(fgMade, fgAttempted))", "from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "the Most improved Player refers to award = 'Most Improved Player'; from 1985-1990 refers to year between 1985 and 1990; country is USA refers to birthCountry = 'USA'", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12", "in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'"]}} {"set": {"query": "In which league did the player who weighs 40% less than the heaviest player and whose height is 80 inches play?", "pos": ["weigh 40% less than the heaviest player refers to weight = Multiply(Max (weight), 0.6); league refers to lgID"], "neg": ["born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm", "minimum weight refers to Min(weight)", "average height refers to avg(height)", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name", "coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975", "player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'"]}} {"set": {"query": "What is the full name of the team with the fastest growth in winning rate in the 'ABA' league from 1972 to 1973?", "pos": ["\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))"], "neg": ["\"NBL\" is the lgID; 'Spencer' is the birthCity", "Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975", "in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7", "in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "average height refers to avg(height)", "full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)"]}} {"set": {"query": "What is the first and last name of the player with the highest field goal made rate in 1973?", "pos": ["in 1973 refers to year = 1973; player with highest field goal made refers to Max(Divide(fgMade, fgAttempted))"], "neg": ["\"All-Defensive First Team\" is the award; ' NY' is the birthState; 1980 to 2000 refers to year between 1980 and 2000; percentage = Divide (Count(playerID where birthState = 'NY'), Count(playerID)) * 100", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "in 1998 refers to year = 1998; 1st round refers to draftRound = 1; 12th pick refers to draftSelection = 12; home win refers to homeWon", "completed in the Western conference refers to conference = 'West'; in season 2006 refers to season_id = 2006; total of two blocks refers to blocks = 2; nickname refers to nameNick", "full name refers to firstName, middleName, lastName; age = subtract(2003, year(birthDate)); won the \"Finals MVP\" refers to award = 'Finals MVP'; in 2003 refers to year = 2003", "higher than 75 inch refers to height > 75", "\"Rookie of the Year\" is the award; average weight = Divide (Sum(weight), Count(playerID))", "name of the university refers to highSchool; NBA refers to lgID = 'NBA'; Finals MVP refers to award = 'Finals MVP'; in 1990 refers to year = 1990", "\"AFS\" is the tmID; tallest height refers to Max(height)", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985"]}} {"set": {"query": "Name the youngest player who ever won \"Rookie of the Year\".", "pos": ["player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'"], "neg": ["BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "NBA refers to lgID = 'NBA'; in 1996 season refers to season_id = 1996; more than 70% free throw rate refers to ft_made > = 0 AND ft_attempted > 0 AND divide(ft_made, ft_attempted) > 0.7", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "Auburn University refers to college = 'Auburn'; won an \"All-Defensive Second Team\" award refers to award = 'All-Defensive Second Team'; percentage = divide(count(playerID where award = 'All-Defensive Second Team'), count(playerID)) where college = 'Auburn' * 100%", "high school in Chicago refers to hsCity = 'Chicago'; belong to the west conference refers to divID = 'WE'", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)", "\"BLB\" is the tmID", "average height refers to avg(height)", "between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'"]}} {"set": {"query": "How many players received Most Valuable Player award from 1969 to 1975?", "pos": ["Most Valuable Player award refers to award = 'Most Valuable Player'; from 1969 to 1975 refers to year between 1969 and 1975"], "neg": ["minimum weight refers to Min(weight)", "shortest player refers to Min(height); black players refers to race = 'B'", "full name refers to teams.name", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "team refers to tmID; the highest point per minute refers to max(divide(points, minutes)); NBA refers to lgID = 'NBA'; from 1991 to 2000 refers to year BETWEEN 1991 AND 2000", "average height refers to avg(height)", "the most rebounds refers to max(rebounds)"]}} {"set": {"query": "Please list down the last name of players from \"BLB\" team.", "pos": ["\"BLB\" is the tmID"], "neg": ["1973 season refers to season_id = 1973; black refers to race = 'B'", "BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%", "home won than home lost more than 80% refers to Divide(Subtract(homeWon, homeLost), games) > 0.8; offense point refers to o_fgm", "the most turnovers refers to max(turnovers); missed the playoffs refers to PostGP = 0; in year 1988 refers to year = 1988", "between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'", "2001 refers to year = 2001; rebounds leader refers to max(rebounds); birthday refers to birthDate", "minimum weight refers to Min(weight)", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID"]}} {"set": {"query": "Which coach has the most 'won' than 'lost' in year '1988'?", "pos": ["in year '1988' refers to year = 1988; the most 'won' than 'lost' refers to max(subtract(won, lost))"], "neg": ["between 1951 and 1953 refers to season_id; field goal refers to fg_made", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "Eastern conference refers to conference = 'East'; no more than 5 minutes refers to minutes < 5", "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "the most rebounds refers to max(rebounds)", "player refers to playerID; the most game presentations refers to max(GP); in 2020 refers to year = 2020; NBA season refers to lgID = 'NBA'", "percentage of winning at the home = Divide(homeWon, won) * 100", "\"ABA\" is the lgID; from 1972 to 1973 refers to year = 1972 and year = 1973; team with the fastest growth in winning rate = Max(Subtract(Divide(won where year = 1973, Sum(won, lost)),Divide(won where year = 1972, Sum(won, lost))))", "NBA refers to lgID = 'NBA'; 'LAL' team refers to tmID = 'LAL'; performed steals movement refers to steals > 0; percent = divide(count(playerID where steals > 0), count(playerID)) where lgID = 'NBA' and tmID = 'LAL' * 100%", "in 2010 refers to year = 2010; attended high school in Chicago refers to college = 'Chicago'"]}} {"set": {"query": "How many All Star players who played in the 1973 season were black?", "pos": ["1973 season refers to season_id = 1973; black refers to race = 'B'"], "neg": ["the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75", "\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'", "average BMI refers to AVG (Multiply(Divide(weight, Multiply(height, height)), 703))", "born in Winter Haven refers to birthCity = 'Winter Haven'; during the 1980s in All-Stars refers to season_id = 1980; played in 12 minutes\u00a0 per season refers to minutes = 12", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979", "name of the university refers to highSchool; NBA refers to lgID = 'NBA'; Finals MVP refers to award = 'Finals MVP'; in 1990 refers to year = 1990"]}} {"set": {"query": "In the year 1997 allstar game, which teams did the players had the most rebounds play in? List their team ids.", "pos": ["in 1997 refers to year = 1997; the most rebounds refers to max(rebounds); team id refers to tmID"], "neg": ["team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "in year 2000 refers to year = 2000; percentage = divide(sum(o_rebounds), sum(rebounds)) * 100%", "in 1973 refers to year = 1973; player with highest field goal made refers to Max(Divide(fgMade, fgAttempted))", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "in 1937 refers to year = 1937; player got at least 500 points refers to Sum(points) > = 500", "1973 season refers to season_id = 1973; black refers to race = 'B'", "between 1951 and 1953 refers to season_id; field goal refers to fg_made", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "born after 1950 refers to birthDate > = '1950-01-01'; offence rebound rate more than 30% refers to Divide (oRebounds, rebounds) > 0.3"]}} {"set": {"query": "Which coach of the Chicago Bulls during the year 1981 won the NBA Coach of the Year award in the 1970s?", "pos": ["\"Chicago Bull\" is the name of team; during the year 1981 refers to year = 1981; 'NBA Coach of the Year' is the award; in the 1970s refers to year between 1970 to 1979"], "neg": ["the most rebounds refers to max(rebounds)", "team refers to tmID; quarterfinal refers to round = 'QF'; score 3,513 defensive points refers to d_pts > = 3513", "NBA refers to lgID = 'NBA'; 'LAL' team refers to tmID = 'LAL'; performed steals movement refers to steals > 0; percent = divide(count(playerID where steals > 0), count(playerID)) where lgID = 'NBA' and tmID = 'LAL' * 100%", "in 1990 refers to season_id = 1990; 50% or less of oRebounds than dRebounds refers to o_rebounds < = multiply(d_rebounds, 0.5)", "\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))", "more than 50 games won refers to won > 50", "between 1951 and 1953 refers to season_id; field goal refers to fg_made", "in 1937 refers to year = 1937; player got at least 500 points refers to Sum(points) > = 500", "team with winning rate less than 50% refers to Divide (won, Sum(won, lost)) < 0.5", "more than one player refers to count(playerID) > 1; grabbed more than 600 rebounds refers to rebounds > 600; in 2011 refers to 2011; full name refers to teams.name"]}} {"set": {"query": "In what year did the only team to beat the Houston in the final round of postseason series games earn its lowest ranking?", "pos": ["beat the Huston refers to tmIDLoser = 'HSM';\u00a0 in final round of post season refers to round = 'DSF'"], "neg": ["year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm", "full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)", "BMI = Multiply(Divide(weight, Multiply(height, height)), 703)", "final round of post season refers to round = 'CSF'; won against LAL refers to tmIDLoser = 'LAL'; in the NBA league refers to lgID = 'NBA'; won more than 60 games refers to won > 60", "full name refers to teams.name", "between 1975 and 1980 refers to year between 1975 and 1980; player abdulka01 refers to playerID = 'abdulka01'; play for LAL refers to tmID = 'LAL'", "served more than 2 NBA teams refers to count (tmID) > = 2; least number of game lost in post season refers to Min(post_losses)", "most assist refers to Max(assists); in 1985 All Star season refers to season_id = 1985", "No.1 draft pick refers to draftRound = 1; in the 2003 season refers to draftyear = 2003; increase = subtract(divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2004, divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2003)", "\"AFS\" is the tmID; tallest height refers to Max(height)"]}} {"set": {"query": "Which player from \"AFS\" team has the tallest height?", "pos": ["\"AFS\" is the tmID; tallest height refers to Max(height)"], "neg": ["team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "2005 refers to year = 2005 ; previous year refers to year = 2004; team with greater winning than previous year refers to Won where year = 2005 > Won where year = 2004; team name refers to tmID", "name of team refers to teams.name; between 1980 and 2000 refers to year between 1980 and 2000; ranked first five or more times refers to count(rank = 1) > = 5; lost a league two or more times refers to lost > 2", "final round of post season refers to round = 'CSF'; won against LAL refers to tmIDLoser = 'LAL'; in the NBA league refers to lgID = 'NBA'; won more than 60 games refers to won > 60", "greater than 75% lost refers to Divide(lost, games) > 0.75; team refers to tmID", "from 1937 to 1940 refers to year between 1937 and 1940; player with highest point refers to Max(points)", "full name of the team refers to teams.name; in 2001 refers to year = 2001; didn't make the playoffs refers to PostGP = 0; won the most games refers to max(won)", "beat the Huston refers to tmIDLoser = 'HSM';\u00a0 in final round of post season refers to round = 'DSF'", "\"BLB\" is the tmID"]}} {"set": {"query": "Name the team in which the coach won the title 'NBA Coach of the Year' in 2010.", "pos": ["team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010"], "neg": ["coach refers to coachID; Oklahoma City Thunder refers to name = 'Oklahoma City Thunder'", "player name refers to playerID; the youngest refers to max(birthDate); won \"Rookie of the Year\" refers to award = 'Rookie of the Year'", "\"Denver Nuggets\" is the name of team; since 1980 refers to year > 1980; tallest player = Max(height)", "NBA refers to lgID = 'NBA'; 'LAL' team refers to tmID = 'LAL'; performed steals movement refers to steals > 0; percent = divide(count(playerID where steals > 0), count(playerID)) where lgID = 'NBA' and tmID = 'LAL' * 100%", "\"AFS\" is the tmID; tallest height refers to Max(height)", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "played more than 3800 points refers to Sum(points) > = 3800", "1970 to 1980 refers to year between 1970 and 1980; longest serving coach Max(Count(coachID)); team(s) he served refers to tmID", "more than 2 different teams refers to count(tmID) > 2", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name"]}} {"set": {"query": "Which team(s) has greater than 75% lost among all the games played.", "pos": ["greater than 75% lost refers to Divide(lost, games) > 0.75; team refers to tmID"], "neg": ["year 1990-1995 refers to year between 1990 and 1995; 'adelmri01' is the coachID; offense point refers to o_fgm", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "full name refers to firstName, middleName, lastName; in 1973 refers to year = 1973; not born in USA refers to birthCountry <> 'USA'", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "the scoring champion refers to max(won); 2001 refers to year = 2001; NBA refers to lgID = 'NBA'", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "more than 50 games won refers to won > 50", "full attendance refers to GP = 82; in 1995 refers to year = 1995; the most turnovers refers to max(turnovers); full name refers to first_name, last_name", "in 2000 refers to year = 2000; played the least minutes refers to min(minutes); without missing a single game refers to GP = 82; full name of the team refers to teams.name", "\"ABA Coach of the Year\" is the award; highest number of won games refers to Max(Count(won))"]}} {"set": {"query": "How many field goals did George Mikan make overall between 1951 and 1953?", "pos": ["between 1951 and 1953 refers to season_id; field goal refers to fg_made"], "neg": ["more than 2 different teams refers to count(tmID) > 2", "in 1969 refers to year = 1969; awarded \"NBA Coach of the Year\" refers to award = 'NBA Coach of the Year'; percentage = divide(count(coachID where year = 1969 and award = 'NBA Coach of the Year'), count(coachID)) * 100%", "champion refers to round = 'F'; team name refers to teams.name; from year 1950 to 1960 refers to year between 1950 and 1960", "full name refers to firstName, middleName, lastName; in the year 1997 refers to year = 1997; the most steals refers to max(steals)", "drafted in the 1st round refers to draftRound = 1; 6th position refers to draftSelection = 6; in 1976 refers to year = 1976; team refers to tmID", "No.1 draft pick refers to draftRound = 1; in the 2003 season refers to draftyear = 2003; increase = subtract(divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2004, divide(sum(won), add(sum(won), sum(lost))) where draftyear = 2003)", "\"UCLA\" is the college; team with most players refers to tmID where Max(Count(playerID))", "team name refers to teams.name; won the title 'NBA Coach of the Year' refers to award = 'NBA Coach of the Year'; in 2010 refers to year = 2010", "Wake Forest college refers to highSchool = 'Wake Forest college'; did the most offensive rebounds than defensive rebounds refers to max(subtract(sum(oRebounds), sum(dRebounds))); full name refers to first_name, middle_name, last_name", "in 1937 refers to year = 1937; player got at least 500 points refers to Sum(points) > = 500"]}} {"set": {"query": "Find out which business ID are opened all the time.", "pos": ["opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;"], "neg": ["long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';", "in Arizona refers to state = 'AZ'; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "number of running business refers to COUNT(business_id) where active = 'true'; each review count includes review_count = 'High', review_count = 'Medium', review_count = 'Low';", "AVG(user_yelping_since_year) where user_id from Elite;", "Tempe is a city; high review count refers to review_count = 'High'", "can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'"]}} {"set": {"query": "Among the businesses in Chandler, list the attribute of the business with a low review count.", "pos": ["in Chandler refers to city = 'Chandler'; attribute refers to attribute_name"], "neg": ["number of running business refers to COUNT(business_id) where active = 'true'; each review count includes review_count = 'High', review_count = 'Medium', review_count = 'Low';", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "type of compliments refers to compliment_type; user No. refers to user_id;", "in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'", "more appealing to users refers to MAX(review_count);", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", "AVG(user_yelping_since_year) where user_fans = 'uber';", "user's compliment in photo refers to compliment_type = 'photo'; photo has medium in number refers to number_of_compliments = 'Medium'"]}} {"set": {"query": "List down the category of businesses whose stars ratings are 5.", "pos": ["category of businesses refers to category_name; stars ratings are 5 refers to stars = 5"], "neg": ["less than 5 low compliment refers to number_of_compliments < 5", "how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);", "false", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", "in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3", "user No. refers to user_id;"]}} {"set": {"query": "Calculate difference between business that have the highest number of reviews and business that have the lowest number of reviews.", "pos": ["highest number of reviews refers to SUBTRACT(MAX(COUNT(business_id), MIN(COUNT(business_id))))"], "neg": ["without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'", "businesses with long length tips refer to business_id where tip_length = 'Long';", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "Yelp_Business no.1 refers to business_id = 1", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5", "business number refers to business_id; Scottsdale refers to city = 'Scottsdale'; day number refers to day_id;", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "businesses in \"Pets\" category refers to category_name = 'Pets'; percentage refers to DIVIDE(COUNT(category_name = 'Pets'), COUNT(business_id)) * 100%"]}} {"set": {"query": "How many stars on average does user no.3 give to Yelp_Business in Arizona?", "pos": ["user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))"], "neg": ["in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;", "12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%"]}} {"set": {"query": "How many Yelp_Business in Anthem are under the category of \"Food\"?", "pos": ["in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'"], "neg": ["ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "category refers to category_name", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);", "short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;", "uber number of fans refers to user_fans = 'uber';", "medium length tip refers to tip_length = 'Medium';"]}} {"set": {"query": "In businesses with a category of mexican, how many of them has a star rating below 4?", "pos": ["category of mexican refers to category_name = 'Mexican'; star rating below 4 refers to stars < 4"], "neg": ["do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "average review = Divide(Count(user_id), Count(business_id))", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "type of compliments refers to compliment_type; user No. refers to user_id;", "started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "\"ambience_romantic\" attribute refers to attribute_name = 'ambience_romantic' AND attribute_value = 'true'", "state refers to city", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "business No. refers to business_id; have TV refers to attribute_name = 'Has TV';"]}} {"set": {"query": "What is the average business time for Yelp_Business no.1 on weekends?", "pos": ["Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)"], "neg": ["with great experience refers to stars = 5", "active business refers to active = 'true'; category of Fashion refers to category = 'Fashion'", "rating more than 2 refers to stars > 2;", "state refers to city", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "medium refers to number_of_compliments = 'Medium';", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "the most reviews refer to MAX(user_id);", "short tip refers to tip_length = 'Short'; business category refers to category_name", "user yelping since 2010 to 2012 refers to user_yelping_since_year > = '2010' AND user_yelping_since_year < '2013'; low fans refers to user_fans = 'Low'"]}} {"set": {"query": "What business category is the Yelp business which got the most 5 star reviews in?", "pos": ["business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));"], "neg": ["without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'", "user yelping since 2010 to 2012 refers to user_yelping_since_year > = '2010' AND user_yelping_since_year < '2013'; low fans refers to user_fans = 'Low'", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012", "best elite refers to user_average_stars = 5; worse eliter refers to user_average_stars = 1: in 2013 refers to year_id = 2013; ratio = Divide(Count(user_id(user_average_stars = 5)),\u00a0 Count(user_id(user_average_stars = 1)))", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "short comment refers to tip_length = 'Short'; users who joined in 2010 refer to user_id where user_yelping_since_year = 2010;", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name"]}} {"set": {"query": "Calculate the difference between running business in Glendale City and Mesa City.", "pos": ["running business refers to business where active = 'true';"], "neg": ["low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "year the user join the Yelp refers to user_yelping_since_year; star reviews refers to review_stars;", "in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3", "average review = Divide(Count(user_id), Count(business_id))", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)"]}} {"set": {"query": "Find out which hotel and travel business having the most review? Calculate the standard deviation of the review star for this business.", "pos": ["\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))"], "neg": ["active business refers to active = 'true'; category of Fashion refers to category = 'Fashion'", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;", "photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", "business number refers to business_id;", "users refer to user_id; review_votes_funny = 'uber';", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';", "still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'"]}} {"set": {"query": "Count the active businesses that has an attribute of caters with low review count.", "pos": ["active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'"], "neg": ["running business refers to business where active = 'true';", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "since year 2012 refers to user_yelping_since_year = '2012'", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';"]}} {"set": {"query": "Among the businesses with a category of Local Services, what is the percentage of the business with less than 3 stars?", "pos": ["\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100"], "neg": ["highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "state refers to city", "average review = Divide(Count(user_id), Count(business_id))"]}} {"set": {"query": "Calculate the percentage of business which opened on Sunday from 9AM to 9PM based on the number of business opened on Sunday.", "pos": ["Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;"], "neg": ["opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", "\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;"]}} {"set": {"query": "How many users with a long tip and 2 likes for their tip have a high number of fans?", "pos": ["long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'"], "neg": ["active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "AZ refers to state = 'AZ'; stars < 3;", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "with great experience refers to stars = 5", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;"]}} {"set": {"query": "How many 2 stars rated business located in Phoenix, Arizona?", "pos": ["located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'"], "neg": ["closed at 8PM refers to closing_time = '8PM';", "under the category of \"Food\" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "Tempe is a city; high review count refers to review_count = 'High'", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "long refers to review_length = 'Long';", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));"]}} {"set": {"query": "What is the yearly average review done by user ID 3?", "pos": ["yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))"], "neg": ["businesses with long length tips refer to business_id where tip_length = 'Long';", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", "categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'", "closed at 8PM refers to closing_time = '8PM';", "are still running refers to active = 'true'; the category of \"Food\" refers to category_name = 'Food'", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "\"Scottsdale\" is the name of city; high review count refers to review_count = 'High'; attribute of the business refers to attribute_name"]}} {"set": {"query": "What city does the business have a business hour from 10 am to 12 pm on Sunday?", "pos": ["10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'"], "neg": ["types of music refers to attribute_name LIKE '%music%' WHERE attribute_value = 'true'; business No. refers to business_id;\n", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "Yelp_Business no.1 refers to business_id = 1; open on refers to opening_time; Tuesdays refers to day_of_week = 'Tuesday'", "businesses are not closed refers to active = 'true'", "business number refers to business_id;", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "AVG(user_yelping_since_year) where user_id from Elite;", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;"]}} {"set": {"query": "List the active business ID and its stars of the businesses fall under the category of Fashion.", "pos": ["active business refers to active = 'true'; category of Fashion refers to category = 'Fashion'"], "neg": ["category of businesses refers to category_name; stars ratings are 5 refers to stars = 5", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "medium length tip refers to tip_length = 'Medium';", "yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "closed/not running refers to active = 'False'; most reviews refers to MAX(COUNT(user_id));", "uber number of fans refers to user_fans = 'uber';", "active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state"]}} {"set": {"query": "How many users have joined Yelp since the year 2012?", "pos": ["since year 2012 refers to user_yelping_since_year = '2012'"], "neg": ["still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "5-star refers to stars = 5; in Ahwatukee refers to city = 'Ahwatukee'; business category refers to category_name", "\"Gilbert\" is the name of city; highest star rating refers to Max(stars)", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now", "businesses in Arizona refer to business_id where state = 'Arizona'; average review less than 3 stars refers to AVG(review_stars) < 3.0;"]}} {"set": {"query": "Sum up the number of business with \"ambience_romantic\" attribute.", "pos": ["\"ambience_romantic\" attribute refers to attribute_name = 'ambience_romantic' AND attribute_value = 'true'"], "neg": ["music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now", "short tip refers to tip_length = 'Short'; business category refers to category_name", "AVG(user_yelping_since_year) where user_fans = 'uber';", "photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", "no longer in business refers to active = 'False'; low number of votes useful refers to review_votes_useful = 'Low';"]}} {"set": {"query": "User No.\"63469\" has got \"1\" like for a tip to the Yelp business, which city is that business located in?", "pos": ["user No. refers to user_id;"], "neg": ["AZ refers to state = 'AZ'; stars < 3;", "attribute_value = 'beer_and_wine'", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "the most reviews refer to MAX(user_id);", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "Arizona refers to state = 'AZ'; still running refers to active = 'true';", "categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));"]}} {"set": {"query": "Which city has more Yelp_Business that's more appealing to users, Scottsdale or Anthem?", "pos": ["more appealing to users refers to MAX(review_count);"], "neg": ["opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;", "without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'", "active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "uber number of fans refers to user_fans = 'uber';", "user No. refers to user_id; short tip refers to tip_length = 'short'; category refers to category_name;", "attribute name which start with \"music\" refers to attribute_name LIKE 'music%'", "year has the most elite users refers to year_id with MAX(user_id);", "closed at 8PM refers to closing_time = '8PM';", "name of business refers to category_name;", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;"]}} {"set": {"query": "Please list all the categories of the Yelp_Business in Arizona.", "pos": ["categories refers to category_name; in Arizona refers to state = 'AZ'"], "neg": ["ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "closed/not running refers to active = 'False'; most reviews refers to MAX(COUNT(user_id));", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "with great experience refers to stars = 5", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';", "year has the most elite users refers to year_id with MAX(user_id);", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year"]}} {"set": {"query": "Among the Yelp_Businesses which are still running, how many of them fall under the category of \"Food\"?", "pos": ["are still running refers to active = 'true'; the category of \"Food\" refers to category_name = 'Food'"], "neg": ["do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'", "high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1", "business No. refers to business_id; have TV refers to attribute_name = 'Has TV';", "\"Shopping Centers\" is the category_name; high review count refers to review_count = 'High'", "percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "\"Tempe\" is the name of city; long review refers to review_length = 'Long'", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'"]}} {"set": {"query": "Among the Yelp_Business in Arizona, how many of them closes at 12PM on Sundays?", "pos": ["in Arizona refers to state = 'AZ'; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'"], "neg": ["closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1", "under the category \"Food\" refers to category_name = 'Food'", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "\"Scottsdale\" is the name of city; high review count refers to review_count = 'High'; attribute of the business refers to attribute_name", "longest business time refers to max(subtract(closing_time, opening_time)); on Mondays refers to day_of_week = 'Monday';\u00a0 category \"Shopping\" refers to category_name = 'Shopping'", "user's compliment in photo refers to compliment_type = 'photo'; photo has medium in number refers to number_of_compliments = 'Medium'", "actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';"]}} {"set": {"query": "Find the Yelp user with the average 5-star rating of all reviews who has been yelping the longest.", "pos": ["Yelp user refers to user_id; average 5-star rating refers to user_average_stars = 5; yelping the longest refers to min(user_yelping_since_year)"], "neg": ["elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "in Casa Grande refers to city = 'Casa Grande'", "average review = Divide(Count(user_id), Count(business_id))"]}} {"set": {"query": "Calculate the yearly average user who started using Yelp from the year of 2005 to 2014.", "pos": ["avg(user_id) where user_yelping_since_year BETWEEN '2005' AND '2014';"], "neg": ["short reviews refer to tip_length = 'Short';", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "AVG(user_yelping_since_year) where user_id from Elite;", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "AZ refers to state = 'AZ'; stars < 3;", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "state refers to city", "good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n"]}} {"set": {"query": "How many \"cute\" type of compliments does user No. 57400 get?", "pos": ["type of compliments refers to compliment_type; user No. refers to user_id;"], "neg": ["businesses with long length tips refer to business_id where tip_length = 'Long';", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "Arizona refers to state = 'AZ'; still running refers to active = 'true';", "users refer to user_id; review_votes_funny = 'uber';", "close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "active businesses in Arizona refer to business_id where state = 'Arizona' and active = 'true'; work after 12PM refer to opening_time > '12PM';"]}} {"set": {"query": "How many active businesses from Casa Grande are registered in the database?", "pos": ["active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'"], "neg": ["music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "opening times of 7AM and closing times of 8PM refer to Business_Hours where opening_time = '7AM' and closing_time = '8PM'; active business refers to business_id where active = 'true';", "days from Monday to Saturday refer to day_id between 2 and 7; work the most days can be computed as MAX(COUNT(category_name where day_id between 2 and 7));", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", "categories refers to category_name", "short tip refers to tip_length = 'Short'; business category refers to category_name", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))"]}} {"set": {"query": "Provide business ids with opening hours 10AM on Saturday.", "pos": ["opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;"], "neg": ["located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "longest business time refers to max(subtract(closing_time, opening_time)); on Mondays refers to day_of_week = 'Monday';\u00a0 category \"Shopping\" refers to category_name = 'Shopping'", "became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "AZ refers to state = 'AZ'; stars < 3;", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));"]}} {"set": {"query": "What is the ratio of good to bad business star for a businesses that are opened all the time?", "pos": ["opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));"], "neg": ["Arizona refers to state = 'AZ'; still running refers to active = 'true';", "short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);", "long reviews refers to review_length = 'Long'; medium number of useful votes refers to review_votes_useful = 'medium';", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "\"Gilbert\" is the name of city; highest star rating refers to Max(stars)", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012"]}} {"set": {"query": "How many businesses in Arizona having an average review less than 3 stars?", "pos": ["businesses in Arizona refer to business_id where state = 'Arizona'; average review less than 3 stars refers to AVG(review_stars) < 3.0;"], "neg": ["in Chandler refers to city = 'Chandler'; attribute refers to attribute_name", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "false", "located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'"]}} {"set": {"query": "How many active businesses of city are underrated?", "pos": ["active businesses refers to active = 'true'; underrated refers to review_count = 'Low';"], "neg": ["located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'", "less than 5 low compliment refers to number_of_compliments < 5", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "in Casa Grande refers to city = 'Casa Grande'", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3", "false", "more appealing to users refers to MAX(review_count);", "\"Tempe\" is the name of city; long review refers to review_length = 'Long'", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);"]}} {"set": {"query": "Indicate the business id and days which are opened from 8AM to 6PM.", "pos": ["opened from 8AM to 6PM refers to Business_Hours where opening_time = '8AM' and closing_time = '6PM'; days refer to day_id;"], "neg": ["closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "ID of businesses refers to business_id; reviews with the lowest veracity refers to review_count = 'Low' AND stars > 3; Paradise Valley is a city", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "long reviews refers to review_length = 'Long'; medium number of useful votes refers to review_votes_useful = 'medium';", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;", "ID number refers to attribute_id"]}} {"set": {"query": "Which business ID has the most reviews?", "pos": ["the most reviews refer to MAX(user_id);"], "neg": ["in Glendale refers to city = 'Glendale'", "user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))", "medium reviews refers to review_length = 'Medium';", "rating more than 2 refers to stars > 2;", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));", "no longer in business refers to active = 'False'; low number of votes useful refers to review_votes_useful = 'Low';", "opening times of 7AM and closing times of 8PM refer to Business_Hours where opening_time = '7AM' and closing_time = '8PM'; active business refers to business_id where active = 'true';", "photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "\"Tempe\" is the name of city; long review refers to review_length = 'Long'"]}} {"set": {"query": "State the state of businesses which have closing time at 12AM.", "pos": ["state refers to city"], "neg": ["closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "bars refers to category_name = 'Bars';", "without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "number of useful votes refers to review_votes_useful; business number refers to business_id;", "user's compliment in photo refers to compliment_type = 'photo'; photo has medium in number refers to number_of_compliments = 'Medium'", "AVG(user_yelping_since_year) where user_id from Elite;"]}} {"set": {"query": "How many businesses are there in Phoenix city? Find the percentage of businesses in Phoenix city in the total city.", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);"], "neg": ["businesses in \"Pets\" category refers to category_name = 'Pets'; percentage refers to DIVIDE(COUNT(category_name = 'Pets'), COUNT(business_id)) * 100%", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';", "yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))", "automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);", "business number refers to business_id;", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "\"South Carolina\" and \"California\" are both state; average review stars from users = Divide((Sum(review_stars(state = 'SC')) + Sum(review_stars(state = 'CA'))), Sum(stars))", "short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;"]}} {"set": {"query": "How long does business number 12 in Scottsdale stay open on day number 3?", "pos": ["business number refers to business_id; Scottsdale refers to city = 'Scottsdale'; day number refers to day_id;"], "neg": ["businesses have the category named food refer to business_id where category_name = 'Food'; DIVIDE(COUNT(business_id where category_name = 'Food' and stars < 2), COUNT(business_id where category_name = 'Food')) as percentage;", "medium reviews refers to review_length = 'Medium';", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "medium refers to number_of_compliments = 'Medium';", "Scottsdale refers to city = 'Scottsdale'; positive comments refers to stars > 3; Elitestar rating refers to stars;", "the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now", "percentage refers to DIVIDE(COUNT(attribute_name = 'Accepts Credit Cards'), COUNT(business_id))*100%", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;"]}} {"set": {"query": "Who has got the most number of \"funny\" type of compliments? Give the user ID.", "pos": ["type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));"], "neg": ["long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "with great experience refers to stars = 5", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "Yelp_Business no.1 refers to business_id = 1", "under the category of \"Food\" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "average ratings of at least 4 refers to user_average_stars > = 4; no fans or followers refers to user_fans = 'None'; percentage = divide(count(user_id where user_average_stars > = 4 and user_fans = 'None'), sum(user_id where user_average_stars > = 4))*100%", "AVG(user_yelping_since_year) where user_id from Elite;"]}} {"set": {"query": "Among the long reviews made by user ID 3, how many of them have received a medium number of useful votes?", "pos": ["long reviews refers to review_length = 'Long'; medium number of useful votes refers to review_votes_useful = 'medium';"], "neg": ["active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "businesses have the category named food refer to business_id where category_name = 'Food'; DIVIDE(COUNT(business_id where category_name = 'Food' and stars < 2), COUNT(business_id where category_name = 'Food')) as percentage;", "Yelp_Business no.1 refers to business_id = 1", "ID of businesses refers to business_id; reviews with the lowest veracity refers to review_count = 'Low' AND stars > 3; Paradise Valley is a city", "under the category \"Food\" refers to category_name = 'Food'", ";", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "running business refers to business where active = 'true';", "on Sunday refers to day_of_week = 'Sunday'"]}} {"set": {"query": "How many \"5\" star reviews does the Yelp business No. \"10682\" get?", "pos": ["5 star reviews refers to review_stars = 5; business No. refers to business_id;"], "neg": ["actively running refers to active = 'true';", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "Scottsdale refers to city = 'Scottsdale'; positive comments refers to stars > 3; Elitestar rating refers to stars;", "ID of businesses refers to business_id; reviews with the lowest veracity refers to review_count = 'Low' AND stars > 3; Paradise Valley is a city", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "less than 5 low compliment refers to number_of_compliments < 5", "best elite refers to user_average_stars = 5; worse eliter refers to user_average_stars = 1: in 2013 refers to year_id = 2013; ratio = Divide(Count(user_id(user_average_stars = 5)),\u00a0 Count(user_id(user_average_stars = 1)))", "longest business time refers to max(subtract(closing_time, opening_time)); on Mondays refers to day_of_week = 'Monday';\u00a0 category \"Shopping\" refers to category_name = 'Shopping'", "medium length of review refers to review_length = 'Medium'", "percentage refers to DIVIDE(COUNT(attribute_name = 'Accepts Credit Cards'), COUNT(business_id))*100%"]}} {"set": {"query": "How many Yelp_Business in Arizona has user no. 3 reviewed?", "pos": ["in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3"], "neg": ["1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now", "short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "name of business refers to category_name;", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012", ";", "since year 2012 refers to user_yelping_since_year = '2012'", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name"]}} {"set": {"query": "How many users manage to get uber votes for all of the review category? Find out what are the user average star.", "pos": ["users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';"], "neg": ["on Sunday refers to day_of_week = 'Sunday'", "businesses have the category named food refer to business_id where category_name = 'Food'; DIVIDE(COUNT(business_id where category_name = 'Food' and stars < 2), COUNT(business_id where category_name = 'Food')) as percentage;", "since year 2012 refers to user_yelping_since_year = '2012'", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "\"ambience_romantic\" attribute refers to attribute_name = 'ambience_romantic' AND attribute_value = 'true'", "more appealing to users refers to MAX(review_count);", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "attribute_value = 'beer_and_wine'", "ID of businesses refers to business_id; reviews with the lowest veracity refers to review_count = 'Low' AND stars > 3; Paradise Valley is a city"]}} {"set": {"query": "How many businesses are actively running in Gilbert City?", "pos": ["actively running refers to active = 'true';"], "neg": ["category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "Tempe is a city; high review count refers to review_count = 'High'", "closed at 8PM refers to closing_time = '8PM';", "categories refers to category_name; Yelp_Business no.1 refers to business_id = 1", "bars refers to category_name = 'Bars';", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100"]}} {"set": {"query": "In which year did the user who has given the most number of \"short\" tips join the Yelp?", "pos": ["year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));"], "neg": ["good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", "days from Monday to Saturday refer to day_id between 2 and 7; work the most days can be computed as MAX(COUNT(category_name where day_id between 2 and 7));", "short comment refers to tip_length = 'Short'; users who joined in 2010 refer to user_id where user_yelping_since_year = 2010;", "categories refers to category_name", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "5-star refers to stars = 5; in Ahwatukee refers to city = 'Ahwatukee'; business category refers to category_name", "Yelp_Business no.1 refers to business_id = 1"]}} {"set": {"query": "Among all closed businesses in Avondale, AZ what percent have obtained a 'wonderful experience' rating of the business.", "pos": ["closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%"], "neg": ["ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "bars refers to category_name = 'Bars';", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "\"ambience_romantic\" attribute refers to attribute_name = 'ambience_romantic' AND attribute_value = 'true'", "in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'"]}} {"set": {"query": "Sum up the likes get by short reviews on businesses located in City Goodyear.", "pos": ["short reviews refer to tip_length = 'Short';"], "neg": ["closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "attribute_value = 'beer_and_wine'", "running business refers to business where active = 'true';", "active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", "active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "days from Monday to Saturday refer to day_id between 2 and 7; work the most days can be computed as MAX(COUNT(category_name where day_id between 2 and 7));"]}} {"set": {"query": "Is the Yelp business No. 14033 good for supper?", "pos": ["business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'"], "neg": ["ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "more appealing to users refers to MAX(review_count);", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "businesses in Arizona refer to business_id where state = 'Arizona'; average review less than 3 stars refers to AVG(review_stars) < 3.0;"]}} {"set": {"query": "How many user's compliment in photo has medium in number?", "pos": ["user's compliment in photo refers to compliment_type = 'photo'; photo has medium in number refers to number_of_compliments = 'Medium'"], "neg": ["low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);", "close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'", "short tip refers to tip_length = 'Short'; business category refers to category_name", "users refer to user_id; review_votes_funny = 'uber';", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name", "started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'", "opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", "active businesses refers to active = 'true'; Phoenix refers to city = 'Phoenix';"]}} {"set": {"query": "How long was the review for business number 2 that user number 612 wrote?", "pos": ["how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;"], "neg": ["year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'", "days from Monday to Saturday refer to day_id between 2 and 7; work the most days can be computed as MAX(COUNT(category_name where day_id between 2 and 7));", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "active businesses refers to active = 'true'; underrated refers to review_count = 'Low';", "uber number of fans refers to user_fans = 'uber';", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';", "business No. refers to business_id; have TV refers to attribute_name = 'Has TV';", "automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);"]}} {"set": {"query": "List out which business category that are most likely to have average good review in Arizona?", "pos": ["average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name"], "neg": ["in 2012 refers to actual_year = 2012;", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n", "short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)"]}} {"set": {"query": "How many \"cool\" type compliments does user No. 41717 get?", "pos": ["\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717"], "neg": ["businesses in \"Pets\" category refers to category_name = 'Pets'; percentage refers to DIVIDE(COUNT(category_name = 'Pets'), COUNT(business_id)) * 100%", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1", "average ratings of at least 4 refers to user_average_stars > = 4; no fans or followers refers to user_fans = 'None'; percentage = divide(count(user_id where user_average_stars > = 4 and user_fans = 'None'), sum(user_id where user_average_stars > = 4))*100%", "opening hours refers to opening_time; category refers to category_name;", "DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;", "more appealing to users refers to MAX(review_count);", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);"]}} {"set": {"query": "How many businesses in Glendale are reviewed by user with the ID of 20241?", "pos": ["in Glendale refers to city = 'Glendale'"], "neg": ["days from Monday to Saturday refer to day_id between 2 and 7; work the most days can be computed as MAX(COUNT(category_name where day_id between 2 and 7));", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name", "active business refers to active = 'true'; 'Pets' is the category_name", "average review = Divide(Count(user_id), Count(business_id))", "business which received the most likes refers to business_id where MAX(likes);"]}} {"set": {"query": "Which businesses with the category name Accessories have opening hours before 7AM?", "pos": ["opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;"], "neg": ["average review = Divide(Count(user_id), Count(business_id))", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", "\"Gilbert\" is the name of city; highest star rating refers to Max(stars)", "became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id", "yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))", "under the category \"Food\" refers to category_name = 'Food'"]}} {"set": {"query": "List the closing time and day of week of active businesses in Scottsdale with stars greater than the 60% of average age of star rating.", "pos": ["active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%"], "neg": ["business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "in Chandler refers to city = 'Chandler'; attribute refers to attribute_name", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));", "name of business refers to category_name;", "located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'"]}} {"set": {"query": "List at least 5 users that has received less than 5 low compliments from\nother users.", "pos": ["less than 5 low compliment refers to number_of_compliments < 5"], "neg": ["how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)", "average review = Divide(Count(user_id), Count(business_id))", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "opening hours refers to opening_time; category refers to category_name;", "active businesses refers to active = 'true'; Phoenix refers to city = 'Phoenix';", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))"]}} {"set": {"query": "How many Yelp businesses are there in 'AZ' with less than \"3\" stars?", "pos": ["AZ refers to state = 'AZ'; stars < 3;"], "neg": ["highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", "state refers to city", "state refers to city", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "5-star refers to stars = 5; in Ahwatukee refers to city = 'Ahwatukee'; business category refers to category_name", "year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))", "active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'", "started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'"]}} {"set": {"query": "Among the working days from Monday to Saturday, which businesses with the category names work the most days?", "pos": ["days from Monday to Saturday refer to day_id between 2 and 7; work the most days can be computed as MAX(COUNT(category_name where day_id between 2 and 7));"], "neg": ["in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now", "Tempe is a city; high review count refers to review_count = 'High'", "\"Shopping Centers\" is the category_name; high review count refers to review_count = 'High'", "user yelping since 2010 to 2012 refers to user_yelping_since_year > = '2010' AND user_yelping_since_year < '2013'; low fans refers to user_fans = 'Low'", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "\"Tempe\" is the name of city; long review refers to review_length = 'Long'"]}} {"set": {"query": "Indicate the opening hours of businesses are with category in fashion.", "pos": ["opening hours refers to opening_time; category refers to category_name;"], "neg": ["category of businesses refers to category_name; stars ratings are 5 refers to stars = 5", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "Tempe is a city; high review count refers to review_count = 'High'", "short tip refers to tip_length = 'Short'; business category refers to category_name", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "\"South Carolina\" and \"California\" are both state; average review stars from users = Divide((Sum(review_stars(state = 'SC')) + Sum(review_stars(state = 'CA'))), Sum(stars))", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)"]}} {"set": {"query": "What is the total number of active business in AZ with a high review count?", "pos": ["active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'"], "neg": ["9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';", "active business refers to active = 'true'; 'Pets' is the category_name", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);", ";", "do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n"]}} {"set": {"query": "What percentage more for the \"Women's Clothing\" Yelp businesses to \"Men's Clothing\"?", "pos": ["Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);"], "neg": ["are still running refers to active = 'true'; the category of \"Food\" refers to category_name = 'Food'", "high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "attribute_value = 'beer_and_wine'", ";", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "state refers to city", "in 2012 refers to actual_year = 2012;", "type of compliments refers to compliment_type; user No. refers to user_id;", "category of mexican refers to category_name = 'Mexican'; star rating below 4 refers to stars < 4"]}} {"set": {"query": "Among the businesses in Tempe, list the attribute of the business with a medium review count.", "pos": ["Tempe is a city; high review count refers to review_count = 'High'"], "neg": ["opened from 8AM to 6PM refers to Business_Hours where opening_time = '8AM' and closing_time = '6PM'; days refer to day_id;", "yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';", "medium refers to number_of_compliments = 'Medium';", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "short reviews refer to tip_length = 'Short';", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'"]}} {"set": {"query": "Please list the cities of the Yelp_Businesses that have gotten a 5 in the Elitestar rating.", "pos": ["5 in the Elitestar rating refers to stars = 5;"], "neg": ["ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "\"Shopping Centers\" is the category_name; high review count refers to review_count = 'High'", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "long reviews refers to review_length = 'Long'; medium number of useful votes refers to review_votes_useful = 'medium';", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", ";"]}} {"set": {"query": "How many Yelp_Businesses in Scottsdale have received positive comments in the Elitestar rating?", "pos": ["Scottsdale refers to city = 'Scottsdale'; positive comments refers to stars > 3; Elitestar rating refers to stars;"], "neg": ["12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "businesses in Arizona refer to business_id where state = 'Arizona'; average review less than 3 stars refers to AVG(review_stars) < 3.0;", "more appealing to users refers to MAX(review_count);", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "businesses have the category named food refer to business_id where category_name = 'Food'; DIVIDE(COUNT(business_id where category_name = 'Food' and stars < 2), COUNT(business_id where category_name = 'Food')) as percentage;", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name"]}} {"set": {"query": "How many users who started yelping since 2012 have sent a high number of funny votes?", "pos": ["users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';"], "neg": ["name of business refers to category_name;", "more appealing to users refers to MAX(review_count);", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);", "DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));", "good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n", "attribute_value = 'beer_and_wine'", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id"]}} {"set": {"query": "List the categories of all active businesses that were not in Arizona.", "pos": ["active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name"], "neg": ["\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "Yelp_Business no.1 refers to business_id = 1; open on refers to opening_time; Tuesdays refers to day_of_week = 'Tuesday'", "category refers to category_name", "medium length tip refers to tip_length = 'Medium';", "categories refers to category_name", "attribute_value = 'beer_and_wine'", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;"]}} {"set": {"query": "What are the categories that business number 15 belongs to?", "pos": ["business number refers to business_id;"], "neg": ["Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3", "active businesses refers to active = 'true'; Phoenix refers to city = 'Phoenix';", "highest number of reviews refers to SUBTRACT(MAX(COUNT(business_id), MIN(COUNT(business_id))))", "in Arizona refers to state = 'AZ'; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'", "10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'", "businesses have the category named food refer to business_id where category_name = 'Food'; DIVIDE(COUNT(business_id where category_name = 'Food' and stars < 2), COUNT(business_id where category_name = 'Food')) as percentage;"]}} {"set": {"query": "Count the active businesses that has an attribute of Wi-Fi with medium review count.", "pos": ["active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'"], "neg": ["rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "the most reviews refer to MAX(user_id);", ";", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';", "automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);", "with great experience refers to stars = 5", "uber number of fans refers to user_fans = 'uber';", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'"]}} {"set": {"query": "In which categories does the only business located in the city of Arcadia appear?", "pos": ["categories refers to category_name"], "neg": ["Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", "businesses with long length tips refer to business_id where tip_length = 'Long';", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "opened from 8AM to 6PM refers to Business_Hours where opening_time = '8AM' and closing_time = '6PM'; days refer to day_id;", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "best elite refers to user_average_stars = 5; worse eliter refers to user_average_stars = 1: in 2013 refers to year_id = 2013; ratio = Divide(Count(user_id(user_average_stars = 5)),\u00a0 Count(user_id(user_average_stars = 1)))"]}} {"set": {"query": "What is the average year for a user to be upgraded to elite user?", "pos": ["AVG(user_yelping_since_year) where user_id from Elite;"], "neg": ["Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "medium length of review refers to review_length = 'Medium'", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", "state refers to city", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)"]}} {"set": {"query": "What is the average year needed by a user with uber fans to become an elite user?", "pos": ["AVG(user_yelping_since_year) where user_fans = 'uber';"], "neg": ["in 2012 refers to actual_year = 2012;", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "under the category \"Food\" refers to category_name = 'Food'", "review of 4 star and above refers to stars > 4; DIVIDE(SUM(stars > 4), COUNT(business_id)) = 0.65;", "uber number of fans refers to user_fans = 'uber';"]}} {"set": {"query": "For the Yelp businesses which received a \"5\" star review with \"uber\" number of votes for funny, which one is located in \"Phoenix\"? Give the business ID.", "pos": ["located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'"], "neg": ["closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "the most reviews refer to MAX(user_id);", "state refers to city", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'", "bars refers to category_name = 'Bars';", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012"]}} {"set": {"query": "List out city name of businesses which have medium length of review.", "pos": ["medium length of review refers to review_length = 'Medium'"], "neg": ["opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "actively running refers to active = 'true';", "attribute name which start with \"music\" refers to attribute_name LIKE 'music%'", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "average ratings of at least 4 refers to user_average_stars > = 4; no fans or followers refers to user_fans = 'None'; percentage = divide(count(user_id where user_average_stars > = 4 and user_fans = 'None'), sum(user_id where user_average_stars > = 4))*100%", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)"]}} {"set": {"query": "How many active businesses are opened during late afternoon in the Phoenix city? List out the top 3 categories name for these businesses.", "pos": ["opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';"], "neg": ["short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'", "the most reviews refer to MAX(user_id);", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "AVG(user_yelping_since_year) where user_id from Elite;", "under the category \"Food\" refers to category_name = 'Food'", "user No. refers to user_id;", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "active businesses refers to active = 'true'; underrated refers to review_count = 'Low';"]}} {"set": {"query": "Find out which business is opened for 24/7 and list out what is the business attribute.", "pos": ["opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name"], "neg": ["categories refers to category_name; Yelp_Business no.1 refers to business_id = 1", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", "medium refers to number_of_compliments = 'Medium';", "uber number of fans refers to user_fans = 'uber';", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "Arizona refers to state = 'AZ';", "yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))", "started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;"]}} {"set": {"query": "How many Yelp_Businesses in Arizona have a Elitestar rating of over 4?", "pos": ["Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;"], "neg": ["business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));", "short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;", "AZ refers to state = 'AZ'; stars < 3;", "closed/not running refers to active = 'False'; most reviews refers to MAX(COUNT(user_id));", "average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", "high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1", "review of 4 star and above refers to stars > 4; DIVIDE(SUM(stars > 4), COUNT(business_id)) = 0.65;", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;"]}} {"set": {"query": "How many short tips were left for the business with ID no.2?", "pos": ["short tip refers to tip_length = 'Short'; business category refers to category_name"], "neg": ["businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "type of compliments refers to compliment_type; user No. refers to user_id;", "Tempe is a city; high review count refers to review_count = 'High'", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "active businesses refers to active = 'true'; underrated refers to review_count = 'Low';"]}} {"set": {"query": "Which business ID received the review of 4 star and above by 65% of user? Describe their active status and city.", "pos": ["review of 4 star and above refers to stars > 4; DIVIDE(SUM(stars > 4), COUNT(business_id)) = 0.65;"], "neg": ["do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "businesses with long length tips refer to business_id where tip_length = 'Long';", "category of businesses refers to category_name; stars ratings are 5 refers to stars = 5", "Scottsdale refers to city = 'Scottsdale'; positive comments refers to stars > 3; Elitestar rating refers to stars;", "days from Monday to Saturday refer to day_id between 2 and 7; work the most days can be computed as MAX(COUNT(category_name where day_id between 2 and 7));", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "2006 and 2007 refers to BETWEEN 2006 AND 2007; greater number in elite user refers to count(user_id)"]}} {"set": {"query": "List all the users with average star less than 3 stars in 2012", "pos": ["average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012"], "neg": ["average review = Divide(Count(user_id), Count(business_id))", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "type of compliments refers to compliment_type; user No. refers to user_id;", "opening times of 7AM and closing times of 8PM refer to Business_Hours where opening_time = '7AM' and closing_time = '8PM'; active business refers to business_id where active = 'true';", "uber number of fans refers to user_fans = 'uber';", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "business number refers to business_id;", "active businesses in Arizona refer to business_id where state = 'Arizona' and active = 'true'; work after 12PM refer to opening_time > '12PM';", "actively running refers to active = 'true';"]}} {"set": {"query": "Write down the number of running business with each review count in Cave Creek city.", "pos": ["number of running business refers to COUNT(business_id) where active = 'true'; each review count includes review_count = 'High', review_count = 'Medium', review_count = 'Low';"], "neg": ["elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3", "2006 and 2007 refers to BETWEEN 2006 AND 2007; greater number in elite user refers to count(user_id)", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)", "\"Scottsdale\" is the name of city; high review count refers to review_count = 'High'; attribute of the business refers to attribute_name", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'"]}} {"set": {"query": "List out the user who is an elite user for consecutively 5 years or more and what is the user average star? How many likes does this user gets?", "pos": ["elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)"], "neg": ["in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "average ratings of at least 4 refers to user_average_stars > = 4; no fans or followers refers to user_fans = 'None'; percentage = divide(count(user_id where user_average_stars > = 4 and user_fans = 'None'), sum(user_id where user_average_stars > = 4))*100%", "businesses in \"Pets\" category refers to category_name = 'Pets'; percentage refers to DIVIDE(COUNT(category_name = 'Pets'), COUNT(business_id)) * 100%", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'", "do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n"]}} {"set": {"query": "How many businesses are with high review count?", "pos": ["high review count refers to review_count = 'High'"], "neg": ["categories refers to category_name; in Arizona refers to state = 'AZ'", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "categories refers to category_name", "businesses have the category named food refer to business_id where category_name = 'Food'; DIVIDE(COUNT(business_id where category_name = 'Food' and stars < 2), COUNT(business_id where category_name = 'Food')) as percentage;", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "in Glendale refers to city = 'Glendale'", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012"]}} {"set": {"query": "List the business located in Mesa that have alcohol attribute.", "pos": ["in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'"], "neg": ["active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "with great experience refers to stars = 5", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';", "low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012", "user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))", "type of compliments refers to compliment_type; user No. refers to user_id;", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;"]}} {"set": {"query": "Please provide the name of businesses with user id \"16328\".", "pos": ["name of business refers to category_name;"], "neg": ["category of mexican refers to category_name = 'Mexican'; star rating below 4 refers to stars < 4", "percentage refers to DIVIDE(COUNT(attribute_name = 'Accepts Credit Cards'), COUNT(business_id))*100%", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "short reviews refer to tip_length = 'Short';", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", ";", "Tempe is a city; high review count refers to review_count = 'High'", "\"Gilbert\" is the name of city; highest star rating refers to Max(stars)", "Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;", "\"Tempe\" is the name of city; long review refers to review_length = 'Long'"]}} {"set": {"query": "How many users have \"uber\" number of fans?", "pos": ["uber number of fans refers to user_fans = 'uber';"], "neg": ["AVG(user_yelping_since_year) where user_id from Elite;", "less than 5 low compliment refers to number_of_compliments < 5", "attribute name which start with \"music\" refers to attribute_name LIKE 'music%'", "Arizona refers to state = 'AZ';", "the most reviews refer to MAX(user_id);", "low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012", "\"South Carolina\" and \"California\" are both state; average review stars from users = Divide((Sum(review_stars(state = 'SC')) + Sum(review_stars(state = 'CA'))), Sum(stars))", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "user No. refers to user_id; short tip refers to tip_length = 'short'; category refers to category_name;", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;"]}} {"set": {"query": "Which city is the business that got a \"medium\" length tip with \"3\" likes located in?", "pos": ["medium length tip refers to tip_length = 'Medium';"], "neg": ["active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%", "Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "categories refers to category_name", "false", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "state refers to city", "business No. refers to business_id; have TV refers to attribute_name = 'Has TV';", "categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name"]}} {"set": {"query": "List the categories of active businesses in Glendale, AZ.", "pos": ["active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state"], "neg": ["Tempe is a city; high review count refers to review_count = 'High'", "in Chandler refers to city = 'Chandler'; attribute refers to attribute_name", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "since year 2012 refers to user_yelping_since_year = '2012'", "businesses with long length tips refer to business_id where tip_length = 'Long';", "average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'"]}} {"set": {"query": "For the Yelp business which had the most number of \"short\" tips, which category does it belong to?", "pos": ["short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;"], "neg": ["closed/not running refers to active = 'False'; most reviews refers to MAX(COUNT(user_id));", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'", "number of running business refers to COUNT(business_id) where active = 'true'; each review count includes review_count = 'High', review_count = 'Medium', review_count = 'Low';", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "type of compliments refers to compliment_type; user No. refers to user_id;", "average ratings of at least 4 refers to user_average_stars > = 4; no fans or followers refers to user_fans = 'None'; percentage = divide(count(user_id where user_average_stars > = 4 and user_fans = 'None'), sum(user_id where user_average_stars > = 4))*100%", "can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "closed at 8PM refers to closing_time = '8PM';"]}} {"set": {"query": "How many business have been reviewed by user ID 3 and how long have this user been with Yelp?", "pos": ["year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)"], "neg": ["year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "on Sunday refers to day_of_week = 'Sunday'", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", "user No. refers to user_id; short tip refers to tip_length = 'short'; category refers to category_name;", "categories refers to category_name; Yelp_Business no.1 refers to business_id = 1", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "rating more than 2 refers to stars > 2;", "number of running business refers to COUNT(business_id) where active = 'true'; each review count includes review_count = 'High', review_count = 'Medium', review_count = 'Low';"]}} {"set": {"query": "What is the average number of review received by each business given that the user is an elite?", "pos": ["average review = Divide(Count(user_id), Count(business_id))"], "neg": ["business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "categories refers to category_name; in Arizona refers to state = 'AZ'", "yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))", "rating more than 2 refers to stars > 2;", "in Glendale refers to city = 'Glendale'", "AVG(user_yelping_since_year) where user_fans = 'uber';", "Yelp_Business no.1 refers to business_id = 1; open on refers to opening_time; Tuesdays refers to day_of_week = 'Tuesday'", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "short tip refers to tip_length = 'Short'; business category refers to category_name", "categories refers to category_name"]}} {"set": {"query": "Please list the business ID of the Yelp_Business with the highest Elitestar rating under the category \"Food\".", "pos": ["under the category \"Food\" refers to category_name = 'Food'"], "neg": ["average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name", "active business refers to active = 'true'; 'Pets' is the category_name", "Yelp_Business no.1 refers to business_id = 1", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "ID number refers to attribute_id", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "ID of businesses refers to business_id; reviews with the lowest veracity refers to review_count = 'Low' AND stars > 3; Paradise Valley is a city", "in Glendale refers to city = 'Glendale'", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city"]}} {"set": {"query": "How many \"bars\" are there in the Yelp business?", "pos": ["bars refers to category_name = 'Bars';"], "neg": ["the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now", "photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", "highest number of reviews refers to SUBTRACT(MAX(COUNT(business_id), MIN(COUNT(business_id))))", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "name of business refers to category_name;", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "active business refers to active = 'true'; 'Pets' is the category_name", "businesses have the category named food refer to business_id where category_name = 'Food'; DIVIDE(COUNT(business_id where category_name = 'Food' and stars < 2), COUNT(business_id where category_name = 'Food')) as percentage;", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;"]}} {"set": {"query": "How many stars on average does a Yelp_Business in Anthem get from a user review?", "pos": ["in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)"], "neg": ["still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "Arizona refers to state = 'AZ'; still running refers to active = 'true';", "12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "attribute name which start with \"music\" refers to attribute_name LIKE 'music%'", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "since year 2012 refers to user_yelping_since_year = '2012'", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "state refers to city", "actively running refers to active = 'true';"]}} {"set": {"query": "List the active business ID and its stars of the businesses fall under the category of Pets.", "pos": ["active business refers to active = 'true'; 'Pets' is the category_name"], "neg": ["business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "short comment refers to tip_length = 'Short'; users who joined in 2010 refer to user_id where user_yelping_since_year = 2010;", "closed at 8PM refers to closing_time = '8PM';", "year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", "ID number refers to attribute_id", "since year 2012 refers to user_yelping_since_year = '2012'"]}} {"set": {"query": "Calculate the average review star from users in businesses located in South Carolina and California state.", "pos": ["\"South Carolina\" and \"California\" are both state; average review stars from users = Divide((Sum(review_stars(state = 'SC')) + Sum(review_stars(state = 'CA'))), Sum(stars))"], "neg": ["\"Gilbert\" is the name of city; highest star rating refers to Max(stars)", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "\"Shopping Centers\" is the category_name; high review count refers to review_count = 'High'", "bars refers to category_name = 'Bars';", "long reviews refers to review_length = 'Long'; medium number of useful votes refers to review_votes_useful = 'medium';", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'"]}} {"set": {"query": "Find the location of businesses that has business hours from 9 am to 9 pm every Saturday.", "pos": ["9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city"], "neg": ["location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "review of 4 star and above refers to stars > 4; DIVIDE(SUM(stars > 4), COUNT(business_id)) = 0.65;", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "percentage refers to DIVIDE(COUNT(attribute_name = 'Accepts Credit Cards'), COUNT(business_id))*100%", "number of running business refers to COUNT(business_id) where active = 'true'; each review count includes review_count = 'High', review_count = 'Medium', review_count = 'Low';"]}} {"set": {"query": "Calculate the percentage of medium tip length in the list. List out the time when users of medium tip length join Yelp.", "pos": ["medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year"], "neg": ["active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)", "active businesses in Arizona refer to business_id where state = 'Arizona' and active = 'true'; work after 12PM refer to opening_time > '12PM';", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'", "year has the most elite users refers to year_id with MAX(user_id);", "business No. refers to business_id; have TV refers to attribute_name = 'Has TV';", "12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "\"Gilbert\" is the name of city; highest star rating refers to Max(stars)"]}} {"set": {"query": "What is the correlation between the review starts and business stars?", "pos": ["highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))"], "neg": ["business which received the most likes refers to business_id where MAX(likes);", "high review count refers to review_count = 'High'", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "type of compliments refers to compliment_type; user No. refers to user_id;", "under the category \"Food\" refers to category_name = 'Food'", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "less than 5 low compliment refers to number_of_compliments < 5", "category refers to category_name", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'"]}} {"set": {"query": "Among the users who have posted more than 10 reviews, how many users are elite users?", "pos": ["posted more than 10 reviews refers to count(Reviews.user_id) > 10"], "neg": ["active businesses refers to active = 'true'; underrated refers to review_count = 'Low';", "in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3", "in 2012 refers to actual_year = 2012;", "year the user join the Yelp refers to user_yelping_since_year; star reviews refers to review_stars;", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';"]}} {"set": {"query": "Give the number of users who joined Yelp since \"2004\".", "pos": ["joined yelp since 2004 refers to user_yelping_since_year = 2004;"], "neg": ["AVG(user_yelping_since_year) where user_id from Elite;", "the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "5 in the Elitestar rating refers to stars = 5;", "10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';"]}} {"set": {"query": "How many businesses operating in the shopping business have opening times before 8AM?", "pos": ["shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';"], "neg": ["active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%", "closed at 8PM refers to closing_time = '8PM';", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "state refers to city", "with great experience refers to stars = 5", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", "active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "\"South Carolina\" and \"California\" are both state; average review stars from users = Divide((Sum(review_stars(state = 'SC')) + Sum(review_stars(state = 'CA'))), Sum(stars))"]}} {"set": {"query": "Among the active businesses located at Mesa, AZ, list the category and attributes of business with a low review count.", "pos": ["active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name"], "neg": ["active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name", "user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))", "the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now", "\"Shopping Centers\" is the category_name; high review count refers to review_count = 'High'", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", "still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "business number refers to business_id;", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5"]}} {"set": {"query": "How many elite users have reviewed Yelp_Business no.1?", "pos": ["Yelp_Business no.1 refers to business_id = 1"], "neg": ["businesses are not closed refers to active = 'true'", "business No. refers to business_id; have TV refers to attribute_name = 'Has TV';", "can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "average review = Divide(Count(user_id), Count(business_id))", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "in Chandler refers to city = 'Chandler'; attribute refers to attribute_name", "high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1", "active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'"]}} {"set": {"query": "Write the user ID, business ID and tips length of who started using Yelp since 2004 and had high followers.", "pos": ["started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'"], "neg": ["still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "bars refers to category_name = 'Bars';", "active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%", "false", "since year 2012 refers to user_yelping_since_year = '2012'", "review of 4 star and above refers to stars > 4; DIVIDE(SUM(stars > 4), COUNT(business_id)) = 0.65;", "\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';"]}} {"set": {"query": "List at least 5 active business ID that are good for groups and dancing.", "pos": ["\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'"], "neg": ["long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "user No. refers to user_id;", "bars refers to category_name = 'Bars';", "with great experience refers to stars = 5", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'", "opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name"]}} {"set": {"query": "What is the most common type of compliments that a user has received from other users?", "pos": ["the most common type of compliments refers to MAX(COUNT(compliment_type))"], "neg": ["still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';", "in 2012 refers to actual_year = 2012;", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "Scottsdale refers to city = 'Scottsdale'; positive comments refers to stars > 3; Elitestar rating refers to stars;", "in Chandler refers to city = 'Chandler'; attribute refers to attribute_name", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3"]}} {"set": {"query": "Between 2006 and 2007, which year ID had the greater number in elite user?", "pos": ["2006 and 2007 refers to BETWEEN 2006 AND 2007; greater number in elite user refers to count(user_id)"], "neg": ["year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)", "\"Gilbert\" is the name of city; highest star rating refers to Max(stars)", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));"]}} {"set": {"query": "For the user who gave the most number of long reviews, what is his/her averge ratings of all review?", "pos": ["long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);"], "neg": ["business number refers to business_id;", "do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n", "bars refers to category_name = 'Bars';", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "longest business time refers to max(subtract(closing_time, opening_time)); on Mondays refers to day_of_week = 'Monday';\u00a0 category \"Shopping\" refers to category_name = 'Shopping'", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "Scottsdale refers to city = 'Scottsdale'; positive comments refers to stars > 3; Elitestar rating refers to stars;", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'"]}} {"set": {"query": "Which closed/not running Yelp business in \"Sun City\" has got the most reviews? Give the business id.", "pos": ["closed/not running refers to active = 'False'; most reviews refers to MAX(COUNT(user_id));"], "neg": ["\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "rating more than 2 refers to stars > 2;", "short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;", "short comment refers to tip_length = 'Short'; users who joined in 2010 refer to user_id where user_yelping_since_year = 2010;", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "Yelp user refers to user_id; average 5-star rating refers to user_average_stars = 5; yelping the longest refers to min(user_yelping_since_year)", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%"]}} {"set": {"query": "How many Yelp_Businesses are there in Arizona in total?", "pos": ["Arizona refers to state = 'AZ';"], "neg": ["in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3", "medium length tip refers to tip_length = 'Medium';", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'"]}} {"set": {"query": "In users yelping since 2010 to 2012, how many of them has an low fans?", "pos": ["user yelping since 2010 to 2012 refers to user_yelping_since_year > = '2010' AND user_yelping_since_year < '2013'; low fans refers to user_fans = 'Low'"], "neg": ["5 in the Elitestar rating refers to stars = 5;", "uber number of fans refers to user_fans = 'uber';", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "under the category \"Food\" refers to category_name = 'Food'", "ID number refers to attribute_id", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'"]}} {"set": {"query": "Among the businesses in Scottsdale, list the attribute of the business with a high review count.", "pos": ["\"Scottsdale\" is the name of city; high review count refers to review_count = 'High'; attribute of the business refers to attribute_name"], "neg": ["the most reviews refer to MAX(user_id);", "average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "business number refers to business_id;", "active businesses refers to active = 'true'; Phoenix refers to city = 'Phoenix';", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now", "short reviews refer to tip_length = 'Short';", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';"]}} {"set": {"query": "How many category id have low review count and rating more than 2?", "pos": ["rating more than 2 refers to stars > 2;"], "neg": ["businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'", "opening times of 7AM and closing times of 8PM refer to Business_Hours where opening_time = '7AM' and closing_time = '8PM'; active business refers to business_id where active = 'true';", "actively running refers to active = 'true';", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;", "user No. refers to user_id; short tip refers to tip_length = 'short'; category refers to category_name;", "AZ refers to state = 'AZ'; stars < 3;", "categories refers to category_name; in Arizona refers to state = 'AZ'", "Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)"]}} {"set": {"query": "Which year has the most elite users?", "pos": ["year has the most elite users refers to year_id with MAX(user_id);"], "neg": ["less than 5 low compliment refers to number_of_compliments < 5", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "longest business time refers to max(subtract(closing_time, opening_time)); on Mondays refers to day_of_week = 'Monday';\u00a0 category \"Shopping\" refers to category_name = 'Shopping'", "active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)", "actively running refers to active = 'true';"]}} {"set": {"query": "Which businesses are no longer in business but have a low number of votes useful?", "pos": ["no longer in business refers to active = 'False'; low number of votes useful refers to review_votes_useful = 'Low';"], "neg": ["short comment refers to tip_length = 'Short'; users who joined in 2010 refer to user_id where user_yelping_since_year = 2010;", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "state refers to city", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name", "active businesses refers to active = 'true'; underrated refers to review_count = 'Low';", "actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';", "active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%", "highest number of reviews refers to SUBTRACT(MAX(COUNT(business_id), MIN(COUNT(business_id))))", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;"]}} {"set": {"query": "In which year did the user who gave the most number of \"5\" star reviews join the Yelp?", "pos": ["year the user join the Yelp refers to user_yelping_since_year; star reviews refers to review_stars;"], "neg": ["most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "categories refers to category_name; Yelp_Business no.1 refers to business_id = 1", "Arizona refers to state = 'AZ'; still running refers to active = 'true';", "days from Monday to Saturday refer to day_id between 2 and 7; work the most days can be computed as MAX(COUNT(category_name where day_id between 2 and 7));", "12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "users refer to user_id; review_votes_funny = 'uber';", "business which received the most likes refers to business_id where MAX(likes);", "opening hours refers to opening_time; category refers to category_name;", "yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))"]}} {"set": {"query": "What is the average rating for the all Yelp businesses that open 24 hours?", "pos": ["open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);"], "neg": ["elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "Yelp_Business no.1 refers to business_id = 1", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "name of business refers to category_name;", "automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);", "the most reviews refer to MAX(user_id);", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "in Chandler refers to city = 'Chandler'; attribute refers to attribute_name", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';"]}} {"set": {"query": "How many \"cool\" compliments did user number 33 receive?", "pos": ["cool compliments refers to compliment_type = 'cool'; user number refers to user_id;"], "neg": ["opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'", "closed/not running refers to active = 'False'; most reviews refers to MAX(COUNT(user_id));", "no longer in business refers to active = 'False'; low number of votes useful refers to review_votes_useful = 'Low';", "yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "avg(user_id) where user_yelping_since_year BETWEEN '2005' AND '2014';"]}} {"set": {"query": "What is the longest business time on Mondays for a Yelp_Business under the category \"Shopping\"?", "pos": ["longest business time refers to max(subtract(closing_time, opening_time)); on Mondays refers to day_of_week = 'Monday';\u00a0 category \"Shopping\" refers to category_name = 'Shopping'"], "neg": ["closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "active business refers to active = 'true'; category of Fashion refers to category = 'Fashion'", "do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n", "in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "long refers to review_length = 'Long';", "Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;"]}} {"set": {"query": "What is the category of the business with medium review length and highest review stars within business ID from 6 t0 9?", "pos": ["category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9"], "neg": ["\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "the most reviews refer to MAX(user_id);", "in 2012 refers to actual_year = 2012;", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));", "longest business time refers to max(subtract(closing_time, opening_time)); on Mondays refers to day_of_week = 'Monday';\u00a0 category \"Shopping\" refers to category_name = 'Shopping'", "ID number refers to attribute_id", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'"]}} {"set": {"query": "What is the active and inactive ratio of the business with the review count of low.", "pos": ["DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));"], "neg": ["Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "\"Shopping Centers\" is the category_name; high review count refers to review_count = 'High'", "located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'", "in Arizona refers to state = 'AZ'; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "short reviews refer to tip_length = 'Short';", "state refers to city", "\"South Carolina\" and \"California\" are both state; average review stars from users = Divide((Sum(review_stars(state = 'SC')) + Sum(review_stars(state = 'CA'))), Sum(stars))", "user yelping since 2010 to 2012 refers to user_yelping_since_year > = '2010' AND user_yelping_since_year < '2013'; low fans refers to user_fans = 'Low'", "name of business refers to category_name;", "false"]}} {"set": {"query": "Among the users who received low compliments from other users, which users joined Yelp in 2012?", "pos": ["low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012"], "neg": ["actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "closed at 8PM refers to closing_time = '8PM';", "\"Gilbert\" is the name of city; highest star rating refers to Max(stars)", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));", "average review = Divide(Count(user_id), Count(business_id))", "located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'"]}} {"set": {"query": "Please list the business IDs of the Yelp_Business that have a business time of longer than 12 hours on Sundays.", "pos": ["business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'"], "neg": ["long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "medium reviews refers to review_length = 'Medium';", "active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'", "highest number of reviews refers to SUBTRACT(MAX(COUNT(business_id), MIN(COUNT(business_id))))", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'", "Tempe is a city; high review count refers to review_count = 'High'", "joined yelp since 2004 refers to user_yelping_since_year = 2004;"]}} {"set": {"query": "What is the attribute value of an inactive business with a medium review count and 3.5 stars which is located at Phoenix, AZ?", "pos": ["inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5"], "neg": ["rating more than 2 refers to stars > 2;", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "users refer to user_id; review_votes_funny = 'uber';", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "Arizona refers to state = 'AZ'; still running refers to active = 'true';", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "with great experience refers to stars = 5", "are still running refers to active = 'true'; the category of \"Food\" refers to category_name = 'Food'", "high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1"]}} {"set": {"query": "Which users become an elite in 2012?", "pos": ["in 2012 refers to actual_year = 2012;"], "neg": ["5-star refers to stars = 5; in Ahwatukee refers to city = 'Ahwatukee'; business category refers to category_name", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "medium reviews refers to review_length = 'Medium';", "user No. refers to user_id;", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "in Casa Grande refers to city = 'Casa Grande'", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';"]}} {"set": {"query": "How many more \"Chinese\" than \"Filipino\" Yelp businesses?", "pos": ["Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));"], "neg": ["category of mexican refers to category_name = 'Mexican'; star rating below 4 refers to stars < 4", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));", "10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'", "in Glendale refers to city = 'Glendale'", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))"]}} {"set": {"query": "How many types of music does Yelp business No.\"1141\" have?", "pos": ["types of music refers to attribute_name LIKE '%music%' WHERE attribute_value = 'true'; business No. refers to business_id;\n"], "neg": ["do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "in Glendale refers to city = 'Glendale'", "user No. refers to user_id;", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "long refers to review_length = 'Long';"]}} {"set": {"query": "List the category of the business with high review count but received 2 stars.", "pos": ["high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name"], "neg": ["businesses in Arizona refer to business_id where state = 'Arizona'; average review less than 3 stars refers to AVG(review_stars) < 3.0;", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", "the most reviews refer to MAX(user_id);", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)"]}} {"set": {"query": "Give the number of \"drive-thru\" businesses in \"Scottsdale\" with business ID number less than \"1000\".", "pos": ["drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;"], "neg": ["user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))", "category refers to category_name", "type of compliments refers to compliment_type; user No. refers to user_id;", "best elite refers to user_average_stars = 5; worse eliter refers to user_average_stars = 1: in 2013 refers to year_id = 2013; ratio = Divide(Count(user_id(user_average_stars = 5)),\u00a0 Count(user_id(user_average_stars = 1)))", "\"South Carolina\" and \"California\" are both state; average review stars from users = Divide((Sum(review_stars(state = 'SC')) + Sum(review_stars(state = 'CA'))), Sum(stars))", "short comment refers to tip_length = 'Short'; users who joined in 2010 refer to user_id where user_yelping_since_year = 2010;", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "types of music refers to attribute_name LIKE '%music%' WHERE attribute_value = 'true'; business No. refers to business_id;\n", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "average review = Divide(Count(user_id), Count(business_id))"]}} {"set": {"query": "Provide the number of Yelp businesses in \"Gilbert\" which got a\" high\" review count.", "pos": ["\"Gilbert\" is the name of city; high review count refers to review_count = 'High'"], "neg": ["short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;", "best elite refers to user_average_stars = 5; worse eliter refers to user_average_stars = 1: in 2013 refers to year_id = 2013; ratio = Divide(Count(user_id(user_average_stars = 5)),\u00a0 Count(user_id(user_average_stars = 1)))", "located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "Scottsdale refers to city = 'Scottsdale'; positive comments refers to stars > 3; Elitestar rating refers to stars;", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'"]}} {"set": {"query": "How many businesses with music_karaoke attribute are closed?", "pos": ["music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'"], "neg": ["Yelp_Business no.1 refers to business_id = 1", "active businesses refers to active = 'true'; Phoenix refers to city = 'Phoenix';", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", ";", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "opening hours refers to opening_time; category refers to category_name;", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "percentage refers to DIVIDE(COUNT(attribute_name = 'Accepts Credit Cards'), COUNT(business_id))*100%"]}} {"set": {"query": "What is the number of useful votes that the user 52592 received when reviewed for business number 2?", "pos": ["number of useful votes refers to review_votes_useful; business number refers to business_id;"], "neg": ["\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "average ratings of at least 4 refers to user_average_stars > = 4; no fans or followers refers to user_fans = 'None'; percentage = divide(count(user_id where user_average_stars > = 4 and user_fans = 'None'), sum(user_id where user_average_stars > = 4))*100%", "Arizona refers to state = 'AZ';", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);", "AVG(user_yelping_since_year) where user_fans = 'uber';", "high review count refers to review_count = 'High'", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))"]}} {"set": {"query": "Please list the categories of the Yelp_Business that closes at 12PM on Sundays.", "pos": ["categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'"], "neg": ["long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "is medium refers to user_fans = 'Medium'; high compliments refers to number_of_compliments = 'High'", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "in Chandler refers to city = 'Chandler'; attribute refers to attribute_name", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "long refers to review_length = 'Long';"]}} {"set": {"query": "Please name one attribute that business number 2 does not have.", "pos": ["business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';"], "neg": ["rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "category of businesses refers to category_name; stars ratings are 5 refers to stars = 5", "categories refers to category_name; Yelp_Business no.1 refers to business_id = 1", "no longer in business refers to active = 'False'; low number of votes useful refers to review_votes_useful = 'Low';", "medium reviews refers to review_length = 'Medium';", "Tempe is a city; high review count refers to review_count = 'High'", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "AVG(user_yelping_since_year) where user_fans = 'uber';", "business number refers to business_id;"]}} {"set": {"query": "Among all the users with the average ratings of at least 4 and above of all reviews, calculate the percent that have no fans or followers.", "pos": ["average ratings of at least 4 refers to user_average_stars > = 4; no fans or followers refers to user_fans = 'None'; percentage = divide(count(user_id where user_average_stars > = 4 and user_fans = 'None'), sum(user_id where user_average_stars > = 4))*100%"], "neg": ["active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "attribute name which start with \"music\" refers to attribute_name LIKE 'music%'", "users refer to user_id; review_votes_funny = 'uber';", "closed at 8PM refers to closing_time = '8PM';", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'"]}} {"set": {"query": "User No. 70271 only has given one tip to the Yelp business, which category was that business belonged to?", "pos": ["user No. refers to user_id; short tip refers to tip_length = 'short'; category refers to category_name;"], "neg": ["shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)", "do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", ";", "business number refers to business_id; Scottsdale refers to city = 'Scottsdale'; day number refers to day_id;", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "in Chandler refers to city = 'Chandler'; attribute refers to attribute_name"]}} {"set": {"query": "How many reviews made by user whose ID is 3 are long?", "pos": ["long refers to review_length = 'Long';"], "neg": ["opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "categories refers to category_name; Yelp_Business no.1 refers to business_id = 1", "Yelp user refers to user_id; average 5-star rating refers to user_average_stars = 5; yelping the longest refers to min(user_yelping_since_year)", "actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "users refer to user_id; review_votes_funny = 'uber';", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'"]}} {"set": {"query": "How many businesses in Glendale city that are still running is opened from 8AM to 6PM?", "pos": ["still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';"], "neg": ["located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';", "located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'", "medium refers to number_of_compliments = 'Medium';"]}} {"set": {"query": "Among the businesses which have short length of review, which one located in Phoenix?", "pos": ["short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'"], "neg": ["high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)", "businesses with long length tips refer to business_id where tip_length = 'Long';", "business number refers to business_id;", "5 in the Elitestar rating refers to stars = 5;", "Yelp_Business no.1 refers to business_id = 1; open on refers to opening_time; Tuesdays refers to day_of_week = 'Tuesday'", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "yearly average review = Divide( Count(business_id), Subtract('%Y'(CURRENT_TIME), user_yelping_since_year))", "actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';", "average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'"]}} {"set": {"query": "Calculate the increment percentage of elite user for each year since year 2005.", "pos": ["since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100"], "neg": ["became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "state refers to city", "category refers to category_name", "located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));"]}} {"set": {"query": "Among the businesses without attribute, how many businesses located in Gilbert?", "pos": ["without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'"], "neg": ["year has the most elite users refers to year_id with MAX(user_id);", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));", "actively running refers to active = 'true';"]}} {"set": {"query": "How many businesses have shopping centers and received high review count?", "pos": ["\"Shopping Centers\" is the category_name; high review count refers to review_count = 'High'"], "neg": ["how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "uber number of fans refers to user_fans = 'uber';", "low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "businesses in \"Pets\" category refers to category_name = 'Pets'; percentage refers to DIVIDE(COUNT(category_name = 'Pets'), COUNT(business_id)) * 100%", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name"]}} {"set": {"query": "List active business ids with opening times of 7AM and closing times of 8PM.", "pos": ["opening times of 7AM and closing times of 8PM refer to Business_Hours where opening_time = '7AM' and closing_time = '8PM'; active business refers to business_id where active = 'true';"], "neg": ["Arizona refers to state = 'AZ';", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'", "state refers to city", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "medium length of review refers to review_length = 'Medium'", "Arizona refers to state = 'AZ'; still running refers to active = 'true';", "percentage refers to DIVIDE(COUNT(attribute_name = 'Accepts Credit Cards'), COUNT(business_id))*100%", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'"]}} {"set": {"query": "How many users became an elite user the same year they joined Yelp?", "pos": ["became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id"], "neg": ["ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'", "active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name", "rating more than 2 refers to stars > 2;", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "category of mexican refers to category_name = 'Mexican'; star rating below 4 refers to stars < 4", "in Anthem refers to city = 'Anthem'; stars on average = avg(review_stars)"]}} {"set": {"query": "How many businesses in AZ state have the beer_and_wine attribute?", "pos": ["beer_and_wine refers to attribute_value = 'beer_and_wine';"], "neg": ["located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "name of business refers to category_name;", "Yelp_Business no.1 refers to business_id = 1", "active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "more appealing to users refers to MAX(review_count);", "is medium refers to user_fans = 'Medium'; high compliments refers to number_of_compliments = 'High'", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", "opened from 8AM to 6PM refers to Business_Hours where opening_time = '8AM' and closing_time = '6PM'; days refer to day_id;"]}} {"set": {"query": "How many businesses are opened for 24 hours?", "pos": ["opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'"], "neg": ["business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "average review = Divide(Count(user_id), Count(business_id))", "Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name", "opening hours refers to opening_time; category refers to category_name;"]}} {"set": {"query": "For all the Yelp businesses that allow customers bring their own beer, what percentage of them are in \"Phoenix\"?", "pos": ["bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)"], "neg": ["businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", "2006 and 2007 refers to BETWEEN 2006 AND 2007; greater number in elite user refers to count(user_id)", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "no longer in business refers to active = 'False'; low number of votes useful refers to review_votes_useful = 'Low';", "\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "false", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "on Sunday refers to day_of_week = 'Sunday'"]}} {"set": {"query": "List the city of the business where they open from 1 pm to 6 pm on Saturday.", "pos": ["1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'"], "neg": ["type of compliments refers to compliment_type; user No. refers to user_id;", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "Arizona refers to state = 'AZ'; still running refers to active = 'true';", "AVG(user_yelping_since_year) where user_fans = 'uber';", "category of mexican refers to category_name = 'Mexican'; star rating below 4 refers to stars < 4", "how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "attribute name which start with \"music\" refers to attribute_name LIKE 'music%'", "AVG(user_yelping_since_year) where user_id from Elite;"]}} {"set": {"query": "How many 5 star businesses have uber review votes for funny?", "pos": ["businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';"], "neg": ["businesses are not closed refers to active = 'true'", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "categories refers to category_name; in Arizona refers to state = 'AZ'", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100"]}} {"set": {"query": "What is the ratio of having the best to worse elite user in 2013?", "pos": ["best elite refers to user_average_stars = 5; worse eliter refers to user_average_stars = 1: in 2013 refers to year_id = 2013; ratio = Divide(Count(user_id(user_average_stars = 5)),\u00a0 Count(user_id(user_average_stars = 1)))"], "neg": ["actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "businesses with long length tips refer to business_id where tip_length = 'Long';", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));", "opening hours refers to opening_time; category refers to category_name;", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "under the category of \"Food\" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'"]}} {"set": {"query": "Does Yelp business No.\"4960\" have TV?", "pos": ["business No. refers to business_id; have TV refers to attribute_name = 'Has TV';"], "neg": ["joined yelp since 2004 refers to user_yelping_since_year = 2004;", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "percentage refers to DIVIDE(COUNT(attribute_name = 'Accepts Credit Cards'), COUNT(business_id))*100%", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "businesses are not closed refers to active = 'true'", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "\"ambience_romantic\" attribute refers to attribute_name = 'ambience_romantic' AND attribute_value = 'true'", "false", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'"]}} {"set": {"query": "Identify the operating hours of businesses in Black Canyon City with review count greater than average.", "pos": ["operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)"], "neg": ["is medium refers to user_fans = 'Medium'; high compliments refers to number_of_compliments = 'High'", "number of useful votes refers to review_votes_useful; business number refers to business_id;", "close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012", "active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)"]}} {"set": {"query": "List out the state of businesses which have opening time at 1AM.", "pos": ["state refers to city"], "neg": ["Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "\"ambience_romantic\" attribute refers to attribute_name = 'ambience_romantic' AND attribute_value = 'true'", "with great experience refers to stars = 5", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "\"Scottsdale\" is the name of city; high review count refers to review_count = 'High'; attribute of the business refers to attribute_name", "user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))", "businesses in Arizona refer to business_id where state = 'Arizona'; average review less than 3 stars refers to AVG(review_stars) < 3.0;"]}} {"set": {"query": "How many Yelp_Business under the category of \"Food\" are good for kids?", "pos": ["under the category of \"Food\" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'"], "neg": ["categories refers to category_name", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "AVG(user_yelping_since_year) where user_fans = 'uber';", "business which received the most likes refers to business_id where MAX(likes);", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "active business refers to active = 'true'; 'Pets' is the category_name"]}} {"set": {"query": "Among all attribute names, list down the ID and attribute name which start with \"music\".", "pos": ["attribute name which start with \"music\" refers to attribute_name LIKE 'music%'"], "neg": ["categories refers to category_name; in Arizona refers to state = 'AZ'", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", "category of mexican refers to category_name = 'Mexican'; star rating below 4 refers to stars < 4", "average review = Divide(Count(user_id), Count(business_id))", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);"]}} {"set": {"query": "How much time do businesses in El Mirage City, AZ State operate in average daily?", "pos": ["how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))"], "neg": ["AVG(user_yelping_since_year) where user_fans = 'uber';", "in Arizona refers to state = 'AZ'; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "AZ refers to state = 'AZ'; stars < 3;", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "average review = Divide(Count(user_id), Count(business_id))", "posted more than 10 reviews refers to count(Reviews.user_id) > 10"]}} {"set": {"query": "How many compliments received from medium users that Phoenix city achieved?", "pos": ["medium refers to number_of_compliments = 'Medium';"], "neg": ["active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "medium reviews refers to review_length = 'Medium';", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "more appealing to users refers to MAX(review_count);", "average review = Divide(Count(user_id), Count(business_id))", "Tempe is a city; high review count refers to review_count = 'High'", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';", "businesses in Arizona refer to business_id where state = 'Arizona'; average review less than 3 stars refers to AVG(review_stars) < 3.0;"]}} {"set": {"query": "How many businesses are not closed in the city of Mesa?", "pos": ["businesses are not closed refers to active = 'true'"], "neg": ["the most reviews refer to MAX(user_id);", "state refers to city", "actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "AVG(user_yelping_since_year) where user_id from Elite;", "business number refers to business_id; business_id = 2; does not have refers to attribute_value = 'none';", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "ID of businesses refers to business_id; reviews with the lowest veracity refers to review_count = 'Low' AND stars > 3; Paradise Valley is a city", "still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'"]}} {"set": {"query": "How many users who have received a low cool vote have also received at least 1 low cool vote for some of their reviews?", "pos": ["low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'"], "neg": ["active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "short reviews refer to tip_length = 'Short';", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "under the category \"Food\" refers to category_name = 'Food'", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012", "categories refers to category_name", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "bars refers to category_name = 'Bars';"]}} {"set": {"query": "Find the 5-star business in Ahwatukee, AZ and identify it's business category.", "pos": ["5-star refers to stars = 5; in Ahwatukee refers to city = 'Ahwatukee'; business category refers to category_name"], "neg": ["still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n", "active businesses refers to active = 'true'; Phoenix refers to city = 'Phoenix';", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", "active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "with great experience refers to stars = 5", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;"]}} {"set": {"query": "Under which categories is Yelp_Business no. 1?", "pos": ["categories refers to category_name; Yelp_Business no.1 refers to business_id = 1"], "neg": ["number of running business refers to COUNT(business_id) where active = 'true'; each review count includes review_count = 'High', review_count = 'Medium', review_count = 'Low';", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "closed/not running refers to active = 'False'; most reviews refers to MAX(COUNT(user_id));", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "type of compliments refers to compliment_type; user No. refers to user_id;", "opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", "review of 4 star and above refers to stars > 4; DIVIDE(SUM(stars > 4), COUNT(business_id)) = 0.65;", "types of music refers to attribute_name LIKE '%music%' WHERE attribute_value = 'true'; business No. refers to business_id;\n"]}} {"set": {"query": "What is the percentage of businesses with \"Good for Kids\" attribute over the other attributes?", "pos": ["\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100"], "neg": ["\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "short tip refers to tip_length = 'Short'; business category refers to category_name", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "under the category \"Food\" refers to category_name = 'Food'", "active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "\"Scottsdale\" is the name of city; high review count refers to review_count = 'High'; attribute of the business refers to attribute_name", "do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n", "12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'"]}} {"set": {"query": "Among the active businesses in Arizona, how many businesses work after 12PM?", "pos": ["active businesses in Arizona refer to business_id where state = 'Arizona' and active = 'true'; work after 12PM refer to opening_time > '12PM';"], "neg": ["photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", ";", "percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);", "without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "opening times of 7AM and closing times of 8PM refer to Business_Hours where opening_time = '7AM' and closing_time = '8PM'; active business refers to business_id where active = 'true';", "categories refers to category_name; in Arizona refers to state = 'AZ'", "under the category of \"Food\" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'"]}} {"set": {"query": "What are the attribute numbers that are related to payment?", "pos": ["attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';"], "neg": ["opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "businesses are not closed refers to active = 'true'", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", ";", "user No. refers to user_id;", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);", "businesses with long length tips refer to business_id where tip_length = 'Long';", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'"]}} {"set": {"query": "Please list the business IDs of all the Yelp_Businesses that are good for kids.", "pos": ["good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n"], "neg": ["actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3", "businesses with long length tips refer to business_id where tip_length = 'Long';", "ID number refers to attribute_id", "active businesses in Arizona refer to business_id where state = 'Arizona' and active = 'true'; work after 12PM refer to opening_time > '12PM';", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';", "categories refers to category_name; Yelp_Business no.1 refers to business_id = 1", "average review = Divide(Count(user_id), Count(business_id))"]}} {"set": {"query": "How many active businesses are there in Phoenix?", "pos": ["active businesses refers to active = 'true'; Phoenix refers to city = 'Phoenix';"], "neg": ["\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "Tempe is a city; high review count refers to review_count = 'High'", "long refers to review_length = 'Long';", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "in Chandler refers to city = 'Chandler'; attribute refers to attribute_name"]}} {"set": {"query": "Give the percentage of \"Automotive\" businesses among all the Yelp businesses.", "pos": ["automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);"], "neg": ["2006 and 2007 refers to BETWEEN 2006 AND 2007; greater number in elite user refers to count(user_id)", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "medium length of review refers to review_length = 'Medium'", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));", "10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'", "user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city"]}} {"set": {"query": "Provide the businesses name in Tempe city whose opening hours are earlier than 8AM.", "pos": ["opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';"], "neg": ["average review = Divide(Count(user_id), Count(business_id))", "started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "Yelp_Business no.1 refers to business_id = 1", "since year 2012 refers to user_yelping_since_year = '2012'", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5", "state refers to city", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100"]}} {"set": {"query": "How many Yelp_Business close after 8PM on Mondays?", "pos": ["close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'"], "neg": ["low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012", "active businesses in Arizona refer to business_id where state = 'Arizona' and active = 'true'; work after 12PM refer to opening_time > '12PM';", "actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "user No. refers to user_id; short tip refers to tip_length = 'short'; category refers to category_name;", "medium length of review refers to review_length = 'Medium'", "in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "users refer to user_id; review_votes_funny = 'uber';", "bars refers to category_name = 'Bars';"]}} {"set": {"query": "Among the Yelp_Businesses in Arizona, how many of them are still running?", "pos": ["Arizona refers to state = 'AZ'; still running refers to active = 'true';"], "neg": ["\"Shopping Centers\" is the category_name; high review count refers to review_count = 'High'", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "state refers to city", "Arizona refers to state = 'AZ';", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);"]}} {"set": {"query": "Among the businesses with a category of Food, what is the percentage of the business with greater than 3 stars?", "pos": ["category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))"], "neg": ["business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "5 in the Elitestar rating refers to stars = 5;", "Yelp user refers to user_id; average 5-star rating refers to user_average_stars = 5; yelping the longest refers to min(user_yelping_since_year)", "AZ refers to state = 'AZ'; stars < 3;", "actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "less than 5 low compliment refers to number_of_compliments < 5", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));"]}} {"set": {"query": "Among the users whose fan is medium, how many users received high compliments from other users.", "pos": ["is medium refers to user_fans = 'Medium'; high compliments refers to number_of_compliments = 'High'"], "neg": ["opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;", "opening times of 7AM and closing times of 8PM refer to Business_Hours where opening_time = '7AM' and closing_time = '8PM'; active business refers to business_id where active = 'true';", "active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state", "running business refers to business where active = 'true';", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "ID number refers to attribute_id", "long refers to review_length = 'Long';", "photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", "types of music refers to attribute_name LIKE '%music%' WHERE attribute_value = 'true'; business No. refers to business_id;\n"]}} {"set": {"query": "What is the opening time of the active businesses in Chandler that has a medium review count.", "pos": ["active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'"], "neg": ["categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "the most reviews refer to MAX(user_id);", "active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)", "closed at 8PM refers to closing_time = '8PM';", "long reviews refers to review_length = 'Long'; medium number of useful votes refers to review_votes_useful = 'medium';", "high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1"]}} {"set": {"query": "Based on business in Phoenix, calculate the percentage of business with low funny votes.", "pos": ["in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'"], "neg": ["5-star refers to stars = 5; in Ahwatukee refers to city = 'Ahwatukee'; business category refers to category_name", "attribute name which start with \"music\" refers to attribute_name LIKE 'music%'", "review of 4 star and above refers to stars > 4; DIVIDE(SUM(stars > 4), COUNT(business_id)) = 0.65;", "short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "long refers to review_length = 'Long';", "Yelp user refers to user_id; average 5-star rating refers to user_average_stars = 5; yelping the longest refers to min(user_yelping_since_year)", "\"Tempe\" is the name of city; long review refers to review_length = 'Long'", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "businesses are not closed refers to active = 'true'"]}} {"set": {"query": "Provide the list of user ID along with review star of which has the review length of medium with business ID of 35.", "pos": [";"], "neg": ["elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "number of useful votes refers to review_votes_useful; business number refers to business_id;", "high review count refers to review_count = 'High'", "Yelp_Business no.1 refers to business_id = 1; open on refers to opening_time; Tuesdays refers to day_of_week = 'Tuesday'", "Arizona refers to state = 'AZ'; still running refers to active = 'true';", "Tempe is a city; high review count refers to review_count = 'High'", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "user No. refers to user_id; short tip refers to tip_length = 'short'; category refers to category_name;", "short tip refers to tip_length = 'Short'; business category refers to category_name", "since year 2005 refers to year_id Between 2005 and 2014; increment percentage = Divide(Count(user_id(year_id < 2014)), Count (user_id(year_id = 2015))) * 100"]}} {"set": {"query": "How many businesses in Phoenix, Arizona is attributed to waiter service?", "pos": ["'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'"], "neg": ["user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))", "category refers to category_name", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'", "active businesses refers to active = 'true'; Phoenix refers to city = 'Phoenix';", "are still running refers to active = 'true'; the category of \"Food\" refers to category_name = 'Food'", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "attribute_value = 'beer_and_wine'", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "name of business refers to category_name;"]}} {"set": {"query": "List by ID the businesses with the reviews with the lowest veracity of Paradise Valley.", "pos": ["ID of businesses refers to business_id; reviews with the lowest veracity refers to review_count = 'Low' AND stars > 3; Paradise Valley is a city"], "neg": ["category refers to category_name", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "\"South Carolina\" and \"California\" are both state; average review stars from users = Divide((Sum(review_stars(state = 'SC')) + Sum(review_stars(state = 'CA'))), Sum(stars))", ";", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';", "\"Tempe\" is the name of city; long review refers to review_length = 'Long'", "highest number of reviews refers to SUBTRACT(MAX(COUNT(business_id), MIN(COUNT(business_id))))"]}} {"set": {"query": "How many businesses that are registered in the database can be attributed to 'Good for Kids'?", "pos": ["can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'"], "neg": ["active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", "high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name"]}} {"set": {"query": "Please indicate the closing hours and business days of the businesses with the category named Doctors.", "pos": ["closing hours refer to closing_time; business days refer to day_id from Business_Hours;"], "neg": ["category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "active business refers to active = 'true'; category of Fashion refers to category = 'Fashion'", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "more appealing to users refers to MAX(review_count);", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "short comment refers to tip_length = 'Short'; users who joined in 2010 refer to user_id where user_yelping_since_year = 2010;", "categories refers to category_name; in Arizona refers to state = 'AZ'", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);"]}} {"set": {"query": "What are the opening and closing time of business id 1 for day id 2?", "pos": ["false"], "neg": ["no longer in business refers to active = 'False'; low number of votes useful refers to review_votes_useful = 'Low';", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "average review = Divide(Count(user_id), Count(business_id))", "active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state", "do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n", "how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", "category of businesses refers to category_name; stars ratings are 5 refers to stars = 5", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "2006 and 2007 refers to BETWEEN 2006 AND 2007; greater number in elite user refers to count(user_id)"]}} {"set": {"query": "List the closing time and day of week of active businesses in Tempe with stars greater than the 70% of average age of star rating.", "pos": ["active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%"], "neg": ["more appealing to users refers to MAX(review_count);", "businesses with long length tips refer to business_id where tip_length = 'Long';", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'", "bars refers to category_name = 'Bars';", "photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "5-star refers to stars = 5; in Ahwatukee refers to city = 'Ahwatukee'; business category refers to category_name", "year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));"]}} {"set": {"query": "State the number of actively running Yelp businesses in \"Tolleson\".", "pos": ["actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';"], "neg": ["\"cool\" type compliments refers to compliment_type = 'cool'; user No. 41717 refers to user_id = 41717", "business number refers to business_id;", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));", "businesses with long length tips refer to business_id where tip_length = 'Long';", "year has the most elite users refers to year_id with MAX(user_id);", "how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;", "in Chandler refers to city = 'Chandler'; attribute refers to attribute_name", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time;", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);", "state refers to city"]}} {"set": {"query": "What is the closing and opening time of businesses located at Gilbert with highest star rating?", "pos": ["\"Gilbert\" is the name of city; highest star rating refers to Max(stars)"], "neg": ["started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", ";", "in 2012 refers to actual_year = 2012;", "avg(user_id) where user_yelping_since_year BETWEEN '2005' AND '2014';", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100"]}} {"set": {"query": "For businesses with long length reviews, which state are they located?", "pos": ["businesses with long length tips refer to business_id where tip_length = 'Long';"], "neg": ["opening hours refers to opening_time; category refers to category_name;", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "under the category of \"Food\" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "open 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'; rating refers to stars; average rating = AVG(stars);", "2006 and 2007 refers to BETWEEN 2006 AND 2007; greater number in elite user refers to count(user_id)", "short reviews refer to tip_length = 'Short';", "longest business time refers to max(subtract(closing_time, opening_time)); on Mondays refers to day_of_week = 'Monday';\u00a0 category \"Shopping\" refers to category_name = 'Shopping'"]}} {"set": {"query": "List the user ID, business ID with review length of the business which received the most likes in tips.", "pos": ["business which received the most likes refers to business_id where MAX(likes);"], "neg": ["open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "in Glendale refers to city = 'Glendale'", "businesses with long length tips refer to business_id where tip_length = 'Long';", "good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "closed/not running refers to active = 'False'; most reviews refers to MAX(COUNT(user_id));", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id"]}} {"set": {"query": "For the only Yelp business in \"Yuma\" city, how many \"medium\" reviews did it get?", "pos": ["medium reviews refers to review_length = 'Medium';"], "neg": ["Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "Yelp_Business no.1 refers to business_id = 1", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "active businesses refers to active = 'true'; underrated refers to review_count = 'Low';", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "user No. refers to user_id;", "short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "in Casa Grande refers to city = 'Casa Grande'"]}} {"set": {"query": "What is the ratio between business in shopping category and business in pets category?", "pos": ["ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))"], "neg": ["less than 5 low compliment refers to number_of_compliments < 5", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3", "AZ refers to state = 'AZ'; stars < 3;", "\"Scottsdale\" is the name of city; high review count refers to review_count = 'High'; attribute of the business refers to attribute_name", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);", "categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "actively running refers to active = 'true';"]}} {"set": {"query": "What is the closing time of business id 4 on Sunday?", "pos": ["on Sunday refers to day_of_week = 'Sunday'"], "neg": ["running business refers to business where active = 'true';", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "is medium refers to user_fans = 'Medium'; high compliments refers to number_of_compliments = 'High'", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "categories refers to category_name", "opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", "under the category \"Food\" refers to category_name = 'Food'", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "AVG(user_yelping_since_year) where user_id from Elite;"]}} {"set": {"query": "Count the active businesses that has an attribute of BYOB with high review count.", "pos": ["active business ID refers to active = 'true'; category of Food refers to category_name = 'Food'; attribute of BYOB refers to attribute_name = 'BYOB'; high review count refers to review_count = 'High'"], "neg": ["operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "categories refers to category_name; in Arizona refers to state = 'AZ'", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5", "located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "closed at 8PM refers to closing_time = '8PM';", "active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "highest review count refers to review_count = 'Uber'; average business review stars = Divide (Sum(review_stars), Count(user_id))", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';"]}} {"set": {"query": "How many photos type compliment given from users with high cool votes?", "pos": ["photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'"], "neg": ["ID number refers to attribute_id", "businesses refer to business_id; review_stars = 5.0; review_votes_funny = 'uber';", "user No. refers to user_id;", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "opened all the time refers to Business_Hours where day_id BETWEEN 1 and 7 and opening_time = closing_time; ratio can be computed as DIVIDE(COUNT(stars BETWEEN 3.5 and 5), COUNT(stars BETWEEN 1 and 2.5));", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;", "business number refers to business_id;", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100"]}} {"set": {"query": "How many businesses have the category named food? List those businesses and find the percentage of businesses with less than 2 stars.", "pos": ["businesses have the category named food refer to business_id where category_name = 'Food'; DIVIDE(COUNT(business_id where category_name = 'Food' and stars < 2), COUNT(business_id where category_name = 'Food')) as percentage;"], "neg": ["year the user join the Yelp refers to user_yelping_since_year; star reviews refers to review_stars;", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", "in Glendale refers to city = 'Glendale'", "medium refers to number_of_compliments = 'Medium';", "under the category of \"Food\" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));"]}} {"set": {"query": "How many Yelp_Businesses do not provide alcohol?", "pos": ["do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n"], "neg": ["do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'", "good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "business No. refers to business_id; have TV refers to attribute_name = 'Has TV';", "ID number refers to attribute_id", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "short length of review refers to review_length = 'Short'; in Phoenix refers to city = 'Phoenix'", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "opening hours 10AM on Saturday refer to Business_Hours where opening_time = '10AM' and day_id = 6;", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name"]}} {"set": {"query": "Based on all user compliments, find the percentage of low number of compliments on all compliments ID.", "pos": ["low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100"], "neg": ["opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", ";", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "in Anthem refers to city = 'Anthem'; the category of \"Food\" refers to category_name = 'Food'", "good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix' END), COUNT(category_id)), 1.0);", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "beer_and_wine refers to attribute_value = 'beer_and_wine';"]}} {"set": {"query": "How many likes did short comment left by users who joined in 2010 get?", "pos": ["short comment refers to tip_length = 'Short'; users who joined in 2010 refer to user_id where user_yelping_since_year = 2010;"], "neg": ["Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "year the user join the Yelp refers to user_yelping_since_year; star reviews refers to review_stars;", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "categories refers to category_name; Yelp_Business no.1 refers to business_id = 1", "users who started yelping in 2012 refers to user_yelping_since_year = '2012'; high number of funny votes refers to user_votes_funny = 'High';", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "5 in the Elitestar rating refers to stars = 5;", "ID of businesses refers to business_id; reviews with the lowest veracity refers to review_count = 'Low' AND stars > 3; Paradise Valley is a city"]}} {"set": {"query": "How many users received high compliment type in photo?", "pos": ["high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1"], "neg": ["still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';", "Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;", ";", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100", "year the user join the Yelp refers to user_yelping_since_year; star reviews refers to review_stars;"]}} {"set": {"query": "What city does the business came from where they received a high volume of check-ins from 12 am to 1 am on Saturday.", "pos": ["12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'"], "neg": ["Sunday refers to day_of_week = 'Sunday' where day_id = 1; opened from 9AM to 9PM refers to Business_Hours where opening_time = '9AM' and closing_time = '9PM'; DIVIDE(COUNT(opening_time = '9AM' and closing_time = '9PM' and day_of_week = 'Sunday'), COUNT(opening_time = NOT NULL and closing_time = NOT NULL and day_of_week = 'Sunday')) as percentage;", "running business refers to business where active = 'true';", "Yelp_Business no.1 refers to business_id = 1", "automotive businesses refers to category_name = 'Automotive'; percentage = MULTIPLY(DIVIDE(SUM(category_name = 'Automotive'), COUNT(business_id)), 1.0);", "business number refers to business_id; Scottsdale refers to city = 'Scottsdale'; day number refers to day_id;", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "in Arizona refers to state = 'AZ'; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "under the category of \"Food\" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'"]}} {"set": {"query": "State the ID number for the attribute named \"Accepts Insurance\"?", "pos": ["ID number refers to attribute_id"], "neg": ["in Glendale refers to city = 'Glendale'", "businesses with long length tips refer to business_id where tip_length = 'Long';", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", "how long was the review refers to review_length; business number refers to business_id; user number refers to user_id;", "short tips refers to tip_length = 'short'; most number of short tips refers to MAX(COUNT(tip_length = 'short')); category refers to category_name;", "active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "bars refers to category_name = 'Bars';", "category refers to category_name"]}} {"set": {"query": "For the business with great experience existed in Sun Lakes city, provide the user ID who gave review on it and user followers.", "pos": ["with great experience refers to stars = 5"], "neg": ["ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "average ratings of at least 4 refers to user_average_stars > = 4; no fans or followers refers to user_fans = 'None'; percentage = divide(count(user_id where user_average_stars > = 4 and user_fans = 'None'), sum(user_id where user_average_stars > = 4))*100%", "Tempe is a city; high review count refers to review_count = 'High'", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "\"South Carolina\" and \"California\" are both state; average review stars from users = Divide((Sum(review_stars(state = 'SC')) + Sum(review_stars(state = 'CA'))), Sum(stars))"]}} {"set": {"query": "What is the total number of active businesses in AZ with a medium review count?", "pos": ["active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'"], "neg": ["active business refers to active = 'true'; Casa Grande refers to city = 'Casa Grande'", "do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n", "business which received the most likes refers to business_id where MAX(likes);", "closing hours refer to closing_time; business days refer to day_id from Business_Hours;", "\"Tempe\" is the name of city; long review refers to review_length = 'Long'", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "high compliments refers to number_of_compliments = 'High'; type in photo refers to compliment_ID = 1", "under the category of \"Food\" refers to category_name = 'Food'; are good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "closed at 8PM refers to closing_time = '8PM';", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%"]}} {"set": {"query": "Describe ID and active status of the business under category of \"Diagnostic Imaging\".", "pos": ["ID refers to business_id; category of \"Diagnostic Imaging\" refers to category_name = 'Diagnostic Imaging';"], "neg": ["since year 2012 refers to user_yelping_since_year = '2012'", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'", "highest number of reviews refers to SUBTRACT(MAX(COUNT(business_id), MIN(COUNT(business_id))))", "low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012", "active business refers to active = 'true'; 'Pets' is the category_name", "number of running business refers to COUNT(business_id) where active = 'true'; each review count includes review_count = 'High', review_count = 'Medium', review_count = 'Low';", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "running business refers to business where active = 'true';", "long tip refers to tip_length = 'Long'; 2 likes refers to likes = 2; high number of fans refers to user_fans = 'High'"]}} {"set": {"query": "Calculate the percentage of users with a high number of fans who were elite in 2011.", "pos": ["users with a high number of fans refers to user_fans = 'High'; 2011 refers to actual_year = 2011; Calculation = DIVIDE(Elite.user_id where user_fans = 'High' AND actual_year = 2011, Elite.user_id where actual_year = 2011) * 100"], "neg": ["Yelp user refers to user_id; average 5-star rating refers to user_average_stars = 5; yelping the longest refers to min(user_yelping_since_year)", "inactive business refers to active = 'FALSE'; 'AZ' is the state; 'Phoenix' is the name of city; medium review count refers to review_count = 'Medium'; 3.5 stars refers to stars = 3.5", "closed at 8PM refers to closing_time = '8PM';", "long reviews refers to review_length = 'Long'; medium number of useful votes refers to review_votes_useful = 'medium';", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "number of useful votes refers to review_votes_useful; business number refers to business_id;", "elite user for consecutively 5 years or more refers to user_id COUNT(year_id) > 5; Average star = AVG(likes)", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", "year the user join the Yelp refers to user_yelping_since_year; star reviews refers to review_stars;", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';"]}} {"set": {"query": "Find the location of businesses that have business hours from 8 am to 9 pm every Friday.", "pos": ["location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'"], "neg": ["\"Good for Groups\" and \"Good for Dancing\" are attribute_name; active business refers to active = true'", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "closed at 8PM refers to closing_time = '8PM';", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'", "average review = Divide(Count(user_id), Count(business_id))", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "medium refers to number_of_compliments = 'Medium';", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100"]}} {"set": {"query": "How many businesses are registered in the database under 'Banks & Credit Unions' category?", "pos": ["category refers to category_name"], "neg": ["user yelping since 2010 to 2012 refers to user_yelping_since_year > = '2010' AND user_yelping_since_year < '2013'; low fans refers to user_fans = 'Low'", "percentage refers to DIVIDE(COUNT(attribute_name = 'Accepts Credit Cards'), COUNT(business_id))*100%", "in Arizona refers to state = 'AZ'; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "the most reviews refer to MAX(user_id);", "can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'", "Yelp_Business no.1 refers to business_id = 1; on weekends refers to day_of_week = 'Saturday' or day_of_week = 'Sunday'; average business time refers to DIVIDE(SUBTRACT(closing_time, opening_time), 2)", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); average ratings = AVG(review_stars);", ";", "year has the most elite users refers to year_id with MAX(user_id);"]}} {"set": {"query": "Among the active businesses located at Chandler, AZ, list the category and atrributes of business with a medium review count.", "pos": ["active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name"], "neg": ["business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "category refers to category_name", "joined yelp since 2004 refers to user_yelping_since_year = 2004;", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "12 am refers to opening_time = '12AM'; 1 am refers to closing_time = '1AM'; on Saturday refers to day_of_week = 'Saturday'", "user No. refers to user_id;", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "more appealing to users refers to MAX(review_count);", "do not provide alcohol refers to attribute_name = 'Alcohol'and attribute_value = 'none'\n"]}} {"set": {"query": "For the Yelp business in \"Tempe\" city which got \"3.5\" stars and review count as \"Uber\", how many \"long\" reviews did it get?", "pos": ["\"Tempe\" is the name of city; long review refers to review_length = 'Long'"], "neg": ["state refers to city", "highest number of reviews refers to SUBTRACT(MAX(COUNT(business_id), MIN(COUNT(business_id))))", "business category refers to category_name; most 5 star reviews refers to MAX(COUNT(category_name WHERE star_reviews = 5));", "medium refers to number_of_compliments = 'Medium';", "in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'", "with great experience refers to stars = 5", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", "average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", "business number refers to business_id; Scottsdale refers to city = 'Scottsdale'; day number refers to day_id;"]}} {"set": {"query": "List all the businesses that closed at 8PM.", "pos": ["closed at 8PM refers to closing_time = '8PM';"], "neg": ["average ratings of at least 4 refers to user_average_stars > = 4; no fans or followers refers to user_fans = 'None'; percentage = divide(count(user_id where user_average_stars > = 4 and user_fans = 'None'), sum(user_id where user_average_stars > = 4))*100%", "types of music refers to attribute_name LIKE '%music%' WHERE attribute_value = 'true'; business No. refers to business_id;\n", "AZ refers to state = 'AZ'; stars < 3;", "active businesses refers to active = 'true'; located at Chandler, AZ refers to city = 'Chandler', state = 'AZ'; category refers to category_name; atrributes refers to attribute_name", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "the most reviews refer to MAX(user_id);", "Arizona refers to state = 'AZ'; still running refers to active = 'true';", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'"]}} {"set": {"query": "How many of the users who use a high number of compliments do not have any fans?", "pos": ["do not have fans refers to user_fans = 'None'; high number of compliment refers to number_of_compliments = 'High'"], "neg": ["under the category \"Food\" refers to category_name = 'Food'", "DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "actively running refers to active = 'true';", "opened during late afternoon refers to Business_Hours where opening_time \u2265 '5PM'; active businesses refer to business_id where active = 'true';", ";", "user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "users refer to user_id; uber votes for all of the review category refer to review_votes_funny = 'uber' AND review_votes_useful = 'uber' AND review_votes_cool = 'uber';", "\"Scottsdale\" is the name of city; high review count refers to review_count = 'High'; attribute of the business refers to attribute_name"]}} {"set": {"query": "How many users have uber review votes for funny from the fans?", "pos": ["users refer to user_id; review_votes_funny = 'uber';"], "neg": ["5-star refers to stars = 5; in Ahwatukee refers to city = 'Ahwatukee'; business category refers to category_name", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "running business refers to business where active = 'true';", "categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "Yelp_Business no.1 refers to business_id = 1", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "user No. refers to user_id; short tip refers to tip_length = 'short'; category refers to category_name;", "\"Scottsdale\" is the name of city; high review count refers to review_count = 'High'; attribute of the business refers to attribute_name", "5 in the Elitestar rating refers to stars = 5;"]}} {"set": {"query": "Which actively running Yelp business in \"Gilbert\" has got the most reviews? Give the business id.", "pos": ["actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'"], "neg": ["business number refers to business_id; Scottsdale refers to city = 'Scottsdale'; day number refers to day_id;", "businesses in \"Pets\" category refers to category_name = 'Pets'; percentage refers to DIVIDE(COUNT(category_name = 'Pets'), COUNT(business_id)) * 100%", "low compliments refers to number_of_compliments = 'Low'; joined Yelp in 2012 refers to user_yelping_since_year = 2012", "rating more than 2 refers to stars > 2;", "medium length of review refers to review_length = 'Medium'", "average star less than 3 stars refers to user_average_stars < 3; in 2012 refers to user_yelping_since_year = 2012", "the most common type of compliments refers to MAX(COUNT(compliment_type))", "business which received the most likes refers to business_id where MAX(likes);", "posted more than 10 reviews refers to count(Reviews.user_id) > 10", "active business refers to active = 'true'; category of Fashion refers to category = 'Fashion'"]}} {"set": {"query": "When does Yelp_Business no.1 open on Tuesdays?", "pos": ["Yelp_Business no.1 refers to business_id = 1; open on refers to opening_time; Tuesdays refers to day_of_week = 'Tuesday'"], "neg": ["medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "\"Gilbert\" is the name of city; highest star rating refers to Max(stars)", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "on Sunday refers to day_of_week = 'Sunday'", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "long refers to review_length = 'Long';"]}} {"set": {"query": "Among the users who received high compliments from other users, which users joined Yelp earliest?", "pos": ["high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)"], "neg": ["categories refers to category_name", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "uber number of fans refers to user_fans = 'uber';", "in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3", "9 am refers to opening_time = '9AM'; 9 pm refers to closing_time = '9PM'; every Saturday refers to day_of_week = 'Saturday'; location refers to city", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "business number refers to business_id; Scottsdale refers to city = 'Scottsdale'; day number refers to day_id;", "actively running business refers to active = 'true'; 'Gilbert' is the name of city; most review refers to review_count = 'Uber'", "photos type compliment refers to compliment_type = 'photos'; high cool votes refers to review_votes_cool = 'High'", "type of compliments refers to compliment_type; most number of funny type of compliments refers to MAX(COUNT(number of compliments = 'high' WHERE compliment_type = 'funny'));"]}} {"set": {"query": "How many businesses ID sell beer and wine?", "pos": ["attribute_value = 'beer_and_wine'"], "neg": ["state refers to city", "medium length of review refers to review_length = 'Medium'", "closed business refers to active = 'false'; in Avondale refers to city = 'Avondale'; 'wonderful experience' rating refers to stars > 3; percentage = divide(count(business_id where stars > 3), count(business_id))*100%", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "Yelp_Business no.1 refers to business_id = 1", "Scottsdale refers to city = 'Scottsdale'; positive comments refers to stars > 3; Elitestar rating refers to stars;", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "user's compliment in photo refers to compliment_type = 'photo'; photo has medium in number refers to number_of_compliments = 'Medium'"]}} {"set": {"query": "Write down the ID, active status and city of the business which are in CA state.", "pos": ["the ID refers to business_id; active status refers to active; active = 'true' means the business is still running; active = 'false' means the business is closed or not running now"], "neg": ["closed at 8PM refers to closing_time = '8PM';", "Women's clothing refers to category_name = 'Women''s Clothing'; Men's clothing refers to category_name = 'Men''s Clothing'; percentage more = MULTIPLY(DIVIDE(SUBTRACT(SUM(category_name = 'Women''s Clothing'), SUM(category_name = 'Men''s Clothing')), COUNT(business_id)), 1.0);", "categories refers to category_name; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'", "AZ refers to state = 'AZ'; stars < 3;", "Arizona refers to state = 'AZ';", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "the most reviews refer to MAX(user_id);", "ID number refers to attribute_id"]}} {"set": {"query": "Please indicate the business id have the closing time with the category of Arts & Entertainment on Sunday.", "pos": ["Sunday refers to day_of_week = 'Sunday' where day_id = 1; category of Arts & Entertainment refers to category_name = 'Arts & Entertainment';"], "neg": ["without attribute refers to attribute_value = 'None'; in Gilbert refers to city = 'Gilbert'", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'", "on Sunday refers to day_of_week = 'Sunday'", "active business refers to active = 'true';\u00a0 'Scottsdale' is the name of city; stars greater than the 60% of average age of star rating refers to stars\u00a0 > avg(stars) * 60%", "state refers to city", "average good review refers to review_count > = 3; Arizona refers to state = 'AZ'; business category refers to category_name", "active business refers to active = 'true'; 'Wi-Fi' is the attribute_name; medium review count refers to review_count = 'Medium'", "days from Monday to Saturday refer to day_id between 2 and 7; work the most days can be computed as MAX(COUNT(category_name where day_id between 2 and 7));", "ID number refers to attribute_id", "most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'"]}} {"set": {"query": "How many businesses in Tempe are rated as 'Wonderful experience?", "pos": ["in Tempe refers to city = 'Tempe'; rated as 'Wonderful experience refers to stars > 3"], "neg": ["located in \"Phoenix\" refers to city = 'Phoenix'; received a \"5\" star review refers to review_stars = '5'; \"uber\" number of votes for funny refers to review_votes_funny = 'Uber'", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "medium reviews refers to review_length = 'Medium';", "beer_and_wine refers to attribute_value = 'beer_and_wine';", "became an elite user the same year they joined Yelp refers to user_yelping_since_year = year_id", "Arizona refers to state = 'AZ'; Elitestar rating of over 4 refers to stars > 4;", "still running refers to active = 'true'; opened from 8AM to 6PM refers to opening_time = '8AM' AND closing_time = '6PM';", "\"Hotel & Travel\" is the category_name; most review refers to Max(Count(category_id)); Average star per user = Divide (Sum (review_stars), Count(user_id))", "attribute name which start with \"music\" refers to attribute_name LIKE 'music%'", "can be attributed to 'Good for Kids' refers to attribute_name = 'Good for Kids' and attribute_value = 'true'"]}} {"set": {"query": "What is the percentage for the Yelp businesses in \"Pets\" category of all businesses?", "pos": ["businesses in \"Pets\" category refers to category_name = 'Pets'; percentage refers to DIVIDE(COUNT(category_name = 'Pets'), COUNT(business_id)) * 100%"], "neg": ["medium reviews refers to review_length = 'Medium';", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "active businesses refers to active = 'true'; AZ is a state; medium review count refers to review_count = 'Medium'", "active businesses refers to active = 'true'; attribute of caters refers to attribute_name = 'Caters'", "high review count refers to review_count = 'High'; received 2 stars refers to stars = 2; category refers to category_name", "'Phoenix' is the city; waiter service refers to attribute_name = 'waiter_services'", "long refers to review_length = 'Long';", "active business ID refers to active = 'true'; categories refers to category_name; Glendale is a city; AZ is a state", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100"]}} {"set": {"query": "Calculate the percentage of businesses with the category name food that are open from 7AM to 8PM in the businesses with the same time.", "pos": ["DIVIDE(COUNT(business_id where category_name = 'Food' and opening_time = '7AM' and closing_time = '8PM'), COUNT(business_id where opening_time = '7AM' and closing_time = '8PM')) as percentage;"], "neg": ["drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "actively running refers to active = 'TRUE'; Tolleson refers to city = 'Tolleson';", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "active businesses in Arizona refer to business_id where state = 'Arizona' and active = 'true'; work after 12PM refer to opening_time > '12PM';", "opened from 8AM to 6PM refers to Business_Hours where opening_time = '8AM' and closing_time = '6PM'; days refer to day_id;", "location of businesses refers to city and state; business hours from 8 am to 9 pm refers to opening_time = '8AM', closing_time = '9PM'; every Friday refers to day_of_week = 'Friday'", "Chinese refers to category_name = 'Chinese'; Filipino refers to category_name = 'Filipino'; how many more = SUBTRACT(SUM(category_name = 'Chinese'), SUM(category_name = 'Filipino'));", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "DIVIDE(COUNT(business_id where review_count = 'Low' and active = 'true'), COUNT(business_id where review_count = 'Low' and active = 'false'));"]}} {"set": {"query": "How many of the busineses are in Casa Grande?", "pos": ["in Casa Grande refers to city = 'Casa Grande'"], "neg": ["shopping business refers to category_name = 'Shopping'; opening time before 8AM refers to opening_time < '8AM';", "category refers to category_name; highest review stars refers to max(review_stars); business ID from 6 to 9 refers to business_id between 6 and 9", "how much time does this business open refers to SUBTRACT(closing_time, opening_time); DIVIDE(SUM(SUBTRACT(closing_time, opening_time)), SUM(Business.business_id))", "opened for 24/7 refers to Business_Hours WHERE opening_time = closing_time and business_id COUNT(day_id) = 7; business attribute refers to attribute_name", "opening hours refers to opening_time; earlier than 8AM refers to opening_time < '8AM';", "medium length tip refers to tip_length = 'Medium';", "under the category \"Food\" refers to category_name = 'Food'", "average review = Divide(Count(user_id), Count(business_id))", "user no.3 refers to user_id = 3; in Arizona refers to state = 'AZ'; stars on average = avg(review_stars(user_id = 3))", "in Arizona refers to state = 'AZ'; user no. 3 refers to user_id = 3"]}} {"set": {"query": "Calculate the percentage of business with attribute name of \"Accepts Credit Cards\".", "pos": ["percentage refers to DIVIDE(COUNT(attribute_name = 'Accepts Credit Cards'), COUNT(business_id))*100%"], "neg": ["cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "AVG(user_yelping_since_year) where user_id from Elite;", "close after 8PM refers to closing_time = '9PM' or closing_time = '10PM' closing_time = '11PM' closing_time = '12PM'; Mondays refers to day_of_week = 'Monday'", "active business refers to active = 'true'; 'Pets' is the category_name", "opening hours before 7AM refer to opening_time < '7AM'; businesses refer to business_id;", "\"Good for Kids\" attribute refers to attribute_name = 'Good for Kids' AND attribute_value = 'true'; Calculation = DIVIDE(SUM(attribute_name = 'Good for Kids' AND attribute_value = 'true')), SUM(business_id) * 100", "opened from 8AM to 6PM refers to Business_Hours where opening_time = '8AM' and closing_time = '6PM'; days refer to day_id;", "started using Yelp since 2004 refers to user_yelping_since_year = '2004'; had high followers refers to user_fans = 'High'", "\"Tempe\" is the name of city; long review refers to review_length = 'Long'", "category of food refers to category_name = 'Food'; calculation = DIVIDE(COUNT(stars > 3), SUM(stars))"]}} {"set": {"query": "Identify the most popular and appealing active business in Gilbert based on users' reviews.", "pos": ["most popular and appealing refers to review_count = 'High' and max(stars); active business refers to active = 'true'; in Gilbert refers to city = 'Gilbert'"], "neg": ["category of businesses refers to category_name; stars ratings are 5 refers to stars = 5", "bring their own beer refers to attribute_name = 'BYOB' AND attribute_value = 'TRUE'; Phoenix refers to city = 'Phoenix'; percentage = MULTIPLY(DIVIDE(SUM(city = 'Phoenix'), COUNT(business_id)), 1.0)", "1 pm refers to opening_time = '1PM'; 6 pm refers to closing_time = '6PM'; on Saturday refers to day_of_week = 'Saturday'", "\"Shopping Centers\" is the category_name; high review count refers to review_count = 'High'", "business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "active business refers to active = 'true'; 'AZ' is the state; high review count refers to review_count = 'High'", "active business refers to active = 'true': 'Mesa' is the name of city; 'AZ' is the state; low review count refers to review_count = 'Low'; category refers to category_name", "ratio = divide(count(business_id where category_name = 'Shopping'), count(business_id where category_name = 'Pets'))", "active business refers to active = 'true'; category of Fashion refers to category = 'Fashion'", "ID number refers to attribute_id"]}} {"set": {"query": "How many open businesses in the City of Phoenix have users left a long review?", "pos": ["open businesses refers to active = 'true'; long review refers to review_length = 'Long'"], "neg": ["high compliments refers to number_of_compliments = ' High'; joined Yelp earliest refers to min(user_yelping_since_year)", "business time of longer than 12 hours refers to subtract(closing_time, opening_time) > 12; on Sundays refers to day_of_week = 'Sunday'", "opened for 24 hours refers to attribute_name = 'Open 24 Hours' AND attribute_value = 'true'", "with great experience refers to stars = 5", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "categories refers to category_name", "in Mesa refers to city = 'Mesa'; alcohol attribute refers to attribute_name = 'Alcohol'", "type of compliments refers to compliment_type; user No. refers to user_id;", "year with yelp = Subtract ('%Y'(CURRENT TIME), user_yelping_since_year)", "in Chandelier refers to city = 'Chandelier'; percentage = divide(count(business_id where review_votes_funny = 'Low'), count(business_id)); business with low funny votes refers to review_votes_funny = 'Low'"]}} {"set": {"query": "Please list any two user numbers that have an \"Uber\" number of cute compliments.", "pos": ["user numbers refers to user_id; Uber number refers to number_of_compliments = 'Uber'; cute compliments refers to compliment_type = 'cute';"], "neg": ["\"Gilbert\" is the name of city; high review count refers to review_count = 'High'", "cool compliments refers to compliment_type = 'cool'; user number refers to user_id;", "long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;", "business No. refers to business_id; have TV refers to attribute_name = 'Has TV';", "10 am refers to opening_time = '10AM'; 12 pm refers to closing_time = '12PM'; on Sunday refers to day_of_week = 'Sunday'", "business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'", "in Casa Grande refers to city = 'Casa Grande'", "active businesses refers to active = 'true'; in Tempe refers to city = 'Tempe'; with stars greater than the 70% of average age of star rating refers to stars > DIVIDE(sum(stars), COUNT(business_id)) * 70%", "opening times of 7AM and closing times of 8PM refer to Business_Hours where opening_time = '7AM' and closing_time = '8PM'; active business refers to business_id where active = 'true';", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;"]}} {"set": {"query": "For the Yelp business which had the most number of \"long\" reviews, which category does it belong to?", "pos": ["long reviews refers to review_length = 'long'; most number of long reviews refers to MAX(COUNT(review_length = 'long')); category refers to category_name;"], "neg": ["best elite refers to user_average_stars = 5; worse eliter refers to user_average_stars = 1: in 2013 refers to year_id = 2013; ratio = Divide(Count(user_id(user_average_stars = 5)),\u00a0 Count(user_id(user_average_stars = 1)))", "active business refers to active = 'true'; not in Arizona refers to state ! = 'AZ'; category refers to category_name", "rating more than 2 refers to stars > 2;", "attribute numbers refers to attribute_id; related to payment refers to attribute_name like '%payment%';", "medium refers to number_of_compliments = 'Medium';", "5 in the Elitestar rating refers to stars = 5;", "medium tip length refers to tip_length = 'Medium'; percentage = divide(count(tips where tip_length = 'Medium'), count(tips))*100%; the time when users join Yelp refers to user_yelping_since_year", "\"ambience_romantic\" attribute refers to attribute_name = 'ambience_romantic' AND attribute_value = 'true'", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "good for kids refers to attribute_name = 'Good for Kids' and attribute_value = 'true'\n"]}} {"set": {"query": "What is the average rating of inactive businesses?", "pos": ["rating refers to stars; inactive refers to active = 'False'; average rating of inactive businesses = DIVIDE(SUM(stars), COUNT(business_id));"], "neg": ["located in Phoenix refers to city = 'Phoenix'; Arizona refers to state = 'AZ'", "year the user join the Yelp refers to user_yelping_since_year; most number of short tips refers to MAX(COUNT(tip_length = 'Short'));", "active businesses refers to active = 'true'; in Chandler refers to city = 'Chandler'", "low cool vote for user refers to user_votes_cool = 'Low';\u00a0 low cool vote for review refers to review_votes_cool = 'Low'", "low number of compliments refers to number_of_compliments = 'Low'; percentage refers to DIVIDE(COUNT(number_of_compliments = 'Low'), COUNT(user_id)) * 100", "operating hours refers to opening_time closing_time on day_id; in Black Canyon City refers to city = 'Black Canyon City'; greater than average refers to review_count > AVG(T1.review_count)", "\"Local Services\" is the category_name; less than 3 stars refers to stars < 3; percentage = Divide(Count(business_id(stars < 3)), Count(business_id)) * 100", "Yelp user refers to user_id; average 5-star rating refers to user_average_stars = 5; yelping the longest refers to min(user_yelping_since_year)", "short comment refers to tip_length = 'Short'; users who joined in 2010 refer to user_id where user_yelping_since_year = 2010;", "in Arizona refers to state = 'AZ'; closes at 12PM refers to closing_time = '12PM'; on Sundays refers to day_of_week = 'Sunday'"]}} {"set": {"query": "How many businesses accept insurance?", "pos": ["business that accept insurance refers to attribute_name = 'Accepts Insurance' AND attribute_value = 'true'"], "neg": ["business no. 14033 refers to business_id = 14033; good for supper refers to attribute_name = 'good_for_dinner'", "business No. refers to business_id; have TV refers to attribute_name = 'Has TV';", "number of useful votes refers to review_votes_useful; business number refers to business_id;", "music_karaoke attribute refers to attribute_name = 'music_karaoke' AND attribute_value = 'true'; businesses are closed refers to active = 'false'", "5 star reviews refers to review_stars = 5; business No. refers to business_id;", "under the category \"Food\" refers to category_name = 'Food'", "open businesses refers to active = 'true'; long review refers to review_length = 'Long'", "more appealing to users refers to MAX(review_count);", "drive-thru refers to attribute_name = 'Drive-Thru' AND attribute_value = 'true'; Scottsdale refers to city = 'Scottsdale'; business_id < 1000;", "users refer to user_id; review_votes_funny = 'uber';"]}} {"set": {"query": "Please give the order number and product name of the order which has the lowest unit price.", "pos": ["the lowest unit price refers to MIN(Unit Price);"], "neg": ["\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name", "total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber))", "ordered on 10/21/18 refers to OrderDate = '10/21/18'; delivered on 11/21/19 refers to DeliveryDate = '11/21/19'; name of product refers to Product Name", "unit cost greater than 4000USD refers to Unit Cost > 4000;", "highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name", "40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber;"]}} {"set": {"query": "From 2018 to 2020, which year did the George Lewis group have the highest number of orders?", "pos": ["George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);"], "neg": ["products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name", "\"Elorac, Corp\" is the Customer Names", "less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'"]}} {"set": {"query": "Which product was ordered the most in 2018?", "pos": ["product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';"], "neg": ["Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;", "cities refer to City Name; no water area refers to Water Area = 0;", "applied 10% discount refers to Discount Applied = 0.1;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the greatest net profit in 2020 refers to MAX(net profit) where OrderDate LIKE '%/20';", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';", "highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);"]}} {"set": {"query": "State the order number where Qualitest ordered the highest product quantity.", "pos": ["Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);"], "neg": ["\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the highest net profit in 2019 refers to MAX(Net Profit) where OrderDate LIKE '%/19'; product refers to Product Name;", "number of order refers to OrderNumber; population of 3000000 to 4000000 refers to Population BETWEEN 3000000 AND 4000000", "name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8", "Medsep Group is the name of the customer; orders refer to OrderNumber;", "orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;", "average land area = Divide (Sum(Land Area), Count(Land Area))", "the highest unit price refers to MAX(Unit Price);", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))"]}} {"set": {"query": "Which city has the largest population?", "pos": ["city has the largest population refers to City Name where MAX(Population);"], "neg": ["Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "order refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'; January refers to Substr(OrderDate, 1, 1) = '1';\u00a0 most preferred sales channel refers to Sales Channel where Max(Count(OrderNumber))", "total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';", "\"Joshua Bennett\" is the name of Sales Team", "sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is\u00a0 the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100"]}} {"set": {"query": "Please list the names of customers who have total orders of over 3 in 2018.", "pos": ["total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';"], "neg": ["sale team ID of 18 refers to _SalesTeamID = 18; COUNT(OrderNumber where Sales Channel = 'In-Store') > COUNT(OrderNumber where Sales Channel = 'Online');", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "\"Midwest\" is the Region", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "orders online refer to Sales Channel = 'Online';", "most populated refers to Max(Population);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);"]}} {"set": {"query": "Among the products with an order quantity of no less than 5 that was shipped in the month of May 2019, what is the name of the product with the lowest net profit?", "pos": ["order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name"], "neg": ["city has the largest population refers to City Name where MAX(Population);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the highest net profit in 2019 refers to MAX(Net Profit) where OrderDate LIKE '%/19'; product refers to Product Name;", "\"WARE-UHY1004\" is the WarehouseCode", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "Medsep Group is the name of the customer; orders refer to OrderNumber;", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "DIVIDE(COUNT(OrderNumber where County = 'Orange County' and SUBSTR(OrderDate, -2) = '18'), COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '18')) as percentage;", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))"]}} {"set": {"query": "How many stores procured products on October 27, 2018, in the city of Oregon?", "pos": ["October 27, 2018 refers to ProcuredDate = '10/27/18'; 'Oregon' is the State"], "neg": ["highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))", "sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is\u00a0 the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "\"Midwest\" is the Region", "the highest unit price refers to MAX(Unit Price);", "less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5;", "order refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'; January refers to Substr(OrderDate, 1, 1) = '1';\u00a0 most preferred sales channel refers to Sales Channel where Max(Count(OrderNumber))"]}} {"set": {"query": "Please list the id and detailed position of all stores in Birmingham city.", "pos": ["Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;"], "neg": ["Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "cities refer to City Name; no water area refers to Water Area = 0;", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';", "most populous country refers to Max(Population)", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'"]}} {"set": {"query": "What is the detailed position of the store which has order SO - 000115?", "pos": ["Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';"], "neg": ["unit cost greater than 4000USD refers to Unit Cost > 4000;", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';", "\"WARE-MKL1006\" is the WarehouseCode; most shipment to region refers to Max(Count(Region))", "total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "number of order refers to OrderNumber; population of 3000000 to 4000000 refers to Population BETWEEN 3000000 AND 4000000", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is\u00a0 the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';"]}} {"set": {"query": "Calculate the average net profit of phones which have sales channel of distributor.", "pos": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';"], "neg": ["order quantity greater than 5 refers to Order Quantity > 5", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is\u00a0 the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100", "\"Michigan\" is the State", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "Rochester Ltd is the name of the customer; orders refer to OrderNumber;", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "Cookware is the name of the product;", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);"]}} {"set": {"query": "Among the products sold in Maricopa County, which was the least sold?", "pos": ["the least sold product refers to Product Name where MIN(Order Quantity);"], "neg": ["the most number of sales team refers to MAX(COUNT(Sales Team));", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber))", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;", "\"Elorac, Corp\" is the Customer Names", "Medsep Group is the name of the customer; orders refer to OrderNumber;", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');"]}} {"set": {"query": "Among the sales with 40% discount via in-store channel, how many products were shipped from warehouse code of WARE-NMK1003?", "pos": ["40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber;"], "neg": ["total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "number of order refers to OrderNumber; population of 3000000 to 4000000 refers to Population BETWEEN 3000000 AND 4000000", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5;", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'", "\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "Medsep Group is the name of the customer; orders refer to OrderNumber;"]}} {"set": {"query": "How many Borough-type stores located in the city of Brooklyn have a population of less than 3 million?", "pos": ["\"Brooklyn\" is the CityName; population of less than 3 million refers to Population < 3000000"], "neg": ["Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;", "highest unit price refers to Max(Unit Price)", "sale team ID of 18 refers to _SalesTeamID = 18; COUNT(OrderNumber where Sales Channel = 'In-Store') > COUNT(OrderNumber where Sales Channel = 'Online');", "highest unit price refers to Max(Unit Price)", "shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber))", "name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8"]}} {"set": {"query": "Describe the product names delivered in 2021 for the customer \"Sundial\".", "pos": ["delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names"], "neg": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "average land area = Divide (Sum(Land Area), Count(Land Area))", "\"WARE-UHY1004\" is the WarehouseCode", "the most number of sales team refers to MAX(COUNT(Sales Team));", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))", "the highest unit price refers to MAX(Unit Price);", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "order quantity greater than 5 refers to Order Quantity > 5", "California is a state; CDP stores refer to StoreID where Type = 'CDP';", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);"]}} {"set": {"query": "Which order number has the highest unit price?", "pos": ["the highest unit price refers to MAX(Unit Price);"], "neg": ["WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "number of order refers to OrderNumber; population of 3000000 to 4000000 refers to Population BETWEEN 3000000 AND 4000000", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the greatest net profit in 2020 refers to MAX(net profit) where OrderDate LIKE '%/20';", "DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "cities refer to City Name; no water area refers to Water Area = 0;", "\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)", "shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber;"]}} {"set": {"query": "How many stores with less need for products, and purchased through a distributor, are located in Washtenaw County?", "pos": ["less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County"], "neg": ["total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "the lowest unit price refers to MIN(Unit Price);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the highest net profit in 2019 refers to MAX(Net Profit) where OrderDate LIKE '%/19'; product refers to Product Name;", "orders online refer to Sales Channel = 'Online';", "city has the largest population refers to City Name where MAX(Population);", "highest unit price refers to Max(Unit Price)", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "most populated refers to Max(Population);"]}} {"set": {"query": "Calculate the total net profit of the store located in highest median income city.", "pos": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);"], "neg": ["AVG(Unit Price where Product Name = 'Cookware');", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';", "sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));", "California is a state; CDP stores refer to StoreID where Type = 'CDP';", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "highest unit price refers to Max(Unit Price)", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'"]}} {"set": {"query": "Which region has the most number of sales team?", "pos": ["the most number of sales team refers to MAX(COUNT(Sales Team));"], "neg": ["orders refer to OrderNumber;", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'", "number of order refers to OrderNumber; population of 3000000 to 4000000 refers to Population BETWEEN 3000000 AND 4000000", "Cookware is the name of the product;", "city has the largest population refers to City Name where MAX(Population);", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the greatest net profit in 2020 refers to MAX(net profit) where OrderDate LIKE '%/20';", "highest discount applied refers to Max(Discount Applied)", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "\"Michigan\" is the State"]}} {"set": {"query": "List the ID, city, state and region for the store type which is fewer between borough and CDP.", "pos": ["COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');"], "neg": ["40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber;", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "Cookware is the name of the product;", "October 27, 2018 refers to ProcuredDate = '10/27/18'; 'Oregon' is the State", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));"]}} {"set": {"query": "Which sales team name has the least orders in 2019?", "pos": ["sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));"], "neg": ["Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);", "DIVIDE(COUNT(OrderNumber where County = 'Orange County' and SUBSTR(OrderDate, -2) = '18'), COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '18')) as percentage;", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "the lowest unit price refers to MIN(Unit Price);", "less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';", "\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "cities refer to City Name; no water area refers to Water Area = 0;", "Medsep Group is the name of the customer; orders refer to OrderNumber;"]}} {"set": {"query": "What is the percentage of total orders from stores in Orange County in 2018?", "pos": ["DIVIDE(COUNT(OrderNumber where County = 'Orange County' and SUBSTR(OrderDate, -2) = '18'), COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '18')) as percentage;"], "neg": ["COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "Rochester Ltd is the name of the customer; orders refer to OrderNumber;", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name;", "\"Brooklyn\" is the CityName; population of less than 3 million refers to Population < 3000000", "total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "order refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'; January refers to Substr(OrderDate, 1, 1) = '1';\u00a0 most preferred sales channel refers to Sales Channel where Max(Count(OrderNumber))", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "\"Elorac, Corp\" is the Customer Names"]}} {"set": {"query": "What is the highest discount applied by the store located in a city of the state of Colorado whose land area is 111039036.", "pos": ["highest discount applied refers to Max(Discount Applied)"], "neg": ["\"Michigan\" is the State", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "orders online refer to Sales Channel = 'Online';", "ordered on 10/21/18 refers to OrderDate = '10/21/18'; delivered on 11/21/19 refers to DeliveryDate = '11/21/19'; name of product refers to Product Name", "orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;", "October 27, 2018 refers to ProcuredDate = '10/27/18'; 'Oregon' is the State", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "applied 10% discount refers to Discount Applied = 0.1;", "Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);", "\"Joshua Bennett\" is the name of Sales Team"]}} {"set": {"query": "Which product has the highest net profit in 2019?", "pos": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the highest net profit in 2019 refers to MAX(Net Profit) where OrderDate LIKE '%/19'; product refers to Product Name;"], "neg": ["total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "orders refer to OrderNumber;", "Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);", "orders online refer to Sales Channel = 'Online';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name"]}} {"set": {"query": "List the order numbers and product names which were ordered on 6th June, 2018.", "pos": ["ordered on 6th June 2018 refers to OrderDate = '6/5/18'"], "neg": ["\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "the lowest unit price refers to MIN(Unit Price);", "highest unit price refers to Max(Unit Price)", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber;", "detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost))", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)"]}} {"set": {"query": "In 2020, what were the total orders of all stores in Maricopa County?", "pos": ["total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';"], "neg": ["highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name", "\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800;", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "\"Midwest\" is the Region", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;"]}} {"set": {"query": "Sate the order number and calculate the net profit for each order under Joshua Bennett.", "pos": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;"], "neg": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber;", "order quantity greater than 5 refers to Order Quantity > 5", "highest discount applied refers to Max(Discount Applied)", "Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "ordered on 10/21/18 refers to OrderDate = '10/21/18'; delivered on 11/21/19 refers to DeliveryDate = '11/21/19'; name of product refers to Product Name", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "highest unit price refers to Max(Unit Price)", "name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8"]}} {"set": {"query": "Provide order number, warehouse code of customers Elorac, Corp.", "pos": ["\"Elorac, Corp\" is the Customer Names"], "neg": ["products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'", "Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);", "Cookware is the name of the product;", "\"Joshua Bennett\" is the name of Sales Team", "cities refer to City Name; no water area refers to Water Area = 0;", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "most populated refers to Max(Population);"]}} {"set": {"query": "In 2019, how many orders were shipped by the sales team with the highest number of orders in the said year? Provide the name of the sales team.", "pos": ["shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber))"], "neg": ["DIVIDE(COUNT(OrderNumber where County = 'Orange County' and SUBSTR(OrderDate, -2) = '18'), COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '18')) as percentage;", "orders online refer to Sales Channel = 'Online';", "city has the largest population refers to City Name where MAX(Population);", "highest discount applied refers to Max(Discount Applied)", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "the most number of sales team refers to MAX(COUNT(Sales Team));", "Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);"]}} {"set": {"query": "Compare the number of orders between \"Platters\" and \"Serveware\" products.", "pos": ["COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');"], "neg": ["orders refer to OrderNumber;", "highest unit price refers to Max(Unit Price)", "sales order 'SO - 0005951' refers to OrderNumber = 'SO - 0005951'; product refers to Product Name", "\"Michigan\" is the State", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "most populated refers to Max(Population);", "the highest unit price refers to MAX(Unit Price);", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;"]}} {"set": {"query": "Which store in Arizona has the most net profit?", "pos": ["\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))"], "neg": ["delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)", "sales order 'SO - 0005951' refers to OrderNumber = 'SO - 0005951'; product refers to Product Name", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))", "Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost))"]}} {"set": {"query": "Find the average number of ornaments sold each month in 2018.", "pos": ["DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);"], "neg": ["name containing the word 'Group' refers to Customer Names LIKE '%Group%';", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)", "\"Midwest\" is the Region", "the least sold product refers to Product Name where MIN(Order Quantity);", "California is a state; CDP stores refer to StoreID where Type = 'CDP';", "40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber;", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))"]}} {"set": {"query": "How many sales channels does the sales team have in the Midwest?", "pos": ["\"Midwest\" is the Region"], "neg": ["\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "highest unit price refers to Max(Unit Price)", "the most number of sales team refers to MAX(COUNT(Sales Team));", "\"Elorac, Corp\" is the Customer Names", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "orders online refer to Sales Channel = 'Online';"]}} {"set": {"query": "List the store located cities with regions in no water area of California state.", "pos": ["cities refer to City Name; no water area refers to Water Area = 0;"], "neg": ["Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';", "the least sold product refers to Product Name where MIN(Order Quantity);", "\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "the highest unit price refers to MAX(Unit Price);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "highest unit price refers to Max(Unit Price)", "order refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'; January refers to Substr(OrderDate, 1, 1) = '1';\u00a0 most preferred sales channel refers to Sales Channel where Max(Count(OrderNumber))", "orders refer to OrderNumber;"]}} {"set": {"query": "In which regions are the stores that have shipped products through the WARE-UHY1004 warehouse?", "pos": ["\"WARE-UHY1004\" is the WarehouseCode"], "neg": ["Rochester Ltd is the name of the customer; orders refer to OrderNumber;", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';", "Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;", "most populous country refers to Max(Population)", "orders refer to OrderNumber;", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "highest unit price refers to Max(Unit Price)", "\"Michigan\" is the State"]}} {"set": {"query": "How many orders placed were with more than 5 product quantities?", "pos": ["orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;"], "neg": ["detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost))", "order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';", "\"Midwest\" is the Region", "\"WARE-MKL1006\" is the WarehouseCode; most shipment to region refers to Max(Count(Region))", "DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "cities refer to City Name; no water area refers to Water Area = 0;", "the lowest unit price refers to MIN(Unit Price);"]}} {"set": {"query": "Which region is Joshua Bennet located in?", "pos": ["\"Joshua Bennett\" is the name of Sales Team"], "neg": ["delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the greatest net profit in 2020 refers to MAX(net profit) where OrderDate LIKE '%/20';", "40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "highest discount applied refers to Max(Discount Applied)", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';"]}} {"set": {"query": "Which Apollo Ltd customer's order number has the most expensive unit price, indicating the order date?", "pos": ["\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)"], "neg": ["the lowest unit price refers to MIN(Unit Price);", "\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))", "order quantity greater than 5 refers to Order Quantity > 5", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "orders refer to OrderNumber;", "name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8", "COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';"]}} {"set": {"query": "Please indicate store id in the state of California that have been applied 20% discount in store.", "pos": ["\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'"], "neg": ["cities refer to City Name; no water area refers to Water Area = 0;", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "applied 10% discount refers to Discount Applied = 0.1;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))"]}} {"set": {"query": "What is the average land area of \u200b\u200bthe cities in which stores that purchased products for a unit price of 998.30 are located?", "pos": ["average land area = Divide (Sum(Land Area), Count(Land Area))"], "neg": ["sales order 'SO - 0005951' refers to OrderNumber = 'SO - 0005951'; product refers to Product Name", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name;", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "highest unit price refers to Max(Unit Price)", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';", "sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));", "most populous country refers to Max(Population)", "AVG(Unit Price where Product Name = 'Cookware');", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))"]}} {"set": {"query": "List all the order numbers for In-Store sales and find the city where the store is located.", "pos": ["In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;"], "neg": ["Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))", "\"WARE-MKL1006\" is the WarehouseCode; most shipment to region refers to Max(Count(Region))", "sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is\u00a0 the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "orders refer to OrderNumber;", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "the least sold product refers to Product Name where MIN(Order Quantity);", "the highest unit price refers to MAX(Unit Price);"]}} {"set": {"query": "Find the net profit of the floral products which were delivered in 2021.", "pos": ["floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'"], "neg": ["DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "October 27, 2018 refers to ProcuredDate = '10/27/18'; 'Oregon' is the State", "all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name;", "\"Midwest\" is the Region", "most populated refers to Max(Population);", "detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost))", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);"]}} {"set": {"query": "Write down the store IDs and region of the state \"Michigan\".", "pos": ["\"Michigan\" is the State"], "neg": ["DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost))", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "most populated refers to Max(Population);", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "Rochester Ltd is the name of the customer; orders refer to OrderNumber;", "over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800;"]}} {"set": {"query": "What is the percentage of total orders of Stephen Payne that had a net profit of over 1000?", "pos": ["Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;"], "neg": ["the least sold product refers to Product Name where MIN(Order Quantity);", "all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name;", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "highest unit price refers to Max(Unit Price)", "unit cost greater than 4000USD refers to Unit Cost > 4000;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5;", "Cookware is the name of the product;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "\"WARE-MKL1006\" is the WarehouseCode; most shipment to region refers to Max(Count(Region))", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';"]}} {"set": {"query": "List the name of the customer with the most number of order quantity from 2018 to 2020.", "pos": ["name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8"], "neg": ["order refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'; January refers to Substr(OrderDate, 1, 1) = '1';\u00a0 most preferred sales channel refers to Sales Channel where Max(Count(OrderNumber))", "\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "Rochester Ltd is the name of the customer; orders refer to OrderNumber;", "highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name", "sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is\u00a0 the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100", "\"Midwest\" is the Region", "\"Michigan\" is the State"]}} {"set": {"query": "How many orders that Medsep Group had made?", "pos": ["Medsep Group is the name of the customer; orders refer to OrderNumber;"], "neg": ["Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "\"Midwest\" is the Region", "less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))", "the highest unit price refers to MAX(Unit Price);", "applied 10% discount refers to Discount Applied = 0.1;", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "highest discount applied refers to Max(Discount Applied)", "\"Brooklyn\" is the CityName; population of less than 3 million refers to Population < 3000000", "AVG(Unit Price where Product Name = 'Cookware');"]}} {"set": {"query": "Calculate ratio between the highest unit cost and the lowest unit cost?", "pos": ["ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);"], "neg": ["applied 10% discount refers to Discount Applied = 0.1;", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';", "\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);", "highest discount applied refers to Max(Discount Applied)", "most populated refers to Max(Population);", "DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)", "Medsep Group is the name of the customer; orders refer to OrderNumber;", "total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';"]}} {"set": {"query": "List all the customers with name containing the word 'Group'.", "pos": ["name containing the word 'Group' refers to Customer Names LIKE '%Group%';"], "neg": ["total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "AVG(Unit Price where Product Name = 'Cookware');", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name"]}} {"set": {"query": "Write down the region and name of the sale team ID of 18 and compare their orders between in-store and online.", "pos": ["sale team ID of 18 refers to _SalesTeamID = 18; COUNT(OrderNumber where Sales Channel = 'In-Store') > COUNT(OrderNumber where Sales Channel = 'Online');"], "neg": ["ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "the highest unit price refers to MAX(Unit Price);", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8", "the most number of sales team refers to MAX(COUNT(Sales Team));", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "DIVIDE(COUNT(OrderNumber where County = 'Orange County' and SUBSTR(OrderDate, -2) = '18'), COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '18')) as percentage;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the greatest net profit in 2020 refers to MAX(net profit) where OrderDate LIKE '%/20';"]}} {"set": {"query": "Name the product that was registered in the sales order 'SO - 0005951'.", "pos": ["sales order 'SO - 0005951' refers to OrderNumber = 'SO - 0005951'; product refers to Product Name"], "neg": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5;", "DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber;", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name", "\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;"]}} {"set": {"query": "In the Northeast region, what is the average household income for each city located in the state with the highest number of stores?", "pos": ["average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))"], "neg": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "the highest unit price refers to MAX(Unit Price);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "cities refer to City Name; no water area refers to Water Area = 0;", "highest unit price refers to Max(Unit Price)", "average land area = Divide (Sum(Land Area), Count(Land Area))", "less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost))", "Medsep Group is the name of the customer; orders refer to OrderNumber;", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'"]}} {"set": {"query": "What is the average unit price of a Cookware product?", "pos": ["AVG(Unit Price where Product Name = 'Cookware');"], "neg": ["\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))", "most populated refers to Max(Population);", "total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name", "city has the largest population refers to City Name where MAX(Population);", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "the highest unit price refers to MAX(Unit Price);"]}} {"set": {"query": "How many orders through distributor were for the minimum quantity?", "pos": ["\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)"], "neg": ["COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is\u00a0 the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100", "Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "AVG(Unit Price where Product Name = 'Cookware');"]}} {"set": {"query": "Provide all the orders from WARE-NMK1003. Name the product and sales team for each of these order.", "pos": ["all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name;"], "neg": ["October 27, 2018 refers to ProcuredDate = '10/27/18'; 'Oregon' is the State", "cities refer to City Name; no water area refers to Water Area = 0;", "name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8", "\"Brooklyn\" is the CityName; population of less than 3 million refers to Population < 3000000", "highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name", "\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "most populated refers to Max(Population);"]}} {"set": {"query": "List the name of all customers who had made orders online.", "pos": ["orders online refer to Sales Channel = 'Online';"], "neg": ["\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "city has the largest population refers to City Name where MAX(Population);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5;", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "most populated refers to Max(Population);", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "number of order refers to OrderNumber; population of 3000000 to 4000000 refers to Population BETWEEN 3000000 AND 4000000"]}} {"set": {"query": "How many CDP stores are there in California?", "pos": ["California is a state; CDP stores refer to StoreID where Type = 'CDP';"], "neg": ["WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "the least sold product refers to Product Name where MIN(Order Quantity);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5;", "highest discount applied refers to Max(Discount Applied)", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "DIVIDE(COUNT(OrderNumber where County = 'Orange County' and SUBSTR(OrderDate, -2) = '18'), COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '18')) as percentage;", "highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;"]}} {"set": {"query": "List out the discount levels applied for all orders from Ole Group.", "pos": ["Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;"], "neg": ["\"Midwest\" is the Region", "the lowest unit price refers to MIN(Unit Price);", "DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "\"Brooklyn\" is the CityName; population of less than 3 million refers to Population < 3000000", "sales order 'SO - 0005951' refers to OrderNumber = 'SO - 0005951'; product refers to Product Name", "40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber;", "Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "number of order refers to OrderNumber; population of 3000000 to 4000000 refers to Population BETWEEN 3000000 AND 4000000"]}} {"set": {"query": "Lists the name of the product and customer who placed an order on 10/21/18 and it was delivered on 11/21/19.", "pos": ["ordered on 10/21/18 refers to OrderDate = '10/21/18'; delivered on 11/21/19 refers to DeliveryDate = '11/21/19'; name of product refers to Product Name"], "neg": ["COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');", "October 27, 2018 refers to ProcuredDate = '10/27/18'; 'Oregon' is the State", "orders refer to OrderNumber;", "\"WARE-UHY1004\" is the WarehouseCode", "\"WARE-MKL1006\" is the WarehouseCode; most shipment to region refers to Max(Count(Region))", "order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);"]}} {"set": {"query": "Mention the most populated city and median income of the store in Florida state.", "pos": ["most populated refers to Max(Population);"], "neg": ["In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "October 27, 2018 refers to ProcuredDate = '10/27/18'; 'Oregon' is the State", "the most number of sales team refers to MAX(COUNT(Sales Team));", "Rochester Ltd is the name of the customer; orders refer to OrderNumber;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));", "order refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'; January refers to Substr(OrderDate, 1, 1) = '1';\u00a0 most preferred sales channel refers to Sales Channel where Max(Count(OrderNumber))", "order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))"]}} {"set": {"query": "Find the number of baseball ordered in December 2017.", "pos": ["Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';"], "neg": ["California is a state; CDP stores refer to StoreID where Type = 'CDP';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the greatest net profit in 2020 refers to MAX(net profit) where OrderDate LIKE '%/20';", "highest discount applied refers to Max(Discount Applied)", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "ordered on 10/21/18 refers to OrderDate = '10/21/18'; delivered on 11/21/19 refers to DeliveryDate = '11/21/19'; name of product refers to Product Name", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "\"Midwest\" is the Region", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;"]}} {"set": {"query": "How many orders have order date in 5/31/2018?", "pos": ["orders refer to OrderNumber;"], "neg": ["floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "ordered on 10/21/18 refers to OrderDate = '10/21/18'; delivered on 11/21/19 refers to DeliveryDate = '11/21/19'; name of product refers to Product Name", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "average land area = Divide (Sum(Land Area), Count(Land Area))", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "order quantity greater than 5 refers to Order Quantity > 5", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "\"Joshua Bennett\" is the name of Sales Team", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';", "the most number of sales team refers to MAX(COUNT(Sales Team));"]}} {"set": {"query": "What is the store id of the store located in the most populous county?", "pos": ["most populous country refers to Max(Population)"], "neg": ["Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "the highest unit price refers to MAX(Unit Price);", "shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber))", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "California is a state; CDP stores refer to StoreID where Type = 'CDP';", "Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';", "Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'"]}} {"set": {"query": "Which sales team has the other with the highest unit price?", "pos": ["highest unit price refers to Max(Unit Price)"], "neg": ["\"Joshua Bennett\" is the name of Sales Team", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the highest net profit in 2019 refers to MAX(Net Profit) where OrderDate LIKE '%/19'; product refers to Product Name;", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);", "highest unit price refers to Max(Unit Price)", "highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name", "\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)", "average land area = Divide (Sum(Land Area), Count(Land Area))"]}} {"set": {"query": "Calculate the average net profit for bakeware product.", "pos": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';"], "neg": ["in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))", "order quantity greater than 5 refers to Order Quantity > 5", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber;", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';", "average land area = Divide (Sum(Land Area), Count(Land Area))", "highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name", "Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "unit cost greater than 4000USD refers to Unit Cost > 4000;", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);"]}} {"set": {"query": "At what Latitude and Longitude is the store that has used the WARE-PUJ1005 warehouse the fewest times?", "pos": ["WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))"], "neg": ["COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');", "highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber))", "highest discount applied refers to Max(Discount Applied)", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "\"Brooklyn\" is the CityName; population of less than 3 million refers to Population < 3000000", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100"]}} {"set": {"query": "List all orders where its products were shipped from Daly City.", "pos": ["shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber;"], "neg": ["total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';", "Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "highest unit price refers to Max(Unit Price)", "Rochester Ltd is the name of the customer; orders refer to OrderNumber;"]}} {"set": {"query": "What type of store is most popular in the South?", "pos": ["in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))"], "neg": ["George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);", "the least sold product refers to Product Name where MIN(Order Quantity);", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "\"Midwest\" is the Region", "Sales Team = 'Stephen Payne'; net profit can be computed as SUBTRACT(Unit Price, Unit Cost); DIVIDE(COUNT(OrderNumber where Sales Team = 'Stephen Payne' and Net Profit > 1000)), (COUNT(OrderNumber where Sales Team = 'Stephen Payne')) as percentage;", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "orders refer to OrderNumber;", "\"Elorac, Corp\" is the Customer Names", "city has the largest population refers to City Name where MAX(Population);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);"]}} {"set": {"query": "What is the amount of discount applied to the product with the highest net profit and what is the name of the said product?", "pos": ["highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name"], "neg": ["shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber;", "highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "\"Joshua Bennett\" is the name of Sales Team", "\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';", "total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';", "order refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'; January refers to Substr(OrderDate, 1, 1) = '1';\u00a0 most preferred sales channel refers to Sales Channel where Max(Count(OrderNumber))", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name;"]}} {"set": {"query": "Count the number of orders made from the store in city with population of 3000000 to 4000000.", "pos": ["number of order refers to OrderNumber; population of 3000000 to 4000000 refers to Population BETWEEN 3000000 AND 4000000"], "neg": ["less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "orders refer to OrderNumber;", "orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;", "Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "city has the largest population refers to City Name where MAX(Population);", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name;", "Rochester Ltd is the name of the customer; orders refer to OrderNumber;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the highest net profit in 2019 refers to MAX(Net Profit) where OrderDate LIKE '%/19'; product refers to Product Name;"]}} {"set": {"query": "List all the name of products with the ID of 30 to 40.", "pos": ["products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;"], "neg": ["average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');", "DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "most populous country refers to Max(Population)", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "Medsep Group is the name of the customer; orders refer to OrderNumber;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the greatest net profit in 2020 refers to MAX(net profit) where OrderDate LIKE '%/20';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "\"Elorac, Corp\" is the Customer Names"]}} {"set": {"query": "Among sales teams in Midwest region, which sales team has an order quantity greater than 5?", "pos": ["order quantity greater than 5 refers to Order Quantity > 5"], "neg": ["delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "highest unit price refers to Max(Unit Price)", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "unit cost greater than 4000USD refers to Unit Cost > 4000;", "total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5;", "city has the largest population refers to City Name where MAX(Population);", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);", "most populated refers to Max(Population);"]}} {"set": {"query": "Name the products via wholesale channel of the store under Pacific/Honolulu time zone.", "pos": ["products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'"], "neg": ["order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name", "\"WARE-UHY1004\" is the WarehouseCode", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "Medsep Group is the name of the customer; orders refer to OrderNumber;", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');", "total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';", "sales order 'SO - 0005951' refers to OrderNumber = 'SO - 0005951'; product refers to Product Name", "delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names", "\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))"]}} {"set": {"query": "What is the detailed coordinates of the store where the product with the 4th highest profit were purchased from?", "pos": ["detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost))"], "neg": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "ordered on 10/21/18 refers to OrderDate = '10/21/18'; delivered on 11/21/19 refers to DeliveryDate = '11/21/19'; name of product refers to Product Name", "\"Elorac, Corp\" is the Customer Names", "all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name;", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';", "the lowest unit price refers to MIN(Unit Price);", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'"]}} {"set": {"query": "How much is the discount applied to the order with the highest unit price?", "pos": ["highest unit price refers to Max(Unit Price)"], "neg": ["unit cost greater than 4000USD refers to Unit Cost > 4000;", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40;", "\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))", "name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8", "order quantity greater than 5 refers to Order Quantity > 5", "applied 10% discount refers to Discount Applied = 0.1;", "\"Apollo Ltd\" is the Customer Names; most expensive unit price refers to max(Unit Price)", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;"]}} {"set": {"query": "What is the name of the product with the highest net profit?", "pos": ["highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name"], "neg": ["total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20';", "Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "average land area = Divide (Sum(Land Area), Count(Land Area))", "unit cost greater than 4000USD refers to Unit Cost > 4000;", "\"Joshua Bennett\" is the name of Sales Team", "most populous country refers to Max(Population)", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'", "DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12);", "sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is\u00a0 the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100", "the lowest unit price refers to MIN(Unit Price);"]}} {"set": {"query": "What is the customer names of orders which have unit cost greater than 4000USD?", "pos": ["unit cost greater than 4000USD refers to Unit Cost > 4000;"], "neg": ["California is a state; CDP stores refer to StoreID where Type = 'CDP';", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "\"Brooklyn\" is the CityName; population of less than 3 million refers to Population < 3000000", "the lowest unit price refers to MIN(Unit Price);", "highest unit price refers to Max(Unit Price)", "40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber;", "\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');", "orders refer to OrderNumber;"]}} {"set": {"query": "State the delivery date of cookware.", "pos": ["Cookware is the name of the product;"], "neg": ["shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber;", "Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5;", "the highest unit price refers to MAX(Unit Price);", "the lowest unit price refers to MIN(Unit Price);", "the most number of sales team refers to MAX(COUNT(Sales Team));", "orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "highest discount applied refers to Max(Discount Applied)"]}} {"set": {"query": "Describe the customer names and product names which had over 3800 USD in net profit.", "pos": ["over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800;"], "neg": ["cities refer to City Name; no water area refers to Water Area = 0;", "order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name", "\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber;", "the most number of sales team refers to MAX(COUNT(Sales Team));", "highest unit price refers to Max(Unit Price)", "sale team ID of 18 refers to _SalesTeamID = 18; COUNT(OrderNumber where Sales Channel = 'In-Store') > COUNT(OrderNumber where Sales Channel = 'Online');", "\"Michigan\" is the State", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;"]}} {"set": {"query": "Please indicate total order quantity of product Candles and calculate the percentage of such product among all the orders.", "pos": ["total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100"], "neg": ["\"Brooklyn\" is the CityName; population of less than 3 million refers to Population < 3000000", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "\"WARE-UHY1004\" is the WarehouseCode", "order quantity greater than 5 refers to Order Quantity > 5", "\"Elorac, Corp\" is the Customer Names", "order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "Cookware is the name of the product;", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'"]}} {"set": {"query": "What percentage of sell orders on 04/04/2020 were for the state of New York?", "pos": ["sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is\u00a0 the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100"], "neg": ["unit cost greater than 4000USD refers to Unit Cost > 4000;", "California is a state; CDP stores refer to StoreID where Type = 'CDP';", "\"Elorac, Corp\" is the Customer Names", "total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100", "orders online refer to Sales Channel = 'Online';", "orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5;", "less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "\"Brooklyn\" is the CityName; population of less than 3 million refers to Population < 3000000", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';", "Medsep Group is the name of the customer; orders refer to OrderNumber;"]}} {"set": {"query": "List out the name of products which have been applied 10% discount.", "pos": ["applied 10% discount refers to Discount Applied = 0.1;"], "neg": ["shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber))", "city has the largest population refers to City Name where MAX(Population);", "sales order 'SO - 0005951' refers to OrderNumber = 'SO - 0005951'; product refers to Product Name", "Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity);", "\"WARE-MKL1006\" is the WarehouseCode; most shipment to region refers to Max(Count(Region))", "Rochester Ltd is the name of the customer; orders refer to OrderNumber;", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800;", "Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "\"WARE-UHY1004\" is the WarehouseCode"]}} {"set": {"query": "Name the sales team name who had orders with the greatest net profit in 2020.", "pos": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the greatest net profit in 2020 refers to MAX(net profit) where OrderDate LIKE '%/20';"], "neg": ["cities refer to City Name; no water area refers to Water Area = 0;", "\"Elorac, Corp\" is the Customer Names", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'", "product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18';", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "\"Midwest\" is the Region", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income);", "all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';"]}} {"set": {"query": "Find the average yearly order by customer Weimei Corp for 2018, 2019 and 2020.", "pos": ["\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)"], "neg": ["Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "city has the largest population refers to City Name where MAX(Population);", "unit cost greater than 4000USD refers to Unit Cost > 4000;", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "sale team ID of 18 refers to _SalesTeamID = 18; COUNT(OrderNumber where Sales Channel = 'In-Store') > COUNT(OrderNumber where Sales Channel = 'Online');", "name containing the word 'Group' refers to Customer Names LIKE '%Group%';"]}} {"set": {"query": "To which region does the sales team that has used the WARE-MKL1006 warehouse the most times for its shipments belong?", "pos": ["\"WARE-MKL1006\" is the WarehouseCode; most shipment to region refers to Max(Count(Region))"], "neg": ["sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));", "COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP');", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID;", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team;", "less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County", "net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor';", "orders online refer to Sales Channel = 'Online';", "\"California\" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2'", "California is a state; CDP stores refer to StoreID where Type = 'CDP';", "in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type))"]}} {"set": {"query": "How many orders made by Rochester Ltd?", "pos": ["Rochester Ltd is the name of the customer; orders refer to OrderNumber;"], "neg": ["\"Joshua Bennett\" is the name of Sales Team", "detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost))", "sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19'));", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "unit cost greater than 4000USD refers to Unit Cost > 4000;", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800;", "name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "Cookware is the name of the product;"]}} {"set": {"query": "What is the type of store located in the city with the highest amount of water area?", "pos": ["type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)"], "neg": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))", "total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';", "sale team ID of 18 refers to _SalesTeamID = 18; COUNT(OrderNumber where Sales Channel = 'In-Store') > COUNT(OrderNumber where Sales Channel = 'Online');", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "applied 10% discount refers to Discount Applied = 0.1;", "products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale'", "the lowest unit price refers to MIN(Unit Price);", "unit cost greater than 4000USD refers to Unit Cost > 4000;", "shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber))"]}} {"set": {"query": "Which sales channel was most preferred in commercializing products in January 2020 based on the number of orders placed?", "pos": ["order refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'; January refers to Substr(OrderDate, 1, 1) = '1';\u00a0 most preferred sales channel refers to Sales Channel where Max(Count(OrderNumber))"], "neg": ["unit cost greater than 4000USD refers to Unit Cost > 4000;", "orders online refer to Sales Channel = 'Online';", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "most populous country refers to Max(Population)", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "\"Weimei Corp\" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3)", "highest unit price refers to Max(Unit Price)", "40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber;", "most populated refers to Max(Population);", "\"WARE-MKL1006\" is the WarehouseCode; most shipment to region refers to Max(Count(Region))"]}} {"set": {"query": "Calculate the percentage of order via in-store channel of customer \"Medline\".", "pos": ["Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage;"], "neg": ["type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name", "Cookware is the name of the product;", "floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21'", "AVG(Unit Price where Product Name = 'Cookware');", "most populous country refers to Max(Population)", "\"WARE-UHY1004\" is the WarehouseCode", "\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "the least sold product refers to Product Name where MIN(Order Quantity);"]}} {"set": {"query": "List all the numbers ordered by 'Rochester Ltd' in 2018.", "pos": ["Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18';"], "neg": ["cities refer to City Name; no water area refers to Water Area = 0;", "ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost);", "average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID))", "name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8", "\"Distributor\" is the Sales Channel; minimum quantity refers to Min(Order Quantity)", "Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115';", "COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware');", "highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name", "WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode))", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;"]}} {"set": {"query": "How many sales orders were processed by the store located in Chandler in 2020?", "pos": ["\"Chandler\" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'"], "neg": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware';", "Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL;", "In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name;", "shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber;", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18';", "type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area)", "Medsep Group is the name of the customer; orders refer to OrderNumber;", "George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2);", "order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name"]}} {"set": {"query": "Calculate the average net profit of bar tools which has ordered quantity exceed 5.", "pos": ["net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5;"], "neg": ["Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17';", "\"Arizona\" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost))", "applied 10% discount refers to Discount Applied = 0.1;", "\"Joshua Bennett\" is the name of Sales Team", "over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800;", "order quantity greater than 5 refers to Order Quantity > 5", "the highest unit price refers to MAX(Unit Price);", "the most number of sales team refers to MAX(COUNT(Sales Team));", "ordered on 6th June 2018 refers to OrderDate = '6/5/18'", "highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name"]}} {"set": {"query": "How many restaurants in the city of Richmond serve Mediterranean food?", "pos": ["Mediterranean food refers to food_type = \u00a0 'mediterranean'"], "neg": ["Irving Street refers to street_name = 'irving'", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "Bay Area refers to region = 'bay area'", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "restaurant refers to label; European food refers to food_type = 'european'", "full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'", "more than 4 star review refers to review > 4", "full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'"]}} {"set": {"query": "In which counties are there A&W Root Beer Restaurants?", "pos": ["A&W Root Beer Restaurant refers to label = 'a & w root beer'"], "neg": ["Broadway refers to street_name = 'broadway';\u00a0 Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3", "a street called Appian Way refers to street_name = 'appian way'", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'", "street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'", "full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'", "no African food restaurants refers to food_type <> 'african'", "street refers to street_name; the most restaurants refers to max(count(street_name))", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'"]}} {"set": {"query": "Please list any five cities that have an unidentified county and region.", "pos": ["unidentified county and region refers to county = 'unknown' AND region = 'unknown'"], "neg": ["winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'", "not in the Bay Area region refers to region ! = 'bay area'", "Mediterranean food refers to food_type = \u00a0 'mediterranean'", "Bay Area refers to region = 'bay area'", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "street E. El Camino Real refers to street_name = 'E. El Camino Real'", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))", "Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'"]}} {"set": {"query": "How many restaurants in Broadway, Oakland received a review of no more than 3?", "pos": ["Broadway refers to street_name = 'broadway';\u00a0 Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3"], "neg": ["no African food restaurants refers to food_type <> 'african'", "full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "Mediterranean food refers to food_type = \u00a0 'mediterranean'", "a street called Appian Way refers to street_name = 'appian way'", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "Northern California refers to region = 'northern california'", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))"]}} {"set": {"query": "What is the region of 1149 El Camino Real?", "pos": ["1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'"], "neg": ["restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'", "unknown county refers to county = 'unknown'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'", "top-reviewed refers to review = 4; type of food refers to food_type\n\n", "no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop'", "restaurant refers to label; European food refers to food_type = 'european'", "type refers to food_type; most common refers to max(count(food_type))", "no pizza restaurants refers to food_type = 'pizza'", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "Bay Area refers to region = 'bay area'"]}} {"set": {"query": "What are the most popular restaurants in San Francisco among diners?", "pos": ["the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'"], "neg": ["no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop'", "street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown'", "winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'", "full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "Mediterranean food refers to food_type = \u00a0 'mediterranean'", "Greek restaurant refers to food_type = 'greek'", "Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "Northern California refers to region = 'northern california'", "street refers to street_name; review of 1.7 refers to review = 1.7"]}} {"set": {"query": "Which region has the highest number of restaurants?", "pos": ["the highest number refers to max(count(id_restaurant))"], "neg": ["Italian food refers to food_type = 'Italian'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'", "street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100%", "Irving Street refers to street_name = 'irving'", "full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "not in the Bay Area region refers to region ! = 'bay area'", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "the top 4 most popular restaurant refers to top 4 max(review)", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "no African food restaurants refers to food_type <> 'african'"]}} {"set": {"query": "Among all indian restaurants in Castro St., Mountainview, how many of them is about cookhouse in their label?", "pos": ["indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'"], "neg": ["no African food restaurants refers to food_type <> 'african'", "street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'", "Italian food refers to food_type = 'Italian'", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "have not obtained a minimum of 3 in review refers to review < 3", "street refers to street_name; review of 1.7 refers to review = 1.7", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)"]}} {"set": {"query": "What percentage of streets named 11th Street are in Alameda County?", "pos": ["street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%"], "neg": ["kind of restaurant refers to food_type; \"106 E 25th Ave\" refers to street_name = 'e 25th ave'", "Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco'", "Mediterranean food refers to food_type = \u00a0 'mediterranean'", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "A&W Root Beer Restaurant refers to label = 'a & w root beer'", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "Bay Area refers to region = 'bay area'", "have not obtained a minimum of 3 in review refers to review < 3"]}} {"set": {"query": "Give the street number of a bar in Oakland with a 2.7 review.", "pos": ["street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7"], "neg": ["no pizza restaurants refers to food_type = 'pizza'", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "the highest number refers to max(count(id_restaurant))", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "street E. El Camino Real refers to street_name = 'E. El Camino Real'", "full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "Broadway refers to street_name = 'broadway';\u00a0 Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3", "full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'"]}} {"set": {"query": "How many restaurants have more than 4 star reviews?", "pos": ["more than 4 star review refers to review > 4"], "neg": ["no pizza restaurants refers to food_type = 'pizza'", "unknown county refers to county = 'unknown'", "American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel'", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'", "street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10"]}} {"set": {"query": "How many American food restaurants are unpopular in Carmel?", "pos": ["American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel'"], "neg": ["Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county'", "full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'", "a street called Appian Way refers to street_name = 'appian way'", "have not obtained a minimum of 3 in review refers to review < 3", "Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))", "Broadway refers to street_name = 'broadway';\u00a0 Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "restaurant refers to label; Park St refers to street_name = 'park st'"]}} {"set": {"query": "What cities are located in Northern California?", "pos": ["Northern California refers to region = 'northern california'"], "neg": ["Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type\n\n", "kind of restaurant refers to food_type; \"106 E 25th Ave\" refers to street_name = 'e 25th ave'", "Broadway refers to street_name = 'broadway';\u00a0 Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3", "Greek restaurant refers to food_type = 'greek'", "Mediterranean food refers to food_type = \u00a0 'mediterranean'", "not in the Bay Area region refers to region ! = 'bay area'", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))", "indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'", "street refers to street_name; the most restaurants refers to max(count(street_name))"]}} {"set": {"query": "What percentage of restaurants in Monterey County have Mexican food?", "pos": ["Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%"], "neg": ["street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "the highest number refers to max(count(id_restaurant))", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "Italian food refers to food_type = 'Italian'", "street refers to street_name; the most restaurants refers to max(count(street_name))", "full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "no African food restaurants refers to food_type <> 'african'"]}} {"set": {"query": "In which regions are there no African food restaurants?", "pos": ["no African food restaurants refers to food_type <> 'african'"], "neg": ["1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "more than 4 star review refers to review > 4", "Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))", "Mediterranean food refers to food_type = \u00a0 'mediterranean'", "restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown'", "Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type\n\n", "kind of restaurant refers to food_type; \"106 E 25th Ave\" refers to street_name = 'e 25th ave'"]}} {"set": {"query": "At what numbers on 9th Avenue of San Francisco there are restaurants?", "pos": ["9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'"], "neg": ["indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'", "Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'", "have not obtained a minimum of 3 in review refers to review < 3", "Northern California refers to region = 'northern california'", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "restaurant refers to label; European food refers to food_type = 'european'", "street E. El Camino Real refers to street_name = 'E. El Camino Real'"]}} {"set": {"query": "Please list all of the restaurants that serve European food.", "pos": ["restaurant refers to label; European food refers to food_type = 'european'"], "neg": ["indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'", "Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "Italian food refers to food_type = 'Italian'", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "no African food restaurants refers to food_type <> 'african'", "Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county'", "the top 4 most popular restaurant refers to top 4 max(review)", "Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'"]}} {"set": {"query": "Among the restaurants on street number below 1000, how many of them are in Railroad St.?", "pos": ["street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'"], "neg": ["Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'", "winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'", "no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop'", "full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'", "restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown'", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'", "Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz'", "Northern California refers to region = 'northern california'", "indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'"]}} {"set": {"query": "Among the listed winery, what is the street number of the winery named \"Tulocay Winery\"?", "pos": ["winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'"], "neg": ["Italian food refers to food_type = 'Italian'", "American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel'", "Northern California refers to region = 'northern california'", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "El Cerrito refers to city = 'el cerrito'", "more than 4 star review refers to review > 4", "A&W Root Beer Restaurant refers to label = 'a & w root beer'", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'"]}} {"set": {"query": "Among all asian restaurants in N. Milpitas Blvd., Milpitas, how many of them have restaurant ID greater than 385?", "pos": ["asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385"], "neg": ["full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'", "no pizza restaurants refers to food_type = 'pizza'", "full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "unknown county refers to county = 'unknown'", "the top 4 most popular restaurant refers to top 4 max(review)", "street refers to street_name; review of 1.7 refers to review = 1.7", "street E. El Camino Real refers to street_name = 'E. El Camino Real'"]}} {"set": {"query": "On what street in Tuolumne County is Good Heavens restaurant located?", "pos": ["street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'"], "neg": ["more than 4 star review refers to review > 4", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type", "restaurant refers to label; European food refers to food_type = 'european'", "Mediterranean food refers to food_type = \u00a0 'mediterranean'"]}} {"set": {"query": "What type of food is there in the restaurants on Adeline Street in Berkeley city?", "pos": ["Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type\n\n"], "neg": ["street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type", "no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop'", "full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'", "Bay Area refers to region = 'bay area'", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))", "type refers to food_type; most common refers to max(count(food_type))", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'"]}} {"set": {"query": "List all of the restaurants on Park St.", "pos": ["restaurant refers to label; Park St refers to street_name = 'park st'"], "neg": ["1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "Irving Street refers to street_name = 'irving'", "Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type\n\n", "Greek restaurant refers to food_type = 'greek'", "Northern California refers to region = 'northern california'", "Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area'", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))", "Italian food refers to food_type = 'Italian'", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%"]}} {"set": {"query": "What types of food are served at the 4 top-reviewed restaurants?", "pos": ["top-reviewed refers to review = 4; type of food refers to food_type\n\n"], "neg": ["street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "street refers to street_name; review of 1.7 refers to review = 1.7", "street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7", "a street called Appian Way refers to street_name = 'appian way'", "Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz'", "A&W Root Beer Restaurant refers to label = 'a & w root beer'", "unknown county refers to county = 'unknown'", "kind of restaurant refers to food_type; \"106 E 25th Ave\" refers to street_name = 'e 25th ave'", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type", "Mediterranean food refers to food_type = \u00a0 'mediterranean'"]}} {"set": {"query": "In which region can you find the top 4 most popular restaurants?", "pos": ["the top 4 most popular restaurant refers to top 4 max(review)"], "neg": ["full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'", "Bay Area refers to region = 'bay area'", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "the highest number refers to max(count(id_restaurant))", "street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7", "American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel'", "type refers to food_type; most common refers to max(count(food_type))", "street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'", "Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county'"]}} {"set": {"query": "What kind of restaurants can be found at \"106 E 25th Ave\"?", "pos": ["kind of restaurant refers to food_type; \"106 E 25th Ave\" refers to street_name = 'e 25th ave'"], "neg": ["street refers to street_name; the most restaurants refers to max(count(street_name))", "Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'", "Italian food refers to food_type = 'Italian'", "more than 4 star review refers to review > 4", "unidentified county and region refers to county = 'unknown' AND region = 'unknown'", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz'", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown'", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type"]}} {"set": {"query": "What are the restaurants that are located at \"19th St. Oakland\"?", "pos": ["restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'"], "neg": ["American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel'", "more than 4 star review refers to review > 4", "restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown'", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type", "street refers to street_name; the most restaurants refers to max(count(street_name))", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "top-reviewed refers to review = 4; type of food refers to food_type\n\n", "street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7"]}} {"set": {"query": "What is the rating of each restaurant reviews on Atlantic Ave?", "pos": ["Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review"], "neg": ["9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "street refers to street_name; the most restaurants refers to max(count(street_name))", "A&W Root Beer Restaurant refers to label = 'a & w root beer'", "El Cerrito refers to city = 'el cerrito'", "indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'", "street refers to street_name; review of 1.7 refers to review = 1.7", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'", "no pizza restaurants refers to food_type = 'pizza'"]}} {"set": {"query": "What percentage of restaurants are from the Bay Area?", "pos": ["Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%"], "neg": ["1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "type refers to food_type; most common refers to max(count(food_type))", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "no pizza restaurants refers to food_type = 'pizza'", "the top 4 most popular restaurant refers to top 4 max(review)", "no African food restaurants refers to food_type <> 'african'", "unknown county refers to county = 'unknown'", "Bay Area refers to region = 'bay area'", "Northern California refers to region = 'northern california'", "restaurant refers to label; Park St refers to street_name = 'park st'"]}} {"set": {"query": "How many restaurants have not obtained a minimum of 3 in their reviews?", "pos": ["have not obtained a minimum of 3 in review refers to review < 3"], "neg": ["Mediterranean food refers to food_type = \u00a0 'mediterranean'", "Broadway refers to street_name = 'broadway';\u00a0 Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3", "a street called Appian Way refers to street_name = 'appian way'", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "the highest number refers to max(count(id_restaurant))", "Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz'", "unidentified county and region refers to county = 'unknown' AND region = 'unknown'", "Northern California refers to region = 'northern california'", "street E. El Camino Real refers to street_name = 'E. El Camino Real'", "more than 4 star review refers to review > 4"]}} {"set": {"query": "List all the average reviews of Chinese restaurants for each county from highest to lowest.", "pos": ["Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))"], "neg": ["more than 4 star review refers to review > 4", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel'", "restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco'", "Irving Street refers to street_name = 'irving'", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))", "not in the Bay Area region refers to region ! = 'bay area'"]}} {"set": {"query": "Which county and region does the street E. El Camino Real belong to?", "pos": ["street E. El Camino Real refers to street_name = 'E. El Camino Real'"], "neg": ["Italian food refers to food_type = 'Italian'", "full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'", "not in the Bay Area region refers to region ! = 'bay area'", "Greek restaurant refers to food_type = 'greek'", "street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'", "name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco'", "type refers to food_type; most common refers to max(count(food_type))", "more than 4 star review refers to review > 4", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county'"]}} {"set": {"query": "What are the regions with Greek restaurants?", "pos": ["Greek restaurant refers to food_type = 'greek'"], "neg": ["more than 4 star review refers to review > 4", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "no pizza restaurants refers to food_type = 'pizza'", "street E. El Camino Real refers to street_name = 'E. El Camino Real'", "Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))", "street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100%"]}} {"set": {"query": "How many of the cities are in a Bay Area?", "pos": ["Bay Area refers to region = 'bay area'"], "neg": ["full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'", "Italian food refers to food_type = 'Italian'", "unidentified county and region refers to county = 'unknown' AND region = 'unknown'", "the highest number refers to max(count(id_restaurant))", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "street E. El Camino Real refers to street_name = 'E. El Camino Real'", "Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county'", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "kind of restaurant refers to food_type; \"106 E 25th Ave\" refers to street_name = 'e 25th ave'"]}} {"set": {"query": "List by its ID number all restaurants on 11th Street in Oakland.", "pos": ["11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n"], "neg": ["street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "type refers to food_type; most common refers to max(count(food_type))", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'", "Irving Street refers to street_name = 'irving'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'", "street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100%", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "unknown county refers to county = 'unknown'"]}} {"set": {"query": "List all counties where there is no Bakers Square Restaurant & Pie Shop.", "pos": ["no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop'"], "neg": ["Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "Greek restaurant refers to food_type = 'greek'", "Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area'", "the highest number refers to max(count(id_restaurant))", "the top 4 most popular restaurant refers to top 4 max(review)", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))", "A&W Root Beer Restaurant refers to label = 'a & w root beer'", "Bay Area refers to region = 'bay area'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'"]}} {"set": {"query": "What is the city located in Bay Area of Santa Clara?", "pos": ["Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county'"], "neg": ["chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'", "no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop'", "Italian food refers to food_type = 'Italian'", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "no African food restaurants refers to food_type <> 'african'", "full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'"]}} {"set": {"query": "How many Indian restaurants are there in the Los Angeles area?", "pos": ["Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area'"], "neg": ["Mediterranean food refers to food_type = \u00a0 'mediterranean'", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "Italian food refers to food_type = 'Italian'", "street refers to street_name; review of 1.7 refers to review = 1.7", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))", "Greek restaurant refers to food_type = 'greek'", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'", "street E. El Camino Real refers to street_name = 'E. El Camino Real'"]}} {"set": {"query": "How many restaurants are on Irving Street?", "pos": ["Irving Street refers to street_name = 'irving'"], "neg": ["Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))", "restaurant refers to label; European food refers to food_type = 'european'", "Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county'", "winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'", "street refers to street_name; review of 1.7 refers to review = 1.7", "street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "type refers to food_type; most common refers to max(count(food_type))", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n"]}} {"set": {"query": "What type of restaurant is most common in Monterey county?", "pos": ["type refers to food_type; most common refers to max(count(food_type))"], "neg": ["street refers to street_name; the most restaurants refers to max(count(street_name))", "kind of restaurant refers to food_type; \"106 E 25th Ave\" refers to street_name = 'e 25th ave'", "a street called Appian Way refers to street_name = 'appian way'", "Italian food refers to food_type = 'Italian'", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "restaurant refers to label; Park St refers to street_name = 'park st'", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "Greek restaurant refers to food_type = 'greek'"]}} {"set": {"query": "In which regions are there no pizza restaurants?", "pos": ["no pizza restaurants refers to food_type = 'pizza'"], "neg": ["top-reviewed refers to review = 4; type of food refers to food_type\n\n", "A&W Root Beer Restaurant refers to label = 'a & w root beer'", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "have not obtained a minimum of 3 in review refers to review < 3", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "street E. El Camino Real refers to street_name = 'E. El Camino Real'", "indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'", "street refers to street_name; the most restaurants refers to max(count(street_name))"]}} {"set": {"query": "Which county is El Cerrito from?", "pos": ["El Cerrito refers to city = 'el cerrito'"], "neg": ["Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type\n\n", "top-reviewed refers to review = 4; type of food refers to food_type\n\n", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "the highest number refers to max(count(id_restaurant))", "not in the Bay Area region refers to region ! = 'bay area'", "type refers to food_type; most common refers to max(count(food_type))", "kind of restaurant refers to food_type; \"106 E 25th Ave\" refers to street_name = 'e 25th ave'", "street refers to street_name; review of 1.7 refers to review = 1.7", "Italian food refers to food_type = 'Italian'", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'"]}} {"set": {"query": "What is the full address of Albert's Caf\u00e9?", "pos": ["full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'"], "neg": ["1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "Irving Street refers to street_name = 'irving'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'", "Broadway refers to street_name = 'broadway';\u00a0 Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3", "more than 4 star review refers to review > 4", "restaurant refers to label; Park St refers to street_name = 'park st'", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review"]}} {"set": {"query": "Which street has the most restaurants?", "pos": ["street refers to street_name; the most restaurants refers to max(count(street_name))"], "neg": ["street refers to street_name; review of 1.7 refers to review = 1.7", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'", "A&W Root Beer Restaurant refers to label = 'a & w root beer'", "unidentified county and region refers to county = 'unknown' AND region = 'unknown'", "a street called Appian Way refers to street_name = 'appian way'", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "more than 4 star review refers to review > 4", "kind of restaurant refers to food_type; \"106 E 25th Ave\" refers to street_name = 'e 25th ave'", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))"]}} {"set": {"query": "On which streets in the city of San Francisco are there restaurants with a review of 1.7?", "pos": ["street refers to street_name; review of 1.7 refers to review = 1.7"], "neg": ["name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco'", "11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant\n\n", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "restaurant refers to label; Park St refers to street_name = 'park st'", "more than 4 star review refers to review > 4", "top-reviewed refers to review = 4; type of food refers to food_type\n\n", "Greek restaurant refers to food_type = 'greek'", "restaurant refers to label; European food refers to food_type = 'european'", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%"]}} {"set": {"query": "List all of the restaurant addresses from an unknown region.", "pos": ["restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown'"], "neg": ["street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100%", "name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco'", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "have not obtained a minimum of 3 in review refers to review < 3", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "more than 4 star review refers to review > 4", "Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "restaurant refers to label; European food refers to food_type = 'european'", "unknown county refers to county = 'unknown'"]}} {"set": {"query": "Give the review of the restaurant located in Ocean St., Santa Cruz.", "pos": ["Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz'"], "neg": ["a street called Appian Way refers to street_name = 'appian way'", "street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7", "street refers to street_name; the most restaurants refers to max(count(street_name))", "restaurant refers to label; European food refers to food_type = 'european'", "no pizza restaurants refers to food_type = 'pizza'", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "Bay Area refers to region = 'bay area'", "American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel'", "street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100%", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'"]}} {"set": {"query": "Which country has the most restaurants with Italian food?", "pos": ["Italian food refers to food_type = 'Italian'"], "neg": ["restaurant refers to label; European food refers to food_type = 'european'", "name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco'", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "top-reviewed refers to review = 4; type of food refers to food_type\n\n", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area'", "street refers to street_name; the most restaurants refers to max(count(street_name))", "street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "the highest number refers to max(count(id_restaurant))"]}} {"set": {"query": "Among the restaurants located on the street number ranges from 1000 to 2000, what is the percentage of Afghani restaurants are there?", "pos": ["street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100%"], "neg": ["the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))", "American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel'", "Italian food refers to food_type = 'Italian'", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'"]}} {"set": {"query": "List all the streets with more than 10 restaurants in Alameda county.", "pos": ["street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10"], "neg": ["Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'", "street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100%", "restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown'", "winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "top-reviewed refers to review = 4; type of food refers to food_type\n\n", "Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz'", "restaurant refers to label; Park St refers to street_name = 'park st'", "Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area'"]}} {"set": {"query": "Which county in northern California has the highest number of cities?", "pos": ["northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city))"], "neg": ["have not obtained a minimum of 3 in review refers to review < 3", "street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "Northern California refers to region = 'northern california'", "the top 4 most popular restaurant refers to top 4 max(review)", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "no African food restaurants refers to food_type <> 'african'", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review", "full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'", "Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'"]}} {"set": {"query": "What counties are not in the Bay Area Region?", "pos": ["not in the Bay Area region refers to region ! = 'bay area'"], "neg": ["street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100%", "the highest number refers to max(count(id_restaurant))", "Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review))", "full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'", "A&W Root Beer Restaurant refers to label = 'a & w root beer'", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type", "Broadway refers to street_name = 'broadway';\u00a0 Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3", "El Cerrito refers to city = 'el cerrito'", "a street called Appian Way refers to street_name = 'appian way'", "street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'"]}} {"set": {"query": "In how many counties is there a street called Appian Way?", "pos": ["a street called Appian Way refers to street_name = 'appian way'"], "neg": ["A&W Root Beer Restaurant refers to label = 'a & w root beer'", "restaurant refers to label; Park St refers to street_name = 'park st'", "street E. El Camino Real refers to street_name = 'E. El Camino Real'", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "no African food restaurants refers to food_type <> 'african'", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "the highest number refers to max(count(id_restaurant))", "Bay Area refers to region = 'bay area'", "Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'", "street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7"]}} {"set": {"query": "What is the name of the most popular restaurant serving Asian foods in San Francisco?", "pos": ["the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'"], "neg": ["Northern California refers to region = 'northern california'", "have not obtained a minimum of 3 in review refers to review < 3", "full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'", "chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)", "street refers to street_name; review of 1.7 refers to review = 1.7", "more than 4 star review refers to review > 4", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "the highest number refers to max(count(id_restaurant))", "street refers to street_name; the most restaurants refers to max(count(street_name))", "Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review"]}} {"set": {"query": "What is the county and region of Plearn-Thai Cuisine restaurant?", "pos": ["Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine'"], "neg": ["full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "Northern California refers to region = 'northern california'", "full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'", "top-reviewed refers to review = 4; type of food refers to food_type\n\n", "a street called Appian Way refers to street_name = 'appian way'", "Greek restaurant refers to food_type = 'greek'", "street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type\n\n", "Bay Area refers to region = 'bay area'"]}} {"set": {"query": "What type of food is served at the restaurant located at 3140, Alpine Road at San Mateo County?", "pos": ["3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type"], "neg": ["Greek restaurant refers to food_type = 'greek'", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "street refers to street_name; the most restaurants refers to max(count(street_name))", "restaurant refers to label; European food refers to food_type = 'european'", "Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "street refers to street_name; review of 1.7 refers to review = 1.7", "no pizza restaurants refers to food_type = 'pizza'", "430 Broadway refers to street_num = 430 and street_name = 'Broadway'", "unknown county refers to county = 'unknown'"]}} {"set": {"query": "What is the name of the 24 hour diner at San Francisco?", "pos": ["name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco'"], "neg": ["Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "Irving Street refers to street_name = 'irving'", "type refers to food_type; most common refers to max(count(food_type))", "indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word \"Indian\" in label refers to label = 'indian'", "no African food restaurants refers to food_type <> 'african'", "full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type", "more than 4 star review refers to review > 4", "unknown county refers to county = 'unknown'"]}} {"set": {"query": "What is the full address of the restaurant named \"Sanuki Restaurant\"?", "pos": ["full address refers to city, street_num, street_name; restaurant named \"Sanuki Restaurant\" refers to label = 'sanuki restaurant'"], "neg": ["street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'", "no African food restaurants refers to food_type <> 'african'", "Greek restaurant refers to food_type = 'greek'", "street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7", "winery refers to food_type = 'winery'; street number refers to street_num; \"Tulocay Winery\" refers to label = 'Tulocay winery'", "more than 4 star review refers to review > 4", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385"]}} {"set": {"query": "Which chicken restaurant has the highest review?", "pos": ["chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review)"], "neg": ["no pizza restaurants refers to food_type = 'pizza'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'", "top-reviewed refers to review = 4; type of food refers to food_type\n\n", "Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "Northern California refers to region = 'northern california'", "full address = street_num, street_name, city; Albert's Caf\u00e9 refers to label = 'Albert's Caf\u00e9'", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "street refers to street_name; review of 1.7 refers to review = 1.7", "street refers to street_name; the most restaurants refers to max(count(street_name))", "Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100%"]}} {"set": {"query": "Give the review of the restaurant at 430, Broadway.", "pos": ["430 Broadway refers to street_num = 430 and street_name = 'Broadway'"], "neg": ["Broadway refers to street_name = 'broadway';\u00a0 Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3", "Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type\n\n", "the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco'", "the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco'", "Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz'", "Italian food refers to food_type = 'Italian'", "a street called Appian Way refers to street_name = 'appian way'", "asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385", "the top 4 most popular restaurant refers to top 4 max(review)", "9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco'"]}} {"set": {"query": "List the full address of all the American restaurants with a review of 4 or more?", "pos": ["full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4"], "neg": ["no African food restaurants refers to food_type <> 'african'", "the highest number refers to max(count(id_restaurant))", "Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100%", "street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad'", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'", "1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real'", "street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10", "Irving Street refers to street_name = 'irving'", "not in the Bay Area region refers to region ! = 'bay area'", "street refers to street_name; Good Heavens restaurant refers to label = 'good heavens'"]}} {"set": {"query": "List down the cities with unknown country.", "pos": ["unknown county refers to county = 'unknown'"], "neg": ["street refers to street_name; the most restaurants refers to max(count(street_name))", "street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100%", "Italian food refers to food_type = 'Italian'", "type refers to food_type; most common refers to max(count(food_type))", "restaurant refers to label; \"19th St. Oakland\" refers to street_name = '19th St' AND city = 'Oakland'", "full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4", "Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county'", "restaurant refers to label; Park St refers to street_name = 'park st'", "El Cerrito refers to city = 'el cerrito'", "3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type"]}} {"set": {"query": "In 2012, how many complaints about Credit card product came from clients in Omaha?", "pos": ["in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'"], "neg": ["not in process with an agent refers to outcome ! = 'AGENT';", "male refers to sex = 'Male';", "elder refers to age < = 65; last name refers to last", "oldest age refers to max(age); male refers to sex = 'Male'", "first name refers to first; highest priority refers to priority = 2", "billing dispute refers to issue = 'Billing disputes';", "average age = avg(age where type = 'TT')", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'"]}} {"set": {"query": "Among the female clients that age between 20 to 40, list the date when their complaints were received.", "pos": ["female refers to sex = 'Female'"], "neg": ["full names = first, middle, last; male refers to sex = 'Male';", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "New York City refers to city = 'New York City'", "full names = first, middle, last; male refers to sex = 'Male'; year > 1990;", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer consent provided?\" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to \"Consumer consent provided?\" = 'Consent provided';", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "most five stars refers to MAX(COUNT(stars = 5));", "complaint call refers to Complaint ID; birthday = year, month, day;", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';"]}} {"set": {"query": "What was the phone of number of the client who made the complaint call \"CR0100432\" \uff1f", "pos": ["complaint call refers to Complaint ID;"], "neg": ["average age = AVG(age); Norwalk refers to city = 'Norwalk';", "first name start with alphabet \"B\" refers to first like 'B%'", "first name refers to first; highest priority refers to priority = 2", "percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York'; year(\"Date received\") BETWEEN 2016 AND 2017;", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "average age = avg(age where type = 'TT')", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "sent via Fax refers to Submitted via = 'Fax'", "social number refers to social; most complaints refers to max(count(event.Client_ID))"]}} {"set": {"query": "Please list the full names of all the male clients in the Pacific division.", "pos": ["full names = first, middle, last; male refers to sex = 'Male';"], "neg": ["elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'", "percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York'; year(\"Date received\") BETWEEN 2016 AND 2017;", "credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'", "full name of the state refers to state_name;", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';", "elder refers to age < = 65; last name refers to last", "first name start with alphabet \"B\" refers to first like 'B%'"]}} {"set": {"query": "What is the average age of clients in South Atlantic?", "pos": ["in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)"], "neg": ["Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';", "male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100%", "elder refers to age < = 65; last name refers to last", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "in progress refers to Company response to consumer = 'In progress'", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "full name refers to first middle last"]}} {"set": {"query": "What was the detailed issue did Mr Gunner Omer Fuller complain about?", "pos": ["detailed issue refers to Sub-issue; Mr refers to sex = 'Male';"], "neg": ["how it was submitted refers to \"Submitted via\";", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "full name of the state refers to state_name;", "female refers to sex = 'Female'", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "state refers to state_abbrev; most cities refers to max(count(city))", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "first name start with alphabet \"B\" refers to first like 'B%'", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'"]}} {"set": {"query": "Which complaint is more urgent, complaint ID CR2400594 or ID CR2405641?", "pos": ["more urgent refers to MAX(priority);"], "neg": ["full names = first, middle, last; male refers to sex = 'Male'; year > 1990;", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "average age = AVG(age);", "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");", "in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "full names = first, middle, last; male refers to sex = 'Male';"]}} {"set": {"query": "What is the social number of the person who made the most complaints?", "pos": ["social number refers to social; most complaints refers to max(count(event.Client_ID))"], "neg": ["day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100%", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "full names = first, middle, last; male refers to sex = 'Male';", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "more urgent refers to MAX(priority);"]}} {"set": {"query": "Which state does the owner of \"wyatt.collins@gmail.com\" live in? Give the full name of the state.", "pos": ["full name of the state refers to state_name;"], "neg": ["New York City refers to city = 'New York City'", "not in process with an agent refers to outcome ! = 'AGENT';", "billing dispute refers to issue = 'Billing disputes';", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "on 2017/3/27 refers to \"Date received\" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female';", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "social number refers to social", "full name refers to first middle last"]}} {"set": {"query": "What is the full name of client whose email address is emily.garcia43@outlook.com?", "pos": ["full name refers to first middle last"], "neg": ["first name refers to first; highest priority refers to priority = 2", "male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100%", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "New York City refers to city = 'New York City'", "how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to \"Date received\" = '2017-03-27';", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';"]}} {"set": {"query": "Identify by their ID all clients who did not give their consent permission.", "pos": ["did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;"], "neg": ["5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "full name refers to first, last", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "complaint call refers to Complaint ID;", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "email id refers to email; calls were hung refers to outcome = 'Hang';", "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "on 2018/9/11 refers to Date = '2017-07-22';"]}} {"set": {"query": "From 2012 to 2015, how many complaints were submitted via email from female clients?", "pos": ["from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'"], "neg": ["first name refers to first; highest priority refers to priority = 2", "oldest age refers to max(age); male refers to sex = 'Male'", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "New York City refers to city = 'New York City'", "percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York'; year(\"Date received\") BETWEEN 2016 AND 2017;"]}} {"set": {"query": "How many female clients are there older than 30?", "pos": ["female refers to sex = 'Female'; older than 30 refers to age > 30"], "neg": ["full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "male refers to sex = 'Male';", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York'; year(\"Date received\") BETWEEN 2016 AND 2017;", "full names = first, middle, last; male refers to sex = 'Male';", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "most five stars refers to MAX(COUNT(stars = 5));", "first name refers to first; highest priority refers to priority = 2"]}} {"set": {"query": "Which product got the most five stars, and how many?", "pos": ["most five stars refers to MAX(COUNT(stars = 5));"], "neg": ["below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "full name refers to first, last", "in progress refers to Company response to consumer = 'In progress'", "New York City refers to city = 'New York City'", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18"]}} {"set": {"query": "What is the percentage of the complaint calls from Mr Mason Javen Lopez has got the consent provided by the customer?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(\"Consumer consent provided?\" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to \"Consumer consent provided?\" = 'Consent provided';"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "elder refers to age < = 65; last name refers to last", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "complaint call refers to Complaint ID;", "oldest age refers to max(age); male refers to sex = 'Male'", "state refers to state_abbrev; most cities refers to max(count(city))", "first name refers to first; highest priority refers to priority = 2", "social number refers to social", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "female refers to sex = 'Female'"]}} {"set": {"query": "Calculate the percentage of complaints made by Google account client in server ZOHARI.", "pos": ["Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%"], "neg": ["first name refers to first; highest priority refers to priority = 2", "New York City refers to city = 'New York City'", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');", "not in process with an agent refers to outcome ! = 'AGENT';", "in progress refers to Company response to consumer = 'In progress'"]}} {"set": {"query": "How many times per year does a credit card customer complain about overlimit fees?", "pos": ["credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'"], "neg": ["percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'", "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';"]}} {"set": {"query": "Please list the emails of the clients whose complaint date received is 7/3/2014.", "pos": ["7/3/2014 refers to Date received = '2014-07-03'"], "neg": ["not in process with an agent refers to outcome ! = 'AGENT';", "first name refers to first; highest priority refers to priority = 2", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "on 2017/3/27 refers to \"Date received\" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female';", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "oldest age refers to max(age); male refers to sex = 'Male'", "0 priority refers to priority = 0; last name refers to last", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'"]}} {"set": {"query": "Write down the date received of complaints sent via Fax.", "pos": ["sent via Fax refers to Submitted via = 'Fax'"], "neg": ["full name of the state refers to state_name;", "Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "full name refers to first middle last", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'", "served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to \"Company response to consumer\" = 'Closed with explanation'; made by refers to \"Submitted via\";", "The abbreviation of Maryland is 'MD';"]}} {"set": {"query": "Give the client ID of the complaint received on April 16, 2014 and submitted through fax.", "pos": ["April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'"], "neg": ["below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');", "full name of the state refers to state_name;", "full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "New York City refers to city = 'New York City'", "full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';", "in progress refers to Company response to consumer = 'In progress'"]}} {"set": {"query": "What is the first name of clients who have the highest priority?", "pos": ["first name refers to first; highest priority refers to priority = 2"], "neg": ["did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "male refers to sex = 'Male'; age 25 and below refers to age < 25", "ID of the complaints refers to \"Complaint ID\"; on 25/09/2014 refers to \"Date sent to company\" = '2014-09-25'; took the longest = MAX(SUBTRACT(\"Date sent to company\", \"Date received\"));", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');", "oldest age refers to max(age); male refers to sex = 'Male'", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "elder refers to age < = 65; last name refers to last", "in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%", "full name refers to first middle last"]}} {"set": {"query": "List date of the review of the Eagle Capital from Indianapolis, Indiana.", "pos": ["Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'"], "neg": ["average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "more urgent refers to MAX(priority);", "full name refers to first, last", "how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to \"Date received\" = '2017-03-27';", "Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "elder refers to age < = 65; last name refers to last", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;"]}} {"set": {"query": "In reviews of product with 5 stars, what is the percentage of the reviews coming from the division of East North Central?", "pos": ["5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%"], "neg": ["day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "0 priority refers to priority = 0; last name refers to last", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "elder refers to age < = 65; last name refers to last", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';"]}} {"set": {"query": "Calculate the average age of clients from the Midwest region.", "pos": ["average age = AVG(age);"], "neg": ["gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');", "in progress refers to Company response to consumer = 'In progress'", "how it was submitted refers to \"Submitted via\";"]}} {"set": {"query": "Was the tag in the complaint filed by Matthew Pierce on 2016/10/28 approved by himself?", "pos": ["on 2016/10/28 refers to Date received = '2016-10-28'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;"], "neg": ["full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'", "full name refers to first middle last", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';", "full name refers to first, last", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "full names = first, middle, last; male refers to sex = 'Male';", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%"]}} {"set": {"query": "How many complaints from customers with a gmail.com email were received by the company in February 2017?", "pos": ["gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';"], "neg": ["submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';", "sent via Fax refers to Submitted via = 'Fax'", "female refers to sex = 'Female'", "full name refers to first middle last", "first name start with alphabet \"B\" refers to first like 'B%'", "average age = AVG(age);", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "on 2016/10/28 refers to Date received = '2016-10-28'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;"]}} {"set": {"query": "Which product received a review from Indianapolis on 2016/10/7?", "pos": ["Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';"], "neg": ["in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "full names = first, middle, last; male refers to sex = 'Male';", "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');", "billing dispute refers to issue = 'Billing disputes';", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "state refers to state_abbrev; most cities refers to max(count(city))", "full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'"]}} {"set": {"query": "How did Kyran Muller submit his complaint?", "pos": ["how it was submitted refers to \"Submitted via\";"], "neg": ["how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to \"Date received\" = '2017-03-27';", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "complaint call refers to Complaint ID; birthday = year, month, day;", "the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'", "April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "on 2017/3/27 refers to \"Date received\" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female';", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;"]}} {"set": {"query": "What is the average number of complaints on credit cards filed by clients from New York in the 3 consecutive years starting from 2015?", "pos": ["average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;"], "neg": ["on 2018/9/11 refers to Date = '2017-07-22';", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "longest server time refers to MAX(ser_time);", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';"]}} {"set": {"query": "Write down the call id of clients whose first name start with alphabet \"B\".", "pos": ["first name start with alphabet \"B\" refers to first like 'B%'"], "neg": ["in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "The abbreviation of Maryland is 'MD';", "longer than 15 minutes refers to ser_time > '00:15:00'", "how it was submitted refers to \"Submitted via\";", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';", "full names = first, middle, last; male refers to sex = 'Male';", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';"]}} {"set": {"query": "For all the complaint callers on 2017/3/27, what percentage of the clients are females?", "pos": ["on 2017/3/27 refers to \"Date received\" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female';"], "neg": ["percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York'; year(\"Date received\") BETWEEN 2016 AND 2017;", "more urgent refers to MAX(priority);", "longer than 15 minutes refers to ser_time > '00:15:00'", "full names = first, middle, last; male refers to sex = 'Male';", "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT(\"Complaint ID\"), 1.0));", "state refers to state_abbrev; most cities refers to max(count(city))"]}} {"set": {"query": "Calculate the difference in the average age of elderly and middle-aged clients in the Northeast region.", "pos": ["difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;"], "neg": ["gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "full names = first, middle, last; male refers to sex = 'Male';", "full names = first, middle, last; male refers to sex = 'Male'; year > 1990;", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);"]}} {"set": {"query": "How many clients with the last name Alvarado are from Maryland?", "pos": ["The abbreviation of Maryland is 'MD';"], "neg": ["average age = avg(age where type = 'TT')", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'", "female refers to sex = 'Female'", "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "on 2018/9/11 refers to Date = '2017-07-22';", "phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York'; year(\"Date received\") BETWEEN 2016 AND 2017;", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');"]}} {"set": {"query": "In 2014, what is the percentage of complaints from consumers in Houston that the delay was over 5 days?", "pos": ["in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%"], "neg": ["complaint call refers to Complaint ID;", "in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "full name refers to first middle last", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "full names = first, middle, last; male refers to sex = 'Male';", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';"]}} {"set": {"query": "What percentage of complaints are from the elderly?", "pos": ["elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%"], "neg": ["submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "elder refers to age < = 65; last name refers to last", "most five stars refers to MAX(COUNT(stars = 5));", "full name refers to first middle last", "how it was submitted refers to \"Submitted via\";", "state refers to state_abbrev; most cities refers to max(count(city))", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';"]}} {"set": {"query": "How many male clients born in the year 1977 were given priority 0 in their complaints?", "pos": ["male refers to sex = 'Male';"], "neg": ["not in process with an agent refers to outcome ! = 'AGENT';", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'", "on 2018/9/11 refers to Date = '2017-07-22';", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT(\"Complaint ID\"), 1.0));", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'"]}} {"set": {"query": "Please list all clients' phone numbers and complaint IDs which are still in progress.", "pos": ["in progress refers to Company response to consumer = 'In progress'"], "neg": ["in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");", "female refers to sex = 'Female'", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';"]}} {"set": {"query": "List the full names of all clients who live in the Pacific division.", "pos": ["full name refers to first, last"], "neg": ["teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "first name refers to first; highest priority refers to priority = 2", "7/3/2014 refers to Date received = '2014-07-03'", "Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';"]}} {"set": {"query": "Among the clients in Middle Atlantic, how many are them are female and no more than 18 years old?", "pos": ["in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18"], "neg": ["average age = AVG(age); Norwalk refers to city = 'Norwalk';", "average age = AVG(age);", "longest server time refers to MAX(ser_time);", "email id refers to email; calls were hung refers to outcome = 'Hang';", "state refers to state_abbrev; most cities refers to max(count(city))", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%"]}} {"set": {"query": "Which state has the most cities?", "pos": ["state refers to state_abbrev; most cities refers to max(count(city))"], "neg": ["longer than 15 minutes refers to ser_time > '00:15:00'", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100%", "male refers to sex = 'Male';", "phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'", "how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to \"Date received\" = '2017-03-27';", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'"]}} {"set": {"query": "Did Ms. Lyric Emely Taylor provide the consent for result of the complaint call on 2016/5/20?", "pos": ["Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';"], "neg": ["address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "email id refers to email; calls were hung refers to outcome = 'Hang';", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "full name of the state refers to state_name;"]}} {"set": {"query": "What is the address of the client who made a complaint via postal mail on March 14, 2012?", "pos": ["address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'"], "neg": ["submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';", "oldest age refers to max(age); male refers to sex = 'Male'", "in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%", "social number refers to social", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "7/3/2014 refers to Date received = '2014-07-03'", "in progress refers to Company response to consumer = 'In progress'"]}} {"set": {"query": "Among the elderlies, state the last name of whose complaint is handled in server YIFAT?", "pos": ["elder refers to age < = 65; last name refers to last"], "neg": ["male refers to sex = 'Male'; age 25 and below refers to age < 25", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "full names = first, middle, last; male refers to sex = 'Male'; year > 1990;", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "billing dispute refers to issue = 'Billing disputes';", "female refers to sex = 'Female'; older than 30 refers to age > 30", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'"]}} {"set": {"query": "What was the issue that the client with the longest server time faced?", "pos": ["longest server time refers to MAX(ser_time);"], "neg": ["full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'", "oldest age refers to max(age); male refers to sex = 'Male'", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "first name refers to first; highest priority refers to priority = 2", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");", "male refers to sex = 'Male'; age 25 and below refers to age < 25", "in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017"]}} {"set": {"query": "How many complaints are not in process with an agent?", "pos": ["not in process with an agent refers to outcome ! = 'AGENT';"], "neg": ["full name of the state refers to state_name;", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';"]}} {"set": {"query": "What is the percentage of complaints about the late fee issue whose priority is 2 in 2017?", "pos": ["percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017"], "neg": ["first name refers to first; highest priority refers to priority = 2", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "how it was submitted refers to \"Submitted via\";", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "full names = first, middle, last; male refers to sex = 'Male';", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer consent provided?\" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to \"Consumer consent provided?\" = 'Consent provided';"]}} {"set": {"query": "What are the issues of the complains of male clients and products from age 25 and below?", "pos": ["male refers to sex = 'Male'; age 25 and below refers to age < 25"], "neg": ["female refers to sex = 'Female'; older than 30 refers to age > 30", "New York City refers to city = 'New York City'", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "longest server time refers to MAX(ser_time);", "how it was submitted refers to \"Submitted via\";", "Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';", "complaint call refers to Complaint ID;"]}} {"set": {"query": "What was the serve time for the complaint call from client \"C00007127\" on 2017/2/22?", "pos": ["serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';"], "neg": ["in progress refers to Company response to consumer = 'In progress'", "California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT(\"Complaint ID\"), 1.0));", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York'; year(\"Date received\") BETWEEN 2016 AND 2017;", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "email id refers to email; calls were hung refers to outcome = 'Hang';", "billing dispute refers to issue = 'Billing disputes';", "full name of the state refers to state_name;", "full name refers to first, last", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'"]}} {"set": {"query": "Please list the full names of all the male clients born after the year 1990.", "pos": ["full names = first, middle, last; male refers to sex = 'Male'; year > 1990;"], "neg": ["between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "on 2018/9/11 refers to Date = '2017-07-22';", "in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';", "female refers to sex = 'Female'", "sent via Fax refers to Submitted via = 'Fax'"]}} {"set": {"query": "Among the teenager clients who use Google account and Microsoft account, which group of client is more than the other?", "pos": ["teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'"], "neg": ["female refers to sex = 'Female'; older than 30 refers to age > 30", "oldest age refers to max(age); male refers to sex = 'Male'", "email id refers to email; calls were hung refers to outcome = 'Hang';", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'", "in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)"]}} {"set": {"query": "Find the number of service members who complained in Syracuse.", "pos": ["service members refers to client.client_id; Syracuse refers to city = 'Syracuse';"], "neg": ["full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'", "oldest age refers to max(age); male refers to sex = 'Male'", "served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to \"Company response to consumer\" = 'Closed with explanation'; made by refers to \"Submitted via\";", "billing dispute refers to issue = 'Billing disputes';", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer consent provided?\" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to \"Consumer consent provided?\" = 'Consent provided';", "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');"]}} {"set": {"query": "In 2015, how many complaints about Billing disputes were sent by clients in Portland?", "pos": ["in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'"], "neg": ["in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "full name refers to first middle last", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'", "the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'", "Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "more urgent refers to MAX(priority);", "ID of the complaints refers to \"Complaint ID\"; on 25/09/2014 refers to \"Date sent to company\" = '2014-09-25'; took the longest = MAX(SUBTRACT(\"Date sent to company\", \"Date received\"));", "full name refers to first, last"]}} {"set": {"query": "What percentage of consumers from Houston disputed complaints?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';"], "neg": ["complaint call refers to Complaint ID;", "full name of the state refers to state_name;", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "average age = avg(age where type = 'TT')", "in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';"]}} {"set": {"query": "What is the percentage of the increase of complaints filed by the clients from New York from the year 2016 to the year 2017?", "pos": ["percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year(\"Date received\") = 2017), SUM(year(\"Date received\") = 2016)), SUM(year(\"Date received\") = 2016)), 1.0); New York refers to city = 'New York'; year(\"Date received\") BETWEEN 2016 AND 2017;"], "neg": ["detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "full name refers to first middle last", "social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'", "0 priority refers to priority = 0; last name refers to last", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "longest server time refers to MAX(ser_time);", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';", "ID of the complaints refers to \"Complaint ID\"; on 25/09/2014 refers to \"Date sent to company\" = '2014-09-25'; took the longest = MAX(SUBTRACT(\"Date sent to company\", \"Date received\"));"]}} {"set": {"query": "Find and list the names of districts which has below-average stars for Eagle Capital.", "pos": ["below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(\"Consumer consent provided?\" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to \"Consumer consent provided?\" = 'Consent provided';", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "elder refers to age < = 65; last name refers to last", "average age = avg(age where type = 'TT')", "in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'", "full name of the state refers to state_name;", "full names = first, middle, last; male refers to sex = 'Male';", "female refers to sex = 'Female'; older than 30 refers to age > 30", "average age = AVG(age);", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';"]}} {"set": {"query": "What is the email id of clients whose calls were hung?", "pos": ["email id refers to email; calls were hung refers to outcome = 'Hang';"], "neg": ["full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';", "0 priority refers to priority = 0; last name refers to last", "first name start with alphabet \"B\" refers to first like 'B%'", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "oldest age refers to max(age); male refers to sex = 'Male'", "full name refers to first middle last", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "not in process with an agent refers to outcome ! = 'AGENT';", "ID of the complaints refers to \"Complaint ID\"; on 25/09/2014 refers to \"Date sent to company\" = '2014-09-25'; took the longest = MAX(SUBTRACT(\"Date sent to company\", \"Date received\"));"]}} {"set": {"query": "For how long was the complaint filed by Matthew Pierce on 2016/10/28 delayed?", "pos": ["on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");"], "neg": ["detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "sent via Fax refers to Submitted via = 'Fax'", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "how it was submitted refers to \"Submitted via\";", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%"]}} {"set": {"query": "List down the full name of clients who have disputed the response from company.", "pos": ["full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'"], "neg": ["0 priority refers to priority = 0; last name refers to last", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "sent via Fax refers to Submitted via = 'Fax'", "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "full name refers to first middle last", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "more urgent refers to MAX(priority);", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%"]}} {"set": {"query": "In complaints received in 2014, how many of them were submitted via call?", "pos": ["in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'"], "neg": ["gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'", "complaint call refers to Complaint ID; birthday = year, month, day;", "longer than 15 minutes refers to ser_time > '00:15:00'", "ID of the complaints refers to \"Complaint ID\"; on 25/09/2014 refers to \"Date sent to company\" = '2014-09-25'; took the longest = MAX(SUBTRACT(\"Date sent to company\", \"Date received\"));", "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18"]}} {"set": {"query": "Which district did the review on 2018/9/11 come from? Give the name of the city.", "pos": ["on 2018/9/11 refers to Date = '2017-07-22';"], "neg": ["elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "sent via Fax refers to Submitted via = 'Fax'", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "female refers to sex = 'Female'", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "in progress refers to Company response to consumer = 'In progress'", "oldest age refers to max(age); male refers to sex = 'Male'", "male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100%", "served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to \"Company response to consumer\" = 'Closed with explanation'; made by refers to \"Submitted via\";"]}} {"set": {"query": "On which day was the most verbose complaint received?", "pos": ["day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "New York City refers to city = 'New York City'", "full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'", "female refers to sex = 'Female'; older than 30 refers to age > 30", "full names = first, middle, last; male refers to sex = 'Male'; year > 1990;", "not in process with an agent refers to outcome ! = 'AGENT';", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';"]}} {"set": {"query": "What is the division of the review of 5 stars received on December 17, 2017 for the product Eagle National Mortgage?", "pos": ["5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'"], "neg": ["in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)", "email id refers to email; calls were hung refers to outcome = 'Hang';", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "complaint call refers to Complaint ID;", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "full name refers to first, last", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "first name start with alphabet \"B\" refers to first like 'B%'"]}} {"set": {"query": "List the full name and phone number of clients who submitted the complaint via fax.", "pos": ["full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "average age = AVG(age);", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "complaint call refers to Complaint ID; birthday = year, month, day;", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "female refers to sex = 'Female'; older than 30 refers to age > 30", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');"]}} {"set": {"query": "List by their ID the complaints received by the company on 25/09/2014 that took the longest.", "pos": ["ID of the complaints refers to \"Complaint ID\"; on 25/09/2014 refers to \"Date sent to company\" = '2014-09-25'; took the longest = MAX(SUBTRACT(\"Date sent to company\", \"Date received\"));"], "neg": ["in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone'", "first name start with alphabet \"B\" refers to first like 'B%'", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "female refers to sex = 'Female'", "more urgent refers to MAX(priority);", "female refers to sex = 'Female'; older than 30 refers to age > 30", "sent via Fax refers to Submitted via = 'Fax'", "social number refers to social", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');", "not in process with an agent refers to outcome ! = 'AGENT';"]}} {"set": {"query": "What is the oldest age of male clients?", "pos": ["oldest age refers to max(age); male refers to sex = 'Male'"], "neg": ["in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "sent via Fax refers to Submitted via = 'Fax'", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer consent provided?\" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to \"Consumer consent provided?\" = 'Consent provided';", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;"]}} {"set": {"query": "What is the birth date of the youngest client?", "pos": ["birth date refers to year, month, day; youngest client refers to max(year, month, day)"], "neg": ["Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "social number refers to social", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "average age = AVG(age);", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'", "oldest age refers to max(age); male refers to sex = 'Male'", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "on 2018/9/11 refers to Date = '2017-07-22';", "how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to \"Date received\" = '2017-03-27';"]}} {"set": {"query": "Give me the full birthdate, email and phone number of the youngest client in Indianapolis .", "pos": ["full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis'"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "The abbreviation of Maryland is 'MD';", "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "billing dispute refers to issue = 'Billing disputes';", "female refers to sex = 'Female'; older than 30 refers to age > 30", "longer than 15 minutes refers to ser_time > '00:15:00'", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "most five stars refers to MAX(COUNT(stars = 5));", "elder refers to age < = 65; last name refers to last", "more urgent refers to MAX(priority);"]}} {"set": {"query": "Among the complaints received in year 2015, what is total number of complaints timely response and closed with an explanation?", "pos": ["in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'"], "neg": ["social number refers to social", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "full name of the state refers to state_name;", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "first name refers to first; highest priority refers to priority = 2", "the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'", "not in process with an agent refers to outcome ! = 'AGENT';", "Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';"]}} {"set": {"query": "How many clients under the age of 35 gave Eagle National Mortgage 1 star?", "pos": ["age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';"], "neg": ["full names = first, middle, last; male refers to sex = 'Male'; year > 1990;", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "longer than 15 minutes refers to ser_time > '00:15:00'", "full name refers to first, last", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';", "longest server time refers to MAX(ser_time);", "birth date refers to year, month, day; youngest client refers to max(year, month, day)"]}} {"set": {"query": "What is the average age of Norwalk clients?", "pos": ["average age = AVG(age); Norwalk refers to city = 'Norwalk';"], "neg": ["state refers to state_abbrev; most cities refers to max(count(city))", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "full name refers to first middle last", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "The abbreviation of Maryland is 'MD';", "in progress refers to Company response to consumer = 'In progress'", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "ID of the complaints refers to \"Complaint ID\"; on 25/09/2014 refers to \"Date sent to company\" = '2014-09-25'; took the longest = MAX(SUBTRACT(\"Date sent to company\", \"Date received\"));", "full names = first, middle, last; male refers to sex = 'Male';", "more urgent refers to MAX(priority);"]}} {"set": {"query": "List the products involved in the complaints received on March 2017 via TOVA server.", "pos": ["on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'"], "neg": ["male refers to sex = 'Male';", "on 2016/10/28 refers to Date received = '2016-10-28'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "in progress refers to Company response to consumer = 'In progress'", "in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?\" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation'", "longer than 15 minutes refers to ser_time > '00:15:00'", "average age = avg(age where type = 'TT')", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017"]}} {"set": {"query": "For how long did the complaint filed on 2017/3/27 by Rachel Hicks last?", "pos": ["how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to \"Date received\" = '2017-03-27';"], "neg": ["elder refers to age < = 65; last name refers to last", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "average age = avg(age where type = 'TT')", "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "most five stars refers to MAX(COUNT(stars = 5));", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'"]}} {"set": {"query": "How many clients who live in New York City have the complaint outcome as \"AGENT\"?", "pos": ["New York City refers to city = 'New York City'"], "neg": ["detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "in progress refers to Company response to consumer = 'In progress'", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "most five stars refers to MAX(COUNT(stars = 5));", "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';"]}} {"set": {"query": "What is the percentage of male clients complaining about their credit cards?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';"], "neg": ["full name refers to first, last", "on 2016/10/28 refers to Date received = '2016-10-28'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "male refers to sex = 'Male'; age 25 and below refers to age < 25", "full name of the state refers to state_name;", "first name refers to first; highest priority refers to priority = 2", "full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "0 priority refers to priority = 0; last name refers to last"]}} {"set": {"query": "Give me the social number and state of the client whose phone number is 100-121-8371.", "pos": ["social number refers to social"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer consent provided?\" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to \"Consumer consent provided?\" = 'Consent provided';", "full name refers to first, last", "email id refers to email; calls were hung refers to outcome = 'Hang';"]}} {"set": {"query": "Please list the full name, date of birth, and email id of the elderly clients in descending order of age.", "pos": ["full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;"], "neg": ["submitted complaints via fax refers to \"Submitted via\" = 'Fax';", "0 priority refers to priority = 0; last name refers to last", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "average age = AVG(age);", "longest server time refers to MAX(ser_time);", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "first name start with alphabet \"B\" refers to first like 'B%'", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';"]}} {"set": {"query": "How many customers in the Northeast use Microsoft email?", "pos": ["the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'"], "neg": ["ID of the complaints refers to \"Complaint ID\"; on 25/09/2014 refers to \"Date sent to company\" = '2014-09-25'; took the longest = MAX(SUBTRACT(\"Date sent to company\", \"Date received\"));", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';", "how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to \"Date received\" = '2017-03-27';", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "social number refers to social", "full name of the state refers to state_name;", "billing dispute refers to issue = 'Billing disputes';", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "average age = AVG(age);"]}} {"set": {"query": "Between 1/1/2017 and 4/1/2017, what is the average server time of calls under the server DARMON?", "pos": ["between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)"], "neg": ["average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "average age = AVG(age);", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "first name refers to first; highest priority refers to priority = 2", "complaint call refers to Complaint ID;", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "billing dispute refers to issue = 'Billing disputes';"]}} {"set": {"query": "How many clients who live in New York City submitted their complaints via fax?", "pos": ["submitted complaints via fax refers to \"Submitted via\" = 'Fax';"], "neg": ["first name refers to first; highest priority refers to priority = 2", "average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "in progress refers to Company response to consumer = 'In progress'", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "on 2018/9/11 refers to Date = '2017-07-22';"]}} {"set": {"query": "What is the average age of clients whose complaint type is \"TT\"?", "pos": ["average age = avg(age where type = 'TT')"], "neg": ["serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "first name start with alphabet \"B\" refers to first like 'B%'", "service members refers to client.client_id; Syracuse refers to city = 'Syracuse';", "longer than 15 minutes refers to ser_time > '00:15:00'", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'", "Eagle Capital refers to Product = 'Eagle Capital'; Indianapolis refers to city = 'Indianapolis'; Indiana refers to state_abbrev = 'IN'", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'", "served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to \"Company response to consumer\" = 'Closed with explanation'; made by refers to \"Submitted via\";", "male refers to sex = 'Male';"]}} {"set": {"query": "Calculate the percentage of male clients from Indianapolis City.", "pos": ["male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100%"], "neg": ["full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'", "longest server time refers to MAX(ser_time);", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "state refers to state_abbrev; most cities refers to max(count(city))", "on 2016/10/28 refers to Date received = '2016-10-28'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means that customers provide the consent for this tag;", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to \"Date received\" BETWEEN 2015 AND 2017;", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "submitted complaints via fax refers to \"Submitted via\" = 'Fax';"]}} {"set": {"query": "For the client who made the complaint call \"CR0217298\", what was his/her birthday\uff1f", "pos": ["complaint call refers to Complaint ID; birthday = year, month, day;"], "neg": ["New York City refers to city = 'New York City'", "in progress refers to Company response to consumer = 'In progress'", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "longest server time refers to MAX(ser_time);", "male refers to sex = 'Male';", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to \"Company response to consumer\" = 'Closed with explanation'; made by refers to \"Submitted via\";", "0 priority refers to priority = 0; last name refers to last"]}} {"set": {"query": "Pick 5 clients with 0 priority and write down their last name.", "pos": ["0 priority refers to priority = 0; last name refers to last"], "neg": ["gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "on 2016/10/28 refers to \"Date received\" = '2016-10-28'; delayed = SUBTRACT(\"Date sent to company', 'Date received\");", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "first name refers to first; highest priority refers to priority = 2", "no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'", "in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100%", "Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';", "percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017", "male refers to sex = 'Male';", "credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'"]}} {"set": {"query": "How many complaints on credit cards in the year 2016 were filed by male clients?", "pos": ["credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';"], "neg": ["0 priority refers to priority = 0; last name refers to last", "complaint call refers to Complaint ID; birthday = year, month, day;", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "most five stars refers to MAX(COUNT(stars = 5));", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com'", "in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha'", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "average age = avg(age where type = 'TT')", "on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%'"]}} {"set": {"query": "How many times does the consumer have no dispute over a non-timely response from the company?", "pos": ["no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No'"], "neg": ["in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland'", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age)", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "on 2018/9/11 refers to Date = '2017-07-22';", "state refers to state_abbrev; most cities refers to max(count(city))", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';"]}} {"set": {"query": "What is the full name of the client whose complaint on 2017/3/27 was received by MICHAL?", "pos": ["full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';"], "neg": ["day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital';", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'", "the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com'", "full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';"]}} {"set": {"query": "What is the social number of the client who has the longest delay in his/her complaint? Calculate the days of delay and state the company's response to the consumer.", "pos": ["social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer'"], "neg": ["full names = first, middle, last; male refers to sex = 'Male';", "April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'", "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "full name of the state refers to state_name;", "full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes'", "longer than 15 minutes refers to ser_time > '00:15:00'", "detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100%", "complaint call refers to Complaint ID; birthday = year, month, day;", "The abbreviation of Maryland is 'MD';"]}} {"set": {"query": "List all the server of the phone complaints with a late response from the company.", "pos": ["phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'"], "neg": ["ID of the complaints refers to \"Complaint ID\"; on 25/09/2014 refers to \"Date sent to company\" = '2014-09-25'; took the longest = MAX(SUBTRACT(\"Date sent to company\", \"Date received\"));", "state refers to state_abbrev; most cities refers to max(count(city))", "full name refers to first middle last", "5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100%", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65;", "not in process with an agent refers to outcome ! = 'AGENT';", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');", "female refers to sex = 'Female'", "between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time)"]}} {"set": {"query": "Among the calls from California, what percentage are priority 1?", "pos": ["California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT(\"Complaint ID\"), 1.0));"], "neg": ["The abbreviation of Maryland is 'MD';", "full name = first, middle, last; submitted the complaint via fax refers to \"Submitted via\" = 'fax';", "average age = AVG(age);", "difference in the average = SUBTRACT(AVG(age BETWEEN 35 AND 55), AVG( age > 65)); elderly refers to age > 65; middle-aged refers to age BETWEEN 35 AND 55;", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "longer than 15 minutes refers to ser_time > '00:15:00'", "7/3/2014 refers to Date received = '2014-07-03'", "April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax'", "age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage';", "female refers to sex = 'Female'; older than 30 refers to age > 30"]}} {"set": {"query": "Please list any two clients with their full names who have been tagged as \"Older American\" by the company without seeking their permission.", "pos": ["full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');"], "neg": ["Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';", "percentage = MULTIPLY(DIVIDE(SUM(\"Consumer disputed?\" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston';", "California refers to state = 'California'; percentage = MULTIPLY(DIVIDE(SUM(priority = 1), COUNT(\"Complaint ID\"), 1.0));", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "social number refers to social", "first name start with alphabet \"B\" refers to first like 'B%'", "male refers to sex = 'Male';", "on 2017/3/27 refers to \"Date received\" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female';", "average age = AVG(age);", "credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee'"]}} {"set": {"query": "How many complaints were served in 5 minutes or less by DORIT and responded to the customer with an explanation, were made by phone?", "pos": ["served in 5 minutes or less refers to ser_time < '00:05:00'; DORIT refers to server = 'DORIT'; responded with an explanation refers to \"Company response to consumer\" = 'Closed with explanation'; made by refers to \"Submitted via\";"], "neg": ["full names = first, middle, last; on 2017/3/27 refers to \"Date received\" = '2017-03-27'; MICHAL refers to server = 'MICHAL';", "did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty;", "address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14'", "average age = AVG(age);", "credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male';", "serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to \"Date received\" = '2017-02-22';", "full names = first, middle, last; without seeking their permission refers to \"Consumer consent provided?\" in (null, 'N/A' or 'empty');", "complaint call refers to Complaint ID; birthday = year, month, day;", "female refers to sex = 'Female'; older than 30 refers to age > 30", "Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100%"]}} {"set": {"query": "How many of the complaints are longer than 15 minutes?", "pos": ["longer than 15 minutes refers to ser_time > '00:15:00'"], "neg": ["complaint call refers to Complaint ID; birthday = year, month, day;", "Ms refers to sex = 'Female'; \"Consumer consent provided?\" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; \"Consumer consent provided?\" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20';", "in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18", "most five stars refers to MAX(COUNT(stars = 5));", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "social number refers to social; most complaints refers to max(count(event.Client_ID))", "average age = avg(age where type = 'TT')", "complaint call refers to Complaint ID;", "average age = AVG(age);", "not in process with an agent refers to outcome ! = 'AGENT';"]}} {"set": {"query": "Calculate the average number of complaints received from New Bedford each year which are closed with explanation.", "pos": ["average = AVG(\"Complaint ID\"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation';"], "neg": ["detailed issue refers to Sub-issue; Mr refers to sex = 'Male';", "5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17'", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "female refers to sex = 'Female'", "average age = AVG(age); Norwalk refers to city = 'Norwalk';", "percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card';", "gmail.com email refers to email like '%gmail.com'; in February 2017 refers to \"Date received\" BETWEEN '2017-01-02' AND '2017-02-28';", "The abbreviation of Maryland is 'MD';", "complaint call refers to Complaint ID; birthday = year, month, day;", "elder refers to age < = 65; last name refers to last"]}} {"set": {"query": "How many cases of billing dispute issues occurred in the Mountain division?", "pos": ["billing dispute refers to issue = 'Billing disputes';"], "neg": ["The abbreviation of Maryland is 'MD';", "full names = first, middle, last; male refers to sex = 'Male'; year > 1990;", "email id refers to email; calls were hung refers to outcome = 'Hang';", "Indianapolis refers to state = 'Indianapolis'; on 2016/10/7 refers to Date = '2013-04-04';", "birth date refers to year, month, day; youngest client refers to max(year, month, day)", "from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female'", "male refers to sex = 'Male'; age 25 and below refers to age < 25", "phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No'", "day received refers to \"Date received\"; most verbose complaint refers to MAX(ser_time);", "average age = AVG(age);"]}} {"set": {"query": "List the cities where the product 'Mishi Kobe Niku' were shipped to.", "pos": ["cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName"], "neg": ["most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))", "reported to employee id 5 refers to ReportsTo = 5", "via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))", "\"Eastern\" is the RegionDescription", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "'Pavlova' is a ProductName", "\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "full name refers to FirstName, LastName", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%"]}} {"set": {"query": "What is the contact title for the person who supplied a product that is 10 boxes x 12 pieces.", "pos": ["\"10 boxes x 12 pieces\" is the QuantityPerUnit"], "neg": ["biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry", "territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';", "full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "most ordered refers to max(COUNT(OrderID))", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)", "territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)"]}} {"set": {"query": "Provide the category name of the Chef Anton's Gumbo Mix product that New Orleans Cajun Delights company has.", "pos": ["'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;"], "neg": ["UnitsInStock < UnitsOnOrder;", "freight of over 800 refers to Freight > 800", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "'Pavlova' is a ProductName"]}} {"set": {"query": "Among the employees, give me the full names of those who have less than 4 territories.", "pos": ["less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4"], "neg": ["female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;", "the least shipped product refers ProductName where MIN(Quantity);", "most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'", "'Blondesddsl pre et fils' is a CompanyName", "freight of over 800 refers to Freight > 800", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))"]}} {"set": {"query": "How many customers are there in the country with the highest number of customers?", "pos": ["highest number refers to max(count(CustomerID))"], "neg": ["full name refers to LastName, FirstName", "Morristown refers to TerritoryDescription = 'Morristown'", "\"Eastern\" is the RegionDescription", "more than thirty dollars per unit refers to UnitPrice > 30", "via United Package refers to CompanyName = 'United Package'", "the least shipped product refers ProductName where MIN(Quantity);", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "located in Germany refers to Country = 'Germany';"]}} {"set": {"query": "How many companies do ship Northwind's orders?", "pos": ["companies refers to ShipperID"], "neg": ["highest salary refers to MAX(Salary); full name = FirstName, LastName;", "located in Germany refers to Country = 'Germany';", "most customers refers to max(count(Relationship))", "highest number of products refers to MAX(COUNT(ProductID))", "shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;", "average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4;", "UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4;", "supplied by refers to CompanyName", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'"]}} {"set": {"query": "Which product have the highest user satisfaction?", "pos": ["product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)"], "neg": ["GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'", "order number 10933 refers to OrderID = 10933;", "Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;", "\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;", "Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4", "shipped to the city of Paris refers to ShipCity = 'Paris';", "Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)"]}} {"set": {"query": "What are the products that belong to the beverage category?", "pos": ["products belong to beverage category refer to ProductName where CategoryName = 'beverage';"], "neg": ["'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;", "Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)", "average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';", "supplied by refers to CompanyName", "Eastern Region refers to RegionDescription = 'Eastern';", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;"]}} {"set": {"query": "What are the ID and description of the condiments category?", "pos": ["condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID"], "neg": ["'Pavlova' is a ProductName", "full name refers to FirstName, LastName; brith day refers to BirthDate", "is a UK citizen refers to Country = 'UK'", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))", "via United Package refers to CompanyName = 'United Package'", "full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "order number 10933 refers to OrderID = 10933;"]}} {"set": {"query": "What is the full name of the employee with the highest salary?", "pos": ["full name refers to FirstName LastName; highest salary refers to max(Salary)"], "neg": ["'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "full name = FirstName, LastName; youngest refers to latest BirthDate;", "full name refers to FirstName, LastName; brith day refers to BirthDate", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';", "products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName", "is a UK citizen refers to Country = 'UK'", "most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00'", "most total sales refers to Max(SaleAmount); companies refers to CompanyName", "highest salary refers to max(salary); position refers to Title"]}} {"set": {"query": "Which employee has the highest salary? Please give his or her full name.", "pos": ["highest salary refers to MAX(Salary); full name = FirstName, LastName;"], "neg": ["\"Eastern\" is the RegionDescription", "Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "names of all territories refers to TerritoryDescription;", "highest salary refers to max(salary); position refers to Title", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "via United Package refers to CompanyName = 'United Package'", "'USA' is a country; supplier refers to CompanyName", "Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo\u2019 represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;", "shipping company refers to Shippers; phone number refers to Phone"]}} {"set": {"query": "Identify the customer, which placed the largest order in terms of value.", "pos": ["value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)"], "neg": ["\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "suppliers refers to CompanyName; 'cheeses' is a Description", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00'", "ProductName = 'Thringer Rostbratwurst';", "the highest unit price refers to MAX(UnitPrice);", "highest salary refers to Max(Salary)"]}} {"set": {"query": "Please list the phone numbers of the suppliers of the products that have a higher units on order than units in stock.", "pos": ["UnitsInStock < UnitsOnOrder;"], "neg": ["orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName", "name of product refers to ProductName; ID refers to ProductID", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "Bigfoot Breweries is the name of the company; products refer to ProductName;", "Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo\u2019 represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;"]}} {"set": {"query": "Among the employees who handled orders to Brazil, who has the highest salary and calculate the average salary of them.", "pos": ["orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)"], "neg": ["female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "full name refers to FirstName, LastName", "in the Eastern region refers to RegionDescription = 'Eastern'", "full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';", "in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "UnitsInStock < UnitsOnOrder;", "'Confections' is a CompanyName;", "highest number of products refers to MAX(COUNT(ProductID))"]}} {"set": {"query": "What is the average unit price of Tokyo Traders' products?", "pos": ["\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)"], "neg": ["from UK refers to Country = 'UK'", "\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12", "Tokyo Traders refers to CompanyName = 'Tokyo Traders'", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "in the Eastern region refers to RegionDescription = 'Eastern'", "highest salary refers to max(salary); position refers to Title", "Drachenblut Delikatessen is the company name;", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;"]}} {"set": {"query": "Calculate the average price of products shipped to the UK.", "pos": ["average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'"], "neg": ["'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "highest number of territories refers to max(TerritoryID)", "average salary = AVG(Salary)", "\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "average sales = AVG(ProductSales)", "name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'", "ProductName = 'Thringer Rostbratwurst';", "discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))", "\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)"]}} {"set": {"query": "List the company names of customers from the city with the most customers.", "pos": ["most customers refers to max(count(Relationship))"], "neg": ["\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'", "'Confections' is a CompanyName;", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "companies refers to CompanyName;", "less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4", "full name refers to FirstName, LastName", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4"]}} {"set": {"query": "What is the homepage link for the company that supplies the product \"Thringer Rostbratwurst\"?", "pos": ["ProductName = 'Thringer Rostbratwurst';"], "neg": ["'Blondesddsl pre et fils' is a CompanyName", "average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4;", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan", "companies refers to CompanyName;", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "no longer sold refers to Discontinued = 1; products refers to ProductName", "from USA refers to Country = 'USA'", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "Vice President of Sales refers to Title = 'Vice President, Sales';"]}} {"set": {"query": "Is (206) 555-1189 the home phone number for Laura Callahan?", "pos": ["\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan"], "neg": ["companies refers to CompanyName;", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "more than thirty dollars per unit refers to UnitPrice > 30", "Tokyo Traders refers to CompanyName = 'Tokyo Traders'", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "United States of America refers to Country = 'USA'", "\"Eastern\" is the RegionDescription"]}} {"set": {"query": "How many employees have obtained a doctorate?", "pos": ["doctorate refers to TitleOfCourtesy = 'Dr.;"], "neg": ["name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1", "'USA' is a country; supplier refers to CompanyName", "\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50", "full name refers to FirstName, LastName; Denver is a TerritoryDescription", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID"]}} {"set": {"query": "Find the total payment of the orders by customers from San Francisco.", "pos": ["from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))"], "neg": ["in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'", "most expensive product refers to ProductName where MAX(UnitPrice);", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;", "shipped to France refers to ShipCountry = 'France';", "product refers to ProductName;", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)", "Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')", "full name refers to FirstName, LastName; brith day refers to BirthDate"]}} {"set": {"query": "What is the full name of the employee who is in charge of the territory of Denver?", "pos": ["full name refers to FirstName, LastName; Denver is a TerritoryDescription"], "neg": ["newest hired refers to latest HireDate; full name = FirstName, LastName;", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo\u2019 represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;", "sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)", "shipped to France refers to ShipCountry = 'France';", "most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';"]}} {"set": {"query": "Give the number of orders that were shipped by \"Federal Shipping\".", "pos": ["Federal Shipping refers to CompanyName = 'Federal Shipping';"], "neg": ["shipped to the city of Paris refers to ShipCity = 'Paris';", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "average sales = AVG(ProductSales)", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'", "\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))", "highest number refers to max(count(CustomerID))", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "category refers to CategoryName; tofu refers to ProductName = 'Tofu';"]}} {"set": {"query": "What are the products that are supplied by Aux joyeux ecclsiastiques?", "pos": ["Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;"], "neg": ["products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';", "from UK refers to Country = 'UK'", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "most total sales refers to Max(SaleAmount); companies refers to CompanyName", "name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';", "is a UK citizen refers to Country = 'UK'", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "full name = FirstName, LastName; youngest refers to latest BirthDate;", "orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)"]}} {"set": {"query": "Which company supplies Gula Malacca?", "pos": ["Gula Malacca is the name of the product; company refers to CompanyName;"], "neg": ["\"10 boxes x 12 pieces\" is the QuantityPerUnit", "year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "shipped to the city of Paris refers to ShipCity = 'Paris';", "the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)", "descriptions refers to TerritoryDescription; region refers to RegionDescription"]}} {"set": {"query": "Tell the country name of the supplier for \"Scottish Longbreads\".", "pos": ["\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'"], "neg": ["through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry", "total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n", "most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4;", "\"Eastern\" is the RegionDescription", "full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';"]}} {"set": {"query": "Name the products where the suppliers come from Finland.", "pos": ["'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID"], "neg": ["biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "\"Teatime Chocolate Biscuits\" is the ProductName", "in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))", "Eastern Region refers to RegionDescription = 'Eastern';", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)", "from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)", "orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)"]}} {"set": {"query": "Please list the IDs of the orders with a product whose production is not continuous.", "pos": ["IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;"], "neg": ["'Pavlova' is a ProductName", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "ProductName = 'Thringer Rostbratwurst';", "discontinued refers to Discontinued = 1", "required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName", "freight of over 800 refers to Freight > 800", "full name refers to LastName, FirstName", "territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';", "\"Eastern\" is the RegionDescription", "\"Eastern\" is the RegionDescription"]}} {"set": {"query": "Describe the supplier companies, cities and products which total production amount is more than 120.", "pos": ["total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120"], "neg": ["region refers to RegionDescription", "from USA refers to Country = 'USA'", "names of all territories refers to TerritoryDescription;", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "companies refers to ShipperID", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "shipped to France refers to ShipCountry = 'France';", "discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100", "Eastern Region refers to RegionDescription = 'Eastern';"]}} {"set": {"query": "What is the largest quantity of \"Manjimup Dried Apples\" for an order?", "pos": ["the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';"], "neg": ["three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "total production amount refers to ADD(UnitsInstock, UnitsOnOrder)", "\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'", "full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';", "most expensive product refers to ProductName where MAX(UnitPrice);", "reported to employee id 5 refers to ReportsTo = 5", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)", "name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';", "via United Package refers to CompanyName = 'United Package'"]}} {"set": {"query": "What is the average salary of the employees who takes charge of the sales of over 4 territories?", "pos": ["average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4;"], "neg": ["companies refers to CompanyName;", "region refers to RegionDescription", "phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "shipped to the city of Paris refers to ShipCity = 'Paris';", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'", "Federal Shipping refers to CompanyName = 'Federal Shipping'", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';"]}} {"set": {"query": "What is the average quantity of product that have been shipped by Federal Shipping in November 1996?", "pos": ["Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';"], "neg": ["\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath", "average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';", "the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount)));", "Federal Shipping refers to CompanyName = 'Federal Shipping';", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "shipped to France refers to ShipCountry = 'France';", "Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')", "\"Eastern\" is the RegionDescription", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'"]}} {"set": {"query": "What is the category of the product that has the highest number of discontinued products?", "pos": ["discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)"], "neg": ["Gula Malacca is the name of the product; company refers to CompanyName;", "most expensive product refers to ProductName where MAX(UnitPrice);", "Federal Shipping refers to CompanyName = 'Federal Shipping'", "full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1", "territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)", "phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "highest number of territories refers to max(TerritoryID)"]}} {"set": {"query": "How much lower in percentage is the unit price of Ikura in order no. 10273 than its standard unit price?", "pos": ["how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;"], "neg": ["territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';", "Vice President of Sales refers to Title = 'Vice President, Sales';", "supplied by refers to CompanyName", "full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;", "\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'", "most ordered refers to max(COUNT(OrderID))", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))"]}} {"set": {"query": "Identify the total number of orders processed by Northwind employee named Andrew Fuller. What percent of those orders was shipped to Austria?", "pos": ["'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100"], "neg": ["in the Eastern region refers to RegionDescription = 'Eastern'", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "Gula Malacca is the name of the product; company refers to CompanyName;", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "name of the shipper company refers to ShipName; order No. refers to OrderID;", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "shipped to France refers to ShipCountry = 'France';", "Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "average salary = AVG(Salary)"]}} {"set": {"query": "Provide the list of products ordered by ID 10979 and calculate its total payment.", "pos": ["ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))"], "neg": ["from USA refers to Country = 'USA'", "highest freight refers to max(Freight)", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "UnitsInStock < UnitsOnOrder;", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';", "London refers to city = 'London';", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;"]}} {"set": {"query": "What is the contact name for product Teatime Chocolate Biscuits?", "pos": ["\"Teatime Chocolate Biscuits\" is the ProductName"], "neg": ["from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "highest number of territories refers to max(TerritoryID)", "\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "from UK refers to Country = 'UK'", "\"Eastern\" is the RegionDescription", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)"]}} {"set": {"query": "List out the full name of employee who has birth day on \"3/4/1955 12:00:00 AM\".", "pos": ["full name refers to FirstName, LastName; brith day refers to BirthDate"], "neg": ["Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "shipped to Brazil refers to ShipCountry = 'Brazil'; by Speedy Express Company refers to CompanyName = 'Speedy Express'; total products value refers to sum(MULTIPLY(UnitPrice, Quantity))", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "more than thirty dollars per unit refers to UnitPrice > 30", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4;", "least order refers to Min(OrderID)", "'Blondesddsl pre et fils' is a CompanyName", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "UnitsInStock < UnitsOnOrder;"]}} {"set": {"query": "Please list all the territories in the Eastern Region.", "pos": ["territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';"], "neg": ["\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "category refers to CategoryName; tofu refers to ProductName = 'Tofu';", "name of the shipper company refers to ShipName; order No. refers to OrderID;", "from UK refers to Country = 'UK'", "is a UK citizen refers to Country = 'UK'", "\"Eastern\" is the RegionDescription", "full name refers to LastName, FirstName", "highest number refers to max(count(CustomerID))", "United States of America refers to Country = 'USA'", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100"]}} {"set": {"query": "List all category name of Exotic Liquids 's product with units in stock over 100.", "pos": ["'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100"], "neg": ["under confections category refers to CategoryName = 'Confections';", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "discontinued refers to Discontinued = 1", "shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;", "Eastern Region refers to RegionDescription = 'Eastern';", "products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName", "full name refers to LastName, FirstName", "freight of over 800 refers to Freight > 800", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))"]}} {"set": {"query": "Indicate the name of the products that have been shipped to the city of Paris.", "pos": ["shipped to the city of Paris refers to ShipCity = 'Paris';"], "neg": ["beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "majority of the suppliers located refers to MAX(COUNT(SupplierID))", "\"Teatime Chocolate Biscuits\" is the ProductName", "Gula Malacca is the name of the product; company refers to CompanyName;", "Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "Federal Shipping refers to CompanyName = 'Federal Shipping'", "freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "Highest reorder level refers to Max(ReorderLevel)"]}} {"set": {"query": "Among orders shipping to Brazil, mention the supplier company of the order which was done by employee Anne Dodsworth in December, 1996 .", "pos": ["shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;"], "neg": ["most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'", "phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "Eastern Region refers to RegionDescription = 'Eastern';", "territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "shipping company refers to Shippers; phone number refers to Phone", "most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;"]}} {"set": {"query": "List the top five most costly products in 1998.", "pos": ["most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00'"], "neg": ["total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "London refers to city = 'London';", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12", "Federal Shipping refers to CompanyName = 'Federal Shipping';", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)", "most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'", "name of product refers to ProductName; ID refers to ProductID", "average salary = AVG(Salary)"]}} {"set": {"query": "What is the average salary for employees from ID 1 to 9?", "pos": ["ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)"], "neg": ["August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "ProductName = 'Thringer Rostbratwurst';", "Highest reorder level refers to Max(ReorderLevel)", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "name of the shipper company refers to ShipName; order No. refers to OrderID;", "\"Eastern\" is the RegionDescription", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;"]}} {"set": {"query": "Which employee has created the least order and please indicates the employee's title?", "pos": ["least order refers to Min(OrderID)"], "neg": ["less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)", "highest salary refers to max(salary); position refers to Title", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "order number 10558 refers to OrderID = 10558;", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "companies refers to CompanyName;", "\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12"]}} {"set": {"query": "How many suppliers does Northwind have in USA?", "pos": ["'USA' is a country; supplier refers to CompanyName"], "neg": ["United States of America refers to Country = 'USA'", "'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)", "no longer sold refers to Discontinued = 1; products refers to ProductName", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "product refers to ProductName;", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "from USA refers to Country = 'USA'", "order number 10933 refers to OrderID = 10933;", "discontinued refers to Discontinued = 1"]}} {"set": {"query": "Identify the total number of orders placed by the customer 'Laughing Bacchus Wine Cellars' and it's average value.", "pos": ["'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))"], "neg": ["name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'", "freight of over 800 refers to Freight > 800", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)", "order number 10933 refers to OrderID = 10933;", "Drachenblut Delikatessen is the company name;", "from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';"]}} {"set": {"query": "Please indicate total order quantity of product Geitost and calculate the percentage of such product among all the order quantity.", "pos": ["'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100"], "neg": ["High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'", "how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))"]}} {"set": {"query": "List down the territory IDs, descriptions and region description which are under the in-charge of Nancy Davolio,", "pos": ["descriptions refers to TerritoryDescription; region refers to RegionDescription"], "neg": ["average sales = AVG(ProductSales)", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "Drachenblut Delikatessen is the company name;", "\"Northern\" region refers to RegionDescription = 'Northern'", "suppliers refers to CompanyName; 'cheeses' is a Description", "most total sales refers to Max(SaleAmount); companies refers to CompanyName", "\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "\"Exotic Liquids\" is the CompanyName"]}} {"set": {"query": "Give the full name of employee who handled the order id 10280.", "pos": ["full name refers to FirstName, LastName"], "neg": ["\"10 boxes x 12 pieces\" is the QuantityPerUnit", "'Blondesddsl pre et fils' is a CompanyName", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry", "\"Eastern\" is the RegionDescription", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;"]}} {"set": {"query": "List all the territories where Laura Callahan is in charge.", "pos": ["territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName"], "neg": ["full name refers to LastName, FirstName", "\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "company in Spain refers to Country = 'Spain'; product supplied refers to ProductName", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID", "companies refers to ShipperID"]}} {"set": {"query": "What is the difference in salary of the top 2 employees with the highest number of territories in charge?", "pos": ["highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)"], "neg": ["Eastern Region refers to RegionDescription = 'Eastern';", "female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "Federal Shipping refers to CompanyName = 'Federal Shipping';", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "average sales = AVG(ProductSales)", "products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';", "is a UK citizen refers to Country = 'UK'", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';"]}} {"set": {"query": "What are the most popular confections product and calculate the total sales generated by this product?", "pos": ["most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))"], "neg": ["products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';", "average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "the least shipped product refers ProductName where MIN(Quantity);", "Bigfoot Breweries is the name of the company; products refer to ProductName;", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "highest number of territories refers to max(TerritoryID)", "ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)", "\"Exotic Liquids\" is the CompanyName", "via United Package refers to CompanyName = 'United Package'", "shipping company refers to Shippers; phone number refers to Phone"]}} {"set": {"query": "What is the highest total price paid for an order?", "pos": ["the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount)));"], "neg": ["most ordered refers to max(COUNT(OrderID))", "shipped to the city of Paris refers to ShipCity = 'Paris';", "highest number of products refers to MAX(COUNT(ProductID))", "shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50", "UnitsInStock < UnitsOnOrder;"]}} {"set": {"query": "How many orders were shipped by Federal Shipping?", "pos": ["Federal Shipping refers to CompanyName = 'Federal Shipping'"], "neg": ["'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "the least shipped product refers ProductName where MIN(Quantity);", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;", "order number 10933 refers to OrderID = 10933;", "Gula Malacca is the name of the product; company refers to CompanyName;", "less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4"]}} {"set": {"query": "What are the products by the company \"Bigfoot Breweries\"?", "pos": ["Bigfoot Breweries is the name of the company; products refer to ProductName;"], "neg": ["highest salary refers to Max(Salary)", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "product refers to ProductName;", "the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount)));", "how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "Federal Shipping refers to CompanyName = 'Federal Shipping';", "from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "more than thirty dollars per unit refers to UnitPrice > 30", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%"]}} {"set": {"query": "What products were ordered by the customer ID \"WILMK\" which were required on 3/26/1998?", "pos": ["required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName"], "neg": ["order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "Highest reorder level refers to Max(ReorderLevel)", "company in Spain refers to Country = 'Spain'; product supplied refers to ProductName", "suppliers refers to CompanyName; 'cheeses' is a Description", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "Bigfoot Breweries is the name of the company; products refer to ProductName;", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "Gula Malacca is the name of the product; company refers to CompanyName;", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'"]}} {"set": {"query": "Which customer have the biggest purchase in one order and where does this order being ship to?", "pos": ["biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry"], "neg": ["suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';", "order number 10933 refers to OrderID = 10933;", "discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "order number 10558 refers to OrderID = 10558;", "the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount)));", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title"]}} {"set": {"query": "List the name, address, and phone number of companies that supply products for more than thirty dollars per unit.", "pos": ["more than thirty dollars per unit refers to UnitPrice > 30"], "neg": ["\"Northern\" region refers to RegionDescription = 'Northern'", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "names of all territories refers to TerritoryDescription;", "full name = FirstName, LastName; youngest refers to latest BirthDate;", "how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)", "in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'"]}} {"set": {"query": "List the employees' full names and ages in 2022 who lived in London.", "pos": ["in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName"], "neg": ["'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "most ordered refers to max(COUNT(OrderID))", "from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)", "from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "most customers refers to max(count(Relationship))", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100"]}} {"set": {"query": "What is the total production of the product that is ordered in the highest quantity in order no. 10248?", "pos": ["total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;"], "neg": ["female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "via United Package refers to CompanyName = 'United Package'", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "full name refers to FirstName, LastName; brith day refers to BirthDate", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;", "in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName"]}} {"set": {"query": "Please name any three products that have been discontinued in the meat or poultry category.", "pos": ["three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';"], "neg": ["supplied by refers to CompanyName", "from USA refers to Country = 'USA'", "in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "order number 10558 refers to OrderID = 10558;", "full name refers to FirstName, LastName; Denver is a TerritoryDescription", "via United Package refers to CompanyName = 'United Package'", "Morristown refers to TerritoryDescription = 'Morristown'", "'USA' is a country; supplier refers to CompanyName", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "Tokyo Traders refers to CompanyName = 'Tokyo Traders'"]}} {"set": {"query": "Provide the full name of the employee who processed the sales order with ID 10274.", "pos": ["full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274"], "neg": ["Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "from UK refers to Country = 'UK'", "shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package'", "discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))", "London refers to city = 'London';", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100"]}} {"set": {"query": "Find the total production amount and product names which had \"10 - 500 g pkgs.\" as quantity per unit.", "pos": ["total production amount refers to ADD(UnitsInstock, UnitsOnOrder)"], "neg": ["\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'", "shipped to the city of Paris refers to ShipCity = 'Paris';", "majority of the suppliers located refers to MAX(COUNT(SupplierID))", "the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)", "United States of America refers to Country = 'USA'", "London refers to city = 'London';", "full name = FirstName, LastName; youngest refers to latest BirthDate;", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';"]}} {"set": {"query": "How many employees from USA with Sales Representative title?", "pos": ["from USA refers to Country = 'USA'"], "neg": ["through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';", "\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1", "\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'", "full name refers to FirstName, LastName; Denver is a TerritoryDescription", "name of the shipper company refers to ShipName; order No. refers to OrderID;", "highest salary refers to Max(Salary)", "\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "shipping company refers to Shippers; phone number refers to Phone", "'Blondesddsl pre et fils' is a CompanyName"]}} {"set": {"query": "Which country are the majority of the suppliers located?", "pos": ["majority of the suppliers located refers to MAX(COUNT(SupplierID))"], "neg": ["DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "product refers to ProductName;", "highest salary refers to MAX(Salary); full name = FirstName, LastName;", "companies refers to CompanyName;", "most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)", "ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)"]}} {"set": {"query": "What are the order ids of the orders with freight of over 800?", "pos": ["freight of over 800 refers to Freight > 800"], "neg": ["doctorate refers to TitleOfCourtesy = 'Dr.;", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "newest hired refers to latest HireDate; full name = FirstName, LastName;", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "Eastern Region refers to RegionDescription = 'Eastern';", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;", "name of product refers to ProductName; ID refers to ProductID", "GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'"]}} {"set": {"query": "List down the company names that have the highest reorder level.", "pos": ["Highest reorder level refers to Max(ReorderLevel)"], "neg": ["product refers to ProductName;", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "most ordered refers to max(COUNT(OrderID))", "full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274", "highest freight refers to max(Freight)", "IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;", "territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';", "\"Northern\" region refers to RegionDescription = 'Northern'", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))"]}} {"set": {"query": "List the products whose supplier is Pavlova, Ltd. Please include the product ID and re-order level.", "pos": ["\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName"], "neg": ["total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "from USA refers to Country = 'USA'", "Highest reorder level refers to Max(ReorderLevel)", "'Blondesddsl pre et fils' is a CompanyName", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;", "United States of America refers to Country = 'USA'", "Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;", "reported to employee id 5 refers to ReportsTo = 5"]}} {"set": {"query": "How many suppliers are there in the United States of America?", "pos": ["United States of America refers to Country = 'USA'"], "neg": ["name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'", "full name refers to FirstName, LastName; Denver is a TerritoryDescription", "under confections category refers to CategoryName = 'Confections';", "'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))", "discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "the highest unit price refers to MAX(UnitPrice);", "Eastern Region refers to RegionDescription = 'Eastern';"]}} {"set": {"query": "How many days was the fastest shipping of Berglunds snabbkp's order?", "pos": ["Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))"], "neg": ["orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)", "Gula Malacca is the name of the product; company refers to CompanyName;", "most ordered refers to max(COUNT(OrderID))", "London refers to city = 'London';", "doctorate refers to TitleOfCourtesy = 'Dr.;", "shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'", "\"10 boxes x 12 pieces\" is the QuantityPerUnit"]}} {"set": {"query": "Calculate the percentage of shipping done through Speedy Express.", "pos": ["through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%"], "neg": ["phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100", "UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4;", "\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "highest number refers to max(count(CustomerID))", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "Bigfoot Breweries is the name of the company; products refer to ProductName;", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';"]}} {"set": {"query": "Please give the contact name for Tokyo Traders.", "pos": ["Tokyo Traders refers to CompanyName = 'Tokyo Traders'"], "neg": ["freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "highest freight refers to max(Freight)", "Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;", "average salary = AVG(Salary)", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;", "UnitsInStock < UnitsOnOrder;", "companies refers to CompanyName;", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)"]}} {"set": {"query": "Who is in charge of the \"Santa Monica\" territory? Give the full name.", "pos": ["Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;"], "neg": ["'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "company in Spain refers to Country = 'Spain'; product supplied refers to ProductName", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "newest hired refers to latest HireDate; full name = FirstName, LastName;", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))"]}} {"set": {"query": "For the order from \"HILAA\" on 1997/12/25, what was the total quantity of the products in that order?", "pos": ["HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';"], "neg": ["\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)", "category refers to CategoryName; tofu refers to ProductName = 'Tofu';", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;", "'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12", "Bigfoot Breweries is the name of the company; products refer to ProductName;", "Federal Shipping refers to CompanyName = 'Federal Shipping';", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)"]}} {"set": {"query": "Give the home phone number of the employee who is in charge of \"Savannah\" territory.", "pos": ["home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';"], "neg": ["order number 10558 refers to OrderID = 10558;", "required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName", "total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n", "\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)", "name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';", "Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;"]}} {"set": {"query": "Among the products ordered in order no. 10248, which product has the biggest ratio of units on order to units in stock?", "pos": ["order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));"], "neg": ["'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "\"Exotic Liquids\" is the CompanyName", "required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "highest salary refers to MAX(Salary); full name = FirstName, LastName;", "via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))", "total production amount refers to ADD(UnitsInstock, UnitsOnOrder)", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID"]}} {"set": {"query": "What is the average sales for each categories?", "pos": ["average sales = AVG(ProductSales)"], "neg": ["average salary = AVG(Salary)", "doctorate refers to TitleOfCourtesy = 'Dr.;", "shipped to the city of Paris refers to ShipCity = 'Paris';", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "region refers to RegionDescription", "full name refers to FirstName, LastName; Denver is a TerritoryDescription", "shipping company refers to Shippers; phone number refers to Phone"]}} {"set": {"query": "Among the products that are no longer in continuous production, how many of them have their supplier in the USA?", "pos": ["no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';"], "neg": ["UnitsInStock < UnitsOnOrder;", "full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;", "shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package'", "highest freight refers to max(Freight)", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'"]}} {"set": {"query": "How many suppliers are from UK?", "pos": ["from UK refers to Country = 'UK'"], "neg": ["highest number of territories refers to max(TerritoryID)", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "most customers refers to max(count(Relationship))", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)", "shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package'", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'", "reported to employee id 5 refers to ReportsTo = 5", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))"]}} {"set": {"query": "What are the territory descriptions of territories in the Eastern region?", "pos": ["in the Eastern region refers to RegionDescription = 'Eastern'"], "neg": ["High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';", "\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "from USA refers to Country = 'USA'", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'"]}} {"set": {"query": "What is the total price of Ikura ordered in order no. 10273?", "pos": ["total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;"], "neg": ["products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "Vice President of Sales refers to Title = 'Vice President, Sales';", "name of product refers to ProductName; ID refers to ProductID", "\"Eastern\" is the RegionDescription", "shipped to France refers to ShipCountry = 'France';", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;", "ProductName = 'Thringer Rostbratwurst';", "no longer sold refers to Discontinued = 1; products refers to ProductName", "Eastern Region refers to RegionDescription = 'Eastern';"]}} {"set": {"query": "What territories is the Inside Sales Coordinator in charge of?", "pos": ["territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';"], "neg": ["shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "\"Eastern\" is the RegionDescription", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "the least shipped product refers ProductName where MIN(Quantity);", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'", "more than thirty dollars per unit refers to UnitPrice > 30", "highest salary refers to max(salary); position refers to Title", "most customers refers to max(count(Relationship))"]}} {"set": {"query": "Of the 10 products with the highest unit price, identify by their ID the ones that have generated the least satisfaction.", "pos": ["High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);"], "neg": ["company in Spain refers to Country = 'Spain'; product supplied refers to ProductName", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "highest salary refers to max(salary); position refers to Title", "\"Eastern\" is the RegionDescription", "in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'", "sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)", "freight of over 800 refers to Freight > 800", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100"]}} {"set": {"query": "Give the number of territories in the \"Northern\" region.", "pos": ["\"Northern\" region refers to RegionDescription = 'Northern'"], "neg": ["Eastern Region refers to RegionDescription = 'Eastern';", "how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "'USA' is a country; supplier refers to CompanyName", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "Eastern Region refers to RegionDescription = 'Eastern';", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)"]}} {"set": {"query": "Please calculate the average unit price for products of Formaggi Fortini s.r.l.", "pos": ["\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)"], "neg": ["'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "'Confections' is a CompanyName;", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "'Blondesddsl pre et fils' is a CompanyName", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)", "Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)"]}} {"set": {"query": "What products are no longer sold by Northwind?", "pos": ["no longer sold refers to Discontinued = 1; products refers to ProductName"], "neg": ["Vice President of Sales refers to Title = 'Vice President, Sales';", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName", "full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';"]}} {"set": {"query": "Write down the top ten companies with the most total sales by amount.", "pos": ["most total sales refers to Max(SaleAmount); companies refers to CompanyName"], "neg": ["percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "order number 10933 refers to OrderID = 10933;", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "UnitsInStock < UnitsOnOrder;", "full name refers to FirstName, LastName", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;", "product refers to ProductName;", "territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';"]}} {"set": {"query": "Name the suppliers that supply products under the category 'cheeses.'", "pos": ["suppliers refers to CompanyName; 'cheeses' is a Description"], "neg": ["shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "under confections category refers to CategoryName = 'Confections';", "highest salary refers to MAX(Salary); full name = FirstName, LastName;", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName", "\"Northern\" region refers to RegionDescription = 'Northern'", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "Drachenblut Delikatessen is the company name;", "UnitsInStock < UnitsOnOrder;", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100"]}} {"set": {"query": "List the supplier company names located in Germany.", "pos": ["located in Germany refers to Country = 'Germany';"], "neg": ["territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "from USA refers to Country = 'USA'", "Bigfoot Breweries is the name of the company; products refer to ProductName;", "Tokyo Traders refers to CompanyName = 'Tokyo Traders'", "more than thirty dollars per unit refers to UnitPrice > 30", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName"]}} {"set": {"query": "How many orders have been shipped through United Package?", "pos": ["shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package'"], "neg": ["Morristown refers to TerritoryDescription = 'Morristown'", "Vice President of Sales refers to Title = 'Vice President, Sales';", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;", "most ordered refers to max(COUNT(OrderID))", "\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;", "from UK refers to Country = 'UK'", "\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'", "order number 10933 refers to OrderID = 10933;", "full name refers to FirstName LastName; highest salary refers to max(Salary)", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)"]}} {"set": {"query": "What is the company name of the supplier who supplies the product with the highest unit price?", "pos": ["the highest unit price refers to MAX(UnitPrice);"], "neg": ["Federal Shipping refers to CompanyName = 'Federal Shipping';", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "shipping company refers to Shippers; phone number refers to Phone", "average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4;", "Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'"]}} {"set": {"query": "Please list the names of all the territories whose sales are taken in charge by Nancy Davolio.", "pos": ["names of all territories refers to TerritoryDescription;"], "neg": ["products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';", "highest salary refers to max(salary); position refers to Title", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "UnitsInStock < UnitsOnOrder;", "Highest reorder level refers to Max(ReorderLevel)", "products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4", "majority of the suppliers located refers to MAX(COUNT(SupplierID))", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title"]}} {"set": {"query": "How many products were ordered in the order with the highest freight?", "pos": ["highest freight refers to max(Freight)"], "neg": ["report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "Bigfoot Breweries is the name of the company; products refer to ProductName;", "less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4", "\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1", "majority of the suppliers located refers to MAX(COUNT(SupplierID))", "Drachenblut Delikatessen is the company name;", "shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)"]}} {"set": {"query": "What is the total amount of sales made in the year 1997?", "pos": ["year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)"], "neg": ["\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50", "shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;", "'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)", "highest number refers to max(count(CustomerID))", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "companies refers to CompanyName;", "more than thirty dollars per unit refers to UnitPrice > 30", "highest number of territories refers to max(TerritoryID)"]}} {"set": {"query": "What is the full name of the Vice President of Sales. Give me the URL of his/her photo.", "pos": ["\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath"], "neg": ["home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "name of product refers to ProductName; ID refers to ProductID", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "newest hired refers to latest HireDate; full name = FirstName, LastName;", "via United Package refers to CompanyName = 'United Package'", "\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "\"Eastern\" is the RegionDescription"]}} {"set": {"query": "What is the average quantity of Ikura ordered in one order?", "pos": ["average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';"], "neg": ["the highest unit price refers to MAX(UnitPrice);", "average salary = AVG(Salary)", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID", "region refers to RegionDescription", "companies refers to ShipperID", "full name refers to FirstName LastName; highest salary refers to max(Salary)", "majority of the suppliers located refers to MAX(COUNT(SupplierID))", "full name refers to FirstName, LastName; sales order with ID 10274 refers to OrderID = 10274", "female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;"]}} {"set": {"query": "Calculate the average salary per order for Andrew Fuller.", "pos": ["average salary = AVG(Salary)"], "neg": ["most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'", "majority of the suppliers located refers to MAX(COUNT(SupplierID))", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))", "shipped to the city of Paris refers to ShipCity = 'Paris';", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID"]}} {"set": {"query": "What was the average unit price of products shipped via United Package in 1997?", "pos": ["via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))"], "neg": ["\"Northern\" region refers to RegionDescription = 'Northern'", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'", "names of all territories refers to TerritoryDescription;", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'", "\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12", "average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'", "companies refers to ShipperID", "Gula Malacca is the name of the product; company refers to CompanyName;", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%"]}} {"set": {"query": "Calculate the total payment of orders for Vegie-spread product.", "pos": ["Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))"], "neg": ["9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "'Confections' is a CompanyName;", "Eastern Region refers to RegionDescription = 'Eastern';", "name of product refers to ProductName; ID refers to ProductID", "via United Package refers to CompanyName = 'United Package'", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'", "\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan"]}} {"set": {"query": "What is the last name of the employees who must report to the Vice President of Sales?", "pos": ["report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';"], "neg": ["Federal Shipping refers to CompanyName = 'Federal Shipping'", "companies refers to ShipperID", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry", "Eastern Region refers to RegionDescription = 'Eastern';", "average sales = AVG(ProductSales)", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))"]}} {"set": {"query": "How many orders was handled by employees who reported to employee id 5?", "pos": ["reported to employee id 5 refers to ReportsTo = 5"], "neg": ["female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "full name refers to LastName, FirstName", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "most ordered refers to max(COUNT(OrderID))", "highest number of products refers to MAX(COUNT(ProductID))", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "'USA' is a country; supplier refers to CompanyName", "\"Exotic Liquids\" is the CompanyName"]}} {"set": {"query": "Through which companies have products been shipped the most times to the city of Aachen?", "pos": ["shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;"], "neg": ["\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12", "product refers to ProductName;", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50"]}} {"set": {"query": "Under the in-charge of inside sales coordinator, provide the product lists which were shipped to Mexico in 1996.", "pos": ["shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'"], "neg": ["orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)"]}} {"set": {"query": "List the name of the top ten most ordered product's names in descending order of the number of orders.", "pos": ["most ordered refers to max(COUNT(OrderID))"], "neg": ["'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "name of product refers to ProductName; ID refers to ProductID", "shipping company refers to Shippers; phone number refers to Phone", "Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'", "Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)"]}} {"set": {"query": "List the order IDs, product IDs and unit price of orders which total payment is greater than 15000.", "pos": ["total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n"], "neg": ["products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName", "Vice President of Sales refers to Title = 'Vice President, Sales';", "full name refers to FirstName LastName; highest salary refers to max(Salary)", "territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "suppliers refers to CompanyName; 'cheeses' is a Description", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName", "highest salary refers to max(salary); position refers to Title"]}} {"set": {"query": "List the full name of employees and titles who have to report to Sales Manager.", "pos": ["Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName"], "neg": ["name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4", "year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)", "average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4;", "from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "\"Eastern\" is the RegionDescription", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "\"Teatime Chocolate Biscuits\" is the ProductName", "full name refers to FirstName, LastName; Denver is a TerritoryDescription"]}} {"set": {"query": "Calculate the percentage of products supplied by Gai pturage over all products.", "pos": ["\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100"], "neg": ["located in Germany refers to Country = 'Germany';", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "most expensive product refers to ProductName where MAX(UnitPrice);", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'"]}} {"set": {"query": "How many percent more orders were fulfilled with shipper company \"United Package\" than with \"Speedy Express\"?", "pos": ["percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%"], "neg": ["9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "shipping company refers to Shippers; phone number refers to Phone", "ProductName = 'Thringer Rostbratwurst';", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00'", "Federal Shipping refers to CompanyName = 'Federal Shipping'", "highest salary refers to MAX(Salary); full name = FirstName, LastName;", "\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50", "names of all territories refers to TerritoryDescription;", "freight of over 800 refers to Freight > 800"]}} {"set": {"query": "Give the full name and contact number of employees in descending order of age.", "pos": ["full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1"], "neg": ["August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID", "order number 10558 refers to OrderID = 10558;", "biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry", "Vice President of Sales refers to Title = 'Vice President, Sales';", "Highest reorder level refers to Max(ReorderLevel)", "via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "UnitsInStock < UnitsOnOrder;", "'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))"]}} {"set": {"query": "What is the name of the supplier company for Aniseed Syrup?", "pos": ["name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';"], "neg": ["name of product refers to ProductName; ID refers to ProductID", "shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'", "highest salary refers to Max(Salary)", "female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "Morristown refers to TerritoryDescription = 'Morristown'", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';"]}} {"set": {"query": "How many kinds of products are supplied by \"Karkki Oy\" company?", "pos": ["supplied by refers to CompanyName"], "neg": ["United States of America refers to Country = 'USA'", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "London refers to city = 'London';", "Gula Malacca is the name of the product; company refers to CompanyName;", "most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00'", "\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'", "Highest reorder level refers to Max(ReorderLevel)"]}} {"set": {"query": "What is the shipping company for order number 10558?", "pos": ["order number 10558 refers to OrderID = 10558;"], "neg": ["in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "\"Teatime Chocolate Biscuits\" is the ProductName", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';", "products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';"]}} {"set": {"query": "Which employee handled the most amount of orders in 1996? Give the full name, title, and address of this employee.", "pos": ["most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName"], "neg": ["condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID", "orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "\"Scottish Longbreads\" refers to ProductName = 'Scottish Longbreads'", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "freight of over 800 refers to Freight > 800", "order number 10558 refers to OrderID = 10558;", "Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';"]}} {"set": {"query": "How many orders have asked for the product Tofu?", "pos": ["product refers to ProductName;"], "neg": ["Bigfoot Breweries is the name of the company; products refer to ProductName;", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))", "Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone", "more than thirty dollars per unit refers to UnitPrice > 30", "most expensive product refers to ProductName where MAX(UnitPrice);", "\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))"]}} {"set": {"query": "What is the full name of the employee who handled the highest amount of orders?", "pos": ["full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))"], "neg": ["names of all territories refers to TerritoryDescription;", "sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))", "\"Teatime Chocolate Biscuits\" is the ProductName", "\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "more than thirty dollars per unit refers to UnitPrice > 30", "\"Eastern\" is the RegionDescription", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID"]}} {"set": {"query": "Write the address and phone number of Margaret Peacock.", "pos": ["Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone"], "neg": ["\"Eastern\" is the RegionDescription", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "least order refers to Min(OrderID)", "is a UK citizen refers to Country = 'UK'", "\"Exotic Liquids\" is the CompanyName", "total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n", "\"Northern\" region refers to RegionDescription = 'Northern'", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';"]}} {"set": {"query": "Tally the customer ID of orders that were shipped to Brazil by Margaret Peacock from 3/31/97 to 12/10/97.", "pos": ["\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12"], "neg": ["\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "doctorate refers to TitleOfCourtesy = 'Dr.;", "average sales = AVG(ProductSales)"]}} {"set": {"query": "Calculate the total products that are supplied by Japan suppliers.", "pos": ["Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)"], "neg": ["category refers to CategoryName; tofu refers to ProductName = 'Tofu';", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "Bigfoot Breweries is the name of the company; products refer to ProductName;", "'Confections' is a CompanyName;", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "shipping company refers to Shippers; phone number refers to Phone", "ProductName = 'Thringer Rostbratwurst';", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';"]}} {"set": {"query": "Indicate the name of the companies that have freighted products for a value greater than 2,000,000.", "pos": ["freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;"], "neg": ["most expensive product refers to ProductName where MAX(UnitPrice);", "Federal Shipping refers to CompanyName = 'Federal Shipping';", "full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1", "most customers refers to max(count(Relationship))", "\"Eastern\" is the RegionDescription", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "shipped to the city of Paris refers to ShipCity = 'Paris';", "\"Teatime Chocolate Biscuits\" is the ProductName", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'"]}} {"set": {"query": "Who was taking charge of orders from Morristown?", "pos": ["Morristown refers to TerritoryDescription = 'Morristown'"], "neg": ["from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "highest number of territories refers to max(TerritoryID)", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "reported to employee id 5 refers to ReportsTo = 5", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)", "Federal Shipping refers to CompanyName = 'Federal Shipping'", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "UnitsInStock < UnitsOnOrder;"]}} {"set": {"query": "What is the full address of Andr Fonseca?", "pos": ["full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';"], "neg": ["least order refers to Min(OrderID)", "territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry", "'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "\"Teatime Chocolate Biscuits\" is the ProductName", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);"]}} {"set": {"query": "How many orders were shipped to GREAL via United Package?", "pos": ["GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'"], "neg": ["full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;", "average salary = DIVIDE(SUM(Salary), COUNT(EmployeeID)); employees who takes charge of over 4 territories refers to EmployeeID WHERE COUNT(TerritoryID) > 4;", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "total production amount refers to ADD(UnitsInstock, UnitsOnOrder)", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'", "\"Northern\" region refers to RegionDescription = 'Northern'"]}} {"set": {"query": "How many boxes of 'Pavlova' did Northwind sell?", "pos": ["'Pavlova' is a ProductName"], "neg": ["no longer sold refers to Discontinued = 1; products refers to ProductName", "ProductName = 'Thringer Rostbratwurst';", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "full name refers to FirstName LastName; highest salary refers to max(Salary)", "full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'", "doctorate refers to TitleOfCourtesy = 'Dr.;", "supplied by refers to CompanyName"]}} {"set": {"query": "Find the percentage of discontinued products in Northwind's portfolio of products.", "pos": ["discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100"], "neg": ["\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "company in Spain refers to Country = 'Spain'; product supplied refers to ProductName", "territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';", "more than thirty dollars per unit refers to UnitPrice > 30", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)"]}} {"set": {"query": "Describe the ordered products which were the most overdue from required date.", "pos": ["the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)"], "neg": ["highest salary refers to MAX(Salary); full name = FirstName, LastName;", "discontinued refers to Discontinued = 1", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "companies refers to CompanyName;", "product refers to ProductName;", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "Federal Shipping refers to CompanyName = 'Federal Shipping'"]}} {"set": {"query": "What is the total sales amount of all discontinued products?", "pos": ["discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))"], "neg": ["territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "via United Package refers to CompanyName = 'United Package'", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "product refers to ProductName;", "'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))", "region refers to RegionDescription", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;"]}} {"set": {"query": "Who is the newest hired employee? Give the full name.", "pos": ["newest hired refers to latest HireDate; full name = FirstName, LastName;"], "neg": ["territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))", "highest salary refers to MAX(Salary); full name = FirstName, LastName;", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName"]}} {"set": {"query": "Which of the American customers have experienced a delay in the shipment and how long was the longest?", "pos": ["\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID"], "neg": ["Highest reorder level refers to Max(ReorderLevel)", "\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';", "name of the shipper company refers to ShipName; order No. refers to OrderID;", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "Bigfoot Breweries is the name of the company; products refer to ProductName;", "freight of over 800 refers to Freight > 800"]}} {"set": {"query": "Among the seafoods, how many of them have an order quantity of more than 50?", "pos": ["\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50"], "neg": ["Drachenblut Delikatessen is the company name;", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "'Blondesddsl pre et fils' is a CompanyName", "full name refers to FirstName LastName; highest salary refers to max(Salary)", "shipped to Brazil refers to ShipCountry = 'Brazil'; by Speedy Express Company refers to CompanyName = 'Speedy Express'; total products value refers to sum(MULTIPLY(UnitPrice, Quantity))", "order number 10933 refers to OrderID = 10933;", "no longer sold refers to Discontinued = 1; products refers to ProductName", "Eastern Region refers to RegionDescription = 'Eastern';", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;"]}} {"set": {"query": "Write down the notes of employee with the highest salary.", "pos": ["highest salary refers to Max(Salary)"], "neg": ["Gula Malacca is the name of the product; company refers to CompanyName;", "full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "Tokyo Traders refers to CompanyName = 'Tokyo Traders'", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)", "doctorate refers to TitleOfCourtesy = 'Dr.;"]}} {"set": {"query": "Name all products supplied by Zaanse Snoepfabriek.", "pos": ["products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName"], "neg": ["from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "name of the shipper company refers to ShipName; order No. refers to OrderID;", "biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "highest freight refers to max(Freight)", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;", "\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))"]}} {"set": {"query": "Which customer is a regular customer in this shop and what are the products category that he mostly buy?", "pos": ["regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))"], "neg": ["order number 10558 refers to OrderID = 10558;", "\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;", "name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)"]}} {"set": {"query": "How many orders were shipped by \"Speedy Express\"?", "pos": ["\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;"], "neg": ["grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "discontinued refers to Discontinued = 1", "year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)", "supplied by refers to CompanyName", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "company in Spain refers to Country = 'Spain'; product supplied refers to ProductName", "IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))"]}} {"set": {"query": "How many female employees are in charge of 3 or more territories?", "pos": ["female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;"], "neg": ["'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "highest salary refers to max(salary); position refers to Title", "located in Germany refers to Country = 'Germany';", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "discontinued refers to Discontinued = 1"]}} {"set": {"query": "What proportion of orders are taken by the Sales Representative?", "pos": ["DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;"], "neg": ["product refers to ProductName;", "'USA' is a country; supplier refers to CompanyName", "category refers to CategoryName; tofu refers to ProductName = 'Tofu';", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName", "Federal Shipping refers to CompanyName = 'Federal Shipping';", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "shipped to Brazil refers to ShipCountry = 'Brazil'; by Speedy Express Company refers to CompanyName = 'Speedy Express'; total products value refers to sum(MULTIPLY(UnitPrice, Quantity))", "supplied by refers to CompanyName"]}} {"set": {"query": "How many more territories are there in than Eastern Region than in the Southern Region?", "pos": ["how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';"], "neg": ["\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "highest number of products refers to MAX(COUNT(ProductID))", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;", "newest hired refers to latest HireDate; full name = FirstName, LastName;", "in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)"]}} {"set": {"query": "What are the names of Robert King's territories?", "pos": ["Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;"], "neg": ["product refers to ProductName;", "the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount)));", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "\"Teatime Chocolate Biscuits\" is the ProductName", "Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'", "full name refers to FirstName, LastName"]}} {"set": {"query": "List all the products that were shipped to Starenweg 5.", "pos": ["products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';"], "neg": ["DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "no longer sold refers to Discontinued = 1; products refers to ProductName", "Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;", "\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50", "doctorate refers to TitleOfCourtesy = 'Dr.;", "located in Germany refers to Country = 'Germany';", "highest salary refers to max(salary); position refers to Title", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone"]}} {"set": {"query": "What are the highest salary earn by the the employee and what is his/her position in the company?", "pos": ["highest salary refers to max(salary); position refers to Title"], "neg": ["discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100", "\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)", "full name refers to FirstName, LastName", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan", "\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "Eastern Region refers to RegionDescription = 'Eastern';", "freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;", "\"Teatime Chocolate Biscuits\" is the ProductName"]}} {"set": {"query": "Among the products, how many of them were discontinued in production?", "pos": ["discontinued refers to Discontinued = 1"], "neg": ["in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "suppliers refers to CompanyName; 'cheeses' is a Description", "from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)", "names of all territories refers to TerritoryDescription;", "'Pavlova' is a ProductName", "order number 10933 refers to OrderID = 10933;", "full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';", "Morristown refers to TerritoryDescription = 'Morristown'", "discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100"]}} {"set": {"query": "How many products supplied by Plutzer Lebensmittelgromrkte AG that is currently out of stock and on order?", "pos": ["Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0"], "neg": ["freight of over 800 refers to Freight > 800", "names of all territories refers to TerritoryDescription;", "shipping company refers to Shippers; phone number refers to Phone", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "more than thirty dollars per unit refers to UnitPrice > 30", "companies refers to ShipperID", "average salary = AVG(Salary)", "Eastern Region refers to RegionDescription = 'Eastern';", "\"Northern\" region refers to RegionDescription = 'Northern'"]}} {"set": {"query": "What were the products supplied by the company in Spain?", "pos": ["company in Spain refers to Country = 'Spain'; product supplied refers to ProductName"], "neg": ["from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)", "from USA refers to Country = 'USA'", "\"Eastern\" is the RegionDescription", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "Vice President of Sales refers to Title = 'Vice President, Sales';", "Bigfoot Breweries is the name of the company; products refer to ProductName;"]}} {"set": {"query": "Indicate the fax of the company Blondesddsl pre et fils in Strasbourg city.", "pos": ["'Blondesddsl pre et fils' is a CompanyName"], "neg": ["paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "\"Northern\" region refers to RegionDescription = 'Northern'", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "most customers refers to max(count(Relationship))", "required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName"]}} {"set": {"query": "Who are the suppliers of the discontinued products?", "pos": ["discontinued product refers to Discontinued = 1; supplier refers to CompanyName"], "neg": ["shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'", "in the Eastern region refers to RegionDescription = 'Eastern'", "products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName", "territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')", "freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;", "name of product refers to ProductName; ID refers to ProductID", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "full name refers to FirstName, LastName; brith day refers to BirthDate"]}} {"set": {"query": "How many sales values have been created by sales representative and which sales representative have the highest sales?", "pos": ["sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))"], "neg": ["shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'", "Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "discontinued refers to Discontinued = 1", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0"]}} {"set": {"query": "Please list the full names and titles of all employees.", "pos": ["full name refers to LastName, FirstName"], "neg": ["Tokyo Traders refers to CompanyName = 'Tokyo Traders'", "majority of the suppliers located refers to MAX(COUNT(SupplierID))", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "Eastern Region refers to RegionDescription = 'Eastern';", "Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4", "territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "shipped to France refers to ShipCountry = 'France';", "highest freight refers to max(Freight)", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';"]}} {"set": {"query": "Please name any two products that have the highest satisfaction levels among users of Heli Swaren GmbH & Co. KG.", "pos": ["High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';"], "neg": ["paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone", "IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID"]}} {"set": {"query": "What are the companies that have the same phone area code as 171?", "pos": ["phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;"], "neg": ["full name refers to FirstName LastName; highest salary refers to max(Salary)", "\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1", "doctorate refers to TitleOfCourtesy = 'Dr.;", "the least shipped product refers ProductName where MIN(Quantity);", "product refers to ProductName;", "\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "suppliers refers to CompanyName; 'cheeses' is a Description", "from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "descriptions refers to TerritoryDescription; region refers to RegionDescription"]}} {"set": {"query": "How many employees is a UK citizen and are they all covering the same region?", "pos": ["is a UK citizen refers to Country = 'UK'"], "neg": ["High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "Drachenblut Delikatessen is the company name;", "territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12", "highest number of products refers to MAX(COUNT(ProductID))", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath", "newest hired refers to latest HireDate; full name = FirstName, LastName;", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100"]}} {"set": {"query": "Which product is the most expensive?", "pos": ["most expensive product refers to ProductName where MAX(UnitPrice);"], "neg": ["total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'", "\"Eastern\" is the RegionDescription", "most ordered refers to max(COUNT(OrderID))", "'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "region refers to RegionDescription", "most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'"]}} {"set": {"query": "Indicate the name of the categories to which the products of order number 10933 belong.", "pos": ["order number 10933 refers to OrderID = 10933;"], "neg": ["\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "\"Eastern\" is the RegionDescription", "full name refers to FirstName, LastName; brith day refers to BirthDate", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "most customers refers to max(count(Relationship))", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "shipped to France refers to ShipCountry = 'France';", "highest number refers to max(count(CustomerID))", "shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;"]}} {"set": {"query": "How many territories are there in the Eastern Region?", "pos": ["Eastern Region refers to RegionDescription = 'Eastern';"], "neg": ["HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "biggest purchase refers to max(ProductID.Order_Details); ship to refers to ShipCountry", "Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0", "\"Brazil\" is the ShipCountry; from 3/31/97 to 12/10/97 refers to 1997-03-31 < ShippedDate < 1997-10-12", "phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')", "\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan", "shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'", "sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))"]}} {"set": {"query": "What is the phone number for the employee in charge of the Portsmouth territory?", "pos": ["phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';"], "neg": ["how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';", "ProductName = 'Thringer Rostbratwurst';", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "most customers refers to max(count(Relationship))", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'", "London refers to city = 'London';", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "name of the shipper company refers to ShipName; order No. refers to OrderID;"]}} {"set": {"query": "What is the quantity of Ikura ordered in order no. 10273?", "pos": ["Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;"], "neg": ["beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "suppliers refers to CompanyName; 'cheeses' is a Description", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))", "under confections category refers to CategoryName = 'Confections';", "is a UK citizen refers to Country = 'UK'", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "most costly refers to max(add(unit price , Freight)); in 1998 refers to OrderDate > = '1998-01-01 00:00:00' AND OrderDate < '1999-01-01 00:00:00'", "full name refers to FirstName, LastName; Denver is a TerritoryDescription", "London refers to city = 'London';"]}} {"set": {"query": "List down the company names which supplied products for the order on 14th August, 1996.", "pos": ["products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'"], "neg": ["three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "name of the shipper company refers to ShipName; order No. refers to OrderID;", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "highest number of territories refers to max(TerritoryID)", "London refers to city = 'London';", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "region refers to RegionDescription", "'USA' is a country; supplier refers to CompanyName", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "Vice President of Sales refers to Title = 'Vice President, Sales';"]}} {"set": {"query": "Calculate the total production for each product which were supplied from Japan", "pos": ["from Japan refers to Country = 'Japan'; total production refers to ADD(UnitsInstock, UnitsOnOrder)"], "neg": ["cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;", "grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "more than thirty dollars per unit refers to UnitPrice > 30", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';", "in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "in the Eastern region refers to RegionDescription = 'Eastern'"]}} {"set": {"query": "How many employees have territories in the Eastern region?", "pos": ["\"Eastern\" is the RegionDescription"], "neg": ["highest salary refers to max(salary); position refers to Title", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "average salary = AVG(Salary)", "year 1997 refers to year(OrderDate) = 1997; total amount of sales refers to (UnitPrice * Quantity)", "Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0", "Highest reorder level refers to Max(ReorderLevel)", "Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20", "\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "Drachenblut Delikatessen is the company name;", "companies refers to ShipperID"]}} {"set": {"query": "State the name of all territories in Northern region.", "pos": ["name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'"], "neg": ["cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "most expensive product refers to ProductName where MAX(UnitPrice);", "GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "Vice President of Sales refers to Title = 'Vice President, Sales';", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))"]}} {"set": {"query": "Identify the name of the most popular dairy product in terms of reorder quantity.", "pos": ["'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)"], "neg": ["most total sales refers to Max(SaleAmount); companies refers to CompanyName", "Eastern Region refers to RegionDescription = 'Eastern';", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;", "'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));"]}} {"set": {"query": "Give the full name of the youngest employee.", "pos": ["full name = FirstName, LastName; youngest refers to latest BirthDate;"], "neg": ["'Confections' is a CompanyName;", "Eastern Region refers to RegionDescription = 'Eastern';", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "shipped to the city of Paris refers to ShipCity = 'Paris';", "shipping company refers to Shippers; phone number refers to Phone", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "full name refers to FirstName, LastName; brith day refers to BirthDate"]}} {"set": {"query": "What are the total products value shipped to Brazil by Speedy Express Company?", "pos": ["shipped to Brazil refers to ShipCountry = 'Brazil'; by Speedy Express Company refers to CompanyName = 'Speedy Express'; total products value refers to sum(MULTIPLY(UnitPrice, Quantity))"], "neg": ["phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'", "report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';", "shipping company refers to Shippers; phone number refers to Phone", "Federal Shipping refers to CompanyName = 'Federal Shipping';", "from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "name of the shipper company refers to ShipName; order No. refers to OrderID;", "located in Germany refers to Country = 'Germany';", "reported to employee id 5 refers to ReportsTo = 5", "doctorate refers to TitleOfCourtesy = 'Dr.;"]}} {"set": {"query": "From which country is the company \"Drachenblut Delikatessen\" from?", "pos": ["Drachenblut Delikatessen is the company name;"], "neg": ["names of all territories refers to TerritoryDescription;", "least order refers to Min(OrderID)", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)", "\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1"]}} {"set": {"query": "Who is the Sales Agent for the company 'Eastern Connection'?", "pos": ["'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle"], "neg": ["average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "highest salary refers to MAX(Salary); full name = FirstName, LastName;", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')", "via United Package refers to CompanyName = 'United Package'", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "from UK refers to Country = 'UK'", "Tokyo Traders refers to CompanyName = 'Tokyo Traders'", "Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;"]}} {"set": {"query": "The sales of how many territories in total do the employees in London take charge of?", "pos": ["London refers to city = 'London';"], "neg": ["\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "average sales = AVG(ProductSales)", "via United Package refers to CompanyName = 'United Package'", "report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';", "paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "name of all territories refers to TerritoryDescription; Northern region refers to RegionDescription = 'Northern'", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';"]}} {"set": {"query": "Which of Cooperativa de Quesos 'Las Cabras' products have a unit price greater than 20?", "pos": ["Cooperativa de Quesos 'Las Cabras'' is a CompanyName; unit price greater than 20 refers to UnitPrice > 20"], "neg": ["Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "name of product refers to ProductName; ID refers to ProductID", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID", "Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;", "region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))", "full name refers to LastName, FirstName", "phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';", "Gula Malacca is the name of the product; company refers to CompanyName;"]}} {"set": {"query": "Which employee is in charge of the sales in Hollis? Please give the employee's full name.", "pos": ["Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;"], "neg": ["\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "London refers to city = 'London';", "via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "the least shipped product refers ProductName where MIN(Quantity);", "territories refer to TerritoryDescription; Title = 'Inside Sales Coordinator';", "Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0", "cities refers to ShipCity; 'Mishi Kobe Niku' is a ProductName", "most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%"]}} {"set": {"query": "Give the name of the territory where Mr. Robert King works.", "pos": ["name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';"], "neg": ["category refers to CategoryName; tofu refers to ProductName = 'Tofu';", "via United Package refers to CompanyName = 'United Package'", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;", "highest salary refers to max(salary); position refers to Title", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)", "shipping company refers to Shippers; phone number refers to Phone"]}} {"set": {"query": "How many of the orders are shipped to France?", "pos": ["shipped to France refers to ShipCountry = 'France';"], "neg": ["\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan", "majority of the suppliers located refers to MAX(COUNT(SupplierID))", "name of the supplier refers to CompanyName; Aniseed Syrup refers to ProductName = 'Aniseed Syrup';", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)", "in the Eastern region refers to RegionDescription = 'Eastern'", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "supplied by refers to CompanyName", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'"]}} {"set": {"query": "How many territories are there in the region with the highest number of territories?", "pos": ["highest number of territories refers to max(TerritoryID)"], "neg": ["London refers to city = 'London';", "Federal Shipping refers to CompanyName = 'Federal Shipping';", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)", "most expensive product refers to ProductName where MAX(UnitPrice);", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "Morristown refers to TerritoryDescription = 'Morristown'", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "'Andrew Fuller' is the full name of an employee; full name refers to FistName, LastName; Austria refers to ShipCountry; calculation = DIVIDE(SUM(ShipCountry = 'Austria'), COUNT(OrderID)) * 100", "in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100"]}} {"set": {"query": "What product is the least shipped to the postal code 28023?", "pos": ["the least shipped product refers ProductName where MIN(Quantity);"], "neg": ["regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "highest salary refers to max(salary); position refers to Title", "shipped to France refers to ShipCountry = 'France';", "IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;", "highest freight refers to max(Freight)", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "name of product refers to ProductName; ID refers to ProductID", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';"]}} {"set": {"query": "Among the USA employess, how many of them has PhD title of courtesy?", "pos": ["\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'"], "neg": ["Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';", "products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';", "in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;", "companies refers to ShipperID", "product refers to ProductName;", "located in Germany refers to Country = 'Germany';", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)"]}} {"set": {"query": "What is the position of Robert King?", "pos": ["'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title"], "neg": ["discontinued refers to Discontinued = 1", "highest number refers to max(count(CustomerID))", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "\"Eastern\" is the RegionDescription", "located in Germany refers to Country = 'Germany';", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle"]}} {"set": {"query": "List all product names under Confections.", "pos": ["'Confections' is a CompanyName;"], "neg": ["grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "companies refers to CompanyName;", "highest number of territories refers to max(TerritoryID)", "\"Eastern\" is the RegionDescription", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)", "shipped to the city of Paris refers to ShipCity = 'Paris';", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName"]}} {"set": {"query": "What is the name of product with the ID of 77?", "pos": ["name of product refers to ProductName; ID refers to ProductID"], "neg": ["average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "companies refers to ShipperID", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "supplied by refers to CompanyName", "via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "more than thirty dollars per unit refers to UnitPrice > 30", "Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone"]}} {"set": {"query": "Calculate the average payment per product under confections category.", "pos": ["under confections category refers to CategoryName = 'Confections';"], "neg": ["most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "full address includes Address, City, Region, PostalCode and Country; ContactName = 'Andr Fonseca';", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "how many more = SUBTRACT(SUM(RegionDescription = 'Eastern'), SUM(RegionDescription = 'Southern')); Eastern Region refers to RegionDescription = 'Eastern'; Southern Region refers to RegionDescription = 'Southern';", "newest hired refers to latest HireDate; full name = FirstName, LastName;", "the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)", "Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo\u2019 represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)"]}} {"set": {"query": "What is the most widely used shipping company in the United States of America?", "pos": ["most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'"], "neg": ["most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName", "'USA' is a country; supplier refers to CompanyName", "\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath", "ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)", "Japan Supplier refers to Country = 'Japan'; total product refers to Count (ProductName)", "Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;", "highest salary refers to max(salary); position refers to Title", "Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName", "\"Seafood\" is the CategoryName; order quantity of more than 50 refers to Quantity > 50", "Tokyo Traders refers to CompanyName = 'Tokyo Traders'"]}} {"set": {"query": "Mention the oldest empoyee's full name, title, salary and number of orders which were shipped to USA by him.", "pos": ["full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'"], "neg": ["from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "territories refers to TerritoryDescription; Laura Callahan is the full name of an employee; full name refers to FirstName, LastName", "UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4;", "highest salary refers to max(salary); position refers to Title", "sales representative refers to Title = 'Sales Representative'; sales values refers to MULTIPLY(Quantity, UnitPrice); the highest sales refers to max(MULTIPLY(Quantity, UnitPrice))", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "via United Package refers to CompanyName = 'United Package'"]}} {"set": {"query": "How many territories are there in the Eastern region?", "pos": ["\"Eastern\" is the RegionDescription"], "neg": ["shipping company refers to Shippers; phone number refers to Phone", "Eastern Region refers to RegionDescription = 'Eastern';", "products belong to beverage category refer to ProductName where CategoryName = 'beverage';", "ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "no longer sold refers to Discontinued = 1; products refers to ProductName", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;"]}} {"set": {"query": "In total, how many orders were shipped via United Package?", "pos": ["via United Package refers to CompanyName = 'United Package'"], "neg": ["HILLA refers to CustomerID = 'HILAA'; on 1997/12/25 refers to OrderDate = '1997/12/25';", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "under confections category refers to CategoryName = 'Confections';", "order number 10933 refers to OrderID = 10933;", "freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;", "the highest total price paid for an order can be calculated as MAX(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1-Discount)));", "region refers to RegionDescription", "Eastern Region refers to RegionDescription = 'Eastern';", "\"Northern\" region refers to RegionDescription = 'Northern'", "Vegie-spread product refers to ProductName = 'Vegie-spread'\uff1btotal payment = MULTIPLY(UnitPrice, Quantity, (1-Discount))"]}} {"set": {"query": "Please calculate the number of orders from customers by country in 1996.", "pos": ["in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)"], "neg": ["full name = FirstName, LastName; youngest refers to latest BirthDate;", "'Blondesddsl pre et fils' is a CompanyName", "supplied by refers to CompanyName", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%", "total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n", "average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "is a UK citizen refers to Country = 'UK'"]}} {"set": {"query": "Among the products under grains/cereals category, provide the contact person and title of the supplier with one digit ID.", "pos": ["grains/cereals category refers to CategoryName = 'Grains/Cereals'; supplier with one digit ID refers to SupplierID between 1 and 10;"], "neg": ["Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "Plutzer Lebensmittelgromrkte AG refers to CompanyName; is currently out of stock and on order refers to UnitsInStock = 0 and UnitsOnOrder > 0", "\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))", "discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "'Pavlova' is a ProductName", "average salary = AVG(Salary)", "product refers to ProductName;", "company in Spain refers to Country = 'Spain'; product supplied refers to ProductName", "category refers to CategoryName; tofu refers to ProductName = 'Tofu';"]}} {"set": {"query": "How many products have been discountinued by New Orleans Cajun Delights?", "pos": ["\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1"], "neg": ["full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "condiments category refers to CategoryName = 'Condiments'; the ID refers to CategoryID", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "name of the shipper company refers to ShipName; order No. refers to OrderID;", "\"Teatime Chocolate Biscuits\" is the ProductName", "shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package'", "ordered by ID 10979 refers to OrderID = '10979'; total payment refers to SUM(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;"]}} {"set": {"query": "Calculate the percentage salary of employees who handled orders shipped in 1996.", "pos": ["shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage"], "neg": ["'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "average salary = AVG(Salary)", "names of all territories refers to TerritoryDescription;", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)", "\"Northern\" region refers to RegionDescription = 'Northern'", "\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)", "9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "in the Eastern region refers to RegionDescription = 'Eastern'"]}} {"set": {"query": "What is the difference in number of unit price from Chef Anton's Cajun Seasoning product and Chef Anton's Gumbo Mix product of New Orleans Cajun Delights company.", "pos": ["Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')"], "neg": ["in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n", "the least shipped product refers ProductName where MIN(Quantity);", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "Drachenblut Delikatessen is the company name;"]}} {"set": {"query": "How many products were supplied by Pavlova, Ltd.?", "pos": ["Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'"], "neg": ["total production amount refers to ADD(UnitsInstock, UnitsOnOrder)", "products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';", "company in Spain refers to Country = 'Spain'; product supplied refers to ProductName", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "required on 3/26/1998 refers to RequiredDate = '1998-03-26 00:00:00'; products ordered refers to ProductName", "Eastern Region refers to RegionDescription = 'Eastern';", "\"10 boxes x 12 pieces\" is the QuantityPerUnit", "\"Eastern\" is the RegionDescription", "the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)", "most widely used refers to max(count(ShipVia)); shipping company refers to CompanyName; in the United States of America refers to ShipCountry = 'USA'"]}} {"set": {"query": "Name the shipper which had the most shipments in first quarter of 1998.", "pos": ["Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4"], "neg": ["average = AVG(Quantity); Ikura refers to ProductName = 'Ikura';", "'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)", "the highest unit price refers to MAX(UnitPrice);", "discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100", "\"Formaggi Fortini s.r.l.\" is the CompanyName; average unit price = AVG(UnitPrice)", "shipped to the city of Paris refers to ShipCity = 'Paris';", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "shipped to Mexico refers to ShipCountry = 'Mexico'; in 1996 refers to year(ShippedDate) = 1996; charge of inside sales coordinator refers to Title = 'Inside Sales Coordinator'", "less than 4 territories refers to EmployeeID where Count(TerritoryID) < 4", "discontinued refers to Discontinued = 1"]}} {"set": {"query": "Which company had the most orders in 1998?", "pos": ["in 1998 refers to YEAR (OrderDate) = 1998; most orders = Max(Count(CustomerID)); company refers to CompanyName"], "neg": ["shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "\"Tokyo Traders\" is the CompanyName; average unit price = AVG(UnitPrice)", "GREAL refers to CustomerID = 'GREAL'; via United Package refers to CompanyName = 'United Package'", "most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'", "Gula Malacca is the name of the product; company refers to CompanyName;", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)", "from UK refers to Country = 'UK'", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "total production amount refers to ADD(UnitsInstock, UnitsOnOrder)", "Eastern Region refers to RegionDescription = 'Eastern';"]}} {"set": {"query": "Among the beverages, which product has the highest customer satisfaction?", "pos": ["beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)"], "neg": ["paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "newest hired refers to latest HireDate; full name = FirstName, LastName;", "'Blondesddsl pre et fils' is a CompanyName", "name of product refers to ProductName; ID refers to ProductID", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "'Chef Anton's Gumbo Mix' is a ProductName; 'New Orleans Cajun Delights' is a CompanyName;"]}} {"set": {"query": "Tell the name of the shipper company for the order No.10585.", "pos": ["name of the shipper company refers to ShipName; order No. refers to OrderID;"], "neg": ["full name refers to FirstName, LastName; Denver is a TerritoryDescription", "'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))", "ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)", "DIVIDE(COUNT(OrderID where Title = 'Sales Representative'), COUNT(OrderID)) as percentage;", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;", "'Laughing Bacchus Wine Cellars' refers to CompanyName; calculation = DIVIDE(SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)), COUNT(OrderID))", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';"]}} {"set": {"query": "Calculate the production volume of the dairy product 'Mascarpone Fabioli'.", "pos": ["'Mascarpone Fabioli' is a ProductName; calculation = SUM(UnitsInStock, UnitsOnOrder)"], "neg": ["order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "\"Eastern\" is the RegionDescription", "majority of the suppliers located refers to MAX(COUNT(SupplierID))", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "reported to employee id 5 refers to ReportsTo = 5", "\"USA\" is the Country; PhD title of courtesy refers to TitleOfCourtesy = 'Dr.'", "full name refers to FirstName, LastName; brith day refers to BirthDate"]}} {"set": {"query": "What is the name of the supplier that supplies the most products to the company?", "pos": ["name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))"], "neg": ["Federal Shipping refers to CompanyName = 'Federal Shipping'", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))", "order number 10933 refers to OrderID = 10933;", "least order refers to Min(OrderID)", "freight of over 800 refers to Freight > 800", "total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "highest freight refers to max(Freight)"]}} {"set": {"query": "Which category does \"tofu\" belong to?", "pos": ["category refers to CategoryName; tofu refers to ProductName = 'Tofu';"], "neg": ["most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "from San Francisco refers to City = 'San Francisco'; total payment refers to sum(MULTIPLY(UnitPrice, Quantity, SUBTRACT(1, Discount)))", "no longer sold refers to Discontinued = 1; products refers to ProductName", "territories refers to TerritoryDescription; Eastern Region refers to RegionDescription = 'Eastern';", "shipping company refers to Shippers; phone number refers to Phone", "full name = FirstName, LastName; youngest refers to latest BirthDate;", "companies refers to ShipperID", "full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "Sales Manager refers to Title = 'Sales Manager'; full name refers to FirstName, LastName", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100"]}} {"set": {"query": "Which region does territory id 2116 belong to?", "pos": ["region refers to RegionDescription"], "neg": ["order number 10933 refers to OrderID = 10933;", "in the Eastern region refers to RegionDescription = 'Eastern'", "\"Northern\" region refers to RegionDescription = 'Northern'", "Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;", "in 1996 refer to YEAR(OrderDate) = 1996; number of order = Count(OrderID)", "in London refers to City = 'London'; ages in 2022 refers to SUBTRACT(2022, year(BirthDate)); full names refers to FirstName, LastName", "most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "shipped through refers to ShipVia; United Package refers to CompanyName = 'United Package'", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "\"Teatime Chocolate Biscuits\" is the ProductName"]}} {"set": {"query": "On what date did the Du monde entier company request that 9 units of Filo Mix be sent to it?", "pos": ["9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;"], "neg": ["discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))", "'Exotic Liquids' is a CompanyName; units in stock over 100 refers to UnitsInStock > 100", "'Robert King' is the full name of an employee; full name refers to FirstName, LastName; position refers to Title", "'USA' is a country; supplier refers to CompanyName", "most expensive product refers to ProductName where MAX(UnitPrice);", "Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone", "how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)", "shipped to the city of Paris refers to ShipCity = 'Paris';", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)"]}} {"set": {"query": "Who is the customer who purchased the highest number of products in a single order?", "pos": ["highest number of products refers to MAX(COUNT(ProductID))"], "neg": ["\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath", "\"Eastern\" is the RegionDescription", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "supplied by refers to CompanyName", "region refers to RegionDescription", "name of territory refers to TerritoryDescription; Mr. refers to TitleOfCourtesy = 'Mr';", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "the least shipped product refers ProductName where MIN(Quantity);", "highest number refers to max(count(CustomerID))", "highest number of territories refers to max(TerritoryID); difference in salary = subtract(employeeA.Salary, employeeB.Salary)"]}} {"set": {"query": "In August of 1996, how many orders were placed by the customer with the highest amount of orders?", "pos": ["August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))"], "neg": ["how much lower in percentage = MULTIPLY(DIVIDE(SUBTRACT(Products.UnitPrice, Order Details.UnitPrice), Products.UnitPrice), 100); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "female employees refers to TitleOfCourtesy = 'Mrs.' or TitleOfCourtesy = 'Ms.'; in charge of 3 or more territories refers to TerritoryID > = 3;", "order number 10558 refers to OrderID = 10558;", "average sales = AVG(ProductSales)", "product refers to ProductName;", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "under confections category refers to CategoryName = 'Confections';", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)"]}} {"set": {"query": "How many companies are there in the city of London?", "pos": ["companies refers to CompanyName;"], "neg": ["\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo\u2019 represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;", "total payment is greater than 15000 refers to MULTIPLY((Quantity * UnitPrice * (1 - Discount))) > 15000\n", "United States of America refers to Country = 'USA'", "freight of over 800 refers to Freight > 800", "High reorder level generally means high user satisfaction of the product and vice versa; the least satisfaction refers to MIN(ReorderLevel); the highest unit price refers to MAX(UnitPrice);", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "located in Germany refers to Country = 'Germany';", "Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4"]}} {"set": {"query": "Among the supplied products from Australia, describe the discontinued products and the category.", "pos": ["from Australia refers to Country = 'Australia'; discontinued products refers to Discontinued = 1;"], "neg": ["reported to employee id 5 refers to ReportsTo = 5", "\"Teatime Chocolate Biscuits\" is the ProductName", "full name refers to FirstName LastName; highest amount of orders refers to max(count(OrderID))", "Berglunds snabbkp is the CompanyName; fastest shipping = Min(Subtract(ShippedDate, OrderDate))", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "discontinued products refers to Discontinued = 1; highest number of discontinued products refers to MAX(Discontinued = 1)", "'Finland' is a Country; product refers to ProductName; suppliers refers to SupplierID", "newest hired refers to latest HireDate; full name = FirstName, LastName;", "value refers to SUM(UnitPrice * Quantity * SUBTRACT(1, Discount)); the largest order in value refers to MAX(value)", "most amount of orders refers to max(count(OrderID)); in 1996 refers to OrderDate > = '1996-01-01 00:00:00' AND OrderDate < '1997-01-01 00:00:00'; full name refers to FirstName, LastName"]}} {"set": {"query": "How many employees in the UK takes charge of the sales in over 4 territories?", "pos": ["UK refers to Country = 'UK'; employees with over 4 territories refers to EmployeeID WHERE TerritoryID > 4;"], "neg": ["percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "the most overdue from required date refers to MIN(SUBTRACT(ShippedDate, RequiredDate) < 0)", "Eastern Region refers to RegionDescription = 'Eastern';", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "Chef Anton's Cajun Seasoning' AND 'Chef Anton''s Gumbo Mix' are ProductName; 'New Orleans Cajun Delights' is a CompanyName; calculation = SUBTRACT(UnitPrice where ProductName = 'Chef Anton's Cajun Seasoning', UnitPrice where ProductName = 'Chef Anton''s Gumbo Mix')", "shipped the most times refer to MAX(COUNT(ShipVia)); city of Aachen refers to ShipCity = 'Aache'; companies refers to CompanyName;", "paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "descriptions refers to TerritoryDescription; region refers to RegionDescription"]}} {"set": {"query": "Which region is \"Columbia\" in?", "pos": ["region refers to RegionID; \"Columbia\" refers to TerritoryDescription = 'Columbia'"], "neg": ["Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4", "highest number of products refers to MAX(COUNT(ProductID))", "products refers to Order_Details.ProductID; on 14th August, 1996 refers to OrderDate = '8/14/1996'", "orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)", "full name refers to FirstName, LastName; shipped to USA refers to ShipCountry = 'USA'", "shipped to France refers to ShipCountry = 'France';", "discontinued products refers to Discontinued = 1; total sales amount refers to SUM(MULTIPLY(UnitPrice, Quantity))", "Pavlova, Ltd. refers to CompanyName = 'Pavlova, Ltd.'", "August of 1996 refers to OrderDate = '1996-8'; highest amount of orders refers to MAX(COUNT(OrderID))", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';"]}} {"set": {"query": "Write down the full name of Vie President of Sales and his age when he was hired.", "pos": ["Vice President of Sales refers to Title = 'Vice President, Sales';"], "neg": ["discontinued products refers to Discontinued = 1; calculation = DIVIDE(SUM(Discontinued = 1), COUNT(ProductID)) * 100", "is a UK citizen refers to Country = 'UK'", "\"Pavlova, Ltd\" is the CompanyName; products refers to ProductName", "phone refers to HomePhone; Portsmouth territory refers to TerritoryDescription = 'Portsmouth';", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "highest salary refers to Max(Salary)", "\"Northern\" region refers to RegionDescription = 'Northern'", "total price = MULTIPLY(UnitPrice, Quantity); Ikura refers to ProductName = 'Ikura'; order no. refers to OrderID;", "Eastern Region refers to RegionDescription = 'Eastern';", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle"]}} {"set": {"query": "Among the customers, list customers' company names and addresses who paid more than average in freight.", "pos": ["paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))"], "neg": ["Eastern Region refers to RegionDescription = 'Eastern';", "Robert King is a full name of an employee where LastName = 'King' AND FirstName = 'Robert'; names of territories refer to TerritoryDescription;", "ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)", "Name the shipper refers to CompanyName; most shipments refers to max(count(OrderID)); first quarter of 1998 refers to ShippedDate = 1998/1 and ShippedDate = 1998/2 and ShippedDate = 1998/3 and ShippedDate = 1998/4", "freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "IDs of the orders refers to OrderID; production is not continuous refers to Discontinued = 1;", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%"]}} {"set": {"query": "What are the product names of Exotic Liquids?", "pos": ["\"Exotic Liquids\" is the CompanyName"], "neg": ["\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath", "'Eastern Connection' is a CompanyName; 'Sales Agent' is a ContactTitle", "company in Spain refers to Country = 'Spain'; product supplied refers to ProductName", "most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "descriptions refers to TerritoryDescription; region refers to RegionDescription", "newest hired refers to latest HireDate; full name = FirstName, LastName;", "Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "products shipped to Starenweg 5 refer to ProductName where ShipAddress = 'Starenweg 5';"]}} {"set": {"query": "How many employees in total are in charge of the sales in the Eastern Region?", "pos": ["Eastern Region refers to RegionDescription = 'Eastern';"], "neg": ["Federal Shipping refers to CompanyName = 'Federal Shipping'; DIVIDE(SUM(Quantity), COUNT(ProductID)) where CompanyName = 'Federal Shipping' and ShippedDate > = '1996-11-01 00:00:00' AND ShippedDate < '1996-12-01 00:00:00';", "reported to employee id 5 refers to ReportsTo = 5", "phone area code as 171 refers to Phone LIKE '(171)%'; companies refer to CompanyName;", "region refers to RegionDescription", "\"Vice Present of Sales\" refers to Title = 'Vice President, Sales'; full name refers to FirstName, LastName; url of photo refers to PhotoPath", "highest salary refers to MAX(Salary); full name = FirstName, LastName;", "'Blondesddsl pre et fils' is a CompanyName", "freighted products for a value greater than 2,000,000 refer to Freight > 2000000; name of companies refers to CompanyName;", "supplied by refers to CompanyName", "London refers to city = 'London';"]}} {"set": {"query": "List out the phone number of the shipping company of order id 10296.", "pos": ["shipping company refers to Shippers; phone number refers to Phone"], "neg": ["order number 10558 refers to OrderID = 10558;", "most popular confections product refers to ProductID = max(count(MULTIPLY(Quantity, UnitPrice))) from CategoryName = 'Confections' ;\u00a0 total sales refers to sum(MULTIPLY(Quantity, UnitPrice))", "name of the supplier refers to SupplierID; the most product refers to max(count(ProductID))", "suppliers refers to CompanyName; 'cheeses' is a Description", "supplied by refers to CompanyName", "shipped to France refers to ShipCountry = 'France';", "\"Exotic Liquids\" is the CompanyName", "\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;"]}} {"set": {"query": "Which territory does Ms. Laura Callahan's direct supervisor work in? Give the name of the territory.", "pos": ["Ms. refers to TitleOfCourtesy = 'Ms'; ReportsTo\u2019 represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; name of the territory refers to TerritoryDescription;"], "neg": ["9 units of Filo Mix refer to ProductName where Quantity = 9; Du monde entier is the name of the customer; date refers to OrderDate;", "\"Speedy Express\" is the name of the shipping company; orders refer to OrderID;", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "Eastern Region refers to RegionDescription = 'Eastern';", "Aux joyeux ecclsiastiques is the name of supply company; products refer to ProductName;", "most total sales refers to Max(SaleAmount); companies refers to CompanyName", "the least shipped product refers ProductName where MIN(Quantity);", "shipping to Brazil refers to ShipCountry = 'Brazil'; in December, 1996\u00a0 refers to year(OrderDate) = 1996 and month(OrderDate) = 12;", "home phone number refers to HomePhone; Savannah refers to TerritoryDescription = 'Savannah';", "through Speedy Express refers to CompanyName = 'Speedy Express'; percentage = divide(count(ShipperID where CompanyName = 'Speedy Express') , count(ShipperID)) * 100%"]}} {"set": {"query": "How many times is the number of territories in \"Eastern Region\" than \"Southern Region\"?", "pos": ["\"Eastern Region\" refers to RegionDescription = 'Eastern'; \"Southern Region\" refers to RegionDescription = 'Southern'; times = divide(count(TerritoryDescription where RegionDescription = 'Eastern') , count(TerritoryDescription where RegionDescription = 'Southern'))"], "neg": ["paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "highest number of products refers to MAX(COUNT(ProductID))", "ID 1 to 9 refers to EmployeeID BETWEEN 1 AND 9; Average salary = AVG(Salary)", "average price = divide(sum(UnitPrice) , count(ProductID)); the UK refers to Country = 'UK'", "Santa Monica refers to TerritoryDescription = 'Santa Monica'; full name = FirstName, MiddleName, LastName;", "\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100", "companies refers to CompanyName;", "shipped in 1996 refers to ShippedDate = 1996; percentage salary = divide(sum(Salary when ShippedDate = 1996), sum(Salary)) as percentage", "\"Laura Callahan\" refers to FirstName = 'Laura AND LastName = 'Callahan", "from UK refers to Country = 'UK'"]}} {"set": {"query": "What is the most common product ordered by a customer from Germany?", "pos": ["most common product refers to max(count(ProductID)); customer from Germany\u00a0refers to Country = 'Germany'"], "neg": ["total production amount is more than 120 refers to ADD(UnitsInstock, UnitsOnOrder) > 120", "via United Package refers to CompanyName = 'United Package'; in 1997 refers to OrderDate > = '1997-01-01 00:00:00' AND OrderDate < '1998-01-01 00:00:00'; average unit price = divide(sum(UnitPrice), count(ShipperID))", "\"New Orleans Cajun Delights\" is the CompanyName; discontinued refers to Discontinued = 1", "beverage refers to CategoryName = 'Beverages'; highest customer satisfaction refers to max(ReorderLevel)", "discontinued product refers to Discontinued = 1; supplier refers to CompanyName", "highest number of products refers to MAX(COUNT(ProductID))", "\"American\" refers to Country = 'USA'; longest delay in shipment refers to Max(Subtract(RequiredDate, ShippedDate)); customer refers to CustomerID", "\"Teatime Chocolate Biscuits\" is the ProductName", "product refers to ProductName;", "report to represents a hierarchical relationship where the person being reported to is usually the direct supervisor of the reporter; Vice President of Sales refers to Title = 'Vice President, Sales';"]}} {"set": {"query": "Among the product lists in order ID 10337, write down the product names and suppliers which had the highest in reorder level.", "pos": ["suppliers refers to CompanyName; highest in reorder level refers to Max(ReorderLevel)"], "neg": ["\"Eastern\" is the RegionDescription", "shipped to France refers to ShipCountry = 'France';", "name of product refers to ProductName; ID refers to ProductID", "High reorder level generally means high user satisfaction; the highest satisfaction levels refer to MAX(ReorderLevel); two products refer to ProductName LIMIT 2; CompanyName = 'Heli Swaren GmbH & Co. KG';", "products refers to ProductName; 'Zaanse Snoepfabriek' is a CompanyName", "regular customer refers to max(count(CustomerID)); products category refers to CategoryName; mostly buy refers to max(count(CategoryID))", "full name refers to FirstName LastName; contact number refers to HomePhone; descending order of age refers to order by BirthDate desc limit 1", "three products that have been discontinued refer to ProductName LIMIT 3 where Discontinued = 1; CategoryName = 'Meat/Poultry';", "order no. refers to OrderID; biggest ratio = MAX(DIVIDE(UnitsOnOrder, UnitsInStock));", "\"Exotic Liquids\" is the CompanyName"]}} {"set": {"query": "Compute the total order quantity for Uncle Bob's Organic Dried Pears so far.", "pos": ["\"Uncle Bob's Organic Dried Pears\" is the ProductName; total order quantity refers to Sum(Quantity)"], "neg": ["Morristown refers to TerritoryDescription = 'Morristown'", "average sales = AVG(ProductSales)", "'Geitost' is a ProductName; calculation = DIVIDE(ProductName = 'Geitost', COUNT(ProductID)) * 100", "orders to Brazil refers to ShipCountry = 'Brazil'; highest salary refers to max(salary); average salary = AVG(Salary)", "full name = FirstName, LastName; youngest refers to latest BirthDate;", "\"Gai pturage\" is the CompanyName; Percentage = Divide (Count(SupplierID where CompanyName = 'Gai pturage'), Count (SupplierID)) * 100", "product refers to ProductName; highest user satisfaction refers to max(ReorderLevel)", "full name refers to FirstName, LastName; brith day refers to BirthDate", "\"Teatime Chocolate Biscuits\" is the ProductName", "names of all territories refers to TerritoryDescription;"]}} {"set": {"query": "What percentage of orders were placed by customers in Madrid city in 1996?", "pos": ["\"Madrid\" is the City; in 1996 refers to YEAR (OrderDate) = 1996; percentage = Divide (Count (CustomerID where City = 'Madrid'), Count (CustomerID)) * 100"], "neg": ["full name refers to FirstName, LastName; brith day refers to BirthDate", "percent = divide(subtract(count(OrderID where CompanyName = 'United Package') , count(OrderID where CompanyName = 'Speedy Express')) , count(OrderID where CompanyName = 'Speedy Express')) * 100%", "Hollis refers to TerritoryDescription = 'Hollis'; full name = FirstName, LastName;", "no longer continuous refers to Discontinued = 1; USA refers to Country = 'USA';", "paid more than average in freight refers to Freight > divide(sum(Freight) , count(OrderID))", "'dairy product' refers to CategoryName; most popular reorder quantity refers to MAX(ReorderLevel)", "Margaret Peacock is the full name of an employee; full name refers to FirstName, LastName; phone number refers to HomePhone", "the largest quantity of \"Manjimup Dried Apples\" refers to MAX(Quantity) where ProductName = 'Manjimup Dried Apples';", "total production of the product = SUM(units in stock, units on order); order no. refers to OrderID;", "product refers to ProductName;"]}} {"set": {"query": "List by order number the 3 items with the lowest price after applying the discount.", "pos": ["order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));"], "neg": ["DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "clerk who have served the customer refers to o_clerk\n", "customer name refers to c_name; the highest discount refers to max(l_discount)", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)"]}} {"set": {"query": "List the 5 orders with the highest total price, indicating the delivery date.", "pos": ["order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate"], "neg": ["clerk who have served the customer refers to o_clerk\n", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "close to being out of stock refers to ps_availqty < 10", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "customer refers to c_name; with debt refers to c_acctbal < 0"]}} {"set": {"query": "What is the name of the country of the supplier with the highest debt?", "pos": ["name of the country refers to n_name; the highest debt refers to min(s_acctbal)"], "neg": ["order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "name of customer refers to c_name; account in debt refers to c_acctbal < 0", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "the highest amount of extended price refers to MAX(l_extendedprice);", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000"]}} {"set": {"query": "List all the nations in Europe.", "pos": ["nation refers to n_name; Europe refers to r_name = 'EUROPE'"], "neg": ["phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "name of the product refers to p_name; the highest retail price refers to p_retailprice", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';"]}} {"set": {"query": "Which market segment does the customer with the highest amount of debt belongs to?", "pos": ["market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)"], "neg": ["name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "the highest total price refers to MAX(o_totalprice);", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';"]}} {"set": {"query": "What is the discounted price of the part \"burnished seashell gainsboro navajo chocolate\" in order no.1?", "pos": ["part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))"], "neg": ["quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));"]}} {"set": {"query": "How many kinds of items are returned in order no.5?", "pos": ["returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;"], "neg": ["orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "customers are in debt refer to c_custkey where c_acctbal < 0;", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'"]}} {"set": {"query": "Among the products that have a retail price greater than 1,000, how many products were shipped via ship?", "pos": ["products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';"], "neg": ["urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "name of the part refers to p_name; without discount refers to l_discount = 0.0000", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "customers are in debt refer to c_custkey where c_acctbal < 0;", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));"]}} {"set": {"query": "Provide the phone number of the customer with the highest total price in an order.", "pos": ["phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);"], "neg": ["account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "addresses refers to s_address; the biggest part refers to max(p_size)", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;"]}} {"set": {"query": "How many suppliers from Germany have left a comment with 'carefully regular packages'?", "pos": ["Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'"], "neg": ["shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "r_comment = 'furiously express accounts wake sly';", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%"]}} {"set": {"query": "Which part has a bigger size, \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\"?", "pos": ["size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')"], "neg": ["name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';"]}} {"set": {"query": "How many countries are there in the region whose comment description is \"asymptotes sublate after the r.\"", "pos": ["r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;"], "neg": ["order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "European suppliers refer to s_suppkey where r_name = 'EUROPE';", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92"]}} {"set": {"query": "What percentage of customers from France is in the automobile segment?", "pos": ["DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;"], "neg": ["order with the highest total price refers to MAX(o_totalprice);", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')"]}} {"set": {"query": "What is the order priority of the order with the highest total price?", "pos": ["order with the highest total price refers to MAX(o_totalprice);"], "neg": ["automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "Africa refers to r_name = 'Africa';", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "a retail price of over 1900 refers to p_retailprice > 1900", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;"]}} {"set": {"query": "Among the customers with an account balance lower than 4000, what is the percentage of the customers in the US?", "pos": ["DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;"], "neg": ["items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;"]}} {"set": {"query": "List the names of the countries with the below-average number of customers in ascending order of customer numbers.", "pos": ["the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);"], "neg": ["product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "Customer#000000013 is the name of the customer which refers to c_name;", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "Africa refers to r_name = 'Africa';", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'"]}} {"set": {"query": "What is the supply cost for the part \"violet olive rose ivory sandy\"?", "pos": ["supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'"], "neg": ["an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "a retail price of over 1900 refers to p_retailprice > 1900", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "customer name refers to c_name; the highest discount refers to max(l_discount)", "r_comment = 'furiously express accounts wake sly';", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';"]}} {"set": {"query": "Calculate the percentage of manufactured parts by Manufacturer#3.", "pos": ["DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;"], "neg": ["order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'"]}} {"set": {"query": "Lists all parts supplied by Supplier#000000034.", "pos": ["part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'"], "neg": ["items with the most quantity available refer to p_name where MAX(ps_availqty);", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;"]}} {"set": {"query": "Please list the names of all the suppliers for the part with the highest retail price.", "pos": ["supplier name refers to s_name; the highest retail price refers to max(p_retailprice)"], "neg": ["nation refers to n_name; Europe refers to r_name = 'EUROPE'", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"]}} {"set": {"query": "What is the total price charged for orders shipped by air without shipping instructions?", "pos": ["SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';"], "neg": ["clerk who have served the customer refers to o_clerk\n", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "close to being out of stock refers to ps_availqty < 10", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "customer refers to c_name; with debt refers to c_acctbal < 0", "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'"]}} {"set": {"query": "What is the total price of all orders from the customer with the phone number \"627-220-3983\"?", "pos": ["total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'"], "neg": ["phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"]}} {"set": {"query": "How many suppliers are from Japan?", "pos": ["suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';"], "neg": ["DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "items with the most quantity available refer to p_name where MAX(ps_availqty);"]}} {"set": {"query": "Name customers in India with account balances over $5000.", "pos": ["customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000"], "neg": ["more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)"]}} {"set": {"query": "What are the countries in the region of Asia?", "pos": ["countries in the region of Asia refer to n_name where r_name = 'ASIA';"], "neg": ["DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"]}} {"set": {"query": "Among all the customers in Germany, how many of them have an account balance of over 1000?", "pos": ["Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;"], "neg": ["items with the most quantity available refer to p_name where MAX(ps_availqty);", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000", "order with the highest total price refers to MAX(o_totalprice);", "Africa refers to r_name = 'Africa';", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;"]}} {"set": {"query": "How many orders in 1998 had a total price under 950?", "pos": ["1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950"], "neg": ["quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "r_comment = 'furiously express accounts wake sly';"]}} {"set": {"query": "How many orders in total have the customers in the household segment made?", "pos": ["orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';"], "neg": ["supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'"]}} {"set": {"query": "The part \"hot spring dodger dim light\" is ordered in how many orders?", "pos": ["part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"], "neg": ["more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';"]}} {"set": {"query": "How many customers belong to the household segment in Germany?", "pos": ["household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'"], "neg": ["the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "region refers to r_name; the most customers refers to max(count(c_custkey))", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "order with the highest total price refers to MAX(o_totalprice);"]}} {"set": {"query": "List the order key of the orders with a total price between 200000 and 300000.", "pos": ["orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;"], "neg": ["order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate"]}} {"set": {"query": "How many urgent orders did Clerk#000000001 handle in 1997?", "pos": ["urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997"], "neg": ["p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "customer name refers to c_name; the highest discount refers to max(l_discount)", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "close to being out of stock refers to ps_availqty < 10", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "r_comment = 'furiously express accounts wake sly';"]}} {"set": {"query": "How many items were shipped on 4th December, 1993?", "pos": ["items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';"], "neg": ["discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1", "instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "clerk who have served the customer refers to o_clerk\n", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "name of the product refers to p_name; the highest retail price refers to p_retailprice", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';"]}} {"set": {"query": "Name the part which is most profitable.", "pos": ["profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);"], "neg": ["order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;"]}} {"set": {"query": "Please list the names of all the suppliers for parts under Brand#55.", "pos": ["supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'"], "neg": ["DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "the highest amount of extended price refers to MAX(l_extendedprice);", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0"]}} {"set": {"query": "What is the average price before discount of the top 10 orders with the highest total price?", "pos": ["DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);"], "neg": ["name of the product refers to p_name; the highest retail price refers to p_retailprice", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "addresses refers to s_address; the biggest part refers to max(p_size)", "region refers to r_name; the most customers refers to max(count(c_custkey))", "European suppliers refer to s_suppkey where r_name = 'EUROPE';", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1", "customer name refers to c_name; the highest discount refers to max(l_discount)", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;"]}} {"set": {"query": "Among the items shipped in 1994 via truck, how many items were returned?", "pos": ["1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'"], "neg": ["shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "customer refers to c_name; with debt refers to c_acctbal < 0", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);"]}} {"set": {"query": "List line items shipped by truck with delivery time before 1997.", "pos": ["line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997"], "neg": ["name of the product refers to p_name; the highest retail price refers to p_retailprice", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "customers are in debt refer to c_custkey where c_acctbal < 0;", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'"]}} {"set": {"query": "How many items did Customer#000021159 order? Calculate those items total charges.", "pos": ["items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';"], "neg": ["clerk who have served the customer refers to o_clerk\n", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "order with the highest total price refers to MAX(o_totalprice);", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;"]}} {"set": {"query": "Calculate the percentage of countries that belong to the American region.", "pos": ["the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%"], "neg": ["product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "a retail price of over 1900 refers to p_retailprice > 1900", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);"]}} {"set": {"query": "What is the total amount of tax charged for the order placed by customer 88931 on 7/13/994?", "pos": ["total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'"], "neg": ["phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "clerk who have served the customer refers to o_clerk\n", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "r_comment = 'furiously express accounts wake sly';", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'"]}} {"set": {"query": "Calculate the total price of orders by Customer#000000013.", "pos": ["Customer#000000013 is the name of the customer which refers to c_name;"], "neg": ["names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';"]}} {"set": {"query": "Which country does supplier No.34 come from?", "pos": ["supplier No.34 refers to s_suppkey = 34; country refers to n_name;"], "neg": ["more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "region refers to r_name; the most customers refers to max(count(c_custkey))", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "the highest amount of extended price refers to MAX(l_extendedprice);", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);"]}} {"set": {"query": "How much is the discounted price of every item that customer 111511 ordered in order 53159? List the names of the parts of every item.", "pos": ["discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name"], "neg": ["the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "region refers to r_name; the most customers refers to max(count(c_custkey))", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "customer name refers to c_name; the highest discount refers to max(l_discount)", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';"]}} {"set": {"query": "What are the countries that belong to Africa?", "pos": ["country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'"], "neg": ["name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "customer name refers to c_name; the highest discount refers to max(l_discount)", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "Africa refers to r_name = 'Africa';", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;"]}} {"set": {"query": "What is the profit for part no.98768 in order no.1?", "pos": ["part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))"], "neg": ["European suppliers refer to s_suppkey where r_name = 'EUROPE';", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "customers are in debt refer to c_custkey where c_acctbal < 0;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))"]}} {"set": {"query": "Calculate the difference in the average retail price of parts shipped via ship and air.", "pos": ["SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));"], "neg": ["DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));", "a retail price of over 1900 refers to p_retailprice > 1900", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'"]}} {"set": {"query": "What is the average number of items shipped each day in April of 1994?", "pos": ["AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';"], "neg": ["supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "customer name refers to c_name; the highest discount refers to max(l_discount)", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';"]}} {"set": {"query": "Name the countries that belong in the region with comment description \"furiously express accounts wake sly\".", "pos": ["r_comment = 'furiously express accounts wake sly';"], "neg": ["brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0", "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "close to being out of stock refers to ps_availqty < 10", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1"]}} {"set": {"query": "How many parts have a retail price of over 1900?", "pos": ["a retail price of over 1900 refers to p_retailprice > 1900"], "neg": ["orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'"]}} {"set": {"query": "How many of the items are instructed to be delivered in person?", "pos": ["instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'"], "neg": ["earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "order with the highest total price refers to MAX(o_totalprice);", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"]}} {"set": {"query": "How many of the line items that have a quantity greater than 40 have been shipped by air?", "pos": ["quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'"], "neg": ["phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);"]}} {"set": {"query": "What is the total number of orders made by customers in United States?", "pos": ["orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';"], "neg": ["parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "name of the product refers to p_name; the highest retail price refers to p_retailprice", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';"]}} {"set": {"query": "What are the cost prices of large burnished copper?", "pos": ["cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'"], "neg": ["SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "customer name refers to c_name; the highest discount refers to max(l_discount)", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0"]}} {"set": {"query": "Give the name and phone number of the customers who have more than 9000 account balance.", "pos": ["the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;"], "neg": ["\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "close to being out of stock refers to ps_availqty < 10", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'"]}} {"set": {"query": "In the parts shipped by rail, how many are of medium priority?", "pos": ["parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';"], "neg": ["more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "the highest amount of extended price refers to MAX(l_extendedprice);", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';"]}} {"set": {"query": "Among the suppliers for the parts ordered in order no.4, how many of them are in debt?", "pos": ["order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0"], "neg": ["Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';"]}} {"set": {"query": "Give the percentage of Japanese suppliers whose account is in debt.", "pos": ["account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;"], "neg": ["orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0", "the highest amount of extended price refers to MAX(l_extendedprice);", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'"]}} {"set": {"query": "What is the region with the most customers?", "pos": ["region refers to r_name; the most customers refers to max(count(c_custkey))"], "neg": ["mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92"]}} {"set": {"query": "Please list the names of all the products under the type \"promo brushed steel\".", "pos": ["product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'"], "neg": ["profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';"]}} {"set": {"query": "What is the difference between the number of returned items and not returned items with the full price of under 16947.7?", "pos": ["full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7"], "neg": ["p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;"]}} {"set": {"query": "Calculate the percentage of suppliers in Germany.", "pos": ["DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;"], "neg": ["name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;"]}} {"set": {"query": "What is the average discount for the parts made by Manufacturer#5?", "pos": ["DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';"], "neg": ["SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));", "the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;", "Africa refers to r_name = 'Africa';", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;"]}} {"set": {"query": "What is the percentage of the European countries among the given countries?", "pos": ["DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;"], "neg": ["phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'"]}} {"set": {"query": "What is the nationality of \"Customer#000000055\"?", "pos": ["\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;"], "neg": ["an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "r_comment = 'furiously express accounts wake sly';", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "clerk who have served the customer refers to o_clerk\n", "close to being out of stock refers to ps_availqty < 10", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)"]}} {"set": {"query": "Give customer No.106936's region name.", "pos": ["\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;"], "neg": ["MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'"]}} {"set": {"query": "List the name of the top ten items with the most quantity available in the descending order of availability.", "pos": ["items with the most quantity available refer to p_name where MAX(ps_availqty);"], "neg": ["countries in the region of Asia refer to n_name where r_name = 'ASIA';", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));"]}} {"set": {"query": "What are the shipping methods for the orders on 12/31/1994?", "pos": ["shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'"], "neg": ["the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "addresses refers to s_address; the biggest part refers to max(p_size)", "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "close to being out of stock refers to ps_availqty < 10", "the highest total price refers to MAX(o_totalprice);"]}} {"set": {"query": "What are the total quantities of the items ordered by customer 101660 on 10/5/1995?", "pos": ["total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'"], "neg": ["orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "r_comment = 'furiously express accounts wake sly';", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';"]}} {"set": {"query": "Indicate the name of the parts without discount.", "pos": ["name of the part refers to p_name; without discount refers to l_discount = 0.0000"], "neg": ["SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;"]}} {"set": {"query": "How many customers are in Brazil?", "pos": ["Brazil is the name of the nation which refers to n_name = 'BRAZIL'"], "neg": ["line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "r_comment = 'furiously express accounts wake sly';", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "order with the highest total price refers to MAX(o_totalprice);", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"]}} {"set": {"query": "How much is the profit for smoke turquoise purple blue salmon that was delivered in person on 5/7/1996?", "pos": ["SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';"], "neg": ["DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "clerk who have served the customer refers to o_clerk\n", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "a retail price of over 1900 refers to p_retailprice > 1900", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))"]}} {"set": {"query": "How many European suppliers are there?", "pos": ["European suppliers refer to s_suppkey where r_name = 'EUROPE';"], "neg": ["name of the product refers to p_name; the highest retail price refers to p_retailprice", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "a retail price of over 1900 refers to p_retailprice > 1900", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);"]}} {"set": {"query": "Please list the phone numbers of all the customers in the household segment and are in Brazil.", "pos": ["phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';"], "neg": ["size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "order with the highest total price refers to MAX(o_totalprice);", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "clerk who have served the customer refers to o_clerk\n", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "region refers to r_name; the most customers refers to max(count(c_custkey))", "account is in debt if c_acctbal < 0;", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'"]}} {"set": {"query": "Give the name of the customer who made an order with Clerk#000000803 on 1997/12/10.", "pos": ["name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';"], "neg": ["shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "r_comment = 'furiously express accounts wake sly';", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);"]}} {"set": {"query": "Please list any three customers with debt.", "pos": ["customer refers to c_name; with debt refers to c_acctbal < 0"], "neg": ["part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950"]}} {"set": {"query": "Calculate the percentage of customers' accounts in debt.", "pos": ["DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;"], "neg": ["MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;", "r_comment = 'furiously express accounts wake sly';", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "Customer#000000013 is the name of the customer which refers to c_name;", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "nation refers to n_name; Europe refers to r_name = 'EUROPE'"]}} {"set": {"query": "How many clients from Mozambique required orders with a low priority order?", "pos": ["Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'"], "neg": ["part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "account is in debt if c_acctbal < 0;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "the highest amount of extended price refers to MAX(l_extendedprice);", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "Customer#000000013 is the name of the customer which refers to c_name;", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);"]}} {"set": {"query": "Please list the order keys of all the orders made by a customer whose account is in debt.", "pos": ["account is in debt if c_acctbal < 0;"], "neg": ["mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "name of the part refers to p_name; without discount refers to l_discount = 0.0000", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';"]}} {"set": {"query": "What is the name of the customer number 93697 with the total order price of 191918.92?", "pos": ["customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92"], "neg": ["supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "customer name refers to c_name; the highest discount refers to max(l_discount)", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "customer refers to c_name; with debt refers to c_acctbal < 0", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;"]}} {"set": {"query": "Please give the name of the customer who has made the single order with the highest total price.", "pos": ["name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;"], "neg": ["customers are in debt refer to c_custkey where c_acctbal < 0;", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "account is in debt if c_acctbal < 0;", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'"]}} {"set": {"query": "List all the addresses for the suppliers of the biggest parts.", "pos": ["addresses refers to s_address; the biggest part refers to max(p_size)"], "neg": ["supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;"]}} {"set": {"query": "How much is the total price of all the orders shipped to customers in Argentina?", "pos": ["total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'"], "neg": ["products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "Africa refers to r_name = 'Africa';", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "the highest total price refers to MAX(o_totalprice);", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "order with the highest total price refers to MAX(o_totalprice);", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'"]}} {"set": {"query": "Among the products under the type \"promo brushed steel\", how many of them are manufactured by Manufacturer#5?", "pos": ["type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'"], "neg": ["p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "account is in debt if c_acctbal < 0;", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';"]}} {"set": {"query": "List the phone numbers of customers whose order priority is urgent.", "pos": ["phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'"], "neg": ["p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));"]}} {"set": {"query": "How many different clerks have served the customer with the address uFTe2u518et8Q8UC?", "pos": ["clerk who have served the customer refers to o_clerk\n"], "neg": ["supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;", "the highest amount of extended price refers to MAX(l_extendedprice);", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);"]}} {"set": {"query": "Among the orders made by customers in the household segment, how many of them are urgent?", "pos": ["orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;"], "neg": ["part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "Customer#000000013 is the name of the customer which refers to c_name;", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "customers are in debt refer to c_custkey where c_acctbal < 0;", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);"]}} {"set": {"query": "How many part supplies are close to being out of stock?", "pos": ["close to being out of stock refers to ps_availqty < 10"], "neg": ["country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;"]}} {"set": {"query": "Clerk#000000936 dealt with a \"Not Specified\" order on 1995/3/13, what was the charge for the part of the order shipped by truck?", "pos": ["MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';"], "neg": ["part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;", "order with the highest total price refers to MAX(o_totalprice);", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "account is in debt if c_acctbal < 0;", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "customer refers to c_name; with debt refers to c_acctbal < 0"]}} {"set": {"query": "Give the number of Moroccan customers whose account is in debt.", "pos": ["account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';"], "neg": ["market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "order with the highest total price refers to MAX(o_totalprice);", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "Customer#000000013 is the name of the customer which refers to c_name;", "the highest amount of extended price refers to MAX(l_extendedprice);", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name"]}} {"set": {"query": "Which supplier can provide the most number of \"hot spring dodger dim light\"? Please give the supplier's phone number.", "pos": ["the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone"], "neg": ["country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'", "average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "line item refers to l_linenumber; shipped by truck refers to l_shipmode = 'truck'; delivery time before 1997 refers to year(l_shipdate) < 1997", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"]}} {"set": {"query": "How much higher in percentage is the highest supply cost of the part \"hot spring dodger dim light\" than the lowest supply cost?", "pos": ["part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%"], "neg": ["order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;"]}} {"set": {"query": "List any five parts name in Medium Plated Brass.", "pos": ["p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;"], "neg": ["nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'"]}} {"set": {"query": "Please list all the modes of shipping for the part \"burnished seashell gainsboro navajo chocolate\".", "pos": ["mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"], "neg": ["order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "name of customer refers to c_name; account in debt refers to c_acctbal < 0", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;"]}} {"set": {"query": "Among all the orders made by a customer in the household segment, what is the highest total price?", "pos": ["orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the highest total price refers to MAX(o_totalprice);"], "neg": ["quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "region refers to r_name; the most customers refers to max(count(c_custkey))", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "customer name refers to c_name; the highest discount refers to max(l_discount)", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);"]}} {"set": {"query": "Please list any three line item numbers that have 10% off.", "pos": ["line item number refers to l_linenumber; 10% off refers to l_discount = 0.1"], "neg": ["name of the part refers to p_name; without discount refers to l_discount = 0.0000", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';"]}} {"set": {"query": "For the order with the total price of 231499.38, what was the discounted price for supplier No. 9397?", "pos": ["MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;"], "neg": ["part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;", "customers are in debt refer to c_custkey where c_acctbal < 0;", "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;"]}} {"set": {"query": "Among the products manufactured by manufacturer 5 that have a retail price of no more than 1,000, how many products were shipped via rail?", "pos": ["manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';"], "neg": ["supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "Africa refers to r_name = 'Africa';", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "items shipped on 4th December, 1993 refer to l_linenumber where l_shipdate = '1993-12-04';", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;"]}} {"set": {"query": "What is the name of the product with the highest retail price?", "pos": ["name of the product refers to p_name; the highest retail price refers to p_retailprice"], "neg": ["cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "the highest amount of extended price refers to MAX(l_extendedprice);", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "addresses refers to s_address; the biggest part refers to max(p_size)"]}} {"set": {"query": "Which order has a higher priority, order no. 4 or order no. 36?", "pos": ["earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);"], "neg": ["Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';", "customer name refers to c_name; the highest discount refers to max(l_discount)", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "the highest amount of extended price refers to MAX(l_extendedprice);", "clerk who have served the customer refers to o_clerk\n", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'"]}} {"set": {"query": "What is the biggest discount among all orders for the part \"burnished seashell gainsboro navajo chocolate\"?", "pos": ["the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"], "neg": ["part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "the highest amount of extended price refers to MAX(l_extendedprice);", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0"]}} {"set": {"query": "List the names of customers whose accounts are in debt.", "pos": ["name of customer refers to c_name; account in debt refers to c_acctbal < 0"], "neg": ["total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "Customer#000000013 is the name of the customer which refers to c_name;", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "full price of under 16947.7 refers to l_extendedprice < 16947.7; returned item refers to l_returnflag = 'R'; not returned item refers to l_returnflag = 'A' OR l_returnflag = 'N'; difference = subtract(count(l_linenumber where l_returnflag = 'A' OR l_returnflag = 'N'), count(l_linenumber where l_returnflag = 'R')) where l_extendedprice < 16947.7", "items with the most quantity available refer to p_name where MAX(ps_availqty);"]}} {"set": {"query": "What is the account balance of the supplier with the most parts?", "pos": ["account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))"], "neg": ["MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "name of customer refers to c_name; account in debt refers to c_acctbal < 0", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'", "Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "customers are in debt refer to c_custkey where c_acctbal < 0;", "DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;", "a retail price of over 1900 refers to p_retailprice > 1900", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))"]}} {"set": {"query": "Among all the customers, what is the percentage of the customer's nation being Germany?", "pos": ["DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;"], "neg": ["1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "close to being out of stock refers to ps_availqty < 10", "Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'"]}} {"set": {"query": "List the phone number of the customer who placed orders with a total price of more than $300,000.", "pos": ["phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000"], "neg": ["earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "addresses refers to s_address; the biggest part refers to max(p_size)", "name of customer refers to c_name; account in debt refers to c_acctbal < 0", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "account is in debt if c_acctbal < 0;", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "name of the part refers to p_name; without discount refers to l_discount = 0.0000", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)"]}} {"set": {"query": "Among the customers from Morocco, how many customers were in debt?", "pos": ["customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;"], "neg": ["Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0", "country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "the highest total price refers to MAX(o_totalprice);"]}} {"set": {"query": "Name of customer whose order is applied with the highest discount.", "pos": ["customer name refers to c_name; the highest discount refers to max(l_discount)"], "neg": ["orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;", "Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "close to being out of stock refers to ps_availqty < 10", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "customers are in debt refer to c_custkey where c_acctbal < 0;", "average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"]}} {"set": {"query": "What is the total price and the order priority of order number 33?", "pos": ["total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33"], "neg": ["orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';"]}} {"set": {"query": "How many customers are in the automobile market segment?", "pos": ["automobile market segment refers to c_mktsegment = 'AUTOMOBILE';"], "neg": ["shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "clerk who have served the customer refers to o_clerk\n", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "name of the part refers to p_name; without discount refers to l_discount = 0.0000", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;"]}} {"set": {"query": "How many order keys are not applied for the discount?", "pos": ["order key refers to l_orderkey; not applied for the discount refers to l_discount = 0"], "neg": ["supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "order refers to o_orderkey; the highest total price refers to max(o_totalprice); delivery date refers to l_shipdate", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "account is in debt if c_acctbal < 0;", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;"]}} {"set": {"query": "Please list all the brands that contain a part under the type \"promo brushed steel\".", "pos": ["brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'"], "neg": ["the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "total amount of tax refers to sum(multiply(multiply(l_extendedprice, subtract(1, l_discount)), add(1, l_tax))); customer 88931 refers to o_custkey = 88931; on 7/13/1994 refers to o_orderdate = '1994-07-13'", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0", "parts shipped by rail refer to l_partkey where l_shipmode = 'RAIL'; medium priority refers to o_orderpriority = '3-MEDIUM';", "supplier name refers to s_name; Brand#55 refers to p_brand = 'Brand#55'"]}} {"set": {"query": "Please indicate the names of customers whose orders are eligible for 10% discount with order dates between 1/1/1994 and 1/1/1995.", "pos": ["customer name refers to c_name; 10% discount refers to l_discount = 0.1; order dates between 1/1/1994 and 1/1/1995 refers to year(o_orderdate) = 1994 OR o_orderdate = '1995-01-01'"], "neg": ["part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'; order no.1 refers to l_orderkey = 1; discounted price refers to multiply(l_extendedprice, subtract(1, l_discount))", "close to being out of stock refers to ps_availqty < 10", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "addresses refers to s_address; the biggest part refers to max(p_size)", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));", "household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone"]}} {"set": {"query": "Which nation and region does the Customer#000000008 come from?", "pos": ["nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'"], "neg": ["supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "Africa refers to r_name = 'Africa';", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "r_comment = 'furiously express accounts wake sly';", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;"]}} {"set": {"query": "What are the top 2 order keys of the item with the highest amount of extended price?", "pos": ["the highest amount of extended price refers to MAX(l_extendedprice);"], "neg": ["AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "Africa refers to r_name = 'Africa';", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name"]}} {"set": {"query": "How many orders were shipped in 1994?", "pos": ["orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;"], "neg": ["shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "European suppliers refer to s_suppkey where r_name = 'EUROPE';", "customer name refers to c_name; the highest discount refers to max(l_discount)", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;"]}} {"set": {"query": "Please state the segment, the name, the address, and the phone number of customer number 3.", "pos": ["segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3"], "neg": ["profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "customer refers to c_name; with debt refers to c_acctbal < 0", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950"]}} {"set": {"query": "List the country name of the customers in the building marketing segment with an account balance greater than 80% of the average account balance of all customers.", "pos": ["country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);"], "neg": ["an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'", "r_comment = 'furiously express accounts wake sly';", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;", "DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "customer refers to c_name; with debt refers to c_acctbal < 0"]}} {"set": {"query": "Calculate the total profit made by chocolate floral blue coral cyan.", "pos": ["SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';"], "neg": ["region refers to r_name; the most customers refers to max(count(c_custkey))", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "account is in debt if c_acctbal < 0;", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))"]}} {"set": {"query": "Which part and supplier have the most profit?", "pos": ["part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))"], "neg": ["order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0", "phone number of the customer refers to c_phone; the highest total price refers to MAX(o_totalprice);", "1994 refers to year(l_shipdate) = 1994; via truck refers to l_shipmode = 'TRUCK'; returned refers to l_returnflag = 'R'", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "manufacturer 5 refers to p_mfgr = 'Manufacturer#5'; retail price of no more than 1,000 refers to p_retailprice < 1000; shipped via rail refers to shipmode = 'RAIL';", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "total price refers to o_totalprice; order priority refers to o_orderpriority; order number 33 refers to o_orderkey = 33", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%"]}} {"set": {"query": "When was the order with the highest amount of total price shipped?", "pos": ["when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);"], "neg": ["product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'", "DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "addresses refers to s_address; the biggest part refers to max(p_size)", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "customer name refers to c_name; the highest discount refers to max(l_discount)", "account balance refers to s_acctbal; the most parts refers to max(count(ps_suppkey))", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;"]}} {"set": {"query": "How many items shipped by REG AIR were ordered on March 22, 1995?", "pos": ["items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';"], "neg": ["DIVIDE(COUNT(c_custkey when n_name = 'GERMANY'), COUNT(c_custkey)) as percentage;", "clerk who have served the customer refers to o_clerk\n", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "r_comment = 'furiously express accounts wake sly';", "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'"]}} {"set": {"query": "What is the average supply cost for the part \"hot spring dodger dim light\"?", "pos": ["average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"], "neg": ["r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "customer name refers to c_name; the highest discount refers to max(l_discount)", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'"]}} {"set": {"query": "What is the discounted price of line item number 1?", "pos": ["discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); line item number 1 refers to l_linenumber = 1"], "neg": ["MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "items with the most quantity available refer to p_name where MAX(ps_availqty);", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));"]}} {"set": {"query": "How many orders of more than 10 items have been returned?", "pos": ["more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;"], "neg": ["orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "account is in debt if c_acctbal < 0;", "close to being out of stock refers to ps_availqty < 10", "part refers to p_name; Supplier#000000034 refers to s_name = 'Supplier#000000034'", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "Customer#000000013 is the name of the customer which refers to c_name;", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';"]}} {"set": {"query": "What was the order date of items with the highest total price?", "pos": ["the highest total price refers to MAX(o_totalprice);"], "neg": ["DIVIDE(COUNT(c_custkey where n_name = 'United States' and c_acctbal < 4000), COUNT(c_custkey where c_acctbal < 4000)) as percentage;", "phone number refers to c_phone; a total price of more than $300,000 refers to o_totalprice > 300000", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax)) WHERE o_clerk = 'Clerk#000000936', o_orderstatus = '4-NOT SPECIFIED', o_orderdate = '1995-03-13' AND l_shipmode = 'TRUCK';", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "\"Customer#000000055\" is the name of the customer which refers to c_name; nationality is the state of belonging to a particular country, therefore nationality refers to n_name;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "European suppliers refer to s_suppkey where r_name = 'EUROPE';"]}} {"set": {"query": "To which segment belongs the customer that made the most orders in April 1994?", "pos": ["segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));"], "neg": ["Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; percentage = divide(subtract(max(ps_supplycost), min(ps_supplycost)), min(ps_supplycost)) * 100%", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'", "instructed to be delivered in person refers to l_shipinstruct = 'DELIVER IN PERSON'", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name"]}} {"set": {"query": "List the comments describing orders from customers in the furniture segment.", "pos": ["comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'"], "neg": ["shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "region refers to r_name; the most customers refers to max(count(c_custkey))", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "supplier name refers to s_name; the highest retail price refers to max(p_retailprice)", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "supplier No.34 refers to s_suppkey = 34; country refers to n_name;", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "cost price refers to ps_supplycost; large burnished copper refers to p_type = 'LARGE BURNISHED COPPER'", "the names of countries with the below-average number of customers refer to n_name where COUNT(c_name) < DIVIDE(COUNT(c_name)), COUNT(n_name);"]}} {"set": {"query": "Among the parts shipped by rail on 1st December, 1995, list part names with 10% discount.", "pos": ["shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;"], "neg": ["more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "market segment refers to c_mktsegment; the highest amount of debt refers to max(c_acctbal)", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000"]}} {"set": {"query": "Please list the order comments of all the orders made by customers in the household segment.", "pos": ["orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;"], "neg": ["when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "nation refers to n_name; Europe refers to r_name = 'EUROPE'", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "the American region refers to r_name = 'America'; percentage = divide(count(n_name where r_name = 'America'), count(n_name)) * 100%", "line item number refers to l_linenumber; 10% off refers to l_discount = 0.1", "segment refers to c_mktsegment; name refers to c_name; address refers to c_address; phone number refers to c_phone; customer number 3 refers to c_custkey = 3", "nation refers to n_name; region refers to r_name; Customer#000000008 refers to c_name = 'Customer#000000008'"]}} {"set": {"query": "In which country do most of the customers come from?", "pos": ["country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));"], "neg": ["size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "customer name refers to c_name; the highest discount refers to max(l_discount)", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';"]}} {"set": {"query": "How many of the line items have been shipped by rail with a quantity less than 30?", "pos": ["shipped by rail refers to l_shipmode = 'RAIL'; quantity less than 30 refers to l_quantity < 30;"], "neg": ["DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "profit can be calculated as SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))); part which is most profitable refers to p_name where MAX(profit);", "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "order with the highest total price refers to MAX(o_totalprice);", "customer name refers to c_name; the highest discount refers to max(l_discount)", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "the biggest discount refers to max(l_discount); part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'"]}} {"set": {"query": "When was the latest date the items of order no.1 were shipped?", "pos": ["order no.1 refers to l_orderkey = 1; the latest date shipped refers to MAX(l_shipdate);"], "neg": ["name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "DIVIDE(COUNT(c_custkey where c_acctbal < 0), COUNT(c_custkey)) as percentage;", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "region refers to r_name; the most customers refers to max(count(c_custkey))", "average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "DIVIDE(SUM(l_discount), COUNT(l_partkey)) where p_mfgr = 'Manufacturer#5';", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "countries in the region of Asia refer to n_name where r_name = 'ASIA';"]}} {"set": {"query": "Among all the suppliers providing the part \"hot spring dodger dim light\", how many of them are in Europe?", "pos": ["part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'"], "neg": ["customer name refers to c_name; the highest discount refers to max(l_discount)", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "DIVIDE(COUNT(c_name where c_mktsegment = 'AUTOMOBILE' and n_name = 'FRANCE'), COUNT(c_name where n_name = 'FRANCE')) as percentage;", "region refers to r_name; the most customers refers to max(count(c_custkey))", "orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "customer refers to c_name; with debt refers to c_acctbal < 0", "Africa refers to r_name = 'Africa';", "p_type = 'MEDIUM PLATED BRASS'; parts name refer to p_name;", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "order no.4 refers to l_orderkey = 4; in debt refers to s_acctbal < 0"]}} {"set": {"query": "How many customers in the machinery segment are in debt?", "pos": ["machinery segment refers to c_mktsegment = 'MACHINERY'; in debt refers to c_acctbal < 0"], "neg": ["name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "automobile market segment refers to c_mktsegment = 'AUTOMOBILE';"]}} {"set": {"query": "List down the nation keys and names in Africa.", "pos": ["Africa refers to r_name = 'Africa';"], "neg": ["automobile market segment refers to c_mktsegment = 'AUTOMOBILE';", "AVG(l_linenumber) where l_shipdate between '1994-01-01' and '1994-01-30';", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "country name refers to n_name; building marketing segment refers to c_mktsegment = 'BUILDING'; account balance greater than 80% of the average account balance of all customers refers to c_acctbal > MULTIPLY(AVG(c_acctbal), 0.8);", "orders shipped in 1994 refer to l_orderkey where year(l_shipdate) = 1994;", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "more than 10 items have been returned refer to l_returnflag = 'R' where l_quantity > 10; orders refer to l_orderkey;", "name of the customer refers to c_name; o_clerk = 'Clerk#000000803'; order on 1997/12/10 refers to o_orderdate = '1997-12-10';"]}} {"set": {"query": "What is the supply cost of large plated tin?", "pos": ["supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'"], "neg": ["addresses refers to s_address; the biggest part refers to max(p_size)", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "Mozambique refers to n_name = 'MOZAMBIQUE'; low priority order refers to o_orderpriority = '5-LOW'", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "the highest amount of extended price refers to MAX(l_extendedprice);", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "urgent order refers to o_orderpriority = '1-URGENT'; Clerk#000000001 refers to o_clerk = 'Clerk#000000001'; 1997 refers to year(o_orderdate) = 1997"]}} {"set": {"query": "Of the orders with a lower delivery priority, how many have an urgent priority order?", "pos": ["an urgent priority order refers to o_orderkey where o_orderpriority = '1-URGENT'; earlier orderdate have higher priority in delivery; lower delivery priority refers to MAX(o_orderdate);"], "neg": ["name of the country refers to n_name; the highest debt refers to min(s_acctbal)", "earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "shipping method refers to l_shipmode; order on 12/31/1994 refers to o_orderdate = '1994-12-31'", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "customer name refers to c_name; number 93697 refers to o_custkey = 93697; total order price of 191918.92 refers to o_totalprice = 191918.92", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "name of the part refers to p_name; without discount refers to l_discount = 0.0000", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; the order is urgent if o_orderpriority = '1-URGENT' ;", "name of the customer refers to c_name; single order with the highest total price refers to MAX(o_totalprice) LIMIT 1;", "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));"]}} {"set": {"query": "Among the providers in Argentina, which supplier has an account that is in debt?", "pos": ["Argentina refers to n_name = 'ARGENTINA'; supplier refers to s_name; an account in debt refers to s_acctbal < 0"], "neg": ["comment refers to o_comment; furniture segment refers to c_mktsegment = 'FURNITURE'", "r_comment = 'furiously express accounts wake sly';", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD'; order comments refer to o_comment;", "mode of shipping refers to l_shipmode; part \"burnished seashell gainsboro navajo chocolate\" refers to p_name = 'burnished seashell gainsboro navajo chocolate'", "total price = sum(o_totalprice); phone number \"627-220-3983\" refers to c_phone = '627-220-3983'", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "size refers to p_size; \"pink powder drab lawn cyan\" or \"cornflower sky burlywood green beige\" refers to p_name in ('pink powder drab lawn cyan', 'cornflower sky burlywood green beige')", "order key refers to l_orderkey; not applied for the discount refers to l_discount = 0", "Customer#000000013 is the name of the customer which refers to c_name;", "total quantity refers to sum(l_quantity); customer 101660 refers to o_custkey = 101660; on 10/5/1995 refers to o_orderdate = '1995-10-05'"]}} {"set": {"query": "What are the names of the parts manufactured by manufacturer 3 that have a supply cost of 1,000?", "pos": ["names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;"], "neg": ["orders refer to o_orderkey; the United States is the name of the nation which refers to n_name = 'UNITED STATES';", "average supply cost refers to avg(ps_supplycost); part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "part refers to p_name; supplier refers to s_name; the most profit refers to max(subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity)))", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'chocolate floral blue coral cyan';", "r_comment = 'asymptotes sublate after the r'; countries refer to n_nationkey;", "clerk who have served the customer refers to o_clerk\n", "name of customer refers to c_name; account in debt refers to c_acctbal < 0", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "\"Customer#000000055\" is the name of the customer which refers to c_name; region name refers to r_name;"]}} {"set": {"query": "Please list the names of all the suppliers for the part \"hot spring dodger dim light\".", "pos": ["supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"], "neg": ["part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "brand refers to p_brand; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "shipped by rail on 1st December, 1995 refers to l_shipmode = 'RAIL' where l_shipdate = '1995-12-01'; part names with 10% discount refer to p_name where l_discount = 0.1;", "customers refer to c_custkey; Morocco is the name of the nation which refers to n_name = 'MOROCCO'; in debt refers to c_acctbal < 0;", "names of the parts refer to p_name; manufacturer 3 refers to p_mfgr = 'Manufacturer#3'; ps_supplycost = 1000;", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "European suppliers refer to s_suppkey where r_name = 'EUROPE';", "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));"]}} {"set": {"query": "Please indicate the names of the customers whose order with a total price over $300000.", "pos": ["customer name refers to c_name; a total price over $300000 refers to o_totalprice > 300000"], "neg": ["earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "customer name refers to c_name; India refers to n_name = 'INDIA'; account balance over $5000 refers to c_acctbal > 5000", "orders with a total price between 200000 and 300000 refer to o_totalprice between 200000 and 300000;", "customer refers to c_name; with debt refers to c_acctbal < 0", "line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "discounted price refers to multiply(l_extendedprice, subtract(1, l_discount)); customer 111511 refers to o_custkey = 111511; order 53159 refers to o_orderkey = 53159; name of the part refers to p_name", "SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where l_shipmode = 'AIR' and l_shipinstruct = 'NONE';", "the name of the customer refers to c_name; phone number of the customer refers to c_phone; have more than 9000 account balance refers to c_acctbal > 9000;", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000"]}} {"set": {"query": "How many line items were returned in 1998?", "pos": ["line item refers to l_linenumber; returned refers to returnflag = 'R'; in 1998 refers to year(l_shipdate) = 1998"], "neg": ["earlier orderdate have higher priority in delivery; which order no. 4 or order no. 36 refers to o_orderkey in (4, 36) where MIN(o_orderdate);", "segment refers to c_mktsegment; customer made the most orders in April 1994 refers to c_custkey where o_orderdate LIKE '1994-04-%' and MAX(COUNT(o_orderkey));", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "DIVIDE(COUNT(p_partkey where p_mfgr = 'Manufacturer#3'), COUNT(p_partkey)) as percentage;", "when shipped refers to l_shipdate; the highest amount of total price refers to MAX(o_totalprice);", "suppliers refer to s_nationkey; Japan is the name of the nation which refers to n_name = 'JAPAN';", "Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "DIVIDE(COUNT(n_name where r_name = 'EUROPE'), COUNT(n_name)) as percentage;"]}} {"set": {"query": "What is the comment of the order with the highest total price?", "pos": ["the highest total price refers to MAX(o_totalprice); comment of the order refers to o_comment;"], "neg": ["phone numbers refer to c_phone; Brazil is the name of the nation which refers to n_name = 'BRAZIL'; household segment refers to c_mktsegment = 'HOUSEHOLD';", "supply cost refers to ps_supplycost; part \"violet olive rose ivory sandy\" refers to p_name = 'violet olive rose ivory sandy'", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "close to being out of stock refers to ps_availqty < 10", "the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;", "part no.98768 refers to l_partkey = 98768; order no.1 refers to l_orderkey = 1; profit = subtract(multiply(l_extendedprice, subtract(1, l_discount)), multiply(ps_supplycost, l_quantity))", "the highest total price refers to MAX(o_totalprice);", "Brazil is the name of the nation which refers to n_name = 'BRAZIL'", "phone number refers to c_phone; order priority is urgent refers to o_orderpriority = '1-URGENT'"]}} {"set": {"query": "Among all the parts under the type \"promo brushed steel\", how many of them have a total available quantity from all suppliers of under 5000?", "pos": ["type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; a total available quantity of under 5000 refers to sum(ps_availqty) < 5000"], "neg": ["account is in debt if c_acctbal < 0;", "Customer#000000013 is the name of the customer which refers to c_name;", "Germany is the name of the nation which refers to n_name = 'GERMANY'; account balance of over 1000 refers to c_acctbal > 1000;", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "items Customer#000021159 order refer to l_linenumber where c_name = 'Customer#000021159'; SUM(MULTIPLY(MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)), SUM(1, l_tax))) where c_name = 'Customer#000021159';", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "supplier name refers to s_name; part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'", "SUBTRACT(DIVIDE(SUM(p_retailprice where l_shipmode = 'SHIP'), COUNT(l_shipmode = 'SHIP')), DIVIDE(SUM(p_retailprice where l_shipmode = 'AIR'), COUNT(l_shipmode = 'AIR')));", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'"]}} {"set": {"query": "Among the customers from the United States, which market segment has the highest number of customers?", "pos": ["the highest number of customers refer to MAX(COUNT(c_custkey)); the United States is the name of the nation which refers to n_name = 'UNITED STATES'; market segment refers to c_mktsegment;"], "neg": ["1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "order number refers to l_orderkey; the lowest price after applying the discount refers to MIN(MULTIPLY(l_extendedprice), SUBTRACT(1, l_discount));", "a retail price of over 1900 refers to p_retailprice > 1900", "part \"hot spring dodger dim light\" refers to p_name = hot spring dodger dim light; Europe refers to r_name = 'EUROPE'", "products refer to l_partkey; retail price greater than 1,000 refers to p_retailprice > 1000; shipped via ship refers to l_shipmode = 'SHIP';", "countries in the region of Asia refer to n_name where r_name = 'ASIA';", "MULTIPLY(l_extendedprice, SUBTRACT(1, l_discount)) where o_totalprice = 231499.38 AND l_suppkey = 9397;", "DIVIDE(SUM(l_extendedprice), 10) where MAX(o_totalprice);", "account is in debt if s_acctbal < 0; DIVIDE(COUNT(s_acctbal < 0 where n_name = 'JAPAN'), COUNT(s_name where n_name = 'JAPAN')) as percentage;", "part \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'"]}} {"set": {"query": "How many customers are there in India?", "pos": ["customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';"], "neg": ["country refers to n_name; most of the customers refer to MAX(COUNT(c_custkey));", "quantity greater than 40 refers to l_quantity > 40; shipped by air refers to l_shipmode = 'AIR'", "type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'; Manufacturer#5 refers to p_mfgr = 'Manufacturer#5'", "close to being out of stock refers to ps_availqty < 10", "DIVIDE(COUNT(s_suppkey where n_name = 'GERMANY'), COUNT(s_suppkey)) as percentage;", "returned refer to l_returnflag = 'R'; order no.5 refers to l_orderkey = 5; kinds of items refer to l_linenumber;", "1998 refers to year(o_orderdate) = '1998'; a total price under 950 refers to o_totalprice < 950", "orders in household segment refer to o_orderkey where c_mktsegment = 'HOUSEHOLD';", "account is in debt if c_acctbal < 0; Moroccan customers refer to c_name WHERE n_name = 'MOROCCO';", "the most number refers to max(ps_availqty); \"hot spring dodger dim light\" refers to p_name = 'hot spring dodger dim light'; phone number refers to s_phone"]}} {"set": {"query": "How many customers are in debt?", "pos": ["customers are in debt refer to c_custkey where c_acctbal < 0;"], "neg": ["household segment refers to c_mktsegment = 'household'; Germany refers to n_name = 'Germany'", "items shipped by REG AIR refer to l_linenumber where l_shipmode = 'REG AIR'; ordered on March 22, 1995 refers to o_orderdate = '1995-03-22';", "supply cost refers to ps_supplycost; large plated tin refers to p_type = 'large plated tin'", "country is nation name which refers to n_name; Africa is region name refers to r_name = 'Africa'", "SUBTRACT(MULTIPLY(l_extendedprice, (SUBTRACT(1, l_discount)), MULTIPLY(ps_supplycost, l_quantity))) where p_name = 'smoke turquoise purple blue salmon' and l_receiptdate = '1996-05-07' and l_shipinstruct = 'DELIVER IN PERSON';", "customers refer to c_custkey; India is the name of the nation which refers to n_name = 'INDIA';", "close to being out of stock refers to ps_availqty < 10", "total price = sum(o_totalprice); Argentina refers to n_name = 'Argentina'", "product name refers to p_name; type \"promo brushed steel\" refers to p_type = 'PROMO BRUSHED STEEL'", "Germany is nation name which refers to n_name = 'GERMANY'; comment with 'carefully regular packages' refers to s_comment LIKE 'carefully regular packages%'"]}} {"set": {"query": "Calculate the percentage of sold blades in the total number of transactions.", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;"], "neg": ["types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "most sold refers to MAX(Quantity);", "total quantity = SUM(Quantity); gifts refers to Price = 0;", "Mountain-100 Silver, 38' is name of product;", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "free gifts refers to Price = 0;", "revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"]}} {"set": {"query": "Which product has the highest total amount of quantity sold? Calculate its overall total price.", "pos": ["highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));"], "neg": ["below the average quantity refers to Quantity < AVG(Quantity);", "name starting with alphabet \"c\" refers to Name LIKE 'C%';", "free gifts refers to Price = 0;", "most common last name refers to MAX(COUNT(LastName));", "Hex Nut 9' is name of product;", "most sold refers to MAX(Quantity);", "price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "id refers to SalesPersonID; SalesPersonID = 10", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;"]}} {"set": {"query": "What is the full name of employee who sold 1000 units?", "pos": ["full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100"], "neg": ["average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;", "id refers to SalesPersonID; SalesPersonID = 10", "Flat Washer 8' is name of product;", "highest quantity refers to MAX(Quantity);", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "sales transactions refers to SalesID;", "quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);", "most expensive product refers to MAX(Price);", "most quantity refers to MAX(Quantity);", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;"]}} {"set": {"query": "What is the name of the product that is most sold by sale person id 20?", "pos": ["most sold refers to MAX(Quantity);"], "neg": ["full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;", "total quantity = SUM(Quantity); gifts refers to Price = 0;", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);", "full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "Hex Nut 9' is name of product;", "full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"]}} {"set": {"query": "Calculate the total sales ids that were sales of Flat Washer 8.", "pos": ["Flat Washer 8' is name of product;"], "neg": ["Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);", "total quantity = SUM(Quantity); gifts refers to Price = 0;", "full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "Hex Nut 9' is name of product;", "full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);", "most quantity refers to MAX(Quantity);", "highest quantity refers to MAX(Quantity);", "Chainring Bolts' is name of product;", "top 5 products in terms of Price refers to MAX(Price) LIMIT 5;"]}} {"set": {"query": "List the customer's ID and last name of the customer that purchased a product with a quantity greater than 90% of the average quantity of all listed products.", "pos": ["quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);"], "neg": ["total amount of sales = SUM(MULTIPLY(Quantity, Price));", "most expensive product refers to MAX(Price);", "total quantity = SUM(Quantity); gifts refers to Price = 0;", "full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);", "IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "sales transactions refers to SalesID;", "most quantity refers to MAX(Quantity);", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));"]}} {"set": {"query": "Calculate the total quantity of products with name starting with alphabet \"c\".", "pos": ["name starting with alphabet \"c\" refers to Name LIKE 'C%';"], "neg": ["full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "trading quantity for more than 500 refers to Quantity > 500;", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "total amount of sales = SUM(MULTIPLY(Quantity, Price));", "highest quantity refers to MAX(Quantity);", "id refers to SalesPersonID; SalesPersonID = 10", "full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "most common last name refers to MAX(COUNT(LastName));"]}} {"set": {"query": "Name the customers who received 'Touring Rim' as a free gift.", "pos": ["name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;"], "neg": ["IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "ML Road Frame-W - Yellow, 40' is name of product;", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "highest quantity refers to MAX(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "highest quantity refers to MAX(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;", "average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;", "highest quantity refers to MAX(Quantity);"]}} {"set": {"query": "Among the products that have price ranges from 100 to 150, what is the customer ID and sales ID of the product with a quantity lower than 25?", "pos": ["price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;"], "neg": ["average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;", "quantity is more than 950 refers to Quantity > 950;", "highest quantity refers to MAX(Quantity);", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100", "most common last name refers to MAX(COUNT(LastName));", "Mountain-100 Silver, 38' is name of product;", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "most quantity refers to MAX(Quantity);"]}} {"set": {"query": "Among the products with product ID lower than 15, how many of them costs 10 and below?", "pos": ["product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;"], "neg": ["Hex Nut 9' is name of product;", "trading quantity for more than 500 refers to Quantity > 500;", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;", "External Lock Washer 7' is name of product;", "Flat Washer 8' is name of product;", "ML Road Frame-W - Yellow, 40' is name of product;", "highest quantity refers to MAX(Quantity);", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "most common last name refers to MAX(COUNT(LastName));"]}} {"set": {"query": "Give the full name of the employee who has sold the most quantity.", "pos": ["full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);"], "neg": ["highest quantity refers to MAX(Quantity);", "most common last name refers to MAX(COUNT(LastName));", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;", "Chainring Bolts' is name of product;", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;", "External Lock Washer 7' is name of product;", "highest quantity refers to MAX(Quantity);", "free gifts refers to Price = 0;", "full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;"]}} {"set": {"query": "Name the product that sold the most quantity.", "pos": ["most quantity refers to MAX(Quantity);"], "neg": ["price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;", "Flat Washer 8' is name of product;", "IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "below the average quantity refers to Quantity < AVG(Quantity);", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;", "id refers to SalesPersonID; SalesPersonID = 10", "most sold refers to MAX(Quantity);", "revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"]}} {"set": {"query": "Find and list the products that sold below the average quantity.", "pos": ["below the average quantity refers to Quantity < AVG(Quantity);"], "neg": ["highest quantity refers to MAX(Quantity);", "highest quantity refers to MAX(Quantity);", "most common last name refers to MAX(COUNT(LastName));", "full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;", "ML Road Frame-W - Yellow, 40' is name of product;", "Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "most quantity refers to MAX(Quantity);", "most expensive product refers to MAX(Price);", "quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);"]}} {"set": {"query": "What is the full name of the customer who purchased the highest amount of total price in a single purchase?", "pos": ["full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));"], "neg": ["most expensive product refers to MAX(Price);", "Chainring Bolts' is name of product;", "most common last name refers to MAX(COUNT(LastName));", "IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;", "full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;", "External Lock Washer 7' is name of product;", "ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);", "full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;", "name starting with alphabet \"c\" refers to Name LIKE 'C%';"]}} {"set": {"query": "List down product names of free gifts.", "pos": ["free gifts refers to Price = 0;"], "neg": ["total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "quantity is more than 950 refers to Quantity > 950;", "most expensive product refers to MAX(Price);", "IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100", "sales transactions refers to SalesID;", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "Hex Nut 9' is name of product;", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);"]}} {"set": {"query": "How many chainring bolts were sold under sales ID 551971?", "pos": ["Chainring Bolts' is name of product;"], "neg": ["most sold refers to MAX(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "most common last name refers to MAX(COUNT(LastName));", "full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);", "highest quantity refers to MAX(Quantity);", "total amount of sales = SUM(MULTIPLY(Quantity, Price));", "External Lock Washer 7' is name of product;"]}} {"set": {"query": "How many employees sold \"ML Road Frame-W - Yellow, 40\"?", "pos": ["ML Road Frame-W - Yellow, 40' is name of product;"], "neg": ["full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;", "highest quantity refers to MAX(Quantity);", "Chainring Bolts' is name of product;", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "total quantity = SUM(Quantity); gifts refers to Price = 0;", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);"]}} {"set": {"query": "Calculate the total price for products from id 400 to 500.", "pos": ["total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;"], "neg": ["Hex Nut 9' is name of product;", "most expensive product refers to MAX(Price);", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "Flat Washer 8' is name of product;", "External Lock Washer 7' is name of product;", "highest quantity refers to MAX(Quantity);", "below the average quantity refers to Quantity < AVG(Quantity);", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "total quantity = SUM(Quantity); gifts refers to Price = 0;"]}} {"set": {"query": "Among customers named Kate, who has the highest quantity?", "pos": ["highest quantity refers to MAX(Quantity);"], "neg": ["first ten sales refers to SalesID BETWEEN 1 AND 10;", "Chainring Bolts' is name of product;", "quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "highest quantity refers to MAX(Quantity);", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;", "highest quantity refers to MAX(Quantity);"]}} {"set": {"query": "List the first names of employees with trading quantity for more than 500.", "pos": ["trading quantity for more than 500 refers to Quantity > 500;"], "neg": ["quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);", "most expensive product refers to MAX(Price);", "most common last name refers to MAX(COUNT(LastName));", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;", "name starting with alphabet \"c\" refers to Name LIKE 'C%';", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;", "sales transactions refers to SalesID;"]}} {"set": {"query": "List the sales ID of the product with a quantity of 590 and named \"External Lock Washer 7\".", "pos": ["External Lock Washer 7' is name of product;"], "neg": ["first ten sales refers to SalesID BETWEEN 1 AND 10;", "top 5 products in terms of Price refers to MAX(Price) LIMIT 5;", "full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100", "highest quantity refers to MAX(Quantity);", "free gifts refers to Price = 0;", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "most common last name refers to MAX(COUNT(LastName));", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "highest quantity refers to MAX(Quantity);", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;"]}} {"set": {"query": "How much is the total amount of sales handled by Heather McBadden?", "pos": ["total amount of sales = SUM(MULTIPLY(Quantity, Price));"], "neg": ["Mountain-100 Silver, 38' is name of product;", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "Flat Washer 8' is name of product;", "average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;", "name starting with alphabet \"c\" refers to Name LIKE 'C%';", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;", "ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;"]}} {"set": {"query": "Tally the product name and quantity of the first ten sales.", "pos": ["first ten sales refers to SalesID BETWEEN 1 AND 10;"], "neg": ["most sold refers to MAX(Quantity);", "highest quantity refers to MAX(Quantity);", "total amount of sales = SUM(MULTIPLY(Quantity, Price));", "most expensive product refers to MAX(Price);", "Mountain-100 Silver, 38' is name of product;", "quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;", "free gifts refers to Price = 0;", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"]}} {"set": {"query": "How many types of \"HL Touring Frames\" are there?", "pos": ["types of HL Touring Frames refers to Name like '%HL Touring Frame%';"], "neg": ["first ten sales refers to SalesID BETWEEN 1 AND 10;", "full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);", "below the average quantity refers to Quantity < AVG(Quantity);", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "free gifts refers to Price = 0;", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "Mountain-100 Silver, 38' is name of product;", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;", "sales transactions refers to SalesID;"]}} {"set": {"query": "List the product ID of the top five products, by descending order, in terms of price.", "pos": ["top 5 products in terms of Price refers to MAX(Price) LIMIT 5;"], "neg": ["total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "first ten sales refers to SalesID BETWEEN 1 AND 10;", "trading quantity for more than 500 refers to Quantity > 500;", "ML Road Frame-W - Yellow, 40' is name of product;", "quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "highest quantity refers to MAX(Quantity);", "free gifts refers to Price = 0;", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';"]}} {"set": {"query": "How many customer ids have purchased Hex Nut 9?", "pos": ["Hex Nut 9' is name of product;"], "neg": ["full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "free gifts refers to Price = 0;", "name starting with alphabet \"c\" refers to Name LIKE 'C%';", "quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;", "Mountain-100 Silver, 38' is name of product;", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "ML Road Frame-W - Yellow, 40' is name of product;", "full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "first ten sales refers to SalesID BETWEEN 1 AND 10;"]}} {"set": {"query": "How many \"Mountain-100 Silver, 38\" were sold by Stearns MacFeather?", "pos": ["Mountain-100 Silver, 38' is name of product;"], "neg": ["full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "most common last name refers to MAX(COUNT(LastName));", "highest quantity refers to MAX(Quantity);", "most quantity refers to MAX(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "id refers to SalesPersonID; SalesPersonID = 10", "Flat Washer 8' is name of product;"]}} {"set": {"query": "How many \"Mountain-500 Black 42\" were sold in total?", "pos": ["Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);"], "neg": ["most quantity refers to MAX(Quantity);", "sales transactions refers to SalesID;", "quantity is more than 950 refers to Quantity > 950;", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "total quantity = SUM(Quantity); gifts refers to Price = 0;", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "most sold refers to MAX(Quantity);", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;", "Hex Nut 9' is name of product;"]}} {"set": {"query": "List down the product name for products from id 1 to 10.", "pos": ["products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;"], "neg": ["full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "id refers to SalesPersonID; SalesPersonID = 10", "full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "first ten sales refers to SalesID BETWEEN 1 AND 10;", "highest quantity refers to MAX(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;"]}} {"set": {"query": "Write down the name of products whose sale quantity is more than 950.", "pos": ["quantity is more than 950 refers to Quantity > 950;"], "neg": ["most expensive product refers to MAX(Price);", "ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);", "highest quantity refers to MAX(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);", "name starting with alphabet \"c\" refers to Name LIKE 'C%';", "highest quantity refers to MAX(Quantity);", "Flat Washer 8' is name of product;", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;"]}} {"set": {"query": "List down all of the sales IDs for sales handled by sales people with first name starting with alphabet \"s\".", "pos": ["first name starting with alphabet \"s\" refers to FirstName LIKE 's%';"], "neg": ["most expensive product refers to MAX(Price);", "full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;", "free gifts refers to Price = 0;", "most common last name refers to MAX(COUNT(LastName));", "Mountain-100 Silver, 38' is name of product;", "full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "trading quantity for more than 500 refers to Quantity > 500;", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;"]}} {"set": {"query": "What is the average price of products that cost between 100 and 200?", "pos": ["average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;"], "neg": ["full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "first ten sales refers to SalesID BETWEEN 1 AND 10;", "IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "trading quantity for more than 500 refers to Quantity > 500;", "name starting with alphabet \"c\" refers to Name LIKE 'C%';", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "highest quantity refers to MAX(Quantity);", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;"]}} {"set": {"query": "Among customers with IDs from 1 to 100, what is the highest price of products they purchased?", "pos": ["IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "first ten sales refers to SalesID BETWEEN 1 AND 10;", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "most sold refers to MAX(Quantity);", "highest quantity refers to MAX(Quantity);", "total amount of sales = SUM(MULTIPLY(Quantity, Price));", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;", "total quantity = SUM(Quantity); gifts refers to Price = 0;", "External Lock Washer 7' is name of product;"]}} {"set": {"query": "List the full names of customers who have purchased products in quantity over 600.", "pos": ["full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;"], "neg": ["most common last name refers to MAX(COUNT(LastName));", "full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "sales transactions refers to SalesID;", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;", "full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100", "ML Road Frame-W - Yellow, 40' is name of product;", "highest quantity refers to MAX(Quantity);", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;"]}} {"set": {"query": "What is the total cost of all the \"Road-650, Red, 60\" products that Abraham E. Bennet sold?", "pos": ["total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;", "trading quantity for more than 500 refers to Quantity > 500;", "name starting with alphabet \"c\" refers to Name LIKE 'C%';", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "top 5 products in terms of Price refers to MAX(Price) LIMIT 5;", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;", "first ten sales refers to SalesID BETWEEN 1 AND 10;", "most common last name refers to MAX(COUNT(LastName));"]}} {"set": {"query": "Calculate the revenue produced through sales of HL Road Frame - Red, 56.", "pos": ["revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;"], "neg": ["sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "highest quantity refers to MAX(Quantity);", "most expensive product refers to MAX(Price);", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;", "Chainring Bolts' is name of product;", "average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;", "full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "name starting with alphabet \"c\" refers to Name LIKE 'C%';"]}} {"set": {"query": "Give the full name of the customer who bought the most amount of products.", "pos": ["full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));"], "neg": ["full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "highest quantity refers to MAX(Quantity);", "below the average quantity refers to Quantity < AVG(Quantity);", "highest quantity refers to MAX(Quantity);", "total amount of sales = SUM(MULTIPLY(Quantity, Price));", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;", "highest quantity refers to MAX(Quantity);", "Chainring Bolts' is name of product;", "most expensive product refers to MAX(Price);", "average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;"]}} {"set": {"query": "How many customers share the most common last name?", "pos": ["most common last name refers to MAX(COUNT(LastName));"], "neg": ["total amount of sales = SUM(MULTIPLY(Quantity, Price));", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;", "Chainring Bolts' is name of product;", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "trading quantity for more than 500 refers to Quantity > 500;", "total quantity = SUM(Quantity); gifts refers to Price = 0;", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "Flat Washer 8' is name of product;"]}} {"set": {"query": "List the full name of customers who spend more than 50,000 in descending order the amount spend.", "pos": ["full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;"], "neg": ["name starting with alphabet \"c\" refers to Name LIKE 'C%';", "highest quantity refers to MAX(Quantity);", "most expensive product refers to MAX(Price);", "average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "total amount of sales = SUM(MULTIPLY(Quantity, Price));", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "total quantity = SUM(Quantity); gifts refers to Price = 0;", "External Lock Washer 7' is name of product;", "top 5 products in terms of Price refers to MAX(Price) LIMIT 5;"]}} {"set": {"query": "Find and list the full name of customers who bought products above-average quantity.", "pos": ["full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);"], "neg": ["quantity is more than 950 refers to Quantity > 950;", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "most common last name refers to MAX(COUNT(LastName));", "free gifts refers to Price = 0;", "sales transactions refers to SalesID;", "Flat Washer 8' is name of product;", "id refers to SalesPersonID; SalesPersonID = 10", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;", "most expensive product refers to MAX(Price);", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;"]}} {"set": {"query": "How many sales transactions were given by the customer named Joe L. Lopez?", "pos": ["sales transactions refers to SalesID;"], "neg": ["types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "name starting with alphabet \"c\" refers to Name LIKE 'C%';", "full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100", "most quantity refers to MAX(Quantity);", "Mountain-100 Silver, 38' is name of product;", "first ten sales refers to SalesID BETWEEN 1 AND 10;", "Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;", "quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;"]}} {"set": {"query": "Among all the customers who have purchased ML Bottom Bracket, identify the percentage of sales by Albert I. Ringer?", "pos": ["ML Bottom Bracket' is name of product; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE FirstName = 'Albert' AND MiddleInitial = 'I' AND LastName = 'Ringer'), COUNT(CustomerID)), 1.0);"], "neg": ["full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "trading quantity for more than 500 refers to Quantity > 500;", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;", "Flat Washer 8' is name of product;", "name starting with alphabet \"c\" refers to Name LIKE 'C%';", "quantity is more than 950 refers to Quantity > 950;", "full name of the customer = FirstName, MiddleInitial, LastName; more than 50,000 in the amount refers to MULTIPLY(Quantity, Price) > 50000;"]}} {"set": {"query": "Calculate the total quantity of products that are gifts.", "pos": ["total quantity = SUM(Quantity); gifts refers to Price = 0;"], "neg": ["ML Road Frame-W - Yellow, 40' is name of product;", "highest quantity refers to MAX(Quantity);", "highest quantity refers to MAX(Quantity);", "IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100", "Mountain-100 Silver, 38' is name of product;", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);"]}} {"set": {"query": "Among customers with the last name of Valdez, who purchased the highest quantity?", "pos": ["highest quantity refers to MAX(Quantity);"], "neg": ["Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);", "most quantity refers to MAX(Quantity);", "quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);", "top 5 products in terms of Price refers to MAX(Price) LIMIT 5;", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;", "trading quantity for more than 500 refers to Quantity > 500;", "revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "Flat Washer 8' is name of product;", "most expensive product refers to MAX(Price);"]}} {"set": {"query": "List the full name of the customer who purchased the most quantity of products.", "pos": ["full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);"], "neg": ["name starting with alphabet \"c\" refers to Name LIKE 'C%';", "full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "total price = SUM(MULTIPLY(Price, Quantity)); from id 400 to 500 refers to ProductID BETWEEN 400 AND 500;", "below the average quantity refers to Quantity < AVG(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; above-average quantity = Quantity > AVG(Quantity);", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "External Lock Washer 7' is name of product;"]}} {"set": {"query": "What is the name of the most expensive product?", "pos": ["most expensive product refers to MAX(Price);"], "neg": ["Chainring Bolts' is name of product;", "Mountain-500 Black 42' is name of product; sold in total = SUM(Quantity);", "highest quantity refers to MAX(Quantity);", "full names of customers = FirstName, LastName; quantity over 600 refers to quantity > 600;", "trading quantity for more than 500 refers to Quantity > 500;", "highest quantity refers to MAX(Quantity);", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;", "total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);"]}} {"set": {"query": "Among the sales ID ranges from 1 to 200, what is the percentage of the products with a price ranging from 200 to 300?", "pos": ["sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);"], "neg": ["full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;", "free gifts refers to Price = 0;", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "total amount of sales = SUM(MULTIPLY(Quantity, Price));", "percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Name = 'Blade'), SUM(Quantity)), 1.0); 'blades' refers to name of product;", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';", "top 5 products in terms of Price refers to MAX(Price) LIMIT 5;", "full name of employee = FirstName, MiddleInitial, LastName; units refers to quantity; Quantity = 100", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;"]}} {"set": {"query": "List down all of the product names that were placed by sales person with id 10.", "pos": ["id refers to SalesPersonID; SalesPersonID = 10"], "neg": ["IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "Chainring Bolts' is name of product;", "highest quantity refers to MAX(Quantity);", "full name of the employee = FirstName, LastName; most quantity refers to MAX(Quantity);", "quantity is more than 950 refers to Quantity > 950;", "price ranges from 100 to 150 refers to Price BETWEEN 100 AND 150; quantity lower than 25 refers to Quantity < 25;", "highest quantity refers to MAX(Quantity);", "Hex Nut 9' is name of product;", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;", "types of HL Touring Frames refers to Name like '%HL Touring Frame%';"]}} {"set": {"query": "Calculate the quantity percentage of the gift products in the total trading quantity.", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(Quantity WHERE Price = 0), SUM(Quantity)), 1.0); gift products refers to Price = 0;"], "neg": ["quantity greater than 90% of the average quantity = Quantity > MULTIPLY(AVG(Quantity), 0.9);", "sales transactions refers to SalesID;", "full name of the customer = FirstName, MiddleInitial, LastName; most amount of products refers to MAX(MULTIPLY(Quantity, Price));", "products from id 1 to 10 refers to ProductID BETWEEN 1 AND 10;", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "most sold refers to MAX(Quantity);", "full name of the customer = FirstName, MiddleInitial, LastName; highest amount of total price refers to MAX(MULTIPLY(Quantity, Price));", "trading quantity for more than 500 refers to Quantity > 500;", "IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "most expensive product refers to MAX(Price);"]}} {"set": {"query": "List down the product id for products with the highest quantity.", "pos": ["highest quantity refers to MAX(Quantity);"], "neg": ["ML Road Frame-W - Yellow, 40' is name of product;", "first name starting with alphabet \"s\" refers to FirstName LIKE 's%';", "top 5 products in terms of Price refers to MAX(Price) LIMIT 5;", "average price = DIVIDE(SUM(Price, COUNT(Price))); cost refers to Price; Price BETWEEN 100 AND 200;", "most quantity refers to MAX(Quantity);", "full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "total amount of sales = SUM(MULTIPLY(Quantity, Price));", "name of the customer = FirstName, MiddleInitial, LastName; 'Touring Rim' is name of product;", "revenue = MULTIPLY(SUM(Quantity, Price)); 'HL Road Frame - Red, 56' is name of product;", "free gifts refers to Price = 0;"]}} {"set": {"query": "Among products bought by Kathryn Ashe, what is the name of the product with the highest quantity?", "pos": ["highest quantity refers to MAX(Quantity);"], "neg": ["total cost = SUM(MULTIPLY(Quantity, Price)); 'Road-650, Red, 60' is name of product;", "sales ID ranges from 1 to 200 refers to SalesID between 1 and 200; percentage = MULTIPLY(DIVIDE(SUM(Price between 200 and 300), COUNT(Price)), 1.0);", "most quantity refers to MAX(Quantity);", "full name of the customer = FirstName, LastName; most quantity refers to MAX(Quantity);", "product ID lower than 15 refers to ProductID < 15; costs 10 and below refers to Price; Price < = 10;", "total amount of sales = SUM(MULTIPLY(Quantity, Price));", "highest total amount of quantity refers to MAX(Quantity); overall total price = SUM(MULTIPLY(Quantity, Price));", "IDs from 1 to 100 refers to CustomerID BETWEEN 1 AND 100 ; highest price refers to MAX(Price);", "quantity is more than 950 refers to Quantity > 950;", "free gifts refers to Price = 0;"]}} {"set": {"query": "Tell the temperature range of the home weather station of store no.7 on 2014/4/28.", "pos": ["store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)"], "neg": ["store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel", "store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb", "most windy station refers to Max(avgspeed)", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))", "no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))", "store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0"]}} {"set": {"query": "State the number of stores that belongs to the weather station which recorded the deepest snowfall.", "pos": ["deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr"], "neg": ["no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'", "sunrise before 5 Am refers to sunrise < time ('5:00:00')", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "most windy station refers to Max(avgspeed)", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr"]}} {"set": {"query": "How many units of item no.5 were sold in store no.3 on the day the temperature range was the biggest?", "pos": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; when the temperature range was the biggest refers to Max(Subtract(tmax, tmin))"], "neg": ["item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'", "snow fell more than 5 inches refers to snowfall > 5", "item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'", "in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'"]}} {"set": {"query": "How many items weren't sold in store 2 on 1/1/2012?", "pos": ["store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'"], "neg": ["on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);\u00a0 station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1", "minimum dew point refers to Min(dewpoint)", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "sunrise before 5 Am refers to sunrise < time ('5:00:00')", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))", "store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100"]}} {"set": {"query": "How many inches of total precipitation was recorded by the weather station of store no.2 on 2012/12/25?", "pos": ["store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal"], "neg": ["sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure", "item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "most windy station refers to Max(avgspeed)", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))"]}} {"set": {"query": "Which weather station does store no.20 belong to?", "pos": ["store no.20 refers to store_nbr = 20; weather station refers to station_nbr"], "neg": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; when the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure", "station number refers to station_nbr; store 17 refers to store_nbr = 17", "store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'", "store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb"]}} {"set": {"query": "In March 2014, which weather stations recorded the highest number of days whose temperature is below the 30-year normal?", "pos": ["in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))"], "neg": ["store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'", "item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))", "in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);\u00a0 station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'", "snow fell more than 5 inches refers to snowfall > 5"]}} {"set": {"query": "How many units of item no.5 were sold in store no.3 on average on the days when the max temperature exceeded 90?", "pos": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))"], "neg": ["thickest snowfall refers to Max(snowfall); item refers to item_nbr", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'", "station no.9 refers to station_nbr = 9; on 2014/1/15 refers to date = '2014/01/15'; result wind speed refers to resultspeed", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr", "store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'", "store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4", "sunrise before 5 Am refers to sunrise < time ('5:00:00')"]}} {"set": {"query": "Show the sea level status recorded by the weather station of store no.19 on 2013/2/24.", "pos": ["store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel"], "neg": ["store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb", "sunrise before 5 Am refers to sunrise < time ('5:00:00')", "store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'", "station number refers to station_nbr; store 17 refers to store_nbr = 17", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr", "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))", "station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)"]}} {"set": {"query": "What is the earliest sunrise recorded in the stations with no more than 1 store in February 2012?", "pos": ["in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);\u00a0 station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1"], "neg": ["during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))", "minimum dew point refers to Min(dewpoint)", "store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; with a total precipitation of over 0.05 refers to preciptotal > 0.05", "sunrise before 5 Am refers to sunrise < time ('5:00:00')", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal"]}} {"set": {"query": "What is the most purchased products during the rainy days in June 2013 in weather station 9?", "pos": ["most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr"], "neg": ["store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))", "in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);\u00a0 station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1"]}} {"set": {"query": "What is the maximum and minimum temperature for station number 1 on 15 January 2012?", "pos": ["station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'"], "neg": ["store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)", "station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)"]}} {"set": {"query": "What is the sea level and average speed for store number 3 and store number 4?", "pos": ["store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4"], "neg": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; with a total precipitation of over 0.05 refers to preciptotal > 0.05", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure", "in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "highest recorded heat refers to Max(heat); station refers to station_nbr", "item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)"]}} {"set": {"query": "What was the temperature range of station no.1 on 2012/1/1?", "pos": ["on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1"], "neg": ["sunrise before 5 Am refers to sunrise < time ('5:00:00')", "station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr", "snow fell more than 5 inches refers to snowfall > 5", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "most windy station refers to Max(avgspeed)", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)"]}} {"set": {"query": "Tell the wet-bulb temperature of the weather station which contained store no.6 on 2012/2/15.", "pos": ["store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb"], "neg": ["store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4", "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "snow fell more than 5 inches refers to snowfall > 5", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel", "station number refers to station_nbr; store 17 refers to store_nbr = 17"]}} {"set": {"query": "List out dates when haze is recorded in store 35.", "pos": ["store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'"], "neg": ["store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)", "item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'", "store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))", "most windy station refers to Max(avgspeed)", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "sunrise before 5 Am refers to sunrise < time ('5:00:00')", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100"]}} {"set": {"query": "What is the ID of the item that sold the best on the day with the highest max temperature in store no.3 in 2012?", "pos": ["highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr"], "neg": ["store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'", "station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "highest recorded heat refers to Max(heat); station refers to station_nbr", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))", "store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4", "station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'"]}} {"set": {"query": "Which station has the highest number of stores? Calculate the said station's average maximum temperature in February 2012.", "pos": ["station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)"], "neg": ["highest recorded heat refers to Max(heat); station refers to station_nbr", "sunrise before 5 Am refers to sunrise < time ('5:00:00')", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; with a total precipitation of over 0.05 refers to preciptotal > 0.05", "item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)", "thickest snowfall refers to Max(snowfall); item refers to item_nbr"]}} {"set": {"query": "How many units of item no.5 were sold in store no.3 in total on days with a total precipitation of over 0.05?", "pos": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; with a total precipitation of over 0.05 refers to preciptotal > 0.05"], "neg": ["store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure", "highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100"]}} {"set": {"query": "How many days did the show fell more than 5 inches?", "pos": ["snow fell more than 5 inches refers to snowfall > 5"], "neg": ["item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr"]}} {"set": {"query": "How many units of item no.9 were sold in store no.1 on 2012/1/1?", "pos": ["store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'"], "neg": ["item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'", "minimum dew point refers to Min(dewpoint)", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))", "no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal", "sunrise before 5 Am refers to sunrise < time ('5:00:00')", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure"]}} {"set": {"query": "What is the percentage of the units of item no.5 sold among all units of items sold in store no.3 on the day with the highest max temperature in 2012?", "pos": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100"], "neg": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; when the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))", "snow fell more than 5 inches refers to snowfall > 5", "store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr", "highest recorded heat refers to Max(heat); station refers to station_nbr", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "minimum dew point refers to Min(dewpoint)", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)"]}} {"set": {"query": "How many units of item no.5 were sold in store no.3 on the day in 2012 when the max temperature was the highest?", "pos": ["item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'"], "neg": ["no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure", "item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))", "store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))", "highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))", "item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))"]}} {"set": {"query": "What is the minimum dew point?", "pos": ["minimum dew point refers to Min(dewpoint)"], "neg": ["station number refers to station_nbr; store 17 refers to store_nbr = 17", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "station no.9 refers to station_nbr = 9; on 2014/1/15 refers to date = '2014/01/15'; result wind speed refers to resultspeed", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; when the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure", "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "snow fell more than 5 inches refers to snowfall > 5", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr"]}} {"set": {"query": "Provide the sunrise time recorded by the home weather station of store no.30 on 2014/2/21.", "pos": ["store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'"], "neg": ["store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4"]}} {"set": {"query": "How many stores belong to the station with the highest recorded heat of all time?", "pos": ["highest recorded heat refers to Max(heat); station refers to station_nbr"], "neg": ["item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'", "snow fell more than 5 inches refers to snowfall > 5", "store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))"]}} {"set": {"query": "What is the item number of the product with the highest number of units sold in store number 1 on 1/1/2012?", "pos": ["item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'"], "neg": ["on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "station no.9 refers to station_nbr = 9; on 2014/1/15 refers to date = '2014/01/15'; result wind speed refers to resultspeed", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'"]}} {"set": {"query": "For the weather station has store no.9, what was the increased percentage of the average temperature from 2012/2/2 to 2012/2/3?", "pos": ["store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100"], "neg": ["snow fell more than 5 inches refers to snowfall > 5", "item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'", "station number refers to station_nbr; store 17 refers to store_nbr = 17", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel", "highest recorded heat refers to Max(heat); station refers to station_nbr", "store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb", "store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal"]}} {"set": {"query": "Provide the code summarization for the weather recorded by the weather station which contained the no.2 store on 2013/2/12.", "pos": ["no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum"], "neg": ["station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))", "store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb", "store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'", "station number refers to station_nbr; store 17 refers to store_nbr = 17", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83", "sunrise before 5 Am refers to sunrise < time ('5:00:00')"]}} {"set": {"query": "Give the number of stores which opened on the weather station that recorded the fastest average wind speed.", "pos": ["fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)"], "neg": ["store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "station number refers to station_nbr; store 17 refers to store_nbr = 17", "no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "snow fell more than 5 inches refers to snowfall > 5", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))"]}} {"set": {"query": "How many days did the sun rise before 5 AM?", "pos": ["sunrise before 5 Am refers to sunrise < time ('5:00:00')"], "neg": ["store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);\u00a0 station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "most windy station refers to Max(avgspeed)", "store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb"]}} {"set": {"query": "What is the ID of the item that sold the best on 2012/1/1 in store no.1?", "pos": ["sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)"], "neg": ["item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "station no.9 refers to station_nbr = 9; on 2014/1/15 refers to date = '2014/01/15'; result wind speed refers to resultspeed", "most windy station refers to Max(avgspeed)", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "minimum dew point refers to Min(dewpoint)", "store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100"]}} {"set": {"query": "What is the ratio of the highest and lowest temperature in store 11?", "pos": ["store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))"], "neg": ["in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);\u00a0 station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "most windy station refers to Max(avgspeed)", "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "snow fell more than 5 inches refers to snowfall > 5", "item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'"]}} {"set": {"query": "What was the average temperature differences during May 2012 for store number 6 and 7?", "pos": ["during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))"], "neg": ["store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'", "sunrise before 5 Am refers to sunrise < time ('5:00:00')", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'", "over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr"]}} {"set": {"query": "Which items from store 1 have the highest units sold during rainy day?", "pos": ["store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr"], "neg": ["no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "sunrise before 5 Am refers to sunrise < time ('5:00:00')", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; with a total precipitation of over 0.05 refers to preciptotal > 0.05", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))", "store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))", "store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)"]}} {"set": {"query": "Among the days on which over 100 units of item no.5 were sold in store no.3, on which date was the temperature range the biggest?", "pos": ["over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))"], "neg": ["item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))", "station no.9 refers to station_nbr = 9; on 2014/1/15 refers to date = '2014/01/15'; result wind speed refers to resultspeed"]}} {"set": {"query": "What is the difference between the units sold for item 1 when the sunset was the earliest and the latest?", "pos": ["item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))"], "neg": ["store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'", "over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr", "store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "station no.9 refers to station_nbr = 9; on 2014/1/15 refers to date = '2014/01/15'; result wind speed refers to resultspeed", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0"]}} {"set": {"query": "What is the lowest minimum temperature recorded in store 16 on January 2012?", "pos": ["lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'"], "neg": ["item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83", "snow fell more than 5 inches refers to snowfall > 5", "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'", "highest recorded heat refers to Max(heat); station refers to station_nbr", "store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "store no.6 refers to store_nbr = 6; on 2012/2/15 refers to date = '2012-02-15'; wet-bulb temperature refers to wetbulb", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; when the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "sold on 2012/1/1 refers to date = '2012-01-01'; in store no.1 refers to store_nbr = 1; item sold the best refers to Max(units)", "most windy station refers to Max(avgspeed)"]}} {"set": {"query": "How many units of item no.9 were sold in store no.1 in total in January, 2012?", "pos": ["store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; in January refers to SUBSTR(date, 1, 4) = '2012' and SUBSTR(date, 6, 2) = '01'"], "neg": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; with a total precipitation of over 0.05 refers to preciptotal > 0.05", "station no.9 refers to station_nbr = 9; on 2014/1/15 refers to date = '2014/01/15'; result wind speed refers to resultspeed", "store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))", "most windy station refers to Max(avgspeed)", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))"]}} {"set": {"query": "How many stores belong to the most windy station?", "pos": ["most windy station refers to Max(avgspeed)"], "neg": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))", "store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83", "snow fell more than 5 inches refers to snowfall > 5", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)", "highest recorded heat refers to Max(heat); station refers to station_nbr"]}} {"set": {"query": "Give the station pressure status recorded by the weather station which contained no.12 store on 2012/5/15.", "pos": ["no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure"], "neg": ["most windy station refers to Max(avgspeed)", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'", "store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))", "store no.7 refers to tore_nbr = 7; on 2014/4/28 refers to date = '2014-04-28'; temperature range refers to Subtract (tmax, tmin)", "item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'", "in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))", "item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr"]}} {"set": {"query": "What was the average temperature difference between store number 18 and 19 on 16 September 2022?", "pos": ["store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)"], "neg": ["item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; with a total precipitation of over 0.05 refers to preciptotal > 0.05", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))", "store no.9 refers to store_nbr = 9; 2012/2/2 refers to date = '2012-02-02'; 2012/2/3 refers to date = '2012-02-03'; average temperature refers to tavg; increase percentage = Divide (Subtract (tavg where date = '2012-02-03', tavg where date = '2012-02-02'), tavg where date = '2012-02-02') * 100", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "item no.5 refers to item_nbr = 5; store no. 3 refers to store_nbr = 3; when the max temperature was highest refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'"]}} {"set": {"query": "What are the items sold by the store during the day whose station recorded the thickest snowfall?", "pos": ["thickest snowfall refers to Max(snowfall); item refers to item_nbr"], "neg": ["store no.19 refers to store_nbr = 19; on 2013/2/24 refers to date = '2013-02-24'; sea level status refers to sealevel", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "item number refers to item_nbr; highest number of units sold refers to Max(units); store no.1 refers to store_nbr = 1; on 1/1/2012 refers to date = '2012-01-01'", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))", "in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);\u00a0 station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1", "over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure"]}} {"set": {"query": "Give the id of the bestsellers of store no.1 on 2012/1/1.", "pos": ["store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr"], "neg": ["most windy station refers to Max(avgspeed)", "highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr", "lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr", "item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83", "fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);\u00a0 station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1", "snow fell more than 5 inches refers to snowfall > 5", "store no. 30 refers to store_nbr = 30; on 2014/2/21 refers to date = '2014-02-21'", "over 100 units refers to units > 100; item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; the temperature range was the biggest refers to Max(Subtract(tmax, tmin))"]}} {"set": {"query": "How many units are being sold for item 1 when the average temperature is 83?", "pos": ["item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83"], "neg": ["no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))", "most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)", "highest recorded heat refers to Max(heat); station refers to station_nbr", "store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4", "highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr", "highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0", "in February 2012 refers to SUBSTR(date, 1, 7) = '2012-02'; earliest sunrise Min(sunrise);\u00a0 station with no more than 1 store refers to station_nbr where Count(store_nbr) = 1"]}} {"set": {"query": "List out stations number and items sold by store 17.", "pos": ["station number refers to station_nbr; store 17 refers to store_nbr = 17"], "neg": ["fastest average wind speed refers to Max(avgspeed); number of store refers to count(store_nbr)", "store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr", "on 2012/1/1 refers to date = '2012-01-01'; temperature range refers to Subtract (tmax, tmin); station no.1 refers to station_nbr = 1", "during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))", "deepest snowfall refers to Max(snowfall); number of stores refers to store_nbr", "most windy station refers to Max(avgspeed)", "no.2 store refers to store_nbr = 2; on 2013/2/12 refers to date = '2013-02-12'; code summarization refers to codesum", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3;\u00a0 when the maximum temperature exceed 90 refers to tmax > 90; average = Divide (Sum(units), Count(date))"]}} {"set": {"query": "Tell the resultant wind speed of station no.9 on 2014/1/15.", "pos": ["station no.9 refers to station_nbr = 9; on 2014/1/15 refers to date = '2014/01/15'; result wind speed refers to resultspeed"], "neg": ["most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "highest max temperature refers to Max(tmax); store no.3 refers to store_nbr = 3; in 2012 refers to substring (date, 1, 4) = '2012'; sold the best refers to Max(units); ID of the item refers to item_nbr", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)", "store no. 1 refers to store_nbr = 1; item no. 9 refers to item_nbr = 9; on 2012/1/1 refers to date = '2012-01-01'", "store no. 1 refers to store_nbr = 1; on 2012/1/1 refers to date = '2012-01-01'; best seller refers to Max(units); ID refers to item_nbr", "no.12 store refers to store_nbr = 12; on 2012/5/15 refers to date = '2012-05-15'; station pressure status refers to stnpressure", "store no.2 refers to store_nbr = 2; item weren't sold refers to units = 0; on 1/1/2012 refers to date = '2012-01-01'", "station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'", "store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4", "in March 2014 refers to substring (date, 1, 4) = '2014' and substring (date, 6, 2) = '03'; temperature is below the 30-year normal refers to depart < 0; highest number of days refers to Max(Count(date))"]}} {"set": {"query": "On the day with the highest max temperature in 2012, how many items in store no.3 had no sales?", "pos": ["highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012'; store no.3 refers to store_nbr = 3; had no sale refers to units = 0"], "neg": ["most purchased product refers to Max(units); during the rainy day refers to codesum = RA; in June 2013 refers to SUBSTR(date, 1, 7) = '2013-06'; weather station 9 refers to station_nbr = 9; product refers to item_nbr", "snow fell more than 5 inches refers to snowfall > 5", "item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83", "highest recorded heat refers to Max(heat); station refers to station_nbr", "store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)", "store no.2 refers to store_nbr = 2; on 2012/12/25 refers to date = '2012-12-25'; total precipitation refers to preciptotal", "station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'", "thickest snowfall refers to Max(snowfall); item refers to item_nbr", "item no. 5 refers to item_nbr = 5; store no.3 refers to store_nbr = 3; highest max temperature refers to Max(tmax); in 2012 refers to SUBSTR(date, 1, 4) = '2012';\u00a0 Percentage = Divide (Sum(units where item_nbr = 5), Sum(units)) * 100", "store no.20 refers to store_nbr = 20; weather station refers to station_nbr"]}} {"set": {"query": "Among paragraphs with paragraph number between 1900 to 1950, list the texts said by a character described as a sea captain, friend to Sebatian.", "pos": ["paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'"], "neg": ["comedic works refers to GenreType = 'comedy'", "character name \"First Witch\" refers to CharName = 'First Witch'", "daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "Hamlet refers to Title = 'Hamlet'", "character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'", "paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "finished before the year 1602 refers to Date < 1602", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)"]}} {"set": {"query": "Please name any three comedic works.", "pos": ["comedic works refers to GenreType = 'comedy'"], "neg": ["Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "Sonnets refers to Title = 'Sonnets'", "\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))", "abbreviated name is 1Play; appeared first refers to Abbrev = '1Play' and min(chapter_id)", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "servant to Timon refers to characters.Description = 'servant to Timon'", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'"]}} {"set": {"query": "List down any 5 titles in the history genre.", "pos": ["in the history genre refers to GenreType = 'History'"], "neg": ["Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "poems refers to GenreType = 'Poem'", "servant to Timon refers to characters.Description = 'servant to Timon'", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "Tragedy refers to GenreType = 'Tragedy'", "paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'", "finished before the year 1602 refers to Date < 1602", "character name \"First Witch\" refers to CharName = 'First Witch'"]}} {"set": {"query": "In \"Florence. Without the walls. A tucket afar off\", what is the id of the character that was mentioned in \"His name, I pray you.\"?", "pos": ["\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'"], "neg": ["abbreviated name is 1Play; appeared first refers to Abbrev = '1Play' and min(chapter_id)", "poems refers to GenreType = 'Poem'", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)", "most paragraphs refers to max(count(chapter_id))", "characters name refers to CharName; most recent work refers to max(Date)", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "highest number of scenes refers to max(count(Scene))", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'"]}} {"set": {"query": "What are the character names in paragraph 3?", "pos": ["character names refers to CharName; paragraph 3 refers to ParagraphNum = 3"], "neg": ["Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "short chapters refers to ParagraphNum < 150", "1599 work refers to Date = '1599'; average number refers to divide(count(chapters.id), count(works.id))", "Hamlet refers to Title = 'Hamlet'", "finished before the year 1602 refers to Date < 1602", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "Twelfth Night refers to Title = 'Twelfth Night'", "average number = divide(sum(character_id), count(work_id))"]}} {"set": {"query": "What is the description of the chapter where the character whose abrreviated name is 1Play appeared first?", "pos": ["abbreviated name is 1Play; appeared first refers to Abbrev = '1Play' and min(chapter_id)"], "neg": ["Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "Tragedy refers to GenreType = 'Tragedy'", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "highest number of scenes refers to max(count(Scene))", "paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "average number = divide(sum(character_id), count(work_id))"]}} {"set": {"query": "When did Shakespeare write the first poem?", "pos": ["first poem refers to GenreType = 'Poem' and Date = 'min'"], "neg": ["\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'", "in Twelfth Night refers to Title = 'Twelfth Night'; How many more scenes = subtract(sum(Act = 1), sum(Act = 5))", "average number = divide(sum(character_id), count(work_id))", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)", "Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'"]}} {"set": {"query": "Which chapter has the most paragraphs? Give the description of the chapter.", "pos": ["most paragraphs refers to max(count(chapter_id))"], "neg": ["character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'", "name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)", "character \"Shylock\" refers to CharName = 'Shylock'", "in the history genre refers to GenreType = 'History'", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2"]}} {"set": {"query": "How many more scenes are there in Act 1 than in Act 5 in Twelfth Night?", "pos": ["in Twelfth Night refers to Title = 'Twelfth Night'; How many more scenes = subtract(sum(Act = 1), sum(Act = 5))"], "neg": ["highest number of scenes refers to max(count(Scene))", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "servant to Timon refers to characters.Description = 'servant to Timon'", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'", "short chapters refers to ParagraphNum < 150", "characters name refers to CharName; most recent work refers to max(Date)", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "most paragraphs refers to max(count(chapter_id))", "Twelfth Night refers to Title = 'Twelfth Night'"]}} {"set": {"query": "Which work is the character Lord Abergavenny from? Please give its short or abbreviated title.", "pos": ["Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title"], "neg": ["paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)", "paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "in Twelfth Night refers to Title = 'Twelfth Night'; How many more scenes = subtract(sum(Act = 1), sum(Act = 5))", "full title refers to LongTitle; character named Servant to Montague refers to characters.Description = 'Servant to Montague'", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'"]}} {"set": {"query": "Please name the latest historical work.", "pos": ["name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)"], "neg": ["Twelfth Night refers to Title = 'Twelfth Night'", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "characters name refers to CharName; most recent work refers to max(Date)", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "Hamlet refers to Title = 'Hamlet'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage"]}} {"set": {"query": "Please list all of the character descriptions in paragraph 20.", "pos": ["paragraph 20 refers to ParagraphNum = 20"], "neg": ["paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'", "first poem refers to GenreType = 'Poem' and Date = 'min'", "Twelfth Night refers to Title = 'Twelfth Night'", "Titus Andronicus refers to Title = 'Titus Andronicus'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "servant to Timon refers to characters.Description = 'servant to Timon'", "in the history genre refers to GenreType = 'History'", "characters name refers to CharName; most recent work refers to max(Date)"]}} {"set": {"query": "What is the name of the character that can be found in paragraph 8 of chapter 18820?", "pos": ["name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820"], "neg": ["character names refers to CharName; paragraph 3 refers to ParagraphNum = 3", "highest number of scenes refers to max(count(Scene))", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "comedic works refers to GenreType = 'comedy'", "character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'", "first poem refers to GenreType = 'Poem' and Date = 'min'", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))", "Twelfth Night refers to Title = 'Twelfth Night'"]}} {"set": {"query": "How many poems did Shakespeare write?", "pos": ["poems refers to GenreType = 'Poem'"], "neg": ["Twelfth Night refers to Title = 'Twelfth Night'", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'", "daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "1599 work refers to Date = '1599'; average number refers to divide(count(chapters.id), count(works.id))", "in Twelfth Night refers to Title = 'Twelfth Night'; How many more scenes = subtract(sum(Act = 1), sum(Act = 5))", "average number = divide(sum(character_id), count(work_id))", "highest number of scenes refers to max(count(Scene))", "name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)"]}} {"set": {"query": "List the chapter ID of the works with a year greater than the 89% of average year of all listed works of Shakespeare.", "pos": ["a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)"], "neg": ["work numbers refers to works.id; related to King Henry refers to Title = '%Henry%'", "highest number of scenes refers to max(count(Scene))", "Sonnets refers to Title = 'Sonnets'", "finished before the year 1602 refers to Date < 1602", "Twelfth Night refers to Title = 'Twelfth Night'", "daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "character name \"First Witch\" refers to CharName = 'First Witch'", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "character \"son to Tamora\"\u00a0 refers to characters.Description = 'son to Tamora'", "in the history genre refers to GenreType = 'History'"]}} {"set": {"query": "How many of the works of Shakespeare are Tragedy?", "pos": ["Tragedy refers to GenreType = 'Tragedy'"], "neg": ["\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "highest number of scenes refers to max(count(Scene))", "character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "Twelfth Night refers to Title = 'Twelfth Night'", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)"]}} {"set": {"query": "How many \"servant to Timon\" characters are there?", "pos": ["servant to Timon refers to characters.Description = 'servant to Timon'"], "neg": ["poems refers to GenreType = 'Poem'", "Sonnets refers to Title = 'Sonnets'", "Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "characters name refers to CharName; most recent work refers to max(Date)", "character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'", "average number = divide(sum(character_id), count(work_id))", "history refers to GenreType = 'History' ; 1st acts\u00a0 refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "Twelfth Night refers to Title = 'Twelfth Night'"]}} {"set": {"query": "How many scenes are there on average in one act in Twelfth Night?", "pos": ["Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))"], "neg": ["Titus Andronicus refers to Title = 'Titus Andronicus'", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "Sonnets refers to Title = 'Sonnets'", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3", "Twelfth Night refers to Title = 'Twelfth Night'", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'"]}} {"set": {"query": "Among the comedy works of Shakespeare, what is the percentage of his works with a character named \"antonio\"?", "pos": ["comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage"], "neg": ["character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'", "abbreviated name is 1Play; appeared first refers to Abbrev = '1Play' and min(chapter_id)", "Twelfth Night refers to Title = 'Twelfth Night'", "in Twelfth Night refers to Title = 'Twelfth Night'; How many more scenes = subtract(sum(Act = 1), sum(Act = 5))", "first poem refers to GenreType = 'Poem' and Date = 'min'", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'"]}} {"set": {"query": "What is the description of the chapter with the longest number of paragraphs?", "pos": ["chapter with the longest number of paragraphs refers to max(ParagraphNum)"], "neg": ["paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "full title refers to LongTitle; character named Servant to Montague refers to characters.Description = 'Servant to Montague'", "Tragedy refers to GenreType = 'Tragedy'", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)", "poems refers to GenreType = 'Poem'", "1599 work refers to Date = '1599'; average number refers to divide(count(chapters.id), count(works.id))", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "Twelfth Night refers to Title = 'Twelfth Night'"]}} {"set": {"query": "Give the title of the work that contains the character \"Shylock\".", "pos": ["character \"Shylock\" refers to CharName = 'Shylock'"], "neg": ["first poem refers to GenreType = 'Poem' and Date = 'min'", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "\" Pericles, Prince of Tyre\" refers to LongTitle = 'Pericles, Prince of Tyre'", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "Sonnets refers to Title = 'Sonnets'", "paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'", "history refers to GenreType = 'History' ; 1st acts\u00a0 refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'", "paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'"]}} {"set": {"query": "Please list the IDs of the paragraphs in which the character \"son to Tamora\" appears.", "pos": ["character \"son to Tamora\"\u00a0 refers to characters.Description = 'son to Tamora'"], "neg": ["character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "poems refers to GenreType = 'Poem'", "Tragedy refers to GenreType = 'Tragedy'", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "abbreviated name is 1Play; appeared first refers to Abbrev = '1Play' and min(chapter_id)", "Twelfth Night refers to Title = 'Twelfth Night'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage"]}} {"set": {"query": "When did Shakespeare create his work that has 154 scenes?", "pos": ["When refers to Date; has 154 scenes refers to count(Scene) = 154"], "neg": ["Sonnets refers to Title = 'Sonnets'", "most paragraphs refers to max(count(chapter_id))", "character \"son to Tamora\"\u00a0 refers to characters.Description = 'son to Tamora'", "\" Pericles, Prince of Tyre\" refers to LongTitle = 'Pericles, Prince of Tyre'", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "servant to Timon refers to characters.Description = 'servant to Timon'", "average number = divide(sum(character_id), count(work_id))", "historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage", "Tragedy refers to GenreType = 'Tragedy'"]}} {"set": {"query": "What is the chapter description where the paragraph \"What, wilt thou hear some music, my sweet love?\" belongs?", "pos": ["paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'"], "neg": ["\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "character name \"First Witch\" refers to CharName = 'First Witch'", "characters name refers to CharName; most recent work refers to max(Date)", "poems refers to GenreType = 'Poem'", "servant to Timon refers to characters.Description = 'servant to Timon'", "paragraph 20 refers to ParagraphNum = 20", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))"]}} {"set": {"query": "What are the descriptions of the short chapters?", "pos": ["short chapters refers to ParagraphNum < 150"], "neg": ["paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'", "full title refers to LongTitle; character named Servant to Montague refers to characters.Description = 'Servant to Montague'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "character \"Shylock\" refers to CharName = 'Shylock'", "Titus Andronicus refers to Title = 'Titus Andronicus'", "first poem refers to GenreType = 'Poem' and Date = 'min'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'"]}} {"set": {"query": "How many paragraphs are there in Act 5 Scene 1 of \"Comedy of Errors\"?", "pos": ["\"Comedy of Errors\" refers to Title = 'Comedy of Errors'"], "neg": ["finished before the year 1602 refers to Date < 1602", "in Twelfth Night refers to Title = 'Twelfth Night'; How many more scenes = subtract(sum(Act = 1), sum(Act = 5))", "Twelfth Night refers to Title = 'Twelfth Night'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "Sonnets refers to Title = 'Sonnets'", "character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)", "Hamlet refers to Title = 'Hamlet'"]}} {"set": {"query": "What are the work numbers that are related to King Henry?", "pos": ["work numbers refers to works.id; related to King Henry refers to Title = '%Henry%'"], "neg": ["\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "Tragedy refers to GenreType = 'Tragedy'", "short chapters refers to ParagraphNum < 150", "history refers to GenreType = 'History' ; 1st acts\u00a0 refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "average number = divide(sum(character_id), count(work_id))", "comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage", "\" Pericles, Prince of Tyre\" refers to LongTitle = 'Pericles, Prince of Tyre'", "paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'", "character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'", "character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'"]}} {"set": {"query": "In the Venus and Adonis, what is the description of the last scene listed?", "pos": ["Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)"], "neg": ["character \"Shylock\" refers to CharName = 'Shylock'", "in the history genre refers to GenreType = 'History'", "Titus Andronicus refers to Title = 'Titus Andronicus'", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "average number = divide(sum(character_id), count(work_id))", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)"]}} {"set": {"query": "Among the history works written by Shakespeare, how many works whose 1st acts have no more than 2 scenes?", "pos": ["history refers to GenreType = 'History' ; 1st acts\u00a0 refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2"], "neg": ["Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "finished before the year 1602 refers to Date < 1602", "paragraph 20 refers to ParagraphNum = 20", "Titus Andronicus refers to Title = 'Titus Andronicus'", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "Sonnets refers to Title = 'Sonnets'", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "Twelfth Night refers to Title = 'Twelfth Night'", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'"]}} {"set": {"query": "List the number of acts in Two Gentlemen of Verona.", "pos": ["Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'"], "neg": ["in the history genre refers to GenreType = 'History'", "Twelfth Night refers to Title = 'Twelfth Night'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "\" Pericles, Prince of Tyre\" refers to LongTitle = 'Pericles, Prince of Tyre'", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'", "most paragraphs refers to max(count(chapter_id))", "first poem refers to GenreType = 'Poem' and Date = 'min'", "in Twelfth Night refers to Title = 'Twelfth Night'; How many more scenes = subtract(sum(Act = 1), sum(Act = 5))", "average number = divide(sum(character_id), count(work_id))", "character name \"First Witch\" refers to CharName = 'First Witch'"]}} {"set": {"query": "What is the character and work ID of the text \"Fear not thou, man, thou shalt lose nothing here.\"?", "pos": ["character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'"], "neg": ["first poem refers to GenreType = 'Poem' and Date = 'min'", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "highest number of scenes refers to max(count(Scene))", "Sonnets refers to Title = 'Sonnets'", "average number = divide(sum(character_id), count(work_id))", "Twelfth Night refers to Title = 'Twelfth Night'", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "history refers to GenreType = 'History' ; 1st acts\u00a0 refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title"]}} {"set": {"query": "In \"A Lover's Complaint\", what is the description of Act 1, Scene 1?", "pos": ["\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'"], "neg": ["character name \"First Witch\" refers to CharName = 'First Witch'", "Sonnets refers to Title = 'Sonnets'", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "Titus Andronicus refers to Title = 'Titus Andronicus'", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)", "\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "Twelfth Night refers to Title = 'Twelfth Night'", "servant to Timon refers to characters.Description = 'servant to Timon'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'"]}} {"set": {"query": "What are the character names for a senator of Venice?", "pos": ["character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'"], "neg": ["abbreviated name is 1Play; appeared first refers to Abbrev = '1Play' and min(chapter_id)", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "highest number of scenes refers to max(count(Scene))", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "Titus Andronicus refers to Title = 'Titus Andronicus'", "Sonnets refers to Title = 'Sonnets'", "average number = divide(sum(character_id), count(work_id))", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))"]}} {"set": {"query": "In \"Twelfth Night, Or What You Will\", what is the description of the chapter in 2nd scene, Act 2?", "pos": ["\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2"], "neg": ["paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "comedic works refers to GenreType = 'comedy'", "characters name refers to CharName; most recent work refers to max(Date)", "Twelfth Night refers to Title = 'Twelfth Night'", "full title refers to LongTitle; character named Servant to Montague refers to characters.Description = 'Servant to Montague'", "\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "short chapters refers to ParagraphNum < 150", "highest number of scenes refers to max(count(Scene))", "Tragedy refers to GenreType = 'Tragedy'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5"]}} {"set": {"query": "Other than \"stage directions\", what is the name of the character that appeared 5 times in \"the sea-coast\"?", "pos": ["Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5"], "neg": ["paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'", "character name \"First Witch\" refers to CharName = 'First Witch'", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "highest number of scenes refers to max(count(Scene))"]}} {"set": {"query": "How many scenes are there in Act 1 in Twelfth Night?", "pos": ["Twelfth Night refers to Title = 'Twelfth Night'"], "neg": ["character \"son to Tamora\"\u00a0 refers to characters.Description = 'son to Tamora'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'", "paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'", "most paragraphs refers to max(count(chapter_id))", "name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3", "daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'"]}} {"set": {"query": "How many paragraphs are there in Act 1, Scene 1 in Twelfth Night?", "pos": ["Twelfth Night refers to Title = 'Twelfth Night'"], "neg": ["character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "average number = divide(sum(character_id), count(work_id))", "comedic works refers to GenreType = 'comedy'", "servant to Timon refers to characters.Description = 'servant to Timon'", "\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "poems refers to GenreType = 'Poem'", "full title refers to LongTitle; character named Servant to Montague refers to characters.Description = 'Servant to Montague'", "daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "short chapters refers to ParagraphNum < 150", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'"]}} {"set": {"query": "In the year 1500s, how many tragedies did Shakespeare write?", "pos": ["year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'"], "neg": ["Sonnets refers to Title = 'Sonnets'", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage", "Twelfth Night refers to Title = 'Twelfth Night'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "character \"Shylock\" refers to CharName = 'Shylock'", "finished before the year 1602 refers to Date < 1602", "average number = divide(sum(character_id), count(work_id))"]}} {"set": {"query": "Who is the daughter of Capulet?", "pos": ["daughter of Capulet refers to characters.Description = 'Daughter to Capulet'"], "neg": ["servant to Timon refers to characters.Description = 'servant to Timon'", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "Hamlet refers to Title = 'Hamlet'", "work numbers refers to works.id; related to King Henry refers to Title = '%Henry%'", "first poem refers to GenreType = 'Poem' and Date = 'min'", "Sonnets refers to Title = 'Sonnets'", "Twelfth Night refers to Title = 'Twelfth Night'", "character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage"]}} {"set": {"query": "How many \"all\" character names have the \"all\" abbreviation?", "pos": ["character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'"], "neg": ["most paragraphs refers to max(count(chapter_id))", "\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "Titus Andronicus refers to Title = 'Titus Andronicus'", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "in the history genre refers to GenreType = 'History'", "history refers to GenreType = 'History' ; 1st acts\u00a0 refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3", "daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'"]}} {"set": {"query": "How many characters are there in Hamlet?", "pos": ["Hamlet refers to Title = 'Hamlet'"], "neg": ["character \"son to Tamora\"\u00a0 refers to characters.Description = 'son to Tamora'", "full title refers to LongTitle; character named Servant to Montague refers to characters.Description = 'Servant to Montague'", "character \"Shylock\" refers to CharName = 'Shylock'", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "poems refers to GenreType = 'Poem'", "in Twelfth Night refers to Title = 'Twelfth Night'; How many more scenes = subtract(sum(Act = 1), sum(Act = 5))", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820"]}} {"set": {"query": "List the paragraph number and paragraphs said by the character named \"Sir Andrew Aguecheek\".", "pos": ["paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'"], "neg": ["most paragraphs refers to max(count(chapter_id))", "Twelfth Night refers to Title = 'Twelfth Night'", "in the history genre refers to GenreType = 'History'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)", "comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))", "Sonnets refers to Title = 'Sonnets'", "first poem refers to GenreType = 'Poem' and Date = 'min'", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "paragraph 20 refers to ParagraphNum = 20"]}} {"set": {"query": "What is the percentage of historical works that have not fewer than five scenes in the 1500s?", "pos": ["historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage"], "neg": ["average number = divide(sum(character_id), count(work_id))", "Tragedy refers to GenreType = 'Tragedy'", "first poem refers to GenreType = 'Poem' and Date = 'min'", "comedic works refers to GenreType = 'comedy'", "most paragraphs refers to max(count(chapter_id))", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "highest number of scenes refers to max(count(Scene))", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'", "\" Pericles, Prince of Tyre\" refers to LongTitle = 'Pericles, Prince of Tyre'", "work numbers refers to works.id; related to King Henry refers to Title = '%Henry%'"]}} {"set": {"query": "On average, how many scenes are there in each of the comedy works written by Shakespeare?", "pos": ["comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))"], "neg": ["Tragedy refers to GenreType = 'Tragedy'", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "poems refers to GenreType = 'Poem'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'", "Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "Twelfth Night refers to Title = 'Twelfth Night'"]}} {"set": {"query": "How many acts are there in Sonnets?", "pos": ["Sonnets refers to Title = 'Sonnets'"], "neg": ["character \"son to Tamora\"\u00a0 refers to characters.Description = 'son to Tamora'", "characters name refers to CharName; most recent work refers to max(Date)", "poems refers to GenreType = 'Poem'", "work numbers refers to works.id; related to King Henry refers to Title = '%Henry%'", "servant to Timon refers to characters.Description = 'servant to Timon'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "Hamlet refers to Title = 'Hamlet'", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "character names refers to CharName; a senator of Venice refers to characters.Description = 'a senator of Venice'", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'"]}} {"set": {"query": "What is the long title of the work with the highest number of scenes in act 1?", "pos": ["highest number of scenes refers to max(count(Scene))"], "neg": ["characters name refers to CharName; most recent work refers to max(Date)", "average number = divide(sum(character_id), count(work_id))", "\" Pericles, Prince of Tyre\" refers to LongTitle = 'Pericles, Prince of Tyre'", "character name \"First Witch\" refers to CharName = 'First Witch'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "Sonnets refers to Title = 'Sonnets'", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "Hamlet refers to Title = 'Hamlet'", "history refers to GenreType = 'History' ; 1st acts\u00a0 refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'"]}} {"set": {"query": "Give the title and the characters name of the most recent work of Shakespeare.", "pos": ["characters name refers to CharName; most recent work refers to max(Date)"], "neg": ["short chapters refers to ParagraphNum < 150", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "character name \"First Witch\" refers to CharName = 'First Witch'", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'", "Hamlet refers to Title = 'Hamlet'", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'"]}} {"set": {"query": "List the scenes and descriptions in Act 1 of \" Pericles, Prince of Tyre\".", "pos": ["\" Pericles, Prince of Tyre\" refers to LongTitle = 'Pericles, Prince of Tyre'"], "neg": ["character \"Shylock\" refers to CharName = 'Shylock'", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)", "servant to Timon refers to characters.Description = 'servant to Timon'", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "highest number of scenes refers to max(count(Scene))", "name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'", "comedic works refers to GenreType = 'comedy'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title"]}} {"set": {"query": "What is the description of chapter 18704, where there is a character called Orsino?", "pos": ["chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'"], "neg": ["daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'", "paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'", "highest number of scenes refers to max(count(Scene))", "paragraph 20 refers to ParagraphNum = 20", "finished before the year 1602 refers to Date < 1602", "comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage", "character \"son to Tamora\"\u00a0 refers to characters.Description = 'son to Tamora'", "Tragedy refers to GenreType = 'Tragedy'", "first poem refers to GenreType = 'Poem' and Date = 'min'"]}} {"set": {"query": "Please list any two character names in chapter 18708.", "pos": ["character names refers to CharName; chapter 18708 refers to chapter_id = 18708"], "neg": ["paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'", "Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "abbreviated name is 1Play; appeared first refers to Abbrev = '1Play' and min(chapter_id)", "comedic works refers to GenreType = 'comedy'", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'", "comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage", "in the history genre refers to GenreType = 'History'", "Hamlet refers to Title = 'Hamlet'", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "work numbers refers to works.id; related to King Henry refers to Title = '%Henry%'"]}} {"set": {"query": "How many chapters include the character name \"First Witch\"?", "pos": ["character name \"First Witch\" refers to CharName = 'First Witch'"], "neg": ["Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "most paragraphs refers to max(count(chapter_id))", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "characters name refers to CharName; most recent work refers to max(Date)", "Twelfth Night refers to Title = 'Twelfth Night'", "historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "finished before the year 1602 refers to Date < 1602", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'"]}} {"set": {"query": "What is the average number of characters in all the works of Shakespeare?", "pos": ["average number = divide(sum(character_id), count(work_id))"], "neg": ["work numbers refers to works.id; related to King Henry refers to Title = '%Henry%'", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "character \"son to Tamora\"\u00a0 refers to characters.Description = 'son to Tamora'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "Twelfth Night refers to Title = 'Twelfth Night'", "history refers to GenreType = 'History' ; 1st acts\u00a0 refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "Tragedy refers to GenreType = 'Tragedy'", "Sonnets refers to Title = 'Sonnets'"]}} {"set": {"query": "How many of Shakespeare's works were finished before the year 1602?", "pos": ["finished before the year 1602 refers to Date < 1602"], "neg": ["most paragraphs refers to max(count(chapter_id))", "Twelfth Night refers to Title = 'Twelfth Night'", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "characters name refers to CharName; most recent work refers to max(Date)", "first poem refers to GenreType = 'Poem' and Date = 'min'", "Twelfth Night refers to Title = 'Twelfth Night'", "Titus Andronicus refers to Title = 'Titus Andronicus'", "average number = divide(sum(character_id), count(work_id))", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'", "character \"son to Tamora\"\u00a0 refers to characters.Description = 'son to Tamora'"]}} {"set": {"query": "How many characters are there in Titus Andronicus?", "pos": ["Titus Andronicus refers to Title = 'Titus Andronicus'"], "neg": ["highest number of scenes refers to max(count(Scene))", "history refers to GenreType = 'History' ; 1st acts\u00a0 refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "first poem refers to GenreType = 'Poem' and Date = 'min'", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "poems refers to GenreType = 'Poem'", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "short chapters refers to ParagraphNum < 150", "\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'"]}} {"set": {"query": "Gives the average number of chapters in Shakespeare's 1599 work.", "pos": ["1599 work refers to Date = '1599'; average number refers to divide(count(chapters.id), count(works.id))"], "neg": ["paragraph 20 refers to ParagraphNum = 20", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)", "historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage", "poems refers to GenreType = 'Poem'", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"\u00a0 refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'"]}} {"set": {"query": "What percentage of all scenes are tragic scenes in Shakespeare's work in 1594?", "pos": ["tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage"], "neg": ["Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "1599 work refers to Date = '1599'; average number refers to divide(count(chapters.id), count(works.id))", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3", "first poem refers to GenreType = 'Poem' and Date = 'min'", "servant to Timon refers to characters.Description = 'servant to Timon'", "highest number of scenes refers to max(count(Scene))", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)"]}} {"set": {"query": "What is the description of Act 1, Scene 2 in Twelfth Night?", "pos": ["Twelfth Night refers to Title = 'Twelfth Night'"], "neg": ["paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "Titus Andronicus refers to Title = 'Titus Andronicus'", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "character names refers to CharName\uff1b\"all\" abbreviation refers to Abbrev = 'all'", "most paragraphs refers to max(count(chapter_id))", "paragraph 20 refers to ParagraphNum = 20", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "poems refers to GenreType = 'Poem'"]}} {"set": {"query": "Describe the full title which had the character named Servant to Montague.", "pos": ["full title refers to LongTitle; character named Servant to Montague refers to characters.Description = 'Servant to Montague'"], "neg": ["name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "Twelfth Night refers to Title = 'Twelfth Night'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "\"Twelfth Night, Or What You Will\"\u00a0 refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "most paragraphs refers to max(count(chapter_id))", "average number = divide(sum(character_id), count(work_id))"]}} {"set": {"query": "Between Rome and Juliet, which character was mentioned the most in the The Tragedy of Romeo and Juliet? Calculate for Romeo and Juliet's individual amount of appearance in percentage against the overall number of characters that appeared in the said work.", "pos": ["Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage"], "neg": ["name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "Twelfth Night refers to Title = 'Twelfth Night'", "characters name refers to CharName; most recent work refers to max(Date)", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "poems refers to GenreType = 'Poem'", "\" Pericles, Prince of Tyre\" refers to LongTitle = 'Pericles, Prince of Tyre'", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'"]}} {"set": {"query": "Please list all of the paragraphs that have the character name Aedile.", "pos": ["paragraphs\u00a0 refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'"], "neg": ["year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)", "Twelfth Night refers to Title = 'Twelfth Night'", "Sonnets refers to Title = 'Sonnets'", "comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage", "Twelfth Night refers to Title = 'Twelfth Night'", "paragraph \"What, wilt thou hear some music, my sweet love?\" refers to\u00a0 PlainText = 'What, wilt thou hear some music, my sweet love?'", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3"]}} {"set": {"query": "Which character was mentioned in the paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"? Give the character name.", "pos": ["paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'"], "neg": ["Twelfth Night refers to Title = 'Twelfth Night'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)", "Tragedy refers to GenreType = 'Tragedy'", "most paragraphs refers to max(count(chapter_id))", "comedic works refers to GenreType = 'comedy'", "average number = divide(sum(character_id), count(work_id))", "comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))", "Twelfth Night refers to Title = 'Twelfth Night'"]}} {"set": {"query": "For how many times has the scene \"OLIVIA\u2019S house.\" appeared in Twelfth Night?", "pos": ["\"OLIVIA\u2019S house.\"\u00a0 refers to chapters.Description = 'OLIVIA\u2019S house.'; Twelfth Night refers to Title = 'Twelfth Night'"], "neg": ["Tragedy refers to GenreType = 'Tragedy'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "in the history genre refers to GenreType = 'History'", "Twelfth Night refers to Title = 'Twelfth Night'", "year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'", "Hamlet refers to Title = 'Hamlet'", "Sonnets refers to Title = 'Sonnets'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"\u00a0 refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5"]}} {"set": {"query": "Among the shipments done by Sue Newell, how many of them are for S K L Enterprises Inc?", "pos": ["\"S K L Enterprises Inc\" is the cust_name"], "neg": ["\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "manufactured in year 2009 refers to model_year = 2009", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "\"Klett & Sons Repair\" is the cust_name", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "customer in Florida refers to state = 'FL'"]}} {"set": {"query": "What is the total number of pounds being transported for S K L Enterprises Inc?", "pos": ["\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)"], "neg": ["\"manufacturer\" is the cust_type", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "\"North Las Vegas\" is the city_name", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "live refers to address", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "oldest truck model refers to Min(model_year)", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id"]}} {"set": {"query": "Determine the percentage of manufacturers who are from Texas among all of Lorenzo's customers.", "pos": ["\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100"], "neg": ["shipment id 1003 refers to ship_id = 1003", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "\"Klett & Sons Repair\" is the cust_name", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "live refers to address", "first shipment refers to Min(ship_date); pounds refers to weight"]}} {"set": {"query": "Provide the destination city of the shipment shipped by January 16, 2017.", "pos": ["January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name"], "neg": ["least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"North Las Vegas\" is the city_name", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "\"Peterbilt\" is the make", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "shipment no. 1346 refers to ship_id = 1346", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state"]}} {"set": {"query": "Among the shipments for Downey, how many shipments were shipped to California in 2016?", "pos": ["\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,"], "neg": ["\"retailer\" is the cust_type; live in California refers to state = 'CA'", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"Klett & Sons Repair\" is the cust_name", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"New York\" is the city_name; maximum weight refers to Max(weight)"]}} {"set": {"query": "Provide the ship date of the first shipment to customers in South Carolina.", "pos": ["\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)"], "neg": ["shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "on March 7, 2016 refers to ship_date = '2016-03-07'", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "manufactured in year 2009 refers to model_year = 2009", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "in California refers to state = 'CA'; most populated city refers to Max(population)"]}} {"set": {"query": "State the headquarter of the truck which completed shipment no.1045.", "pos": ["shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'"], "neg": ["\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"Cicero\" is the city; 'Illinois' is the state", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "\"Connecticut\" is the state", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "lightest weight refers to Min(weight); full name refers to first_name, last_name"]}} {"set": {"query": "Among all the shipments to Florida, what is the percentage of the shipment to Jacksonville?", "pos": ["\"Florida\" is the state; \"Jacksonville\" is city_name;"], "neg": ["driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"S K L Enterprises Inc\" is the cust_name", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"Klett & Sons Repair\" is the cust_name", "\"North Las Vegas\" is the city_name", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017"]}} {"set": {"query": "Please list the IDs of all the shipments made by a retailer customer.", "pos": ["\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id"], "neg": ["weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "shipment id 1028 refers to ship_id = 1028", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"Klett & Sons Repair\" is the cust_name", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state"]}} {"set": {"query": "How many pounds did Sue Newell transport during her first shipment?", "pos": ["first shipment refers to Min(ship_date); pounds refers to weight"], "neg": ["brand of truck refers to make", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"North Las Vegas\" is the city_name", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))"]}} {"set": {"query": "What is the address of the driver that delivers the shipment for the customer lives at 7052 Carroll Road, San Diego, California?", "pos": ["\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state"], "neg": ["shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "\"North Las Vegas\" is the city_name"]}} {"set": {"query": "Among the shipments shipped to Cicero, Illinois, how many shipments weighed between 9,000 to 15,000?", "pos": ["\"Cicero\" is the city; 'Illinois' is the state"], "neg": ["living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "\"California\" is the state; least populated city refers to Min(population)", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "shipment id 1028 refers to ship_id = 1028", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "city refers to city_name", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name"]}} {"set": {"query": "What is the maximum weight being transported to New York during a single shipment?", "pos": ["\"New York\" is the city_name; maximum weight refers to Max(weight)"], "neg": ["shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "shipment id 1055 refers to ship_id = 1055", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "city refers to city_name", "\"manufacturer\" is the cust_type"]}} {"set": {"query": "How many shipments were shipped to customers living in California in year 2016?", "pos": ["living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016"], "neg": ["shipment no. 1346 refers to ship_id = 1346", "\"Klett & Sons Repair\" is the cust_name", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "shipment id 1003 refers to ship_id = 1003", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "\"North Las Vegas\" is the city_name", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id"]}} {"set": {"query": "Which headquarter's truck has the highest shipments in year 2016?", "pos": ["in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))"], "neg": ["shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"California\" is the state; least populated city refers to Min(population)", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "first shipment refers to Min(ship_date); pounds refers to weight", "\"Olympic Camper Sales Inc\" is the cust_name", "oldest truck model refers to Min(model_year)", "\"Peterbilt\" is the make", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))"]}} {"set": {"query": "State the weight of shipments transported by Peterbilt.", "pos": ["\"Peterbilt\" is the make"], "neg": ["city refers to city_name", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"Connecticut\" is the state", "brand of truck refers to make", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"Olympic Camper Sales Inc\" is the cust_name", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"California\" is the state; least populated city refers to Min(population)", "live refers to address"]}} {"set": {"query": "How many trucks were manufactured in year 2009?", "pos": ["manufactured in year 2009 refers to model_year = 2009"], "neg": ["on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"North Las Vegas\" is the city_name", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "\"Connecticut\" is the state", "shipment id 1028 refers to ship_id = 1028", "first shipment refers to Min(ship_date); pounds refers to weight", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)"]}} {"set": {"query": "What is the weight of the shipment delivered by Andrea Simons on March 7, 2016?", "pos": ["on March 7, 2016 refers to ship_date = '2016-03-07'"], "neg": ["\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "shipment id 1028 refers to ship_id = 1028", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "\"North Las Vegas\" is the city_name", "\"manufacturer\" is the cust_type", "\"Klett & Sons Repair\" is the cust_name", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"Florida\" is the state; \"Jacksonville\" is city_name;"]}} {"set": {"query": "Give the name of the driver of shipment no.1021.", "pos": ["shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name"], "neg": ["\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"North Las Vegas\" is the city_name", "first shipment refers to Min(ship_date); pounds refers to weight", "customer in Florida refers to state = 'FL'", "in California refers to state = 'CA'; most populated city refers to Max(population)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "\"Connecticut\" is the state", "\"Peterbilt\" is the make"]}} {"set": {"query": "List all the name of the customers that received a shipment in February 2017.", "pos": ["shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name"], "neg": ["shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "\"Olympic Camper Sales Inc\" is the cust_name", "customer in Florida refers to state = 'FL'", "oldest truck model refers to Min(model_year)", "live refers to address", "shipment id 1003 refers to ship_id = 1003", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)"]}} {"set": {"query": "How many shipments did Holger Nohr transport to North Las Vegas overall?", "pos": ["\"North Las Vegas\" is the city_name"], "neg": ["shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "shipment id 1003 refers to ship_id = 1003", "manufactured in year 2009 refers to model_year = 2009", "shipment no. 1346 refers to ship_id = 1346", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name"]}} {"set": {"query": "List all the cities where Zachery Hicks transported goods.", "pos": ["city refers to city_name"], "neg": ["\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "oldest truck model refers to Min(model_year)", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"manufacturer\" is the cust_type", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "\"Cicero\" is the city; 'Illinois' is the state", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name"]}} {"set": {"query": "What is the annual revenue of Klett & Sons Repair?", "pos": ["\"Klett & Sons Repair\" is the cust_name"], "neg": ["first shipment refers to Min(ship_date); pounds refers to weight", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"manufacturer\" is the cust_type", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name"]}} {"set": {"query": "What is the most populated city in California?", "pos": ["in California refers to state = 'CA'; most populated city refers to Max(population)"], "neg": ["on March 7, 2016 refers to ship_date = '2016-03-07'", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "shipment id 1028 refers to ship_id = 1028", "\"S K L Enterprises Inc\" is the cust_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"Cicero\" is the city; 'Illinois' is the state"]}} {"set": {"query": "Please list the destination cities of all the shipments ordered by S K L Enterprises Inc.", "pos": ["\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name"], "neg": ["least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "in California refers to state = 'CA'; most populated city refers to Max(population)", "brand of truck refers to make", "\"Peterbilt\" is the make", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "live refers to address", "\"Olympic Camper Sales Inc\" is the cust_name"]}} {"set": {"query": "What is the brand of the truck that is used to ship by Zachery Hicks?", "pos": ["brand of truck refers to make"], "neg": ["lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "city refers to city_name", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "oldest truck model refers to Min(model_year)", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))"]}} {"set": {"query": "What is the average annual revenue of customers who have shipment weight of less than 65000 pounds?", "pos": ["weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)"], "neg": ["brand of truck refers to make", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "\"Olympic Camper Sales Inc\" is the cust_name", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "\"S K L Enterprises Inc\" is the cust_name", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"California\" is the state; least populated city refers to Min(population)", "most populated city refers to Max(population)", "in California refers to state = 'CA'; most populated city refers to Max(population)", "shipment id 1055 refers to ship_id = 1055"]}} {"set": {"query": "What is the brand and model of truck used in shipment id 1055?", "pos": ["shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year"], "neg": ["on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "customer in Florida refers to state = 'FL'", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "manufactured in year 2009 refers to model_year = 2009", "\"S K L Enterprises Inc\" is the cust_name", "shipment id 1028 refers to ship_id = 1028", "\"Peterbilt\" is the make"]}} {"set": {"query": "State the address of drivers who transported the shipment with weight greater than 50000 pounds.", "pos": ["shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000"], "neg": ["manufactured in year 2009 refers to model_year = 2009", "on March 7, 2016 refers to ship_date = '2016-03-07'", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "shipment no. 1346 refers to ship_id = 1346", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)"]}} {"set": {"query": "How many customers who live in California that are retailers?", "pos": ["\"retailer\" is the cust_type; live in California refers to state = 'CA'"], "neg": ["brand of truck refers to make", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "live refers to address", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100"]}} {"set": {"query": "What is the model year of the truck used in shipment id 1003?", "pos": ["shipment id 1003 refers to ship_id = 1003"], "neg": ["shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "first shipment refers to Min(ship_date); pounds refers to weight", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"Olympic Camper Sales Inc\" is the cust_name", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "most populated city refers to Max(population)", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)"]}} {"set": {"query": "Calculate the difference between the number of shipments shipped by the truck with the model year 2005 and model year 2006.", "pos": ["\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))"], "neg": ["manufactured in year 2009 refers to model_year = 2009", "shipment id 1055 refers to ship_id = 1055", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "shipment id 1028 refers to ship_id = 1028", "\"Connecticut\" is the state", "\"S K L Enterprises Inc\" is the cust_name", "\"California\" is the state; least populated city refers to Min(population)", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name"]}} {"set": {"query": "How many shipments were ordered by S K L Enterprises Inc in 2017?", "pos": ["\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017"], "neg": ["\"S K L Enterprises Inc\" is the cust_name", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "shipment no. 1346 refers to ship_id = 1346", "\"Peterbilt\" is the make", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "most populated city refers to Max(population)"]}} {"set": {"query": "What is the average weight of the goods being transported on a single shipment ordered by S K L Enterprises Inc?", "pos": ["\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))"], "neg": ["\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"Olympic Camper Sales Inc\" is the cust_name", "most populated city refers to Max(population)"]}} {"set": {"query": "Among all shipments delivered by Sue Newel, identify the percentage of shipments that were placed by Autoware Inc.", "pos": ["\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100"], "neg": ["\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)", "brand of truck refers to make", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "\"Cicero\" is the city; 'Illinois' is the state", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "\"S K L Enterprises Inc\" is the cust_name", "\"Olympic Camper Sales Inc\" is the cust_name"]}} {"set": {"query": "List out the state of driver who transported the shipment id 1055.", "pos": ["shipment id 1055 refers to ship_id = 1055"], "neg": ["least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "\"North Las Vegas\" is the city_name", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"Olympic Camper Sales Inc\" is the cust_name", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name"]}} {"set": {"query": "What is the shipment ID of the heaviest shipment that Zachery Hicks transported?", "pos": ["shipment ID refers to ship_id; heaviest shipment refers to Max(weight)"], "neg": ["shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "first shipment refers to Min(ship_date); pounds refers to weight", "most populated city refers to Max(population)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "\"Olympic Camper Sales Inc\" is the cust_name"]}} {"set": {"query": "What is the area of the destination city of shipment No.1346?", "pos": ["shipment no. 1346 refers to ship_id = 1346"], "neg": ["shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "\"Klett & Sons Repair\" is the cust_name", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "city refers to city_name", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)"]}} {"set": {"query": "Who was the customer of shipment no.1275? Give the customer's name.", "pos": ["shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name"], "neg": ["driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "\"Olympic Camper Sales Inc\" is the cust_name", "first shipment refers to Min(ship_date); pounds refers to weight", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "in California refers to state = 'CA'; most populated city refers to Max(population)", "oldest truck model refers to Min(model_year)", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "manufactured in year 2009 refers to model_year = 2009", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "\"Klett & Sons Repair\" is the cust_name"]}} {"set": {"query": "How many cities are in Connecticut?", "pos": ["\"Connecticut\" is the state"], "neg": ["weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment no. 1346 refers to ship_id = 1346", "\"manufacturer\" is the cust_type", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "customer in Florida refers to state = 'FL'", "live refers to address", "\"Olympic Camper Sales Inc\" is the cust_name", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "in California refers to state = 'CA'; most populated city refers to Max(population)"]}} {"set": {"query": "What is the full name of the driver that has done the most shipments in 2017?", "pos": ["driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))"], "neg": ["\"Connecticut\" is the state", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "shipment id 1003 refers to ship_id = 1003"]}} {"set": {"query": "Where does the driver of ship ID 1127 live?", "pos": ["live refers to address"], "neg": ["\"Cicero\" is the city; 'Illinois' is the state", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"California\" is the state; least populated city refers to Min(population)", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "city refers to city_name", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name"]}} {"set": {"query": "Calculate the population density of the city as the destination of shipment no.1369.", "pos": ["shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)"], "neg": ["\"Peterbilt\" is the make", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "\"California\" is the state; least populated city refers to Min(population)", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "shipment no. 1346 refers to ship_id = 1346", "shipment id 1055 refers to ship_id = 1055"]}} {"set": {"query": "What is the full name of the driver who delivered the most shipments to the least populated city?", "pos": ["least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))"], "neg": ["\"Florida\" is the state; \"Jacksonville\" is city_name;", "shipment no. 1346 refers to ship_id = 1346", "\"Klett & Sons Repair\" is the cust_name", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "oldest truck model refers to Min(model_year)", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"manufacturer\" is the cust_type"]}} {"set": {"query": "What is the first name of the driver who transported shipment id 1028?", "pos": ["shipment id 1028 refers to ship_id = 1028"], "neg": ["\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"manufacturer\" is the cust_type", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "manufactured in year 2009 refers to model_year = 2009", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"Olympic Camper Sales Inc\" is the cust_name", "\"Connecticut\" is the state", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name"]}} {"set": {"query": "What is the average shipment weight carried by the oldest Mack?", "pos": ["\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)"], "neg": ["January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "\"Connecticut\" is the state", "first shipment refers to Min(ship_date); pounds refers to weight", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "shipment id 1003 refers to ship_id = 1003", "\"Olympic Camper Sales Inc\" is the cust_name", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)"]}} {"set": {"query": "In total, how many shipments were transported to Olympic Camper Sales Inc?", "pos": ["\"Olympic Camper Sales Inc\" is the cust_name"], "neg": ["\"Connecticut\" is the state", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"S K L Enterprises Inc\" is the cust_name", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)", "city refers to city_name", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,"]}} {"set": {"query": "Who is the driver that transported the lightest weight of shipment? Provide the full name of the driver.", "pos": ["lightest weight refers to Min(weight); full name refers to first_name, last_name"], "neg": ["\"Florida\" is the state; \"Jacksonville\" is city_name;", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "most populated city refers to Max(population)", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "\"Cicero\" is the city; 'Illinois' is the state", "brand of truck refers to make"]}} {"set": {"query": "How many shipments with weight of no more than 1,000 pounds were shipped by the oldest truck?", "pos": ["weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)"], "neg": ["shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "\"manufacturer\" is the cust_type", "shipment no. 1346 refers to ship_id = 1346", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"California\" is the state; least populated city refers to Min(population)", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id"]}} {"set": {"query": "List the ship ID of shipments shipped to the most populated city.", "pos": ["most populated city refers to Max(population)"], "neg": ["shipment id 1003 refers to ship_id = 1003", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "manufactured in year 2009 refers to model_year = 2009", "\"Connecticut\" is the state", "lightest weight refers to Min(weight); full name refers to first_name, last_name"]}} {"set": {"query": "How many shipments were shipped to the least populated city in California?", "pos": ["\"California\" is the state; least populated city refers to Min(population)"], "neg": ["\"manufacturer\" is the cust_type", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "shipment id 1003 refers to ship_id = 1003", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "customer in Florida refers to state = 'FL'", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "live refers to address"]}} {"set": {"query": "How many of the shipments bound for New York City were shipped to Harry's Hot Rod Auto and Truck Accessories?", "pos": ["\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name"], "neg": ["live refers to address", "shipment id 1028 refers to ship_id = 1028", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "\"Cicero\" is the city; 'Illinois' is the state", "\"Klett & Sons Repair\" is the cust_name", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"North Las Vegas\" is the city_name", "most populated city refers to Max(population)", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)"]}} {"set": {"query": "What is the percentage of wholesaler customers who have shipment weight of not greater than 70000 pounds?", "pos": ["\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100"], "neg": ["customer in Florida refers to state = 'FL'", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "\"S K L Enterprises Inc\" is the cust_name", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "shipment id 1055 refers to ship_id = 1055", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "\"Olympic Camper Sales Inc\" is the cust_name", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)"]}} {"set": {"query": "How many shipments were delivered by the oldest truck model?", "pos": ["oldest truck model refers to Min(model_year)"], "neg": ["manufactured in year 2009 refers to model_year = 2009", "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "brand of truck refers to make", "\"manufacturer\" is the cust_type", "\"North Las Vegas\" is the city_name", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "on March 7, 2016 refers to ship_date = '2016-03-07'"]}} {"set": {"query": "How much more pounds in total were transported to New York than to Chicago?", "pos": ["\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))"], "neg": ["brand of truck refers to make", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "customer in Florida refers to state = 'FL'", "\"Cicero\" is the city; 'Illinois' is the state", "\"Peterbilt\" is the make", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "in California refers to state = 'CA'; most populated city refers to Max(population)", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id"]}} {"set": {"query": "How many shipments were ordered by a customer in Florida?", "pos": ["customer in Florida refers to state = 'FL'"], "neg": ["shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "\"Klett & Sons Repair\" is the cust_name", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "\"Connecticut\" is the state", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"retailer\" is the cust_type;\u00a0 IDs of shipments refers to ship_id", "shipment id 1028 refers to ship_id = 1028", "live refers to address", "\"Cicero\" is the city; 'Illinois' is the state"]}} {"set": {"query": "How many customers are manufacturer?", "pos": ["\"manufacturer\" is the cust_type"], "neg": ["\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "manufactured in year 2009 refers to model_year = 2009", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "in California refers to state = 'CA'; most populated city refers to Max(population)", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "city refers to city_name", "oldest truck model refers to Min(model_year)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "lightest weight refers to Min(weight); full name refers to first_name, last_name"]}} {"set": {"query": "Give the full name of driver who transported the items on 3/2/2016.", "pos": ["on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name"], "neg": ["\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "\"Connecticut\" is the state", "shipment no. 1346 refers to ship_id = 1346", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"Cicero\" is the city; 'Illinois' is the state"]}} {"set": {"query": "Among the top 5 heaviest shipments, how many shipments were transported via Mack?", "pos": ["heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'"], "neg": ["\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"California\" is the state; least populated city refers to Min(population)", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "first shipment refers to Min(ship_date); pounds refers to weight", "\"Cicero\" is the city; 'Illinois' is the state", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "shipment id 1028 refers to ship_id = 1028", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name"]}} {"set": {"query": "List the driver's name of the shipment shipped on February 22, 2016.", "pos": ["on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name"], "neg": ["shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "shipment id 1055 refers to ship_id = 1055", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "\"manufacturer\" is the cust_type", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"S K L Enterprises Inc\" is the cust_name"]}} {"set": {"query": "In which year has the greatest number of cases where Handgun was used as weapon?", "pos": ["year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'"], "neg": ["subject were deceased refers to subject_statuses = 'Deceased'", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'"]}} {"set": {"query": "List all cases from the year 2012 in which the subject was deceased", "pos": ["case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'"], "neg": ["number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%"]}} {"set": {"query": "What is the percentage of the cases involved more than 3 officers from year 2010 to 2015?", "pos": ["more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%"], "neg": ["'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%"]}} {"set": {"query": "How many instances were found in June 2015?", "pos": ["in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number"], "neg": [" female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "subject were deceased refers to subject_statuses = 'Deceased'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'"]}} {"set": {"query": "Did the number of cases with Vehicle as subject weapon increase or decrease from year 2007 to 2008. State the difference.", "pos": ["number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'"], "neg": ["voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "subject were deceased refers to subject_statuses = 'Deceased'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'"]}} {"set": {"query": "From the 'Injured' statuses of the subject, what is the ratio of weapons used are knife against handgun?", "pos": ["the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'"], "neg": ["male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'"]}} {"set": {"query": "What is the proportion of white males and females in the police force?", "pos": ["white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%"], "neg": ["in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "subject were deceased refers to subject_statuses = 'Deceased'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'"]}} {"set": {"query": "From the cases where the subject were deceased, list the subject's last name, gender, race and case number.", "pos": ["subject were deceased refers to subject_statuses = 'Deceased'"], "neg": ["more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%"]}} {"set": {"query": "In how many cases where the subject was a female was the subject's status listed as Deceased?", "pos": [" female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'"], "neg": ["subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%"]}} {"set": {"query": "How many incidents in which the subject's weapon was a vehicle were investigated by a female officer?", "pos": ["subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'"], "neg": ["more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "subject were deceased refers to subject_statuses = 'Deceased'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'"]}} {"set": {"query": "How many more black female victims than white female victims were discovered?", "pos": ["black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'"], "neg": ["in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "subject were deceased refers to subject_statuses = 'Deceased'", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%"]}} {"set": {"query": "Which near-death incident did a policeman by the name of Ruben Fredirick look into? What is the victim in this incident's race and gender?", "pos": ["near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'"], "neg": [" female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "subject were deceased refers to subject_statuses = 'Deceased'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%"]}} {"set": {"query": "Among the 'Handgun' weapon used by subject, how many percent were 'Shoot and Miss'?", "pos": ["'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%"], "neg": ["number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "subject were deceased refers to subject_statuses = 'Deceased'"]}} {"set": {"query": "What is the percentage of subject who are female used the Vehicle as weapon?", "pos": ["female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%"], "neg": ["in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "subject were deceased refers to subject_statuses = 'Deceased'", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'"]}} {"set": {"query": "Who are the officers involved in cases that are voted as 'No Bill'. List their last name and gender.", "pos": ["voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'"], "neg": ["white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "subject were deceased refers to subject_statuses = 'Deceased'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%"]}} {"set": {"query": "Among all the male officers, what is the percentage of them are White?", "pos": ["male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%"], "neg": ["in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "subject were deceased refers to subject_statuses = 'Deceased'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'"]}} {"set": {"query": "What is the birth place of the cast or crew member who won the Best Voice-Over Performance in Online Film & Television Association in 2009?", "pos": ["won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009"], "neg": ["highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "voice over for and was awarded refers to award like '%Voice-Over%';", "Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "born before 1970 refers to birthdate < '1970-01-01'", "lowest rating refers to Min(rating)", "nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%", "from countries other than the USA refers to birth_country ! = 'USA'", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'"]}} {"set": {"query": "Which episode of The simpson 20s: Season 20 has received the most nominations? Indicate the title.", "pos": ["received the most nomination refers to MAX(COUNT(episode_id))"], "neg": ["in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'", "won refers to result = 'Winner'; first award refers to Min(year)", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));", "website address refers to episode_image", "star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "director refers to role = 'director'", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6"]}} {"set": {"query": "Which episode did the composer win for Outstanding Music Composition for a Series (Original Dramatic Score) with more than 200 votes?", "pos": ["more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'"], "neg": ["born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "episode 426 refers to number_in_series = 426", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "largest number of votes refers to MAX(votes)", "2 stars refers to stars = 2; 9 votes refers to votes = 9", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "name refers to person; the role Smithers refers to character = 'Smithers'", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "\"riot\" and \"cake\" are both keyword"]}} {"set": {"query": "How many WGA Award (TV) award recipients were born in the USA from 2009 to 2010?", "pos": ["WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'"], "neg": ["voice over for and was awarded refers to award like '%Voice-Over%';", "from countries other than the USA refers to birth_country ! = 'USA'", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "largest number of votes refers to MAX(votes)", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "director refers to role = 'director'", "won refers to result = 'Winner'; first award refers to Min(year)"]}} {"set": {"query": "State the birth name of crews who are director and have birth country in South Korea.", "pos": ["director refers to role = 'director'"], "neg": ["\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "star score of 10 refers to stars = 10", "rating below 7 refers to rating < 7", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "aired between October to November refers to strftime('%m', air_date) between '10' and '11';", "\"riot\" and \"cake\" are both keyword", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8"]}} {"set": {"query": "What is the average height of people from USA?", "pos": ["people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)"], "neg": ["winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'", "from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "is credited refers to credited = 'true';", "\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "more than 1000 votes refers to votes > 1000", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29"]}} {"set": {"query": "Name the title of the episode where Pamela Hayden voiced the character 'Ruthie.'", "pos": ["\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'"], "neg": ["\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "website address refers to episode_image", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "director refers to role = 'director'", "in November 2008 refers to air_date LIKE '2008-11%'", "episode \"Take My Life, Please\" refers to title = 'Take My Life, Please'", "worst rated episode refers to MIN(rating)"]}} {"set": {"query": "What is the name of the person that has the highest number of nominated award but didn't win?", "pos": ["nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))"], "neg": ["\"Take My Life,Please\" is the title of episode", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009", "in 2009 refers to year = 2009", "\"New York\" is the birth_place; 'USA' is the birth_region", "scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5", "won refers to result = 'Winner'; in 2017 refers to year = 2017", "are not included in the credit list refers to credited = ''", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'"]}} {"set": {"query": "What is the title of episode with 5 stars and nominated for Prism Award which is aired on April 19, 2009?", "pos": ["5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'"], "neg": ["winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "\"The Tiny Canadian\" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role\n", "rating below 7 refers to rating < 7"]}} {"set": {"query": "Among episodes from 10 to 20, which episode has more than 200 votes?", "pos": ["episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200"], "neg": ["nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950", "director refers to role = 'director'", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'", "award won refers to result = 'Winner'", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009"]}} {"set": {"query": "Among the crew members of the simpson 20s born in the New York city, how many of them were born after the year 1970?", "pos": ["born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970"], "neg": ["crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'", "In 2010 refers to year = 2010", "rating below 7 refers to rating < 7", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "star score greater than 8 refers to stars > 8"]}} {"set": {"query": "What award did the character Homer simpson 20 achieve in 2009?", "pos": ["in 2009 refers to year = 2009"], "neg": ["\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "from countries other than the USA refers to birth_country ! = 'USA'", "oldest refers to Min(birthdate)", "best rating scale refers to stars = 10", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970"]}} {"set": {"query": "What is the awarded category that the awarded character Lenny won?", "pos": ["\n\nawarded category refers to award_category"], "neg": ["episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';\u00a0 from 2009 to 2010 refers to year > = '2009' and\u00a0 year < = '2010'", "highest number of vote of the star score refers to max(votes)", "2 stars refers to stars = 2; 9 votes refers to votes = 9", "episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'", "highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'", "\"riot\" and \"cake\" are both keyword", "born in the USA refers to birth_country = 'USA'", "voiced refers to role; role = 'Helen Lovejoy\"", "aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5"]}} {"set": {"query": "How many episodes have the star score greater than 8?", "pos": ["star score greater than 8 refers to stars > 8"], "neg": ["won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "average high = Divide(Sum(height_meters), Count(name))", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n", "2 stars refers to stars = 2; 9 votes refers to votes = 9", "from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "won refers to result = 'Winner'; first award refers to Min(year)", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))"]}} {"set": {"query": "What character did Dan Castellaneta play that won him an award for Outstanding Voice-Over Performance in 2009 in the Primetime Emmy Awards?", "pos": ["\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009"], "neg": ["award winner refers to result = 'Winner'; 'USA' is the birth_country", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "largest number of votes refers to MAX(votes)", "average high = Divide(Sum(height_meters), Count(name))", "stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "more than 100 votes refers to votes > 100", "is credited refers to credited = 'true';", "star score of 10 refers to stars = 10"]}} {"set": {"query": "Please indicate which writer has an episode star score greater than 5 in 2009.", "pos": ["writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009"], "neg": ["in 2009 refers to year = 2009", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage", "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009", "episode 'Take My Life, Please' refers to title = \u00a0 'Take My Life, Please'", "aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "received the most nomination refers to MAX(COUNT(episode_id))", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)"]}} {"set": {"query": "How many episodes have more than 1000 votes?", "pos": ["more than 1000 votes refers to votes > 1000"], "neg": ["\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'", "name refers to person; the role Smithers refers to character = 'Smithers'", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "are not included in the credit list refers to credited = ''", "prospective recipients refers to result = 'Nominee'", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n", "voiced refers to role; role = 'Helen Lovejoy\""]}} {"set": {"query": "Among the episodes aired in 2008 with votes ranges from 920 to 950, list their percent.", "pos": ["aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950"], "neg": ["have air date in 2008 refers to air_date LIKE '2008%'", "highest votes refers to max(votes); nominated refers to result = 'Nominee'", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'", "won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009", "star score of 10 refers to stars = 10", "episode 426 refers to number_in_series = 426", "5th episode refers to episode = 5", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa"]}} {"set": {"query": "Write down the summary of episode whereby it has crew members that are not included in the credit list.", "pos": ["are not included in the credit list refers to credited = ''"], "neg": ["have air date in 2008 refers to air_date LIKE '2008%'", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "rating below 7 refers to rating < 7", "more than 100 votes refers to votes > 100"]}} {"set": {"query": "Which episode id did award Outstanding Animated Program (For Programming Less Than One Hour) with an episode star score of 10?", "pos": ["star score of 10 refers to stars = 10"], "neg": ["born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "more than 100 votes refers to votes > 100", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "episode 'Take My Life, Please' refers to title = \u00a0 'Take My Life, Please'", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n", "won refers to result = 'Winner'; first award refers to Min(year)", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage"]}} {"set": {"query": "What is the percentage of star score 5 that was collected by title \"Sex, Pies and Idiot Scrapes\"?", "pos": ["percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage"], "neg": ["nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "\"New York\" is the birth_place; 'USA' is the birth_region", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "voice over for and was awarded refers to award like '%Voice-Over%';", "website address refers to episode_image"]}} {"set": {"query": "How old was the awardee when he/she won the first-ever award for Outstanding Voice-Over Performance in Primetime Emmy Awards?", "pos": ["\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))"], "neg": ["star score of 10 refers to stars = 10", "information about the music department refers to category = 'Music Department'", "in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));", "born before 1970 refers to birthdate < '1970-01-01'", "prospective recipients refers to result = 'Nominee'", "director refers to role = 'director'", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "more than 100 votes refers to votes > 100"]}} {"set": {"query": "How many crew members who were born in the USA were nominated for the Outstanding Animated Program (For Programming Less Than One Hour) award in 2009?", "pos": ["born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009"], "neg": ["In 2010 refers to year = 2010", "in 2009 refers to year = 2009", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;\u00a0 ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "won refers to result = 'Winner'; in 2017 refers to year = 2017", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage"]}} {"set": {"query": "List the name of persons who were not included in the credit for the 'How the Test Was Won' episode.", "pos": ["\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person"], "neg": ["star score greater than 8 refers to stars > 8", "\n\nawarded category refers to award_category", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "are not included in the credit list refers to credited = ''", "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''"]}} {"set": {"query": "How many episodes was Dell Hake not included in the credit list?", "pos": ["\"Dell Hake\" is the person; not included in the credit list refers to credited = ''"], "neg": ["in 2009 refers to year = 2009; name of awarded character refers to character\n\n", "best rating scale refers to stars = 10", "most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category", "\"Marc Wilmore\" is the name of person", "\"riot\" and \"cake\" are both keyword", "episode 426 refers to number_in_series = 426", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "2 stars refers to stars = 2; 9 votes refers to votes = 9", "won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';"]}} {"set": {"query": "What is the title of the episode that received the lowest rating?", "pos": ["lowest rating refers to Min(rating)"], "neg": ["\"New York\" is the birth_place; 'USA' is the birth_region", "more than 100 votes refers to votes > 100", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "in 2009 refers to year = 2009", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "highest votes refers to max(votes); nominated refers to result = 'Nominee'", "\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)"]}} {"set": {"query": "How many of the crew members who are taller than 1.70m were born in Canada?", "pos": ["taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'"], "neg": ["won refers to result = 'Winner'; in 2017 refers to year = 2017", "from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "largest number of votes refers to MAX(votes)", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "voiced refers to role; role = 'Helen Lovejoy\"", "highest votes refers to max(votes); nominated refers to result = 'Nominee'", "won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009"]}} {"set": {"query": "List down the rating of episodes that were produced by Jason Bikowski.", "pos": ["produced by Jason Bikowski refers to person = 'Jason Bikowski'"], "neg": ["additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "worst rated episode refers to MIN(rating)", "won refers to result = 'Winner'; first award refers to Min(year)", "award won refers to result = 'Winner'", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "\"The Tiny Canadian\" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role\n", "\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "in 2009 refers to year = 2009", "2 stars refers to stars = 2; 9 votes refers to votes = 9"]}} {"set": {"query": "Among the episodes which have star score less than 8, how many episodes were aired in 2009?", "pos": ["star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'"], "neg": ["more than 1000 votes refers to votes > 1000", "won refers to result = 'Winner'; first award refers to Min(year)", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'", "oldest refers to Min(birthdate)", "won refers to result = 'Winner'; in 2017 refers to year = 2017", "average high = Divide(Sum(height_meters), Count(name))", "star score of 10 refers to stars = 10", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'"]}} {"set": {"query": "In 2010, which episode did Joel H. Cohen win an award for?", "pos": ["In 2010 refers to year = 2010"], "neg": ["from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'", "highest votes refers to max(votes); nominated refers to result = 'Nominee'", "\"The Tiny Canadian\" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role\n", "\"Marc Wilmore\" is the name of person", "born in the USA refers to birth_country = 'USA'", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009", "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009", "between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'"]}} {"set": {"query": "How many crew have their own nickname? List their full name along with the nickname.", "pos": ["crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL"], "neg": ["star score of 10 refers to stars = 10", "worst rated episode refers to MIN(rating)", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'", "aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950", "between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'", "average high = Divide(Sum(height_meters), Count(name))", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''"]}} {"set": {"query": "What are the keywords for episode 426 of the series?", "pos": ["episode 426 refers to number_in_series = 426"], "neg": ["highest votes refers to max(votes); nominated refers to result = 'Nominee'", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "episode 'Take My Life, Please' refers to title = \u00a0 'Take My Life, Please'", "in November 2008 refers to air_date LIKE '2008-11%'", "more than 100 votes refers to votes > 100", "aired between October to November refers to strftime('%m', air_date) between '10' and '11';", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'", "highest number of vote of the star score refers to max(votes)", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'"]}} {"set": {"query": "How many 1 star ratings are there in the worst rated episode of the season?", "pos": ["worst rated episode refers to MIN(rating)"], "neg": ["aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "\"The Tiny Canadian\" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role\n", "director refers to role = 'director'", "star score greater than 8 refers to stars > 8", "between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'", "star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "star score of 10 refers to stars = 10"]}} {"set": {"query": "Which country has the tallest person in the crew?", "pos": ["country refers to birth_country; tallest person refers to max(height_meters)"], "neg": ["between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'", "nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "received the most nomination refers to MAX(COUNT(episode_id))", "aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "information about the music department refers to category = 'Music Department'", "average high = Divide(Sum(height_meters), Count(name))", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)"]}} {"set": {"query": "Among the episodes which have star score greater than 5, how many episodes have air date in 2008?", "pos": ["star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'"], "neg": ["\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage", "\n\nawarded category refers to award_category", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "\"riot\" and \"cake\" are both keyword"]}} {"set": {"query": "What are the keywords of the episodes which have the air date in 2008?", "pos": ["have air date in 2008 refers to air_date LIKE '2008%'"], "neg": ["director refers to role = 'director'", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'", "country refers to birth_country; tallest person refers to max(height_meters)", "won refers to result = 'Winner'; first award refers to Min(year)", "stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "average high = Divide(Sum(height_meters), Count(name))"]}} {"set": {"query": "What is the episode ID that received 2 stars and 9 votes?", "pos": ["2 stars refers to stars = 2; 9 votes refers to votes = 9"], "neg": ["\"riot\" and \"cake\" are both keyword", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "aired on 3/22/2009 refers to air_date = '2009-03-22'", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "episode 426 refers to number_in_series = 426", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "website address refers to episode_image", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'"]}} {"set": {"query": "Calculate the total rating of winners in OFTA Television Award and WGA Award (TV).", "pos": ["winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'"], "neg": ["winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "in 2009 refers to year = 2009", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "aired between October to November refers to strftime('%m', air_date) between '10' and '11';", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));"]}} {"set": {"query": "In Season 20 Episode 11, how many times was Doofus included in the credit list?", "pos": ["in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'"], "neg": ["voice over for and was awarded refers to award like '%Voice-Over%';", "best rating scale refers to stars = 10", "star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'", "scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5", "largest number of votes refers to MAX(votes)", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'"]}} {"set": {"query": "Please list the names of all the awards won by the crew member whose nickname is Doofus.", "pos": ["award won refers to result = 'Winner'"], "neg": ["nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "website address refers to episode_image", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "5th episode refers to episode = 5", "lowest rating refers to Min(rating)", "more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'", "voiced refers to role; role = 'Helen Lovejoy\"", "\n\nawarded category refers to award_category", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series"]}} {"set": {"query": "What was the character that Dan Castellaneta did the voice over for and was awarded?", "pos": ["voice over for and was awarded refers to award like '%Voice-Over%';"], "neg": ["episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'", "from countries other than the USA refers to birth_country ! = 'USA'", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009", "more than 100 votes refers to votes > 100", "average high = Divide(Sum(height_meters), Count(name))", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100"]}} {"set": {"query": "In episode nominated in Annie Awards, how many of the episodes have a percent greater than 6?", "pos": ["nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6"], "neg": ["have air date in 2008 refers to air_date LIKE '2008%'", "\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'", "aired on 3/22/2009 refers to air_date = '2009-03-22'", "voiced refers to role; role = 'Helen Lovejoy\"", "stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "in 2009 refers to year = 2009"]}} {"set": {"query": "How many votes of 5-star did the episode \"Lisa the Drama Queen\" receive?", "pos": ["episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';"], "neg": ["average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "in 2009 refers to year = 2009", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "from countries other than the USA refers to birth_country ! = 'USA'", "voiced refers to role; role = 'Helen Lovejoy\"", "average high = Divide(Sum(height_meters), Count(name))", "star score of 10 refers to stars = 10", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "In 2010 refers to year = 2010"]}} {"set": {"query": "List down the title of episode S20-E1, S20-E2 & S20-E3.", "pos": ["episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'"], "neg": ["\"Marc Wilmore\" is the name of person", "\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'", "aired on 3/22/2009 refers to air_date = '2009-03-22'", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'"]}} {"set": {"query": "Which title is the winner of Best International TV Series in 2017?", "pos": ["winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n"], "neg": ["award won refers to result = 'Winner'", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "more than 100 votes refers to votes > 100", "name refers to person; the role Smithers refers to character = 'Smithers'", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "voice over for and was awarded refers to award like '%Voice-Over%';"]}} {"set": {"query": "What is the total number of episode with a rating below 7?", "pos": ["rating below 7 refers to rating < 7"], "neg": ["produced by Jason Bikowski refers to person = 'Jason Bikowski'", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "prospective recipients refers to result = 'Nominee'", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "award won refers to result = 'Winner'", "are not included in the credit list refers to credited = ''", "more than 100 votes refers to votes > 100", "star score of 10 refers to stars = 10"]}} {"set": {"query": "List the name of all awards along with the award category, nominated by Marc Wilmore.", "pos": ["\"Marc Wilmore\" is the name of person"], "neg": ["people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "website address refers to episode_image", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'", "\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'", "aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950"]}} {"set": {"query": "In between the episode 5 and10 of season 2, how many of them are credited for casting?", "pos": ["between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'"], "neg": ["aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "director refers to role = 'director'", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'", "aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'", "aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'"]}} {"set": {"query": "What is the percentage of Primetime Emmy nominated episodes with a rating over 7 to all the episodes that have a rating over 7?", "pos": ["\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100"], "neg": ["aired between October to November refers to strftime('%m', air_date) between '10' and '11';", "star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'", "lowest rating refers to Min(rating)", "won refers to result = 'Winner'; first award refers to Min(year)", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category"]}} {"set": {"query": "What is the title of episode that has a keyword of 'riot' and 'cake'?", "pos": ["\"riot\" and \"cake\" are both keyword"], "neg": ["average high = Divide(Sum(height_meters), Count(name))", "in 2009 refers to year = 2009", "information about the music department refers to category = 'Music Department'", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "country refers to birth_country; tallest person refers to max(height_meters)", "\"Take My Life,Please\" is the title of episode", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "\"New York\" is the birth_place; 'USA' is the birth_region", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';\u00a0 from 2009 to 2010 refers to year > = '2009' and\u00a0 year < = '2010'"]}} {"set": {"query": "What percentage of votes are from the nominated episodes?", "pos": ["nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage"], "neg": ["held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'", "website address refers to episode_image", "born in the USA refers to birth_country = 'USA'", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))"]}} {"set": {"query": "State the number of votes for episode with rating of 7 and above.", "pos": ["rating of 7 and above refers to rating > 7.0"], "neg": ["\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'", "director refers to role = 'director'", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''", "prospective recipients refers to result = 'Nominee'", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))", "\"The Tiny Canadian\" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role\n", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'"]}} {"set": {"query": "How many crews were born in the USA?", "pos": ["born in the USA refers to birth_country = 'USA'"], "neg": ["\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5", "average high = Divide(Sum(height_meters), Count(name))", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950", "information about the music department refers to category = 'Music Department'", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "has nickname refers to nickname is NOT NULL", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'"]}} {"set": {"query": "What are the keywords of the episode \"Take My Life, Please\"?", "pos": ["episode \"Take My Life, Please\" refers to title = 'Take My Life, Please'"], "neg": ["\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "rating below 7 refers to rating < 7", "highest number of vote of the star score refers to max(votes)", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5", "aired on 3/22/2009 refers to air_date = '2009-03-22'", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'"]}} {"set": {"query": "Which episode has the largest number of votes?", "pos": ["largest number of votes refers to MAX(votes)"], "neg": ["stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "star score greater than 8 refers to stars > 8", "most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category", "won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009", "website address refers to episode_image", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa"]}} {"set": {"query": "What is the credited cast for the episode \"In the Name of the Grandfather\"?", "pos": ["credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'"], "neg": ["star score greater than 8 refers to stars > 8", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));"]}} {"set": {"query": "Who did \"The Tiny Canadian\" play as in the show?", "pos": ["\"The Tiny Canadian\" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role\n"], "neg": ["in 2009 refers to year = 2009", "aired between October to November refers to strftime('%m', air_date) between '10' and '11';", "aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'", "episode 426 refers to number_in_series = 426", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'", "\"Marc Wilmore\" is the name of person", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n", "from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'"]}} {"set": {"query": "Describe the birth country, height and person name who were not included in credit list with category of casting.", "pos": ["height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'"], "neg": ["being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "episode 426 refers to number_in_series = 426", "episode \"Take My Life, Please\" refers to title = 'Take My Life, Please'", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "In 2010 refers to year = 2010", "award won refers to result = 'Winner'", "information about the music department refers to category = 'Music Department'", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "country refers to birth_country; tallest person refers to max(height_meters)"]}} {"set": {"query": "How many additional timers were born in USA?", "pos": ["additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'"], "neg": ["episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "born before 1970 refers to birthdate < '1970-01-01'", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "country refers to birth_country; tallest person refers to max(height_meters)", "5th episode refers to episode = 5", "is credited refers to credited = 'true';", "lowest rating refers to Min(rating)", "voice over for and was awarded refers to award like '%Voice-Over%';", "crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL", "\n\nawarded category refers to award_category"]}} {"set": {"query": "Based on the credits, state how many roles were played in the 5th episode of simpson 20.", "pos": ["5th episode refers to episode = 5"], "neg": ["In 2010 refers to year = 2010", "rating below 7 refers to rating < 7", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL", "director refers to role = 'director'", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009", "award won refers to result = 'Winner'"]}} {"set": {"query": "What is the voting numbers and percentage of the best rating scale of the episode which had keyword of \"arab stereotype\"?", "pos": ["best rating scale refers to stars = 10"], "neg": ["writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "highest votes refers to max(votes); nominated refers to result = 'Nominee'", "website address refers to episode_image", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "has nickname refers to nickname is NOT NULL", "voice over for and was awarded refers to award like '%Voice-Over%';", "won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009", "rating of 7 and above refers to rating > 7.0", "episode 426 refers to number_in_series = 426"]}} {"set": {"query": "Indicate the name and category of the most recent award received by the show.", "pos": ["most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category"], "neg": ["episode 'Take My Life, Please' refers to title = \u00a0 'Take My Life, Please'", "prospective recipients refers to result = 'Nominee'", "\n\nawarded category refers to award_category", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "information about the music department refers to category = 'Music Department'", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "highest number of vote of the star score refers to max(votes)", "highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'"]}} {"set": {"query": "Please list the name of crew that were born before 1970.", "pos": ["born before 1970 refers to birthdate < '1970-01-01'"], "neg": ["episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "5th episode refers to episode = 5", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009", "have air date in 2008 refers to air_date LIKE '2008%'", "rating below 7 refers to rating < 7", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009"]}} {"set": {"query": "Please list all of the episodes that aired in 2008 that have the highest number of votes for the maximum star rating.", "pos": ["aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10"], "neg": ["height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'", "information about the music department refers to category = 'Music Department'", "worst rated episode refers to MIN(rating)", "aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'", "Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950", "average high = Divide(Sum(height_meters), Count(name))", "largest number of votes refers to MAX(votes)"]}} {"set": {"query": "What was the first award won by the cast or crew member of the show? Give the name of the person who won the said award.", "pos": ["won refers to result = 'Winner'; first award refers to Min(year)"], "neg": ["held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%", "crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'", "star score greater than 8 refers to stars > 8", "from countries other than the USA refers to birth_country ! = 'USA'", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series", "born before 1970 refers to birthdate < '1970-01-01'", "more than 100 votes refers to votes > 100", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)"]}} {"set": {"query": "Calculate the percentage of the nominees who were born in USA.", "pos": ["nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%"], "neg": ["largest number of votes refers to MAX(votes)", "information about the music department refers to category = 'Music Department'", "aired on 3/22/2009 refers to air_date = '2009-03-22'", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'", "director refers to role = 'director'", "episode 426 refers to number_in_series = 426", "\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "star score greater than 8 refers to stars > 8", "oldest refers to Min(birthdate)", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''"]}} {"set": {"query": "Out of the rating of 6.8 scored by title \"No Loan Again, Naturally\", how many percent of it consists of scores 5 to 10?", "pos": ["scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5"], "neg": ["Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "star score of 10 refers to stars = 10", "oldest refers to Min(birthdate)", "star score greater than 8 refers to stars > 8", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "aired on 3/22/2009 refers to air_date = '2009-03-22'"]}} {"set": {"query": "List down the episode ID of episodes aired in 2008 with 5 stars and below.", "pos": ["aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5"], "neg": ["Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "name refers to person; the role Smithers refers to character = 'Smithers'", "information about the music department refers to category = 'Music Department'", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'", "largest number of votes refers to MAX(votes)", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'", "born before 1970 refers to birthdate < '1970-01-01'"]}} {"set": {"query": "Find the winning rate of award in 2010. Describe the winner name, award name, episode title and role of the winner in that episode.", "pos": ["in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));"], "neg": ["aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "\"riot\" and \"cake\" are both keyword", "rating of 7 and above refers to rating > 7.0", "award won refers to result = 'Winner'", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''", "\"New York\" is the birth_place; 'USA' is the birth_region", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970"]}} {"set": {"query": "Name all the person who involved in the making of simpson 20s episode that aired between October to November.", "pos": ["aired between October to November refers to strftime('%m', air_date) between '10' and '11';"], "neg": ["in 2009 refers to year = 2009", "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009", "in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'", "star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;\u00a0 ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));"]}} {"set": {"query": "What is the birth name of the person who voiced 'Helen Lovejoy?'", "pos": ["voiced refers to role; role = 'Helen Lovejoy\""], "neg": ["aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "highest votes refers to max(votes); nominated refers to result = 'Nominee'", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "has nickname refers to nickname is NOT NULL", "voice over for and was awarded refers to award like '%Voice-Over%';", "oldest refers to Min(birthdate)", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'"]}} {"set": {"query": "In year 2009, what is the percentage of the episode titled by \"Gone Maggie Gone\" being nominated?", "pos": ["being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%"], "neg": ["2 stars refers to stars = 2; 9 votes refers to votes = 9", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "from countries other than the USA refers to birth_country ! = 'USA'", "episode 426 refers to number_in_series = 426", "received the most nomination refers to MAX(COUNT(episode_id))", "voiced refers to role; role = 'Helen Lovejoy\"", "episode \"Take My Life, Please\" refers to title = 'Take My Life, Please'", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009"]}} {"set": {"query": "Who is the writer for the episode with the most 10 star votes?", "pos": ["writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10"], "neg": ["\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "in November 2008 refers to air_date LIKE '2008-11%'", "won refers to result = 'Winner'; first award refers to Min(year)", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "more than 100 votes refers to votes > 100", "\"The Tiny Canadian\" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role\n", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "\n\nawarded category refers to award_category"]}} {"set": {"query": "List the stars of episodes aired in November 2008.", "pos": ["in November 2008 refers to air_date LIKE '2008-11%'"], "neg": ["information about the music department refers to category = 'Music Department'", "oldest refers to Min(birthdate)", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n", "more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'", "voiced refers to role; role = 'Helen Lovejoy\"", "rating below 7 refers to rating < 7", "episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6"]}} {"set": {"query": "What are the roles of the cast and crew from countries other than the USA?", "pos": ["from countries other than the USA refers to birth_country ! = 'USA'"], "neg": ["has nickname refers to nickname is NOT NULL", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "in November 2008 refers to air_date LIKE '2008-11%'", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "is credited refers to credited = 'true';"]}} {"set": {"query": "How many persons were born in New York, USA?", "pos": ["\"New York\" is the birth_place; 'USA' is the birth_region"], "neg": ["aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "aired on 3/22/2009 refers to air_date = '2009-03-22'", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "5th episode refers to episode = 5", "2 stars refers to stars = 2; 9 votes refers to votes = 9", "from countries other than the USA refers to birth_country ! = 'USA'", "is credited refers to credited = 'true';", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "worst rated episode refers to MIN(rating)", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009"]}} {"set": {"query": "What award did the episode that aired on 11/30/2008 win?", "pos": ["aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'"], "neg": ["aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950", "average high = Divide(Sum(height_meters), Count(name))", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "are not included in the credit list refers to credited = ''", "5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;\u00a0 ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')", "in November 2008 refers to air_date LIKE '2008-11%'", "website address refers to episode_image", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "worst rated episode refers to MIN(rating)", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200"]}} {"set": {"query": "State the birth place of co-executive producer for nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award.", "pos": ["co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'"], "neg": ["\"riot\" and \"cake\" are both keyword", "stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "prospective recipients refers to result = 'Nominee'", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "information about the music department refers to category = 'Music Department'", "more than 1000 votes refers to votes > 1000", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'", "2 stars refers to stars = 2; 9 votes refers to votes = 9", "country refers to birth_country; tallest person refers to max(height_meters)", "star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'"]}} {"set": {"query": "What are the episodes Oscar Cervantes is credited with?", "pos": ["is credited refers to credited = 'true';"], "neg": ["director refers to role = 'director'", "episode 426 refers to number_in_series = 426", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "in 2009 refers to year = 2009", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series"]}} {"set": {"query": "How many episodes were aired between October and November 2008?", "pos": ["between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'"], "neg": ["scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'", "episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'", "\"Marc Wilmore\" is the name of person", "born in the USA refers to birth_country = 'USA'", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "highest votes refers to max(votes); nominated refers to result = 'Nominee'", "is credited refers to credited = 'true';", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'"]}} {"set": {"query": "What is the average heights of crew members from Animation Department?", "pos": ["from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'"], "neg": ["born in the USA refers to birth_country = 'USA'", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "2 stars refers to stars = 2; 9 votes refers to votes = 9", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "oldest refers to Min(birthdate)", "won refers to result = 'Winner'; in 2017 refers to year = 2017", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "are not included in the credit list refers to credited = ''"]}} {"set": {"query": "List the title of the episode with stars greater than the 70% of average stars of all episodes.", "pos": ["stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)"], "neg": ["most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category", "prospective recipients refers to result = 'Nominee'", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "have air date in 2008 refers to air_date LIKE '2008%'", "award won refers to result = 'Winner'", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'"]}} {"set": {"query": "What is The simpson 20s: Season 20 average awards winning rate?", "pos": ["average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));"], "neg": ["oldest refers to Min(birthdate)", "has nickname refers to nickname is NOT NULL", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "won refers to result = 'Winner'; first award refers to Min(year)", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'", "average high = Divide(Sum(height_meters), Count(name))", "aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'"]}} {"set": {"query": "List out the names of the awarded character in the awards held in 2009.", "pos": ["in 2009 refers to year = 2009; name of awarded character refers to character\n\n"], "neg": ["2 stars refers to stars = 2; 9 votes refers to votes = 9", "is credited refers to credited = 'true';", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "largest number of votes refers to MAX(votes)", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage", "\"Primetime Emmy' is the award_category;\u00a0 rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "from countries other than the USA refers to birth_country ! = 'USA'", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8"]}} {"set": {"query": "What is the keyword for episodes with stars score of 10 at 30% and above?", "pos": ["stars score of 10 at 30% and above refers to stars = 10 and percent > 29"], "neg": ["winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "episode 426 refers to number_in_series = 426", "star score greater than 8 refers to stars > 8", "are not included in the credit list refers to credited = ''", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "\n\nawarded category refers to award_category", "won refers to result = 'Winner'; first award refers to Min(year)", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n"]}} {"set": {"query": "Find the average height for each person.", "pos": ["average high = Divide(Sum(height_meters), Count(name))"], "neg": ["produced by Jason Bikowski refers to person = 'Jason Bikowski'", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "name refers to person; the role Smithers refers to character = 'Smithers'", "worst rated episode refers to MIN(rating)", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'"]}} {"set": {"query": "List out the birth name of crews who are co-executive producer and higher than 1.60 meters.", "pos": ["co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60"], "neg": ["in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));", "episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'", "received the most nomination refers to MAX(COUNT(episode_id))", "is credited refers to credited = 'true';", "\"New York\" is the birth_place; 'USA' is the birth_region", "highest number of vote of the star score refers to max(votes)", "voice over for and was awarded refers to award like '%Voice-Over%';", "lowest rating refers to Min(rating)", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'"]}} {"set": {"query": "For the episode who won the award held by Jupiter Award, describe award name, aired date and rating of that episode.", "pos": ["held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'"], "neg": ["\"riot\" and \"cake\" are both keyword", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'", "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)", "\"New York\" is the birth_place; 'USA' is the birth_region", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'", "between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'", "voiced refers to role; role = 'Helen Lovejoy\"", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage"]}} {"set": {"query": "Name the performer who won Emmy Award for Outstanding Voice-Over Performance by playing Homer simpson 20.", "pos": ["Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'"], "neg": ["highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'", "worst rated episode refers to MIN(rating)", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "\"riot\" and \"cake\" are both keyword", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series", "crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL", "aired between October to November refers to strftime('%m', air_date) between '10' and '11';"]}} {"set": {"query": "What is the ratio between the 5 stars votes for 'No Loan Again, Naturally' episode and 'Coming to Homerica' episode?", "pos": ["5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;\u00a0 ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')"], "neg": ["\"New York\" is the birth_place; 'USA' is the birth_region", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));", "episode 426 refers to number_in_series = 426"]}} {"set": {"query": "Calculate the percentage of the winners who are higher than 1.75 meters.", "pos": ["winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n"], "neg": ["rating of 7 and above refers to rating > 7.0", "more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'", "won refers to result = 'Winner'; in 2017 refers to year = 2017", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "more than 100 votes refers to votes > 100"]}} {"set": {"query": "How many nominations have Billy Kimball received in 2010 for The simpson 20s: Season 20?", "pos": ["in 2010 refers to year = 2010; nominations refers to result = 'Nominee'"], "neg": ["episode \"Take My Life, Please\" refers to title = 'Take My Life, Please'", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "name refers to person; the role Smithers refers to character = 'Smithers'", "\"Marc Wilmore\" is the name of person", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "are not included in the credit list refers to credited = ''"]}} {"set": {"query": "What is the name of actor who took the role Smithers?", "pos": ["name refers to person; the role Smithers refers to character = 'Smithers'"], "neg": ["\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "in 2009 refers to year = 2009", "nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))", "rating below 7 refers to rating < 7", "episode \"Take My Life, Please\" refers to title = 'Take My Life, Please'", "more than 1000 votes refers to votes > 1000", "star score less than 8 refers to stars < 8; aired in 2009 refers to air_date LIKE '2009%'", "highest votes refers to max(votes); nominated refers to result = 'Nominee'", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n"]}} {"set": {"query": "How many award winners are from the USA?", "pos": ["award winner refers to result = 'Winner'; 'USA' is the birth_country"], "neg": ["In 2010 refers to year = 2010", "stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "more than 100 votes refers to votes > 100", "rating of 7 and above refers to rating > 7.0", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'", "star score of 10 refers to stars = 10", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "from countries other than the USA refers to birth_country ! = 'USA'", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "are not included in the credit list refers to credited = ''"]}} {"set": {"query": "What is the title of episode that won the Best International TV Series Award in 2017?", "pos": ["won refers to result = 'Winner'; in 2017 refers to year = 2017"], "neg": ["stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "\"riot\" and \"cake\" are both keyword", "director refers to role = 'director'", "winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'"]}} {"set": {"query": "Give the title of the episode won in Primetime Emmy Awards 2009.", "pos": ["won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009"], "neg": ["\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "more than 1000 votes refers to votes > 1000", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "star score greater than 8 refers to stars > 8"]}} {"set": {"query": "What are the titles of the episodes that have received more 7-star votes than the season average?", "pos": ["episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))"], "neg": ["aired on 3/22/2009 refers to air_date = '2009-03-22'", "nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'", "in 2009 refers to year = 2009", "website address refers to episode_image", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))", "5th episode refers to episode = 5", "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009"]}} {"set": {"query": "List the award name and persons who won the award in 2009.", "pos": ["won the award refers to result = 'Winner'; in 2009 refers to year = 2009"], "neg": ["star score of 10 refers to stars = 10", "from countries other than the USA refers to birth_country ! = 'USA'", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "from Animation Department refers to category = 'Animation Department';\u00a0AVG(height_meters) where category = 'Animation Department'", "website address refers to episode_image", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n", "aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'", "\"riot\" and \"cake\" are both keyword", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'"]}} {"set": {"query": "Among the casts who were born in Los Angeles, describe the name and birth date of who have 1.8 m and above in height.", "pos": ["\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8"], "neg": ["voice over for and was awarded refers to award like '%Voice-Over%';", "in 2009 refers to year = 2009", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'", "\"New York\" is the birth_place; 'USA' is the birth_region", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "information about the music department refers to category = 'Music Department'", "won refers to result = 'Winner'; first award refers to Min(year)", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''", "won refers to result = 'Winner'; in 2017 refers to year = 2017"]}} {"set": {"query": "List down person's name who has nickname.", "pos": ["has nickname refers to nickname is NOT NULL"], "neg": ["crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL", "voice over for and was awarded refers to award like '%Voice-Over%';", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "are not included in the credit list refers to credited = ''", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "largest number of votes refers to MAX(votes)", "In 2010 refers to year = 2010"]}} {"set": {"query": "List down the award name, result, credit category and credited status of the \"Billy Kimball\".", "pos": ["\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa"], "neg": ["award winner refers to result = 'Winner'; 'USA' is the birth_country", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "average high = Divide(Sum(height_meters), Count(name))", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'"]}} {"set": {"query": "Among the episode with highest votes, what is the category credited to Carlton Batten?", "pos": ["highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'"], "neg": ["born before 1970 refers to birthdate < '1970-01-01'", "nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';\u00a0 from 2009 to 2010 refers to year > = '2009' and\u00a0 year < = '2010'", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "episode 'Take My Life, Please' refers to title = \u00a0 'Take My Life, Please'", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "5th episode refers to episode = 5", "In 2010 refers to year = 2010", "most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category", "born in the USA refers to birth_country = 'USA'"]}} {"set": {"query": "Write the title and all the keywords of the episode that was aired on 3/22/2009.", "pos": ["aired on 3/22/2009 refers to air_date = '2009-03-22'"], "neg": ["aired between October to November refers to strftime('%m', air_date) between '10' and '11';", "born before 1970 refers to birthdate < '1970-01-01'", "\"Take My Life,Please\" is the title of episode", "is credited refers to credited = 'true';", "aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'", "highest number of vote of the star score refers to max(votes)", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'", "\"Marc Wilmore\" is the name of person"]}} {"set": {"query": "Please indicate the keywords of the episode that won the Primetime Emmy Award category.", "pos": ["Primetime Emmy Award refers to award_category = 'Primetime Emmy'"], "neg": ["more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "episode 'Take My Life, Please' refers to title = \u00a0 'Take My Life, Please'", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "\"Take My Life,Please\" is the title of episode", "crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))"]}} {"set": {"query": "List all keywords associated with the episode 'Take My Life, Please'.", "pos": ["episode 'Take My Life, Please' refers to title = \u00a0 'Take My Life, Please'"], "neg": ["rating of 7 and above refers to rating > 7.0", "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'", "won refers to result = 'Winner'; first award refers to Min(year)", "highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "star score of 10 refers to stars = 10", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "\n\nawarded category refers to award_category", "won the award refers to result = 'Winner'; in 2009 refers to year = 2009"]}} {"set": {"query": "Which episode has the highest number of vote of the star score?", "pos": ["highest number of vote of the star score refers to max(votes)"], "neg": ["highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "voice over for and was awarded refers to award like '%Voice-Over%';", "\"New York\" is the birth_place; 'USA' is the birth_region", "5th episode refers to episode = 5", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage", "nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'"]}} {"set": {"query": "List all the keyword for 'Take My Life, Please' episode.", "pos": ["\"Take My Life,Please\" is the title of episode"], "neg": ["taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'", "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))", "aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'", "received the most nomination refers to MAX(COUNT(episode_id))", "voiced refers to role; role = 'Helen Lovejoy\""]}} {"set": {"query": "In episode with the highest votes, list the category of awards it is nominated for.", "pos": ["highest votes refers to max(votes); nominated refers to result = 'Nominee'"], "neg": ["aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "won refers to result = 'Winner'; first award refers to Min(year)", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'", "\"Take My Life,Please\" is the title of episode", "episode 'Take My Life, Please' refers to title = \u00a0 'Take My Life, Please'", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'", "\"Marc Wilmore\" is the name of person"]}} {"set": {"query": "List down all the roles of Matt Groening on the episode titled 'In the Name of the Grandfather' along with the episode number and series number.", "pos": ["\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series"], "neg": ["credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "born in the USA refers to birth_country = 'USA'", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5", "highest number of vote of the star score refers to max(votes)", "lowest rating refers to Min(rating)", "voiced refers to role; role = 'Helen Lovejoy\""]}} {"set": {"query": "Calculate the difference between the highest votes for episode and the lowest votes for episode.", "pos": ["highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))"], "neg": ["lowest rating refers to Min(rating)", "scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5", "Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "\"riot\" and \"cake\" are both keyword", "In 2010 refers to year = 2010", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';"]}} {"set": {"query": "List all of the information about the music department's casts and crews.", "pos": ["information about the music department refers to category = 'Music Department'"], "neg": ["episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "won refers to result = 'Winner'; in 2017 refers to year = 2017", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage", "nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';\u00a0 from 2009 to 2010 refers to year > = '2009' and\u00a0 year < = '2010'", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "are not included in the credit list refers to credited = ''", "nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage", "has nickname refers to nickname is NOT NULL"]}} {"set": {"query": "What year did the Simpsons receive its first ever award for Favorite Animated Comedy in People's Choice Award?", "pos": ["\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)"], "neg": ["won refers to result = 'Winner'; in 2017 refers to year = 2017", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5", "in 2009 refers to year = 2009; name of awarded character refers to character\n\n", "\"The Tiny Canadian\" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role\n"]}} {"set": {"query": "How many people were considered as prospective recipients of the \"Animation\" award?", "pos": ["prospective recipients refers to result = 'Nominee'"], "neg": ["\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "name refers to person; the role Smithers refers to character = 'Smithers'", "aired between October to November refers to strftime('%m', air_date) between '10' and '11';", "5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode;\u00a0 ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')", "more than 1000 votes refers to votes > 1000", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "in November 2008 refers to air_date LIKE '2008-11%'", "aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5"]}} {"set": {"query": "What's the rating of the episode in which Dan Castellaneta won the Outstanding Voice-Over Performance award in 2009?", "pos": ["\"Dan Castellaneta\" is the person;\u00a0 2009 is year;\u00a0 won refers result = 'Winner'"], "neg": ["between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'", "nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%", "nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';\u00a0 from 2009 to 2010 refers to year > = '2009' and\u00a0 year < = '2010'", "highest votes refers to max(votes); nominated refers to result = 'Nominee'", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "more than 100 votes refers to votes > 100", "lowest rating refers to Min(rating)", "2 stars refers to stars = 2; 9 votes refers to votes = 9", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))"]}} {"set": {"query": "Write down the website address which stores the episode image of episode 5.", "pos": ["website address refers to episode_image"], "neg": ["more than 100 votes refers to votes > 100", "information about the music department refers to category = 'Music Department'", "received the most nomination refers to MAX(COUNT(episode_id))", "is credited refers to credited = 'true';", "in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));", "nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';\u00a0 from 2009 to 2010 refers to year > = '2009' and\u00a0 year < = '2010'", "\"riot\" and \"cake\" are both keyword", "\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "rating of 7 and above refers to rating > 7.0", "\"Marc Wilmore\" is the name of person"]}} {"set": {"query": "What are the characters that were nominated for Primetime Emmy Award from 2009 to 2010 but did not win?", "pos": ["nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee';\u00a0 from 2009 to 2010 refers to year > = '2009' and\u00a0 year < = '2010'"], "neg": ["more than 100 votes refers to votes > 100", "more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'", "star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5", "episode 426 refers to number_in_series = 426", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "\"Marc Wilmore\" is the name of person", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29", "more than 1000 votes refers to votes > 1000"]}} {"set": {"query": "Which episode ids are rated 5 stars and have more than 100 votes?", "pos": ["more than 100 votes refers to votes > 100"], "neg": ["star score greater than 8 refers to stars > 8", "between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'", "from countries other than the USA refers to birth_country ! = 'USA'", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "credited cast refers to category = 'Cast' and\u00a0 credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "episodes that have received more 7-star votes than the season average refers to votes > DIVIDE(SUM(votes), COUNT(stars = 7))", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "in 2010 refers to year = 2010; nominations refers to result = 'Nominee'", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200"]}} {"set": {"query": "Which crew member of the simpson 20s is the oldest?", "pos": ["oldest refers to Min(birthdate)"], "neg": ["received the most nomination refers to MAX(COUNT(episode_id))", "\"riot\" and \"cake\" are both keyword", "won refers to result = 'Winner'; in 2017 refers to year = 2017", "have air date in 2008 refers to air_date LIKE '2008%'", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "star score of 10 refers to stars = 10", "best rating scale refers to stars = 10", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'", "percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage"]}} {"set": {"query": "List the names of players who play by the left hand.", "pos": ["play by the left hand refers to Batting_hand = \u00a0 'Left-hand bat'"], "neg": ["first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))", "are Superover refers to win_type = 'wickets';", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1", "player's ID refers to Player_Id", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';", "role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'", "names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'"]}} {"set": {"query": "Among the players from South Africa, provide the players' names who were born in 1984.", "pos": ["from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';"], "neg": ["bowling skill greater than 2 refers to Bowling_skill > 2", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%", "innings numbers refers to Innings_No", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';"]}} {"set": {"query": "What is the date of the match that has the highest wager on the final result of a game?", "pos": ["date of the match refers to Match_Date; highest wager refers to max(Win_Margin)"], "neg": ["Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))", "from Sri Lanka refers to Country_Name = 'Sri Lanka';", "name of players refers to Player_Name", "winning margin of 6 points refers to Win_Margin = 6; held on April 26, 2009 refers to Match_Date = '2009-04-26'", "name of player refers to Player_Name; the youngest refers to max(DOB)", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "player's ID refers to Player_Id", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015"]}} {"set": {"query": "How many matches did Mohammad Hafeez play?", "pos": ["Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';"], "neg": ["Indian refers to Country_Name = 'India'", "\nvenue refers to Venue_Name", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "full name refers to Player_Name; in 2013 refers to Season_Year = 2013", "name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1", "Who refers to Player_Name;", "name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'", "player no.41 won the \"man of the match\" refers to Man_of_the_Match = 41"]}} {"set": {"query": "List the player's ID of the top five players, by descending order, in terms of bowling skill.", "pos": ["player's ID refers to Player_Id"], "neg": ["wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2", "full name refers to Player_Name; in 2013 refers to Season_Year = 2013", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "\nvenue refers to Venue_Name", "country refers to Country_Name; the oldest refers to min(DOB)", "player no.41 won the \"man of the match\" refers to Man_of_the_Match = 41", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015"]}} {"set": {"query": "What is the bowling skill used by most players?", "pos": ["bowling skill used by most players refers to max(count(Bowling_Skill))"], "neg": ["venue refers to Venue_Name; winning team refers to match_winner", "Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "eldest player refers to MIN(DOB); where he/she come from refers to Country_Name", "city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'", "role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'", "were played in March 2010 refers to Match_Date = '2010-03%'", "name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1"]}} {"set": {"query": "Which team wins the toss during the match ID 336011, and can you tell me whether they decided to bat or field?", "pos": ["wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name"], "neg": ["city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "Australia refers to Country_Name = 'Australia'", "bowling skill greater than 2 refers to Bowling_skill > 2", "the oldest refers to min(DOB); date of birth refers to DOB", "Australia refers to Country_Name = 'Australia'"]}} {"set": {"query": "What is the role of SC Ganguly?", "pos": ["SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc"], "neg": ["are Indians refers to Country_Name = 'India'", "'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players\u00a0 refers to max(count(Country_Id))", "name of teams refers to Team_Name; won the toss refers to Toss_Winner; matches with ID from 336010 to 336020\u00a0 refers to Match_Id BETWEEN 336010 AND 336020", "\nvenue refers to Venue_Name", "date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "eldest player refers to MIN(DOB); where he/she come from refers to Country_Name", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';"]}} {"set": {"query": "How many percent of the toss-winners decided to bowl first on the pitch from 2010 to 2016?", "pos": ["decide to bowl first refers to Toss_Name = 'field'; from 2010 to 2016 refers to Match_Date BETWEEN '2010-01-01' AND '2016-12-31'; percent = divide(count(Toss_Id where Toss_Name = 'field'), count(Toss_Id)) * 100% where Match_Date BETWEEN '2010-01-01' AND '2016-12-31'"], "neg": ["role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "bowling skill used by most players refers to max(count(Bowling_Skill))", "country refers to Country_Name; the oldest refers to min(DOB)", "point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'", "city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'", "match date refers to Match_Date; Chennai Super Kings refers to Team_Name = 'Chennai Super Kings'; first match refers to min(Match_Date)"]}} {"set": {"query": "Tally the player IDs of \"Man of the Series\" awardees for the seasons from 2011 to 2015.", "pos": ["seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015"], "neg": ["East London refers to City_Name = 'East London'", "right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "player no.41 won the \"man of the match\" refers to Man_of_the_Match = 41", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "fewest number of matches refers to min(count(Match_Id))", "from Sri Lanka refers to Country_Name = 'Sri Lanka';", "date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "SC Ganguly refers to Player_Name = 'SC Ganguly'"]}} {"set": {"query": "Provide the complete name of the venue, city and country where the last match was held.", "pos": ["name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)"], "neg": ["from Sri Lanka refers to Country_Name = 'Sri Lanka';", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "got out by being stumped refers to Out_Name = 'stumped'; the second innings refers to Innings_No = 2", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "name of player refers to Player_Name; the youngest refers to max(DOB)", "MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)"]}} {"set": {"query": "List the player's name of Mumbai Indians in the match ID 335990.", "pos": ["Mumbai Indians refers to Team_Name = 'Mumbai Indians'; match ID 335990 refers to Match_Id = 335990"], "neg": ["role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "venue refers to Venue_Name; winning team refers to match_winner", "decide to bowl first refers to Toss_Name = 'field'; from 2010 to 2016 refers to Match_Date BETWEEN '2010-01-01' AND '2016-12-31'; percent = divide(count(Toss_Id where Toss_Name = 'field'), count(Toss_Id)) * 100% where Match_Date BETWEEN '2010-01-01' AND '2016-12-31'", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "innings numbers refers to Innings_No", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "CH Gayle refers to Player_Name = 'CH Gayle'"]}} {"set": {"query": "How many players have the bowling skill greater than 2?", "pos": ["bowling skill greater than 2 refers to Bowling_skill > 2"], "neg": ["Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'", "name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))", "were played in March 2010 refers to Match_Date = '2010-03%'", "English umpires refers to Country_Name = 'England'", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "Australia refers to Country_Name = 'Australia'", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "if a player has multiple roles in a match, it means this player is versatile; name refers to Player_Name; most versatile player refers to MAX(COUNT(Role_id)); Delhi Daredevils refers to Team_Name = 'Delhi Daredevils'"]}} {"set": {"query": "How many players were born in the 90s?", "pos": ["born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'"], "neg": ["venue refers to Venue_Name; winning team refers to match_winner", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name", "match date refers to Match_Date; Chennai Super Kings refers to Team_Name = 'Chennai Super Kings'; first match refers to min(Match_Date)", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "bowling skill used by most players refers to max(count(Bowling_Skill))"]}} {"set": {"query": "What is the venue for the match ID 829768?", "pos": ["\nvenue refers to Venue_Name"], "neg": ["have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%", "type of match won refers to Win_Type", "Mumbai Indians refers to Team_Name = 'Mumbai Indians'; match ID 335990 refers to Match_Id = 335990", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1"]}} {"set": {"query": "In which country do the majority of the players are from?", "pos": ["country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))"], "neg": ["players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985", "player's ID refers to Player_Id", "are Indians refers to Country_Name = 'India'", "name refers to Player_Name; captain keeper refers to Role_Desc = 'CaptainKeeper'; match no.419117 refers to Match_Id = '419117'", "fewest number of matches refers to min(count(Match_Id))", "country refers to Country_Name; the oldest refers to min(DOB)", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'"]}} {"set": {"query": "Is SuperSport Park located at Centurion?", "pos": ["SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'"], "neg": ["number of runs refers to Runs_Scored; 2nd inning refers to Innings_No = 2", "got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335", "not won by runs refers to Win_Type ! = 'runs'", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "in team 1 refers to Team_Id = 1; name of player refers to Player_Name;", "right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985", "U.A.E refers to Country_Name = 'U.A.E'", "bowling skill greater than 2 refers to Bowling_skill > 2", "Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015"]}} {"set": {"query": "Which year do the majority of the players were born?", "pos": ["year refers to DOB; majority of the players refers to max(count(Player_Id))"], "neg": ["batting team was the Delhi Daredevils refers to Team_Name = 'Delhi Daredevils' and Team_1 = Team_Id where Team_Batting = 1 or Team_2 = Team_Id where Team_Batting = 2; no runs scored refers to Runs_Scored = 0", "first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008", "second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1", "in May 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5'"]}} {"set": {"query": "Indicate the name of the most versatile players of the Delhi Daredevils.", "pos": ["if a player has multiple roles in a match, it means this player is versatile; name refers to Player_Name; most versatile player refers to MAX(COUNT(Role_id)); Delhi Daredevils refers to Team_Name = 'Delhi Daredevils'"], "neg": ["Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "got out by being stumped refers to Out_Name = 'stumped'; the second innings refers to Innings_No = 2", "winning margin of 6 points refers to Win_Margin = 6; held on April 26, 2009 refers to Match_Date = '2009-04-26'", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "on 2008/5/12 refers to Match_Date = '2008-05-12'; name refers to Player_Name;", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'", "country refers to Country_Name; the oldest refers to min(DOB)", "bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))", "the venue named \"Newlands\" refers to Venue_Name = 'Newlands'"]}} {"set": {"query": "For how many times has SC Ganguly played as team captain in a match?", "pos": ["SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'"], "neg": ["in 2008 refers to Match_Date like '2008%'", "type of match won refers to Win_Type", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "in team 1 refers to Team_Id = 1; name of player refers to Player_Name;", "name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name", "man of the match more than 5 times refers to COUNT(Man_of_the_Match) > 5; in season year 2008 refers to Season_Year = 2008; name of player refers to Player_Name;", "held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage"]}} {"set": {"query": "Name the teams played in a match which resulted in a tie in 2015.", "pos": ["resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015"], "neg": ["player's ID refers to Player_Id", "who refers to Team_Name", "batting team was the Delhi Daredevils refers to Team_Name = 'Delhi Daredevils' and Team_1 = Team_Id where Team_Batting = 1 or Team_2 = Team_Id where Team_Batting = 2; no runs scored refers to Runs_Scored = 0", "name of player refers to Player_Name; the youngest refers to max(DOB)", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "in team 1 refers to Team_Id = 1; name of player refers to Player_Name;", "won by wickets refers to Win_type = 'wickets';", "name of players refers to Player_Name", "city named \"Rajkot\" refers to city_name = 'Rajkot';"]}} {"set": {"query": "Write down the player names and IDs of the English umpires.", "pos": ["English umpires refers to Country_Name = 'England'"], "neg": ["won by wickets refers to Win_type = 'wickets';", "bowling skill used by most players refers to max(count(Bowling_Skill))", "end of 16 overs refers to count(Toss_Name = 'field' ) = 16; run rate = divide(count(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id)when Toss_Name = 'field'); name refers to Player_Name", "name of player refers to Player_Name; the youngest refers to max(DOB)", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "bowling skill greater than 2 refers to Bowling_skill > 2", "East London refers to City_Name = 'East London'", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "U.A.E refers to Country_Name = 'U.A.E'"]}} {"set": {"query": "How many times did Yuvraj Singh receive the Man of the Match award?", "pos": ["Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match"], "neg": ["SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage", "from Sri Lanka refers to Country_Name = 'Sri Lanka';", "end of 16 overs refers to count(Toss_Name = 'field' ) = 16; run rate = divide(count(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id)when Toss_Name = 'field'); name refers to Player_Name", "player's ID refers to Player_Id", "'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players\u00a0 refers to max(count(Country_Id))", "in May 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5'", "Pune Warriors refers to Team_Name = 'Pune Warriors'", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "in team 1 refers to Team_Id = 1; name of player refers to Player_Name;"]}} {"set": {"query": "What is the batting hand of MK Pandey?", "pos": ["MK Pandey refers to Player_Name = 'MK Pandey'"], "neg": ["are Indians refers to Country_Name = 'India'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008", "team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "who refers to Team_Name", "the venue named \"Newlands\" refers to Venue_Name = 'Newlands'", "English umpires refers to Country_Name = 'England'", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'"]}} {"set": {"query": "State the name of captain keeper of the match no.419117.", "pos": ["name refers to Player_Name; captain keeper refers to Role_Desc = 'CaptainKeeper'; match no.419117 refers to Match_Id = '419117'"], "neg": ["won by wickets refers to Win_type = 'wickets';", "Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "Between match no. 335989 and 337000 refers to 335989 < Match_Id < 337000; batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches refers to Runs_Scored > 3 and\u00a0 Over_Id = 1 and Ball_Id = 1 and Innings_No = 1", "Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))", "on 2008/5/12 refers to Match_Date = '2008-05-12'; name refers to Player_Name;", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "player's ID refers to Player_Id"]}} {"set": {"query": "Provide the players' names in both teams of the match that was held in June 2014.", "pos": ["held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014"], "neg": ["the venue named \"Newlands\" refers to Venue_Name = 'Newlands'", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'", "MK Pandey refers to Player_Name = 'MK Pandey'", "are Superover refers to win_type = 'wickets';", "Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';", "the oldest refers to min(DOB); date of birth refers to DOB", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "number of runs refers to Runs_Scored; 2nd inning refers to Innings_No = 2", "were played in March 2010 refers to Match_Date = '2010-03%'"]}} {"set": {"query": "Which player became the man of the series in the year 2012? Give the name and country of this player.", "pos": ["year 2012 refers to Season_Year = 2012; name of player refers to Player_Name.; country of this player refers to Country_Name"], "neg": ["in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))", "date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "bowling skill greater than 2 refers to Bowling_skill > 2", "won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "match date refers to Match_Date; Chennai Super Kings refers to Team_Name = 'Chennai Super Kings'; first match refers to min(Match_Date)", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)"]}} {"set": {"query": "How many times does M Chinnaswamy Stadium host games than Maharashtra Cricket Association Stadium?", "pos": ["M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))"], "neg": ["Who refers to Player_Name;", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "type of match won refers to Win_Type", "venue refers to Venue_Name; winning team refers to match_winner", "left hand batting style players refers to Batting_hand = 'Left-hand bat'; percentage refers to DIVIDE(COUNT(Batting_hand = 'Left-hand bat'), COUNT(Player_Id)) * 100.0", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "if a player has multiple roles in a match, it means this player is versatile; name refers to Player_Name; most versatile player refers to MAX(COUNT(Role_id)); Delhi Daredevils refers to Team_Name = 'Delhi Daredevils'", "losing team's name refers to Team_Id NOT in \"match_winner\" column", "player no.41 won the \"man of the match\" refers to Man_of_the_Match = 41"]}} {"set": {"query": "How many matches were held at the venue named \"Newlands\"?", "pos": ["the venue named \"Newlands\" refers to Venue_Name = 'Newlands'"], "neg": ["Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "are Indians refers to Country_Name = 'India'", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008", "East London refers to City_Name = 'East London'", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'"]}} {"set": {"query": "How many times did SC Ganguly be the man of the match?", "pos": ["SC Ganguly refers to Player_Name = 'SC Ganguly'"], "neg": ["play by the left hand refers to Batting_hand = \u00a0 'Left-hand bat'", "second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "player's ID refers to Player_Id", "name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "fewest number of matches refers to min(count(Match_Id))", "Australia refers to Country_Name = 'Australia'"]}} {"set": {"query": "Write the name of the player who was the man of the series more than one time.", "pos": ["name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1"], "neg": ["date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "play by the left hand refers to Batting_hand = \u00a0 'Left-hand bat'", "name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'", "name refers to Player_Name; youngest player refers to max(DOB)", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';"]}} {"set": {"query": "How many players were born before 10/16/1975, and have a bowling skill of less than 3?", "pos": ["born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3"], "neg": ["born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'", "average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "innings numbers refers to Innings_No", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2"]}} {"set": {"query": "What is the second team's name in the match with the lowest winning margin?", "pos": ["lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2"], "neg": ["Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match", "point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))", "SB Joshi refers to Player_Name = 'SB Joshi'; where the player come from refers to Country_Name", "Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';", "name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "\nvenue refers to Venue_Name", "most number of balls refers to max(Ball_Id); match 501219 refers to Match_Id = 501219;\nplayer id also refers to non_striker or ball_id", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';"]}} {"set": {"query": "Among the players, what percentage are both captain and keeper?", "pos": ["captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage"], "neg": ["name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))", "won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "name refers to Player_Name; captain keeper refers to Role_Desc = 'CaptainKeeper'; match no.419117 refers to Match_Id = '419117'", "Between match no. 335989 and 337000 refers to 335989 < Match_Id < 337000; batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches refers to Runs_Scored > 3 and\u00a0 Over_Id = 1 and Ball_Id = 1 and Innings_No = 1", "bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)"]}} {"set": {"query": "Among the\" Mumbai Indians\" team that played in 2009, how many percent of the matches did they win?", "pos": ["played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))"], "neg": ["name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "scored less than 3 refers to Runs_Scored < 3; name of player refers to Player_name;", "won by wickets refers to Win_type = 'wickets';", "noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))", "losing team's name refers to Team_Id NOT in \"match_winner\" column", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "names of the venues refers to Venue_Name; Abu Dhabi refers to City_Name = 'Abu Dhabi'", "were played in March 2010 refers to Match_Date = '2010-03%'", "name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "batting team was the Delhi Daredevils refers to Team_Name = 'Delhi Daredevils' and Team_1 = Team_Id where Team_Batting = 1 or Team_2 = Team_Id where Team_Batting = 2; no runs scored refers to Runs_Scored = 0"]}} {"set": {"query": "Among the players who were born in 1977, provide names and birthdates of the players from England.", "pos": ["born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'"], "neg": ["from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "venue refers to Venue_Name; winning team refers to match_winner", "not won by runs refers to Win_Type ! = 'runs'", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "name of players refers to Player_Name", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "country refers to Country_Name; the oldest refers to min(DOB)"]}} {"set": {"query": "Where did SB Joshi come from?", "pos": ["SB Joshi refers to Player_Name = 'SB Joshi'; where the player come from refers to Country_Name"], "neg": ["name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008", "name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'"]}} {"set": {"query": "What percentage of players have Legbreak skill?", "pos": ["Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage"], "neg": ["wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "not won by runs refers to Win_Type ! = 'runs'", "MK Pandey refers to Player_Name = 'MK Pandey'", "MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'", "names of the venues refers to Venue_Name; Abu Dhabi refers to City_Name = 'Abu Dhabi'", "bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "Pune Warriors refers to Team_Name = 'Pune Warriors'"]}} {"set": {"query": "In which country do most players have the 'slow left-arm chinaman' bowling style?", "pos": ["'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players\u00a0 refers to max(count(Country_Id))"], "neg": ["name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "name of players refers to Player_Name", "in team 1 refers to Team_Id = 1; name of player refers to Player_Name;", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "on 18th April 2015 refers to DATE(Match_Date) = '2015-04-18'", "bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))"]}} {"set": {"query": "Who is the winning team in a match held on April 26, 2009 with a winning margin of 6 points?", "pos": ["winning margin of 6 points refers to Win_Margin = 6; held on April 26, 2009 refers to Match_Date = '2009-04-26'"], "neg": ["Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';", "bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))", "venue refers to Venue_Name; winning team refers to match_winner", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "season year 2008 refers to Season_Year = 2008", "Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match", "Australia refers to Country_Name = 'Australia'", "U.A.E refers to Country_Name = 'U.A.E'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)"]}} {"set": {"query": "Please list the bowling skills of all the players from Australia.", "pos": ["Australia refers to Country_Name = 'Australia'"], "neg": ["name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "name of player refers to Player_Name; the youngest refers to max(DOB)", "average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)", "CH Gayle refers to Player_Name = 'CH Gayle'", "Who refers to Player_Name;", "name of teams refers to Team_Name; won the toss refers to Toss_Winner; matches with ID from 336010 to 336020\u00a0 refers to Match_Id BETWEEN 336010 AND 336020", "eldest player refers to MIN(DOB); where he/she come from refers to Country_Name", "U.A.E refers to Country_Name = 'U.A.E'", "Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';"]}} {"set": {"query": "On average, how many players from each country bat with their right hand?", "pos": ["bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))"], "neg": ["second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2", "city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))", "lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2", "name of players refers to Player_Name", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'", "man of the match more than 5 times refers to COUNT(Man_of_the_Match) > 5; in season year 2008 refers to Season_Year = 2008; name of player refers to Player_Name;", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)"]}} {"set": {"query": "How many players got out in the first inning of match ID \"548335\"?", "pos": ["got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335"], "neg": ["wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name", "the venue named \"Newlands\" refers to Venue_Name = 'Newlands'", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "Mumbai Indians refers to Team_Name = 'Mumbai Indians'; match ID 335990 refers to Match_Id = 335990", "were played in March 2010 refers to Match_Date = '2010-03%'", "decide to bowl first refers to Toss_Name = 'field'; from 2010 to 2016 refers to Match_Date BETWEEN '2010-01-01' AND '2016-12-31'; percent = divide(count(Toss_Id where Toss_Name = 'field'), count(Toss_Id)) * 100% where Match_Date BETWEEN '2010-01-01' AND '2016-12-31'", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "most number of balls refers to max(Ball_Id); match 501219 refers to Match_Id = 501219;\nplayer id also refers to non_striker or ball_id", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'"]}} {"set": {"query": "What is the role of K Goel in the match ID 335992?", "pos": ["role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992"], "neg": ["team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", "city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "name refers to Player_Name; captain keeper refers to Role_Desc = 'CaptainKeeper'; match no.419117 refers to Match_Id = '419117'", "are Indians refers to Country_Name = 'India'", "MK Pandey refers to Player_Name = 'MK Pandey'", "year refers to DOB; majority of the players refers to max(count(Player_Id))", "on 2008/5/12 refers to Match_Date = '2008-05-12'; name refers to Player_Name;", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))", "end of 16 overs refers to count(Toss_Name = 'field' ) = 16; run rate = divide(count(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id)when Toss_Name = 'field'); name refers to Player_Name", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2"]}} {"set": {"query": "What is the average number of extra runs made as noballs?", "pos": ["noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))"], "neg": ["full name refers to Player_Name; in 2013 refers to Season_Year = 2013", "are Indians refers to Country_Name = 'India'", "got out by being stumped refers to Out_Name = 'stumped'; the second innings refers to Innings_No = 2", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "U.A.E refers to Country_Name = 'U.A.E'", "name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'"]}} {"set": {"query": "Where did BR Doctrove come from?", "pos": ["the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'"], "neg": ["Mumbai Indians refers to Team_Name = 'Mumbai Indians'; match ID 335990 refers to Match_Id = 335990", "were played in March 2010 refers to Match_Date = '2010-03%'", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "East London refers to City_Name = 'East London'", "name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "most number of balls refers to max(Ball_Id); match 501219 refers to Match_Id = 501219;\nplayer id also refers to non_striker or ball_id", "season year 2008 refers to Season_Year = 2008"]}} {"set": {"query": "When did the Sunrisers Hyderabad win their first match?", "pos": ["Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)"], "neg": ["fewest number of matches refers to min(count(Match_Id))", "man of the match more than 5 times refers to COUNT(Man_of_the_Match) > 5; in season year 2008 refers to Season_Year = 2008; name of player refers to Player_Name;", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))", "Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'"]}} {"set": {"query": "How many games were played in March 2010?", "pos": ["were played in March 2010 refers to Match_Date = '2010-03%'"], "neg": ["in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "names of the venues refers to Venue_Name; Abu Dhabi refers to City_Name = 'Abu Dhabi'", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1", "won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "in May 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5'", "city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "Mumbai Indians refers to Team_Name = 'Mumbai Indians'; match ID 335990 refers to Match_Id = 335990", "not won by runs refers to Win_Type ! = 'runs'"]}} {"set": {"query": "List the name and country of the players who got more than average catches in ascending order of the number of catches.", "pos": ["name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))"], "neg": ["in team 1 refers to Team_Id = 1; name of player refers to Player_Name;", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "the oldest refers to min(DOB); date of birth refers to DOB", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "man of the match more than 5 times refers to COUNT(Man_of_the_Match) > 5; in season year 2008 refers to Season_Year = 2008; name of player refers to Player_Name;", "held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014"]}} {"set": {"query": "What is the name of the team that won the most number of matches in season 1?", "pos": ["name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1"], "neg": ["right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985", "bowling skill used by most players refers to max(count(Bowling_Skill))", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)", "captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "name of the venue refers to Venue_Name; most number of matches refers to max(count(Venue_Id))", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage"]}} {"set": {"query": "Count the matches that were won by wickets in all season.", "pos": ["won by wickets refers to Win_type = 'wickets';"], "neg": ["played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "name of player refers to Player_Name; the youngest refers to max(DOB)", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))"]}} {"set": {"query": "What is the percentage of all right-handed batting players among all the other players?", "pos": ["right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%"], "neg": ["name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "bowling skill greater than 2 refers to Bowling_skill > 2", "in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'", "innings numbers refers to Innings_No", "bowling skill used by most players refers to max(count(Bowling_Skill))", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "play by the left hand refers to Batting_hand = \u00a0 'Left-hand bat'", "U.A.E refers to Country_Name = 'U.A.E'", "name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))"]}} {"set": {"query": "How many of the players are from Sri Lanka?", "pos": ["from Sri Lanka refers to Country_Name = 'Sri Lanka';"], "neg": ["seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "in 2008 refers to Match_Date like '2008%'", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "are Superover refers to win_type = 'wickets';", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "English umpires refers to Country_Name = 'England'"]}} {"set": {"query": "How many seasons did Pune Warriors participate in?", "pos": ["Pune Warriors refers to Team_Name = 'Pune Warriors'"], "neg": ["from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "city named \"Rajkot\" refers to city_name = 'Rajkot';", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage"]}} {"set": {"query": "Among the players whose bowling skill is \"Legbreak\", when was the oldest one of them born?", "pos": ["the oldest refers to min(DOB); date of birth refers to DOB"], "neg": ["old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name", "in May 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5'", "right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985", "type of match won refers to Win_Type", "left hand batting style players refers to Batting_hand = 'Left-hand bat'; percentage refers to DIVIDE(COUNT(Batting_hand = 'Left-hand bat'), COUNT(Player_Id)) * 100.0", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", "Who refers to Player_Name;", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'"]}} {"set": {"query": "Who is the youngest player to have won the Purple Cap?", "pos": ["Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))"], "neg": ["name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)", "name refers to Player_Name; captain keeper refers to Role_Desc = 'CaptainKeeper'; match no.419117 refers to Match_Id = '419117'", "second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2", "English umpires refers to Country_Name = 'England'", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)"]}} {"set": {"query": "Provide the match IDs which were held on 18th April 2015.", "pos": ["on 18th April 2015 refers to DATE(Match_Date) = '2015-04-18'"], "neg": ["U.A.E refers to Country_Name = 'U.A.E'", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'", "city named \"Rajkot\" refers to city_name = 'Rajkot';", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;"]}} {"set": {"query": "What type did match ID 336000 win?", "pos": ["type of match won refers to Win_Type"], "neg": ["Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';", "East London refers to City_Name = 'East London'", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "name of player refers to Player_Name; the youngest refers to max(DOB)", "name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'", "player's ID refers to Player_Id", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'"]}} {"set": {"query": "How many cities are in U.A.E?", "pos": ["U.A.E refers to Country_Name = 'U.A.E'"], "neg": ["innings numbers refers to Innings_No", "Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';", "MK Pandey refers to Player_Name = 'MK Pandey'", "name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "left hand batting style players refers to Batting_hand = 'Left-hand bat'; percentage refers to DIVIDE(COUNT(Batting_hand = 'Left-hand bat'), COUNT(Player_Id)) * 100.0", "bowling skill greater than 2 refers to Bowling_skill > 2", "name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "the oldest refers to min(DOB); date of birth refers to DOB", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)"]}} {"set": {"query": "What is the city of M Chinnaswamy Stadium?", "pos": ["city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'"], "neg": ["held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014", "player's ID refers to Player_Id", "full name refers to Player_Name; in 2013 refers to Season_Year = 2013", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "bowling skill used by most players refers to max(count(Bowling_Skill))", "won by wickets refers to Win_type = 'wickets';", "city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))"]}} {"set": {"query": "Give the name of the striker in the match no. 419169, over no.3, ball no.2, inning no.2.", "pos": ["name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2"], "neg": ["U.A.E refers to Country_Name = 'U.A.E'", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'", "CH Gayle refers to Player_Name = 'CH Gayle'", "noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))", "first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1", "bowling skill greater than 2 refers to Bowling_skill > 2", "city named \"Rajkot\" refers to city_name = 'Rajkot';"]}} {"set": {"query": "What are the names of the venues in Abu Dhabi?", "pos": ["names of the venues refers to Venue_Name; Abu Dhabi refers to City_Name = 'Abu Dhabi'"], "neg": ["eldest player refers to MIN(DOB); where he/she come from refers to Country_Name", "city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'", "CH Gayle refers to Player_Name = 'CH Gayle'", "names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'", "name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1", "in 2008 refers to Match_Date like '2008%'", "Who refers to Player_Name;", "were played in March 2010 refers to Match_Date = '2010-03%'", "match date refers to Match_Date; Chennai Super Kings refers to Team_Name = 'Chennai Super Kings'; first match refers to min(Match_Date)", "name of player refers to Player_Name; the youngest refers to max(DOB)"]}} {"set": {"query": "List the match IDs which had players out by hit wickets.", "pos": ["had players out by hit wickets refers to Out_Name = 'hit wicket'"], "neg": ["bowling skill greater than 2 refers to Bowling_skill > 2", "right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%", "winning margin of 6 points refers to Win_Margin = 6; held on April 26, 2009 refers to Match_Date = '2009-04-26'", "born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "city named \"Rajkot\" refers to city_name = 'Rajkot';", "CH Gayle refers to Player_Name = 'CH Gayle'", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "Pune Warriors refers to Team_Name = 'Pune Warriors'", "who refers to Team_Name", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')"]}} {"set": {"query": "What are the names of players in team 1?", "pos": ["in team 1 refers to Team_Id = 1; name of player refers to Player_Name;"], "neg": ["name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'", "player no.41 won the \"man of the match\" refers to Man_of_the_Match = 41", "on 18th April 2015 refers to DATE(Match_Date) = '2015-04-18'", "the venue named \"Newlands\" refers to Venue_Name = 'Newlands'", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "Who refers to Player_Name;", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014", "CH Gayle refers to Player_Name = 'CH Gayle'"]}} {"set": {"query": "Calculate the percentage of left hand batting style players among all players.", "pos": ["left hand batting style players refers to Batting_hand = 'Left-hand bat'; percentage refers to DIVIDE(COUNT(Batting_hand = 'Left-hand bat'), COUNT(Player_Id)) * 100.0"], "neg": ["Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage", "SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008", "name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "who refers to Team_Name", "first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2", "average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'"]}} {"set": {"query": "Who is the eldest player and where did he/she come from?", "pos": ["eldest player refers to MIN(DOB); where he/she come from refers to Country_Name"], "neg": ["date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'", "name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "CH Gayle refers to Player_Name = 'CH Gayle'", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "in team 1 refers to Team_Id = 1; name of player refers to Player_Name;", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "MK Pandey refers to Player_Name = 'MK Pandey'", "winning margin of 6 points refers to Win_Margin = 6; held on April 26, 2009 refers to Match_Date = '2009-04-26'", "name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))"]}} {"set": {"query": "When did Chennai Super Kings play its first match?", "pos": ["match date refers to Match_Date; Chennai Super Kings refers to Team_Name = 'Chennai Super Kings'; first match refers to min(Match_Date)"], "neg": ["the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))", "average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "Who refers to Player_Name;", "won by wickets refers to Win_type = 'wickets';", "held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'", "second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2", "date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'"]}} {"set": {"query": "Which country is the oldest player from?", "pos": ["country refers to Country_Name; the oldest refers to min(DOB)"], "neg": ["were played in March 2010 refers to Match_Date = '2010-03%'", "date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'", "wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "MK Pandey refers to Player_Name = 'MK Pandey'", "eldest player refers to MIN(DOB); where he/she come from refers to Country_Name", "year refers to DOB; majority of the players refers to max(count(Player_Id))", "name of teams refers to Team_Name; won the toss refers to Toss_Winner; matches with ID from 336010 to 336020\u00a0 refers to Match_Id BETWEEN 336010 AND 336020", "name of player refers to Player_Name; the youngest refers to max(DOB)", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)"]}} {"set": {"query": "What is the name of the team that won the first ever match?", "pos": ["name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)"], "neg": ["on 2008/5/12 refers to Match_Date = '2008-05-12'; name refers to Player_Name;", "R Dravid refers to Player_Name = 'R Dravid'; year born refers to DOB; role refers to Role_Desc", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "decide to bowl first refers to Toss_Name = 'field'; from 2010 to 2016 refers to Match_Date BETWEEN '2010-01-01' AND '2016-12-31'; percent = divide(count(Toss_Id where Toss_Name = 'field'), count(Toss_Id)) * 100% where Match_Date BETWEEN '2010-01-01' AND '2016-12-31'", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "man of the match more than 5 times refers to COUNT(Man_of_the_Match) > 5; in season year 2008 refers to Season_Year = 2008; name of player refers to Player_Name;", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'"]}} {"set": {"query": "How many times did the matches were held in MA Chidambaram Stadium from 5/9/2009 to 8/8/2011?", "pos": ["MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'"], "neg": ["Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "are Indians refers to Country_Name = 'India'", "date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'", "in 2008 refers to Match_Date like '2008%'", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "\nvenue refers to Venue_Name", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))"]}} {"set": {"query": "Which city hosted the least number of no-result matches?", "pos": ["city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))"], "neg": ["in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "losing team's name refers to Team_Id NOT in \"match_winner\" column", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)"]}} {"set": {"query": "Which season played the highest number of matches at M Chinnaswamy Stadium?", "pos": ["season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'"], "neg": ["name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "country refers to Country_Name; the oldest refers to min(DOB)", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players\u00a0 refers to max(count(Country_Id))", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'", "East London refers to City_Name = 'East London'"]}} {"set": {"query": "What is the total number of runs scored by the batsmen during the 2nd inning of the match ID 335988?", "pos": ["number of runs refers to Runs_Scored; 2nd inning refers to Innings_No = 2"], "neg": ["name of player refers to Player_Name; the youngest refers to max(DOB)", "date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'", "losing team's name refers to Team_Id NOT in \"match_winner\" column", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1", "in 2008 refers to Match_Date like '2008%'", "born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)"]}} {"set": {"query": "Who is the player who won the first ever \"man of the match\" award?", "pos": ["name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'"], "neg": ["in May 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5'", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))", "year 2012 refers to Season_Year = 2012; name of player refers to Player_Name.; country of this player refers to Country_Name", "player's ID refers to Player_Id", "team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", "type of match won refers to Win_Type", "in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "venue refers to Venue_Name; winning team refers to match_winner", "MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'"]}} {"set": {"query": "Which team has the highest number of losses of all time?", "pos": ["name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))"], "neg": ["got out by being stumped refers to Out_Name = 'stumped'; the second innings refers to Innings_No = 2", "U.A.E refers to Country_Name = 'U.A.E'", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage", "CH Gayle refers to Player_Name = 'CH Gayle'", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "R Dravid refers to Player_Name = 'R Dravid'; year born refers to DOB; role refers to Role_Desc", "venue refers to Venue_Name; winning team refers to match_winner", "date of the match refers to Match_Date; highest wager refers to max(Win_Margin)"]}} {"set": {"query": "How many of the matches are Superover?", "pos": ["are Superover refers to win_type = 'wickets';"], "neg": ["name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "Indian refers to Country_Name = 'India'", "year refers to DOB; majority of the players refers to max(count(Player_Id))", "venue refers to Venue_Name; winning team refers to match_winner", "match date refers to Match_Date; Chennai Super Kings refers to Team_Name = 'Chennai Super Kings'; first match refers to min(Match_Date)", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "name of player refers to Player_Name; the youngest refers to max(DOB)", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)"]}} {"set": {"query": "How many matches did Team 10 play in 2012?", "pos": ["Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'"], "neg": ["MK Pandey refers to Player_Name = 'MK Pandey'", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "the venue named \"Newlands\" refers to Venue_Name = 'Newlands'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "East London refers to City_Name = 'East London'", "first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1", "end of 16 overs refers to count(Toss_Name = 'field' ) = 16; run rate = divide(count(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id)when Toss_Name = 'field'); name refers to Player_Name", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "fewest number of matches refers to min(count(Match_Id))", "player's ID refers to Player_Id"]}} {"set": {"query": "List the id of the player who won the Orange Cap for 2 consecutive seasons.", "pos": ["id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1"], "neg": ["played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "venue refers to Venue_Name; winning team refers to match_winner", "role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'", "Indian refers to Country_Name = 'India'", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "bowling skill greater than 2 refers to Bowling_skill > 2", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "number of runs refers to Runs_Scored; 2nd inning refers to Innings_No = 2"]}} {"set": {"query": "What is the role of SC Ganguly in the match on 2008/4/18?", "pos": ["role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'"], "neg": ["'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players\u00a0 refers to max(count(Country_Id))", "in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "are Indians refers to Country_Name = 'India'", "on 18th April 2015 refers to DATE(Match_Date) = '2015-04-18'", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "bowling skill greater than 2 refers to Bowling_skill > 2", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "venue refers to Venue_Name; winning team refers to match_winner", "played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))"]}} {"set": {"query": "Give the name of the venue where the most number of matches are held.", "pos": ["name of the venue refers to Venue_Name; most number of matches refers to max(count(Venue_Id))"], "neg": ["Australia refers to Country_Name = 'Australia'", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "name of players refers to Player_Name", "batting team was the Delhi Daredevils refers to Team_Name = 'Delhi Daredevils' and Team_1 = Team_Id where Team_Batting = 1 or Team_2 = Team_Id where Team_Batting = 2; no runs scored refers to Runs_Scored = 0", "full name refers to Player_Name; in 2013 refers to Season_Year = 2013", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "in 2008 refers to Match_Date like '2008%'", "noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))", "innings numbers refers to Innings_No", "Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';"]}} {"set": {"query": "Who among the players won both \"Man of the Series\" and \"Orange Cap\" in the same season?", "pos": ["Who refers to Player_Name;"], "neg": ["name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "who refers to Team_Name", "right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985", "name refers to Player_Name; youngest player refers to max(DOB)", "type of match won refers to Win_Type", "the oldest refers to min(DOB); date of birth refers to DOB", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';"]}} {"set": {"query": "How many players were born in the 80s and have bowling skill of 2?", "pos": ["born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;"], "neg": ["second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2", "if a player has multiple roles in a match, it means this player is versatile; name refers to Player_Name; most versatile player refers to MAX(COUNT(Role_id)); Delhi Daredevils refers to Team_Name = 'Delhi Daredevils'", "end of 16 overs refers to count(Toss_Name = 'field' ) = 16; run rate = divide(count(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id)when Toss_Name = 'field'); name refers to Player_Name", "year refers to DOB; majority of the players refers to max(count(Player_Id))", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "name refers to Player_Name; captain keeper refers to Role_Desc = 'CaptainKeeper'; match no.419117 refers to Match_Id = '419117'"]}} {"set": {"query": "Provide the country ID of East London.", "pos": ["East London refers to City_Name = 'East London'"], "neg": ["MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", "average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "in 2008 refers to Match_Date like '2008%'", "got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335", "got out by being stumped refers to Out_Name = 'stumped'; the second innings refers to Innings_No = 2", "on 18th April 2015 refers to DATE(Match_Date) = '2015-04-18'", "noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))"]}} {"set": {"query": "How many victory matches were there in 2008?", "pos": ["in 2008 refers to Match_Date like '2008%'"], "neg": ["average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "name of player refers to Player_Name; the youngest refers to max(DOB)", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2", "number of runs refers to Runs_Scored; 2nd inning refers to Innings_No = 2", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1"]}} {"set": {"query": "How many Indian cities are there in the database?", "pos": ["Indian refers to Country_Name = 'India'"], "neg": ["in 2008 refers to Match_Date like '2008%'", "country refers to Country_Name; the oldest refers to min(DOB)", "MK Pandey refers to Player_Name = 'MK Pandey'", "captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "year 2012 refers to Season_Year = 2012; name of player refers to Player_Name.; country of this player refers to Country_Name", "date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "scored less than 3 refers to Runs_Scored < 3; name of player refers to Player_name;", "Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'"]}} {"set": {"query": "How many matches in 2009 had win margins of less than 10?", "pos": ["in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;"], "neg": ["out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "left hand batting style players refers to Batting_hand = 'Left-hand bat'; percentage refers to DIVIDE(COUNT(Batting_hand = 'Left-hand bat'), COUNT(Player_Id)) * 100.0", "role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)"]}} {"set": {"query": "Among the matches played by Royal Challengers Bangalore, what is the match ID of the match with the highest winning margin?", "pos": ["Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)"], "neg": ["born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "full name refers to Player_Name; in 2013 refers to Season_Year = 2013", "end of 16 overs refers to count(Toss_Name = 'field' ) = 16; run rate = divide(count(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id)when Toss_Name = 'field'); name refers to Player_Name", "held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "are Superover refers to win_type = 'wickets';", "Australia refers to Country_Name = 'Australia'", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))"]}} {"set": {"query": "How many games were not won by runs?", "pos": ["not won by runs refers to Win_Type ! = 'runs'"], "neg": ["name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "bowling skill used by most players refers to max(count(Bowling_Skill))", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'", "first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2", "got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';"]}} {"set": {"query": "What is the name of the youngest player?", "pos": ["name refers to Player_Name; youngest player refers to max(DOB)"], "neg": ["born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "names of the venues refers to Venue_Name; Abu Dhabi refers to City_Name = 'Abu Dhabi'", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'", "type of match won refers to Win_Type", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "are Superover refers to win_type = 'wickets';", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;"]}} {"set": {"query": "Calculate the average runs scored during the first half of all first innings.", "pos": ["first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1"], "neg": ["left hand batting style players refers to Batting_hand = 'Left-hand bat'; percentage refers to DIVIDE(COUNT(Batting_hand = 'Left-hand bat'), COUNT(Player_Id)) * 100.0", "MK Pandey refers to Player_Name = 'MK Pandey'", "year 2012 refers to Season_Year = 2012; name of player refers to Player_Name.; country of this player refers to Country_Name", "bowling skill used by most players refers to max(count(Bowling_Skill))", "name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))", "in 2008 refers to Match_Date like '2008%'", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "got out by being stumped refers to Out_Name = 'stumped'; the second innings refers to Innings_No = 2", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';"]}} {"set": {"query": "Which teams did SC Ganguly join in season year 2008?", "pos": ["SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008"], "neg": ["Australia refers to Country_Name = 'Australia'", "not won by runs refers to Win_Type ! = 'runs'", "name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "man of the match more than 5 times refers to COUNT(Man_of_the_Match) > 5; in season year 2008 refers to Season_Year = 2008; name of player refers to Player_Name;", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "SC Ganguly refers to Player_Name = 'SC Ganguly'"]}} {"set": {"query": "What is the average winning margin of the matches held in Newlands?", "pos": ["average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'"], "neg": ["point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008", "are Superover refers to win_type = 'wickets';", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "East London refers to City_Name = 'East London'", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'"]}} {"set": {"query": "What are the teams that played in a match with the point of winning margin of 38 on April 30, 2009?", "pos": ["point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;"], "neg": ["played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "won by wickets refers to Win_type = 'wickets';", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))", "held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';", "name of the team refers to Team_Name; the most number of matches refers to max(count(Match_Winner)); season 1 refers to season_Id = 1"]}} {"set": {"query": "Which venue did Kolkata Knight Riders play most of their matches as a Team 1?", "pos": ["venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1"], "neg": ["play by the left hand refers to Batting_hand = \u00a0 'Left-hand bat'", "first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1", "name of players refers to Player_Name", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "bowling skill greater than 2 refers to Bowling_skill > 2", "MK Pandey refers to Player_Name = 'MK Pandey'", "bowling skill used by most players refers to max(count(Bowling_Skill))", "captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name"]}} {"set": {"query": "Who was the captain-keeper of Rising Pune Supergiants?", "pos": ["captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'"], "neg": ["Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))", "CH Gayle refers to Player_Name = 'CH Gayle'", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335", "average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "eldest player refers to MIN(DOB); where he/she come from refers to Country_Name"]}} {"set": {"query": "How many players got out by being stumped in the second innings of all matches?", "pos": ["got out by being stumped refers to Out_Name = 'stumped'; the second innings refers to Innings_No = 2"], "neg": ["born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'", "number of runs refers to Runs_Scored; 2nd inning refers to Innings_No = 2", "captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "Indian refers to Country_Name = 'India'", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "were played in March 2010 refers to Match_Date = '2010-03%'", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015"]}} {"set": {"query": "What is the name of the player with the highest number of outstanding player awards in a particular match?", "pos": ["name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))"], "neg": ["who refers to Team_Name", "name of the venue refers to Venue_Name; most number of matches refers to max(count(Venue_Id))", "are Superover refers to win_type = 'wickets';", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "eldest player refers to MIN(DOB); where he/she come from refers to Country_Name", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'"]}} {"set": {"query": "Give the match's venue and winning team for the match ID 392194.", "pos": ["venue refers to Venue_Name; winning team refers to match_winner"], "neg": ["year 2012 refers to Season_Year = 2012; name of player refers to Player_Name.; country of this player refers to Country_Name", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "CH Gayle refers to Player_Name = 'CH Gayle'", "average winning margin refers to avg(win_margin); held in Newlands refers to venue_name = 'Newlands'", "in 2008 refers to Match_Date like '2008%'", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", "were played in March 2010 refers to Match_Date = '2010-03%'", "full name refers to Player_Name; in 2013 refers to Season_Year = 2013"]}} {"set": {"query": "In what percentage of games played at the Dr DY Patil Sports Academy venue did the winning team win by a margin of less than 10?", "pos": ["Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage"], "neg": ["id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'", "play by the left hand refers to Batting_hand = \u00a0 'Left-hand bat'", "in 2008 refers to Match_Date like '2008%'", "\nvenue refers to Venue_Name", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "eldest player refers to MIN(DOB); where he/she come from refers to Country_Name", "date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)"]}} {"set": {"query": "How old is Ishan Kishan in 2022?", "pos": ["old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';"], "neg": ["won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "on 18th April 2015 refers to DATE(Match_Date) = '2015-04-18'", "city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "in 2008 refers to Match_Date like '2008%'", "player's ID refers to Player_Id", "date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2"]}} {"set": {"query": "Who was the man of the series in 2013? Give the full name.", "pos": ["full name refers to Player_Name; in 2013 refers to Season_Year = 2013"], "neg": ["the oldest refers to min(DOB); date of birth refers to DOB", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "who refers to Team_Name", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'"]}} {"set": {"query": "List down the name of venues in season 2.", "pos": ["name of venues refers to Venue_Name; season 2 refers to Season_Id = 2"], "neg": ["decide to bowl first refers to Toss_Name = 'field'; from 2010 to 2016 refers to Match_Date BETWEEN '2010-01-01' AND '2016-12-31'; percent = divide(count(Toss_Id where Toss_Name = 'field'), count(Toss_Id)) * 100% where Match_Date BETWEEN '2010-01-01' AND '2016-12-31'", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))", "Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';", "name refers to Player_Name; youngest player refers to max(DOB)", "most number of balls refers to max(Ball_Id); match 501219 refers to Match_Id = 501219;\nplayer id also refers to non_striker or ball_id", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc"]}} {"set": {"query": "For how many times has player no.41 won the \"man of the match\" award?", "pos": ["player no.41 won the \"man of the match\" refers to Man_of_the_Match = 41"], "neg": ["the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "decide to bowl first refers to Toss_Name = 'field'; from 2010 to 2016 refers to Match_Date BETWEEN '2010-01-01' AND '2016-12-31'; percent = divide(count(Toss_Id where Toss_Name = 'field'), count(Toss_Id)) * 100% where Match_Date BETWEEN '2010-01-01' AND '2016-12-31'", "venue refers to Venue_Name; winning team refers to match_winner", "are Superover refers to win_type = 'wickets';", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "not won by runs refers to Win_Type ! = 'runs'", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))"]}} {"set": {"query": "Among the matches of Delhi Daredevils in 2014, how many won matches are there?", "pos": ["Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';"], "neg": ["won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)"]}} {"set": {"query": "What is the total number of won matches of the team named \"Pune Warriors\"?", "pos": ["the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)"], "neg": ["Pune Warriors refers to Team_Name = 'Pune Warriors'", "point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "if a player has multiple roles in a match, it means this player is versatile; name refers to Player_Name; most versatile player refers to MAX(COUNT(Role_id)); Delhi Daredevils refers to Team_Name = 'Delhi Daredevils'", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "in 2008 refers to Match_Date like '2008%'", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "\nvenue refers to Venue_Name", "born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "names of the venues refers to Venue_Name; Abu Dhabi refers to City_Name = 'Abu Dhabi'"]}} {"set": {"query": "For the game on 2008/5/12, who was the man of the match?", "pos": ["on 2008/5/12 refers to Match_Date = '2008-05-12'; name refers to Player_Name;"], "neg": ["in May 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5'", "Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name", "on 18th April 2015 refers to DATE(Match_Date) = '2015-04-18'", "name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))", "season year 2008 refers to Season_Year = 2008", "in 2008 refers to Match_Date like '2008%'", "\nvenue refers to Venue_Name"]}} {"set": {"query": "How many players have left arm fast in bowling skill?", "pos": ["have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';"], "neg": ["scored less than 3 refers to Runs_Scored < 3; name of player refers to Player_name;", "name of the venue refers to Venue_Name; most number of matches refers to max(count(Venue_Id))", "number of runs refers to Runs_Scored; 2nd inning refers to Innings_No = 2", "'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players\u00a0 refers to max(count(Country_Id))", "won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "SB Joshi refers to Player_Name = 'SB Joshi'; where the player come from refers to Country_Name", "captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'"]}} {"set": {"query": "What are the names of players that have run scored less than 3?", "pos": ["scored less than 3 refers to Runs_Scored < 3; name of player refers to Player_name;"], "neg": ["SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "bowling skill used by most players refers to max(count(Bowling_Skill))", "are Indians refers to Country_Name = 'India'", "first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2", "R Dravid refers to Player_Name = 'R Dravid'; year born refers to DOB; role refers to Role_Desc", "left hand batting style players refers to Batting_hand = 'Left-hand bat'; percentage refers to DIVIDE(COUNT(Batting_hand = 'Left-hand bat'), COUNT(Player_Id)) * 100.0", "SB Joshi refers to Player_Name = 'SB Joshi'; where the player come from refers to Country_Name", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';"]}} {"set": {"query": "Among the players born in 1977, what is the percentage of the players with a role as a captain?", "pos": ["born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'"], "neg": ["country refers to Country_Name; the oldest refers to min(DOB)", "type of match won refers to Win_Type", "R Dravid refers to Player_Name = 'R Dravid'; year born refers to DOB; role refers to Role_Desc", "scored less than 3 refers to Runs_Scored < 3; name of player refers to Player_name;", "name of the venue refers to Venue_Name; most number of matches refers to max(count(Venue_Id))", "Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';", "\nvenue refers to Venue_Name", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)"]}} {"set": {"query": "When and for what role did the youngest player appear in his first match?", "pos": ["When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)"], "neg": ["date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "name of the player refers to Player_Name; the first ever refers to min(match_date); \"man of the match\" award refers to Player_Id in 'Man_of_the_Match'", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)", "city named \"Rajkot\" refers to city_name = 'Rajkot';", "name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "country refers to Country_Name; the oldest refers to min(DOB)"]}} {"set": {"query": "What are the names of players who participated in season year 2008?", "pos": ["season year 2008 refers to Season_Year = 2008"], "neg": ["date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "Australia refers to Country_Name = 'Australia'", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "played in 2009 Match_Date like '2009%'; Mumbai Indians\" team refers to Team_Name = 'Mumbai Indians'; percent of the matches did they win refers to DIVIDE(COUNT(Match_Winner = Team_Id), COUNT(Match_Id))", "held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014", "R Dravid refers to Player_Name = 'R Dravid'; year born refers to DOB; role refers to Role_Desc", "name of the striker refers to Player_Name; match no. 419169 refers to Match_Id = 419169; over no.3 refers to Over_Id = 3; ball no.2 refers to Ball_Id = 2; inning no.2 refers to Innings_No = 2", "names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'", "right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985"]}} {"set": {"query": "How many matches did the Sunrisers Hyderabad team win in 2013?", "pos": ["Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';"], "neg": ["held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "name of players refers to Player_Name", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))", "season refers to Season_Id; the highest number of matches refers to max(count(Season_Id)); M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2", "city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "name refers to Player_Name; youngest player refers to max(DOB)", "in team 1 refers to Team_Id = 1; name of player refers to Player_Name;", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; win their first match refers to Match_Winner and min(Match_Date)"]}} {"set": {"query": "List down the name of teams that won the toss of the coin from matches with ID from 336010 to 336020.", "pos": ["name of teams refers to Team_Name; won the toss refers to Toss_Winner; matches with ID from 336010 to 336020\u00a0 refers to Match_Id BETWEEN 336010 AND 336020"], "neg": ["wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name", "out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)", "are Indians refers to Country_Name = 'India'", "Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';", "names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "eldest player refers to MIN(DOB); where he/she come from refers to Country_Name", "type of match won refers to Win_Type", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "name of the venue refers to Venue_Name; most number of matches refers to max(count(Venue_Id))"]}} {"set": {"query": "Give the player id of the player who was at the non-striker end for the most number of balls in the match 501219.", "pos": ["most number of balls refers to max(Ball_Id); match 501219 refers to Match_Id = 501219;\nplayer id also refers to non_striker or ball_id"], "neg": ["got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name", "year 2012 refers to Season_Year = 2012; name of player refers to Player_Name.; country of this player refers to Country_Name", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)"]}} {"set": {"query": "Name the player who is born on July 7, 1981.", "pos": ["name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'"], "neg": ["bowling skill used by most players refers to max(count(Bowling_Skill))", "SB Joshi refers to Player_Name = 'SB Joshi'; where the player come from refers to Country_Name", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match", "bowling skill greater than 2 refers to Bowling_skill > 2", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "losing team's name refers to Team_Id NOT in \"match_winner\" column", "Between match no. 335989 and 337000 refers to 335989 < Match_Id < 337000; batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches refers to Runs_Scored > 3 and\u00a0 Over_Id = 1 and Ball_Id = 1 and Innings_No = 1", "are Superover refers to win_type = 'wickets';"]}} {"set": {"query": "Write down the name of players whose bowling skill is Legbreak.", "pos": ["name of players refers to Player_Name"], "neg": ["point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "Indian refers to Country_Name = 'India'", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "had players out by hit wickets refers to Out_Name = 'hit wicket'", "in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "are Superover refers to win_type = 'wickets';", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992"]}} {"set": {"query": "Give me the match ID and date of the matches that were held in Kingsmead for three consecutive days.", "pos": ["date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'"], "neg": ["name of teams refers to Team_Name; won the toss refers to Toss_Winner; matches with ID from 336010 to 336020\u00a0 refers to Match_Id BETWEEN 336010 AND 336020", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'", "were played in March 2010 refers to Match_Date = '2010-03%'", "won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "if a player has multiple roles in a match, it means this player is versatile; name refers to Player_Name; most versatile player refers to MAX(COUNT(Role_id)); Delhi Daredevils refers to Team_Name = 'Delhi Daredevils'"]}} {"set": {"query": "List all Zimbabwean players.", "pos": ["Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name"], "neg": ["the venue named \"Newlands\" refers to Venue_Name = 'Newlands'", "end of 16 overs refers to count(Toss_Name = 'field' ) = 16; run rate = divide(count(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id)when Toss_Name = 'field'); name refers to Player_Name", "got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%", "Pune Warriors refers to Team_Name = 'Pune Warriors'", "lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'", "losing team's name refers to Team_Id NOT in \"match_winner\" column"]}} {"set": {"query": "Give the name of the youngest player.", "pos": ["name of player refers to Player_Name; the youngest refers to max(DOB)"], "neg": ["held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "Pune Warriors refers to Team_Name = 'Pune Warriors'", "are Indians refers to Country_Name = 'India'", "date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "year refers to DOB; majority of the players refers to max(count(Player_Id))", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "city named \"Rajkot\" refers to city_name = 'Rajkot';", "player no.41 won the \"man of the match\" refers to Man_of_the_Match = 41"]}} {"set": {"query": "From which country does the most umpires are from? How many of them are from the mentioned country?\n", "pos": ["which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))"], "neg": ["country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "CH Gayle refers to Player_Name = 'CH Gayle'", "player no.41 won the \"man of the match\" refers to Man_of_the_Match = 41", "the venue named \"Newlands\" refers to Venue_Name = 'Newlands'", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "bowling skill greater than 2 refers to Bowling_skill > 2", "bowling skill used by most players refers to max(count(Bowling_Skill))", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2"]}} {"set": {"query": "Among the matches of Delhi Daredevils in 2009, what is the percentage of their matches won by wickets?", "pos": ["Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))"], "neg": ["date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "wins the toss refers to Toss_Winner; whether they decided to bat or field refers to Toss_Name", "city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players\u00a0 refers to max(count(Country_Id))", "English umpires refers to Country_Name = 'England'"]}} {"set": {"query": "List the cities located in U.A.E.", "pos": ["city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'"], "neg": ["seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "won by wickets refers to Win_type = 'wickets';", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "Between match no. 335989 and 337000 refers to 335989 < Match_Id < 337000; batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches refers to Runs_Scored > 3 and\u00a0 Over_Id = 1 and Ball_Id = 1 and Innings_No = 1", "eldest player refers to MIN(DOB); where he/she come from refers to Country_Name"]}} {"set": {"query": "Compute the run rate at the end of 16 overs of the match ID 335999. Please include the name of the \"Man of_the Match\".", "pos": ["end of 16 overs refers to count(Toss_Name = 'field' ) = 16; run rate = divide(count(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id)when Toss_Name = 'field'); name refers to Player_Name"], "neg": ["city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'", "first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1", "venue refers to Venue_Name; winning team refers to match_winner", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "batting team was the Delhi Daredevils refers to Team_Name = 'Delhi Daredevils' and Team_1 = Team_Id where Team_Batting = 1 or Team_2 = Team_Id where Team_Batting = 2; no runs scored refers to Runs_Scored = 0", "English umpires refers to Country_Name = 'England'", "on 2008/5/12 refers to Match_Date = '2008-05-12'; name refers to Player_Name;", "not won by runs refers to Win_Type ! = 'runs'", "type of match won refers to Win_Type", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)"]}} {"set": {"query": "List the first team's name in the match with the highest winning margin.", "pos": ["team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)"], "neg": ["venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1", "Australia refers to Country_Name = 'Australia'", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "year 2012 refers to Season_Year = 2012; name of player refers to Player_Name.; country of this player refers to Country_Name", "MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "name of player refers to Player_Name; the youngest refers to max(DOB)", "right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))"]}} {"set": {"query": "Between match nos. 335989 and 337000, how many times did a batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches?", "pos": ["Between match no. 335989 and 337000 refers to 335989 < Match_Id < 337000; batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches refers to Runs_Scored > 3 and\u00a0 Over_Id = 1 and Ball_Id = 1 and Innings_No = 1"], "neg": ["name refers to Player_Name; youngest player refers to max(DOB)", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "in team 1 refers to Team_Id = 1; name of player refers to Player_Name;", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)", "held in June 2014 refers to SUBSTR(Match_Date, 7, 1) = 6 and SUBSTR(Match_Date, 1, 4) = 2014", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "year refers to DOB; majority of the players refers to max(count(Player_Id))", "noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))"]}} {"set": {"query": "How many Orange Cap awards were won by CH Gayle?", "pos": ["CH Gayle refers to Player_Name = 'CH Gayle'"], "neg": ["have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match", "R Dravid refers to Player_Name = 'R Dravid'; year born refers to DOB; role refers to Role_Desc", "Zimbabwean refers to Country_Name = 'Zimbabwea'; players refers to Player_Name", "the oldest refers to min(DOB); date of birth refers to DOB", "city named \"Rajkot\" refers to city_name = 'Rajkot';", "name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'"]}} {"set": {"query": "Among the players who use the right hand as their batting hand, how many of them were born after 1985?", "pos": ["right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985"], "neg": ["got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))", "first half refers to 1 < Over_Id and Over_Id < 25; average = divide(sum(Over_Id) when 1 < Over_Id and Over_Id < 25, sum(Runs_Scored)) as percentage; first innings refers to Innings_No = 1", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "most number of balls refers to max(Ball_Id); match 501219 refers to Match_Id = 501219;\nplayer id also refers to non_striker or ball_id", "year refers to DOB; majority of the players refers to max(count(Player_Id))", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "were played in March 2010 refers to Match_Date = '2010-03%'", "season year 2008 refers to Season_Year = 2008"]}} {"set": {"query": "How many first teams chose to bat after winning the toss?", "pos": ["first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2"], "neg": ["role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "who refers to Team_Name", "play by the left hand refers to Batting_hand = \u00a0 'Left-hand bat'", "SB Joshi refers to Player_Name = 'SB Joshi'; where the player come from refers to Country_Name", "not won by runs refers to Win_Type ! = 'runs'", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "name refers to Player_Name; youngest player refers to max(DOB)", "Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992"]}} {"set": {"query": "What are the average extra runs given in the second innings of every match?", "pos": ["second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2"], "neg": ["Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "bowling skill used by most players refers to max(count(Bowling_Skill))", "the oldest refers to min(DOB); date of birth refers to DOB", "U.A.E refers to Country_Name = 'U.A.E'", "country refers to Country_Name; the oldest refers to min(DOB)", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "full name refers to Player_Name; in 2013 refers to Season_Year = 2013", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335"]}} {"set": {"query": "List the names of players who played as a keeper.", "pos": ["played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;"], "neg": ["in May 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5'", "MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))", "name of the venue refers to Venue_Name; most number of matches refers to max(count(Venue_Id))", "East London refers to City_Name = 'East London'", "city named \"Rajkot\" refers to city_name = 'Rajkot';", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "Mohammad Hafeez refers to Player_Name = 'Mohammad Hafeez';", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "right hand as batting hand refers to Batting_Hand = 'Right-hand bat'; born after 1985 refers to SUBSTR(DOB, 1, 4) > 1985"]}} {"set": {"query": "How many players are Indians?", "pos": ["are Indians refers to Country_Name = 'India'"], "neg": ["which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "MK Pandey refers to Player_Name = 'MK Pandey'", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "decide to bowl first refers to Toss_Name = 'field'; from 2010 to 2016 refers to Match_Date BETWEEN '2010-01-01' AND '2016-12-31'; percent = divide(count(Toss_Id where Toss_Name = 'field'), count(Toss_Id)) * 100% where Match_Date BETWEEN '2010-01-01' AND '2016-12-31'", "won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1", "right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%"]}} {"set": {"query": "Calculate the run rate at the end of 17 overs of the match ID 335987 on 4/18/2008.", "pos": ["4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')"], "neg": ["born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "decide to bowl first refers to Toss_Name = 'field'; from 2010 to 2016 refers to Match_Date BETWEEN '2010-01-01' AND '2016-12-31'; percent = divide(count(Toss_Id where Toss_Name = 'field'), count(Toss_Id)) * 100% where Match_Date BETWEEN '2010-01-01' AND '2016-12-31'", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2", "the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage", "in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';"]}} {"set": {"query": "What is the percentage of matches that are won by runs?", "pos": ["won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100"], "neg": ["name of the player refers to Player_Name; the highest number of outstanding player awards refers to max(count(Man_of_the_Match))", "Between match no. 335989 and 337000 refers to 335989 < Match_Id < 337000; batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches refers to Runs_Scored > 3 and\u00a0 Over_Id = 1 and Ball_Id = 1 and Innings_No = 1", "who refers to Team_Name", "born in the 80s refers to DOB like '198%'; have bowling skill of 2 refers to Bowling_skill = 2;", "bat with their right hand refers to Batting_hand = 'Right-hand bat'; average = divide(count(Player_Id) when Batting_hand = 'Right-hand bat', count(Country_Name))", "captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%", "id of the player who won the Orange Cap refers to Orange_Cap; for 2 consecutive seasons refers to count(Season_Year) > 1", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))"]}} {"set": {"query": "Which is the country of the city named \"Rajkot\"?", "pos": ["city named \"Rajkot\" refers to city_name = 'Rajkot';"], "neg": ["lowest winning margin refers to MIN(win_margin); team name refers to team_name; second team refers to team_2", "SC Ganguly refers to Player_Name = 'SC Ganguly'", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "left hand batting style players refers to Batting_hand = 'Left-hand bat'; percentage refers to DIVIDE(COUNT(Batting_hand = 'Left-hand bat'), COUNT(Player_Id)) * 100.0", "name refers to Player_Name; youngest player refers to max(DOB)", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992"]}} {"set": {"query": "What are the names of players who had been man of the match more than 5 times in season year 2008?", "pos": ["man of the match more than 5 times refers to COUNT(Man_of_the_Match) > 5; in season year 2008 refers to Season_Year = 2008; name of player refers to Player_Name;"], "neg": ["the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "MA Chidambaram Stadium refers to Venue_Name = 'MA Chidambaram Stadium' ; from 5/9/2009 to 8/8/2011 refers to Match_Date between '2009-05-09' and '2011-08-08'", "fewest number of matches refers to min(count(Match_Id))", "most number of balls refers to max(Ball_Id); match 501219 refers to Match_Id = 501219;\nplayer id also refers to non_striker or ball_id", "role refers to of Role_Id; SC Ganguly refers to Player_Name = 'SC Ganguly'; on 2008/4/18 refers to Match_Date = '2008-04-18'", "Indian refers to Country_Name = 'India'", "Who refers to Player_Name; youngest player to have won the Purple Cap refers to min(subtract(Season_Year, DOB))", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%", "names of the venues refers to Venue_Name; Abu Dhabi refers to City_Name = 'Abu Dhabi'"]}} {"set": {"query": "List down names of teams that have played as second team against Pune Warriors.", "pos": ["names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'"], "neg": ["date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "on 2008/5/12 refers to Match_Date = '2008-05-12'; name refers to Player_Name;", "captain and keeper refers to Role_Desc = 'CaptainKeeper'; percentage = divide(count(Player_Id) when Role_Desc = 'CaptainKeeper', count(Player_Id)) as percentage", "name of the venue, city and country refers to Venue_Name and City_Name and Country_Name; last match refers to max(Match_Date)", "city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'", "\nvenue refers to Venue_Name", "not won by runs refers to Win_Type ! = 'runs'", "point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "won by runs refers to win_type = 1; percentage refers to DIVIDE(COUNT(win_type = 1), COUNT(Win_Type)) * 100", "MK Pandey refers to Player_Name = 'MK Pandey'"]}} {"set": {"query": "In the match ID 419135, who won by runs?", "pos": ["who refers to Team_Name"], "neg": ["on 2008/5/12 refers to Match_Date = '2008-05-12'; name refers to Player_Name;", "Yuvraj Singh refers to Player_Name = 'Yuvraj Singh'; receive the Man of the Match award refers to Player_Id = Man_of_the_Match", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "SB Joshi refers to Player_Name = 'SB Joshi'; where the player come from refers to Country_Name", "names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'", "When refers to Match_Date; youngest player refers to max(DOB); first match refers to min(Match_Date)", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "bowling skill greater than 2 refers to Bowling_skill > 2"]}} {"set": {"query": "Give the date of birth of the 2014 Orange Cap winner.", "pos": ["date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL"], "neg": ["full name refers to Player_Name; in 2013 refers to Season_Year = 2013", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335", "Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';", "Between match no. 335989 and 337000 refers to 335989 < Match_Id < 337000; batsman score more than 3 runs during over no. 1, ball no. 1, and inning no. 1 of the matches refers to Runs_Scored > 3 and\u00a0 Over_Id = 1 and Ball_Id = 1 and Innings_No = 1", "name of teams refers to Team_Name; won the toss refers to Toss_Winner; matches with ID from 336010 to 336020\u00a0 refers to Match_Id BETWEEN 336010 AND 336020", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1", "name of the player refers to Player_Name; born on July 7 1981 refers to DOB = '1981-07-07'", "scored less than 3 refers to Runs_Scored < 3; name of player refers to Player_name;"]}} {"set": {"query": "List the players' names who were born in 1971.", "pos": ["players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'"], "neg": ["name and country of the players refers to Player_Name and Country_Name; catches refers to Out_name = 'caught'; average catches refers to divide(count(Player_ID) when Out_name = 'caught', sum(Player_ID))", "name of players refers to Player_Name", "not won by runs refers to Win_Type ! = 'runs'", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1", "Dr DY Patil Sports Academy venue refers to Venue_Name = 'Dr DY Patil Sports Academy'; win by a margin of less than 10 refers to Win_Margin < 10; percentage = divide(count(Venue_Id) when Win_Margin < 10, sum(Venue_Id)) as percentage", "date of the match refers to Match_Date; highest wager refers to max(Win_Margin)", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "name refers to Player_Name; youngest player refers to max(DOB)", "city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008"]}} {"set": {"query": "In how many games in which the batting team was the Delhi Daredevils were no runs scored?", "pos": ["batting team was the Delhi Daredevils refers to Team_Name = 'Delhi Daredevils' and Team_1 = Team_Id where Team_Batting = 1 or Team_2 = Team_Id where Team_Batting = 2; no runs scored refers to Runs_Scored = 0"], "neg": ["player no.41 won the \"man of the match\" refers to Man_of_the_Match = 41", "city named \"Rajkot\" refers to city_name = 'Rajkot';", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "right-handed batting refers to Batting_hand = 'Right-hand bat'; percentage = divide(count(Player_Id where Batting_hand = 'Right-hand bat'), count(Player_Id)) * 100%", "name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "Pune Warriors refers to Team_Name = 'Pune Warriors'", "in 2008 refers to Match_Date like '2008%'", "name of venues refers to Venue_Name; season 2 refers to Season_Id = 2", "MK Pandey refers to Player_Name = 'MK Pandey'", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';"]}} {"set": {"query": "How many times has Sunrisers Hyderabad been the toss winner of a game?", "pos": ["Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)"], "neg": ["name of the player refers to Player_Name; man of the series more than one time refers to count(Man_of_the_Series) > 1", "SuperSport Park refers to Venue_Name = 'SuperSport Park'; Centurion refers to City_Name = 'Centurion'", "got out refers to Player_Out; the first inning refers to Innings_No = 1; match ID \"548335\" refers to Match_Id = 548335", "bowling skill greater than 2 refers to Bowling_skill > 2", "players' name refers to Player_name; born in 1971 refers to DOB LIKE '1971%'", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "first teams refers to Team_1; chose to bat after winning the toss refers to Toss_Winner and Toss_Decide = 2", "born in 1977 refers to DOB LIKE '1977%'; a role as a captain refers to Role_Desc = 'Captain'; percentage = divide(count(Role_Id where Role_Desc = 'Captain'), count(Role_Id)) * 100% where DOB LIKE '1977%'", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3"]}} {"set": {"query": "List the ball IDs, scores, and innings numbers in the over ID 20 of match ID \"335988\".", "pos": ["innings numbers refers to Innings_No"], "neg": ["in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "bowling skill used by most players refers to max(count(Bowling_Skill))", "captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc", "losing team's name refers to Team_Id NOT in \"match_winner\" column", "date of birth refers to DOB; 2014 refers to Season_Year = 2014; Orange Cap winner refers to Orange_Cap IS NOT NULL", "held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)", "were played in March 2010 refers to Match_Date = '2010-03%'", "country refers to Country_Name; the majority of the players\u00a0 refers to max(count(Country_Name))", "Sunrisers Hyderabad refers to Team_Name = 'Sunrisers Hyderabad'; time of toss winner refers to count(Toss_Winner)"]}} {"set": {"query": "What year was R Dravid born and the role he played?", "pos": ["R Dravid refers to Player_Name = 'R Dravid'; year born refers to DOB; role refers to Role_Desc"], "neg": ["play by the left hand refers to Batting_hand = \u00a0 'Left-hand bat'", "scored less than 3 refers to Runs_Scored < 3; name of player refers to Player_name;", "country refers to Country_Name; the oldest refers to min(DOB)", "noballs refers to Extra_Name = 'noballs' ; average number = divide(sum(Extra_Runs), count(Extra_Runs))", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "SC Ganguly refers to Player_Name = 'SC Ganguly'; in season year 2008 refers to Season_Year = 2008", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "names of teams refers to Team_Name; second team refers to Team_2; Pune Warriors refers to Team_Name = 'Pune Warriors'", "name of the team refers to Team_Name; won the first ever match refers to Match_Winner where max(Match_Date)", "CH Gayle refers to Player_Name = 'CH Gayle'"]}} {"set": {"query": "Of the matches that were won by runs by team 1, what percentage have team 1 won the toss and decided to field?", "pos": ["won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage"], "neg": ["Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "man of the match more than 5 times refers to COUNT(Man_of_the_Match) > 5; in season year 2008 refers to Season_Year = 2008; name of player refers to Player_Name;", "city refers to City_Name; U.A.E refers to Country_Name = 'U.A.E'", "East London refers to City_Name = 'East London'", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2014 refers to Match_Date contains '2014';", "match date refers to Match_Date; Chennai Super Kings refers to Team_Name = 'Chennai Super Kings'; first match refers to min(Match_Date)", "second innings refers to Innings_No = 2; average extra runs = divide(sum(Extra_Runs), count(Innings_No)) when Innings_No = 2", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "name refers to Player_Name; youngest player refers to max(DOB)", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1"]}} {"set": {"query": "How many matches were there in May, 2008?", "pos": ["in May 2008 refers to SUBSTR(Match_Date, 1, 4) = '2008' AND SUBSTR(Match_Date, 7, 1) = '5'"], "neg": ["won by wickets refers to Win_type = 'wickets';", "old refers to SUBTRACT(2022, SUBSTR(DOB, 1, 4)); Ishan Kishan refers to Player_Name = 'Ishan Kishan';", "the team named \"Pune Warriors\" refers to Team_Name = 'Pune Warriors'; the total number of won matches = count(Team_Name where Team_Id = Match_Winner)", "Pune Warriors refers to Team_Name = 'Pune Warriors'", "role refers to Role_Desc; K Goel refers to Player_Name = 'K Goel'; match ID 335992 refers to Match_Id = 335992", "scored less than 3 refers to Runs_Scored < 3; name of player refers to Player_name;", "name refers to Player_Name; captain keeper refers to Role_Desc = 'CaptainKeeper'; match no.419117 refers to Match_Id = '419117'", "most number of balls refers to max(Ball_Id); match 501219 refers to Match_Id = 501219;\nplayer id also refers to non_striker or ball_id", "Australia refers to Country_Name = 'Australia'", "played as a keeper refers to Role_Desc = 'Keeper'; name of player refers to Player_Name;"]}} {"set": {"query": "How many players are from Australia?", "pos": ["Australia refers to Country_Name = 'Australia'"], "neg": ["fewest number of matches refers to min(count(Match_Id))", "Team 10 refers to Team_1 = 10 OR Team_2 = 10; in 2012 refers to SUBSTR(Match_Date, 1, 4) = '2012'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "not won by runs refers to Win_Type ! = 'runs'", "born in the 90s refers to DOB > = '1990-01-01' AND DOB < = '1999-12-31'", "most number of balls refers to max(Ball_Id); match 501219 refers to Match_Id = 501219;\nplayer id also refers to non_striker or ball_id", "date of the matches refers to Match_Date; held in Kingsmead refers to Venue_Name = 'Kingsmead'", "name of player refers to Player_Name; the youngest refers to max(DOB)", "born in 1977 refers to DOB LIKE '1977%'; name refers to Player_Name; birthdate refers to DOB; England refers to Country_Name = 'England'", "Delhi Daredevils refers to team_name = 'Delhi Daredevils'; in 2009 refers to Match_Date = '2009%'; won by wickets refers to Win_Type = 'wickets'; percentage refers to DIVIDE(COUNT(Win_Type = 'wickets'), COUNT(Win_Type))"]}} {"set": {"query": "Provide the losing team's name in the match ID 336039.", "pos": ["losing team's name refers to Team_Id NOT in \"match_winner\" column"], "neg": ["the country the umpire comes from refers to Country_Name; BR Doctrove refers to Umpire_Name = 'BR Doctrove'", "city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))", "country refers to Country_Name; the oldest refers to min(DOB)", "\nvenue refers to Venue_Name", "Royal Challengers Bangalore refers to team_name = 'Royal Challengers Bangalore'; highest winning margin refers to MAX(win_margin)", "are Indians refers to Country_Name = 'India'", "won by wickets refers to Win_type = 'wickets';", "4/18/2008 refers to Match_Date = 4/18/2008; end of 17 overs refers to count(Toss_Name = 'field' ) = 17; run rate = divide(sum(Runs_Scored) when Toss_Name = 'bat', sum(Over_Id) when Toss_Name = 'field')", "name of the team refers to Team_Name; the highest number of losses refers to max(add(count(Team_1 where Team_Id = Team_1 and Team_1 <> Match_Winner), count(Team_2 where Team_Id = Team_2 and Team_2 <> Match_Winner)))", "type of match won refers to Win_Type"]}} {"set": {"query": "What is the difference in the average number of players out by lbw and runout in the matches?", "pos": ["out by lbw refers to Out_Id = 4; runout refers to Out_Id = 3; average out by lbw refers to\u00a0 avg(Player_Out when Out_Id = 4); average out by runout refers to\u00a0 avg(Player_Out when Out_Id = 3)"], "neg": ["CH Gayle refers to Player_Name = 'CH Gayle'", "venue refers to Venue_Name; Kolkata Knight Riders refers to Team_Name = 'Kolkata Knight Riders'; most of their matches refers to max(count(Venue_Id)); Team 1 refers to Team_Id = Team_1", "resulted in a tie refers to Win_Type = 'Tie'; in 2015 refers to SUBSTR(Match_Date, 1, 4) = 2015", "'slow left-arm chinaman' bowling style refers to Bowling_skill = 'Slow left-arm chinaman'; most players\u00a0 refers to max(count(Country_Id))", "in 2009 refers to Match_Date like '2009%'; win margins of less than 10 refers to Win_Margin < 10;", "point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "season year 2008 refers to Season_Year = 2008", "from South Africa refers to Country_Name = 'South Africa'; born in 1984 refers to DOB like '1984%';", "were played in March 2010 refers to Match_Date = '2010-03%'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; role refers to Role_Desc"]}} {"set": {"query": "Which season has the fewest number of matches?", "pos": ["fewest number of matches refers to min(count(Match_Id))"], "neg": ["the oldest refers to min(DOB); date of birth refers to DOB", "Legbreak skill refers to Bowling_skill = 'Legbreak' ; percentage = divide(sum(Player_Id) when Bowling_skill = 'Legbreak', count(Player_Id)) as percentage", "Australia refers to Country_Name = 'Australia'", "SC Ganguly refers to Player_Name = 'SC Ganguly'; team captain refers to Role_Desc = 'Captain'", "season year 2008 refers to Season_Year = 2008", "which country refers to Country_Id; most umpires refers to max(count(Umpire_Id))", "have left arm fast in bowling skill refers to Bowling_skill = 'Left-arm fast';", "Sunrisers Hyderabad team refers to Team_Name = 'Sunrisers Hyderabad'; in 2013 refers to Match_Date like '2013%';", "city refers to City_Name; no-result matches refers to Win_type = 'NoResult'; least number refers to min(count(Win_type = 'NoResult'))", "won by runs refers to Win_Type = 'runs'; won the toss and decided to field refers to Toss_Winner and Toss_Name = 'field'; percentage = divide(count(Team_1) when Match_Winner = Team_1 and Toss_Winner = Team_1, count(Team_1)) as percentage"]}} {"set": {"query": "Among the matches held in St. George's Park, give the match ID of the match with the highest winning margin points.", "pos": ["held in St. George's Park refers to Venue_Name = 'St George''s Park'; highest winning margin points refers to MAX(Win_Margin)"], "neg": ["were played in March 2010 refers to Match_Date = '2010-03%'", "M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'; Maharashtra Cricket Association Stadium refers to Venue_Name = 'Maharashtra Cricket Association Stadium'; how many times = divide(count(Match_Id where Venue_Name = 'M Chinnaswamy Stadium'), count(Match_Id where Venue_Name = 'Maharashtra Cricket Association Stadium'))", "Pune Warriors refers to Team_Name = 'Pune Warriors'", "seasons from 2011 to 2015 refers to 2011 < Season_Year < 2015", "team's name refers to Team_Name; first team refers to Team_Id = Team_1; the highest winning margin refers to max(Win_Margin)", "captain-keeper refers to Role_Desc = 'CaptainKeeper'; Rising Pune Supergiants refers to Role_Desc = 'CaptainKeeper'", "born before 10/16/1975 refers to DOB < 1975-10-16; bowling skill of less than 3 refers to Bowling_skill < 3", "winning margin of 6 points refers to Win_Margin = 6; held on April 26, 2009 refers to Match_Date = '2009-04-26'", "point of winning margin of 38 refers to win_margin = 38; on April 30, 2009 refers to match_date = '2009-04-30'; team refers to Team_Name;", "city refers to City_Name; M Chinnaswamy Stadium refers to Venue_Name = 'M Chinnaswamy Stadium'"]}} {"set": {"query": "Among all the tweets posted on Mondays, how many of them are reshared?", "pos": ["\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'"], "neg": ["\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "retweet more than 30 times refers to RetweetCount > 30", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "over 1000 likes refers to Likes > 1000; 'Male' is the Gender of user", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "tweet with the most likes refers to Max(Likes)", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))", "\"tw-682714583044243456\" is the TweetID"]}} {"set": {"query": "Among all the users that have posted a tweet with over 1000 likes, how many of them are male?", "pos": ["over 1000 likes refers to Likes > 1000; 'Male' is the Gender of user"], "neg": ["neutral sentiment refers to Sentiment = 0", "male user refers to Gender = 'Male'; 'Monday' is the Weekday; average number of likes = Divide (Sum(Likes), Count(TweetID))", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "\"Buenos Aires\" is the City; male user refers to Gender = 'Male'", "\"Argentina\" is the Country", "\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "seen by more than 1000 unique users refers to Reach > 1000", "male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))"]}} {"set": {"query": "List down all of the texts posted on Twitter on Thursday.", "pos": ["\"Thursday\" is the Weekday"], "neg": ["\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "tweet with the most likes refers to Max(Likes)", "retweet more than 30 times refers to RetweetCount > 30", "\"Australia\" is the Country", "\"en\" is the language and refers to Lang = 'en'; most tweet in 'en' refers to Max(Count(text where Lang = 'en'))", "positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'", "english is the language and refers to Lang = 'en'", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'", "\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach"]}} {"set": {"query": "How many tweets in French were posted from Australia?", "pos": ["\"French\" is the language and refers to Lang = 'fr'; 'Australia' is the Country"], "neg": ["tweet with most number of retweet post refers to Max(RetweetCount)", "\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach", "tw-685681052912873473' is the TweetID", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))", "\"Australia\" is the Country", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "\"Brazil\" is the Country; language refers to Lang"]}} {"set": {"query": "Among all the tweets sent by male users in Argentina, what is the text of the one with the most number of likes?", "pos": ["male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)"], "neg": ["tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country", "seen by the most number of unique users refers to Max(Reach)", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "tweet got 535 retweets refers to RetweetCount = 535", "\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'", "positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))", "tweet with the most likes refers to Max(Likes)"]}} {"set": {"query": "Please list the texts of all the tweets in French posted by male users.", "pos": ["\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'"], "neg": ["\"Australia\" is the Country", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "tw-685681052912873473' is the TweetID", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "tweet with most number of retweet post refers to Max(RetweetCount)", "\"en\" is the language and refers to Lang = 'en'; most tweet in 'en' refers to Max(Count(text where Lang = 'en'))", "seen by the most number of unique users refers to Max(Reach)", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "\"California\" is the State; positive tweet refers to Sentiment > 0; percentage = Divide (Count(TweetID where Sentiment > 0), Count (TweetID)) * 100"]}} {"set": {"query": "Please list all the cities from where tweets with neutral sentiments were posted.", "pos": ["neutral sentiment refers to Sentiment = 0"], "neg": ["\"Buenos Aires\" is the City; male user refers to Gender = 'Male'", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "male user refers to Gender = 'Male'; 'Monday' is the Weekday; average number of likes = Divide (Sum(Likes), Count(TweetID))", "\"French\" is the language and refers to Lang = 'fr'; 'Australia' is the Country", "unknown gender user refers to Gender = 'Unknown'", "tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country", "\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))", "\"Australia\" is the Country", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))"]}} {"set": {"query": "Which state was the tweet `tw-685681052912873473` from? Give the state code.", "pos": ["tw-685681052912873473' is the TweetID"], "neg": ["tweet got 535 retweets refers to RetweetCount = 535", "country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "tweet with most number of retweet post refers to Max(RetweetCount)", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "\"en\" is the language and refers to Lang = 'en'"]}} {"set": {"query": "What is the gender of the user whose tweet got 535 retweets?", "pos": ["tweet got 535 retweets refers to RetweetCount = 535"], "neg": ["\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "\"Australia\" is the Country", "\"Brazil\" is the Country; language refers to Lang", "tw-685681052912873473' is the TweetID", "english is the language and refers to Lang = 'en'", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "\"French\" is the language and refers to Lang = 'fr'; 'Australia' is the Country", "tweet with most number of retweet post refers to Max(RetweetCount)", "positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'"]}} {"set": {"query": "How many tweets are seen by more than 1000 unique users?", "pos": ["seen by more than 1000 unique users refers to Reach > 1000"], "neg": ["male user refers to Gender = 'Male'; 'Monday' is the Weekday; average number of likes = Divide (Sum(Likes), Count(TweetID))", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "tw-685681052912873473' is the TweetID", "over 1000 likes refers to Likes > 1000; 'Male' is the Gender of user", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "\"Thursday\" is the Weekday", "\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "got the most like refers to Max(Likes)"]}} {"set": {"query": "Users in which country has posted more numbers of positive tweets, Argentina or Australia?", "pos": ["\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))"], "neg": ["male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "\"Argentina\" is the Country", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "\"en\" is the language and refers to Lang = 'en'", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "retweet more than 30 times refers to RetweetCount > 30", "\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday"]}} {"set": {"query": "What is the percentage of the tweets from California are positive?", "pos": ["\"California\" is the State; positive tweet refers to Sentiment > 0; percentage = Divide (Count(TweetID where Sentiment > 0), Count (TweetID)) * 100"], "neg": ["\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "\"Australia\" is the Country", "reshared refers to Isreshare = 'TRUE'; 'Buenos Aires' is the City", "got the most like refers to Max(Likes)", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "tweet with most number of retweet post refers to Max(RetweetCount)", "retweet more than 30 times refers to RetweetCount > 30", "\"tw-715909161071091712\" is the TweetID", "seen by more than 1000 unique users refers to Reach > 1000", "tw-685681052912873473' is the TweetID"]}} {"set": {"query": "Users in which city of Argentina post the most tweets?", "pos": ["\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))"], "neg": ["tweet with most number of retweet post refers to Max(RetweetCount)", "tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "\"tw-682714583044243456\" is the TweetID", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))", "positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))", "male user refers to Gender = 'Male'; 'Monday' is the Weekday; average number of likes = Divide (Sum(Likes), Count(TweetID))", "\"en\" is the language and refers to Lang = 'en'; most tweet in 'en' refers to Max(Count(text where Lang = 'en'))"]}} {"set": {"query": "Count the total number of tweet IDs in `en`.", "pos": ["\"en\" is the language and refers to Lang = 'en'"], "neg": ["male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "\"Sante Fe\" is the State; \"Argentina\" is the Country; posted on 31st refers to Day = 31", "seen by more than 1000 unique users refers to Reach > 1000", "\"en\" is the language and refers to Lang = 'en'; most tweet in 'en' refers to Max(Count(text where Lang = 'en'))", "positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'", "tweet got 535 retweets refers to RetweetCount = 535", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))"]}} {"set": {"query": "List down the text of tweets posted by unknown gender users.", "pos": ["unknown gender user refers to Gender = 'Unknown'"], "neg": ["neutral sentiment refers to Sentiment = 0", "\"Thursday\" is the Weekday", "retweet more than 30 times refers to RetweetCount > 30", "\"en\" is the language and refers to Lang = 'en'; most tweet in 'en' refers to Max(Count(text where Lang = 'en'))", "\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))", "tweet with the most likes refers to Max(Likes)", "tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach", "tw-685681052912873473' is the TweetID"]}} {"set": {"query": "How many reshared tweets are there in Texas?", "pos": ["reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State"], "neg": ["seen by the most number of unique users refers to Max(Reach)", "\"en\" is the language and refers to Lang = 'en'; most tweet in 'en' refers to Max(Count(text where Lang = 'en'))", "seen by more than 1000 unique users refers to Reach > 1000", "tweet with the most likes refers to Max(Likes)", "tw-685681052912873473' is the TweetID", "\"Thursday\" is the Weekday", "over 1000 likes refers to Likes > 1000; 'Male' is the Gender of user", "neutral sentiment refers to Sentiment = 0", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)"]}} {"set": {"query": "What is the gender of the user who has posted the tweet that is seen by the most number of unique users?", "pos": ["seen by the most number of unique users refers to Max(Reach)"], "neg": ["reshared refers to Isreshare = 'TRUE'; 'Buenos Aires' is the City", "tw-685681052912873473' is the TweetID", "male user refers to Gender = 'Male'; 'Monday' is the Weekday; average number of likes = Divide (Sum(Likes), Count(TweetID))", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "retweet more than 30 times refers to RetweetCount > 30", "\"Brazil\" is the Country; language refers to Lang", "\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))", "\"Thursday\" is the Weekday", "over 1000 likes refers to Likes > 1000; 'Male' is the Gender of user", "seen by more than 1000 unique users refers to Reach > 1000"]}} {"set": {"query": "What is the text of the tweet that got the most `likes`?", "pos": ["got the most like refers to Max(Likes)"], "neg": ["\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "neutral sentiment refers to Sentiment = 0", "\"Thursday\" is the Weekday", "\"Argentina\" is the Country", "unknown gender user refers to Gender = 'Unknown'", "male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "\"en\" is the language and refers to Lang = 'en'; most tweet in 'en' refers to Max(Count(text where Lang = 'en'))", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "tweet with most number of retweet post refers to Max(RetweetCount)"]}} {"set": {"query": "Please list the top 3 cities with the most number of tweets posted in Canada.", "pos": ["\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))"], "neg": ["\"California\" is the State; positive tweet refers to Sentiment > 0; percentage = Divide (Count(TweetID where Sentiment > 0), Count (TweetID)) * 100", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach", "unknown gender user refers to Gender = 'Unknown'", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country", "got the most like refers to Max(Likes)", "\"Thursday\" is the Weekday", "\"tw-715909161071091712\" is the TweetID", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'"]}} {"set": {"query": "What gender of users posted the most tweets in `en`?", "pos": ["\"en\" is the language and refers to Lang = 'en'; most tweet in 'en' refers to Max(Count(text where Lang = 'en'))"], "neg": ["\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))", "positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "seen by more than 1000 unique users refers to Reach > 1000", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)"]}} {"set": {"query": "Calculate the average number of male users who posted tweets in a week.", "pos": ["male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))"], "neg": ["seen by more than 1000 unique users refers to Reach > 1000", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "reshared refers to Isreshare = 'TRUE'; 'Buenos Aires' is the City", "got the most like refers to Max(Likes)", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "\"Argentina\" is the Country", "country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))", "\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'"]}} {"set": {"query": "How many tweets are in English?", "pos": ["english is the language and refers to Lang = 'en'"], "neg": ["seen by the most number of unique users refers to Max(Reach)", "positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))", "\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday", "\"en\" is the language and refers to Lang = 'en'", "neutral sentiment refers to Sentiment = 0", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "seen by more than 1000 unique users refers to Reach > 1000", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'"]}} {"set": {"query": "What gender of users retweet more than 30 times?", "pos": ["retweet more than 30 times refers to RetweetCount > 30"], "neg": ["seen by the most number of unique users refers to Max(Reach)", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "tweet with most number of retweet post refers to Max(RetweetCount)", "country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))", "\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday", "got the most like refers to Max(Likes)"]}} {"set": {"query": "List down all the tweet text posted from Australia.", "pos": ["\"Australia\" is the Country"], "neg": ["\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday", "got the most like refers to Max(Likes)", "positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'", "country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))", "\"California\" is the State; positive tweet refers to Sentiment > 0; percentage = Divide (Count(TweetID where Sentiment > 0), Count (TweetID)) * 100", "tweet with most number of retweet post refers to Max(RetweetCount)", "\"Buenos Aires\" is the City; male user refers to Gender = 'Male'", "tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)"]}} {"set": {"query": "Tweets posted from which city has a higher number of average likes, Bangkok or Chiang Mai?", "pos": ["\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))"], "neg": ["\"en\" is the language and refers to Lang = 'en'", "neutral sentiment refers to Sentiment = 0", "unknown gender user refers to Gender = 'Unknown'", "\"tw-682714583044243456\" is the TweetID", "\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach", "male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "retweet more than 30 times refers to RetweetCount > 30", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "tweet got 535 retweets refers to RetweetCount = 535", "got the most like refers to Max(Likes)"]}} {"set": {"query": "State the country where the most positive sentiment tweets were posted.", "pos": ["country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))"], "neg": ["\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "tweet got 535 retweets refers to RetweetCount = 535", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "tweet with most number of retweet post refers to Max(RetweetCount)", "positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "retweet more than 30 times refers to RetweetCount > 30", "\"Australia\" is the Country", "\"Thursday\" is the Weekday", "\"French\" is the language and refers to Lang = 'fr'; 'Australia' is the Country"]}} {"set": {"query": "What is the average number of likes for a tweet posted by a male user on Mondays?", "pos": ["male user refers to Gender = 'Male'; 'Monday' is the Weekday; average number of likes = Divide (Sum(Likes), Count(TweetID))"], "neg": ["\"en\" is the language and refers to Lang = 'en'", "got the most like refers to Max(Likes)", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "\"Buenos Aires\" is the City; male user refers to Gender = 'Male'", "tweet with most number of retweet post refers to Max(RetweetCount)", "unknown gender user refers to Gender = 'Unknown'", "positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "seen by the most number of unique users refers to Max(Reach)", "\"tw-682714583044243456\" is the TweetID"]}} {"set": {"query": "How many unique users have seen tweet with text `Happy New Year to all those AWS instances of ours!`?", "pos": ["\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach"], "neg": ["tw-685681052912873473' is the TweetID", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "seen by more than 1000 unique users refers to Reach > 1000", "retweet more than 30 times refers to RetweetCount > 30", "\"French\" is the language and refers to Lang = 'fr'; 'Australia' is the Country", "male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "unknown gender user refers to Gender = 'Unknown'", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))", "male user refers to Gender = 'Male'; 'Monday' is the Weekday; average number of likes = Divide (Sum(Likes), Count(TweetID))"]}} {"set": {"query": "Among all the tweets with a positive sentiment, what is the percentage of those posted by a male user?", "pos": ["positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100"], "neg": ["tweet with the most likes refers to Max(Likes)", "neutral sentiment refers to Sentiment = 0", "\"en\" is the language and refers to Lang = 'en'", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "english is the language and refers to Lang = 'en'", "\"Australia\" is the Country", "seen by more than 1000 unique users refers to Reach > 1000", "got the most like refers to Max(Likes)", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "\"Argentina\" is the Country"]}} {"set": {"query": "Tweets that were posted from Brazil are in what languague?", "pos": ["\"Brazil\" is the Country; language refers to Lang"], "neg": ["tweet with most number of retweet post refers to Max(RetweetCount)", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "\"Buenos Aires\" is the City; male user refers to Gender = 'Male'", "\"en\" is the language and refers to Lang = 'en'", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "seen by the most number of unique users refers to Max(Reach)", "\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday", "tweet with the most likes refers to Max(Likes)", "\"tw-682714583044243456\" is the TweetID", "got the most like refers to Max(Likes)"]}} {"set": {"query": "Please list all the cities in Argentina.", "pos": ["\"Argentina\" is the Country"], "neg": ["\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "english is the language and refers to Lang = 'en'", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "\"en\" is the language and refers to Lang = 'en'", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'", "positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'", "neutral sentiment refers to Sentiment = 0"]}} {"set": {"query": "What is the gender of the user who posted a tweet with ID tw-682714583044243456?", "pos": ["\"tw-682714583044243456\" is the TweetID"], "neg": ["unknown gender user refers to Gender = 'Unknown'", "seen by the most number of unique users refers to Max(Reach)", "\"Argentina\" is the Country", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "neutral sentiment refers to Sentiment = 0", "tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country", "male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "\"California\" is the State; positive tweet refers to Sentiment > 0; percentage = Divide (Count(TweetID where Sentiment > 0), Count (TweetID)) * 100", "male user refers to Gender = 'Male'; 'Monday' is the Weekday; average number of likes = Divide (Sum(Likes), Count(TweetID))", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)"]}} {"set": {"query": "From which country is the tweet with the most likes posted?", "pos": ["tweet with the most likes refers to Max(Likes)"], "neg": ["positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))", "tw-685681052912873473' is the TweetID", "country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))", "\"California\" is the State; positive tweet refers to Sentiment > 0; percentage = Divide (Count(TweetID where Sentiment > 0), Count (TweetID)) * 100", "tweet with most number of retweet post refers to Max(RetweetCount)", "got the most like refers to Max(Likes)", "\"Argentina\" is the Country", "\"Brazil\" is the Country; language refers to Lang", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "seen by more than 1000 unique users refers to Reach > 1000"]}} {"set": {"query": "What is the gender of the user who tweeted `tw-715909161071091712`?", "pos": ["\"tw-715909161071091712\" is the TweetID"], "neg": ["\"Thursday\" is the Weekday", "\"Australia\" is the Country", "english is the language and refers to Lang = 'en'", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "\"tw-682714583044243456\" is the TweetID", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "\"California\" is the State; positive tweet refers to Sentiment > 0; percentage = Divide (Count(TweetID where Sentiment > 0), Count (TweetID)) * 100", "\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))"]}} {"set": {"query": "From which city was the tweet with the most number of retweets posted?", "pos": ["tweet with most number of retweet post refers to Max(RetweetCount)"], "neg": ["\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "got the most like refers to Max(Likes)", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))", "\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))", "positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'", "retweet more than 30 times refers to RetweetCount > 30", "\"Thursday\" is the Weekday", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "\"Sante Fe\" is the State; \"Argentina\" is the Country; posted on 31st refers to Day = 31", "tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country"]}} {"set": {"query": "How many female users reshared their tweets?", "pos": ["female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'"], "neg": ["\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach", "tw-685681052912873473' is the TweetID", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "\"en\" is the language and refers to Lang = 'en'; most tweet in 'en' refers to Max(Count(text where Lang = 'en'))", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "\"California\" is the State; positive tweet refers to Sentiment > 0; percentage = Divide (Count(TweetID where Sentiment > 0), Count (TweetID)) * 100", "country with the most positive sentiment tweet refers to Country where Max(Count(Sentiment > 0))", "retweet more than 30 times refers to RetweetCount > 30", "tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country"]}} {"set": {"query": "Among all the tweets that are reshared, how many of them are posted by a user in Buenos Aires?", "pos": ["reshared refers to Isreshare = 'TRUE'; 'Buenos Aires' is the City"], "neg": ["got the most like refers to Max(Likes)", "positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "\"Buenos Aires\" is the City; male user refers to Gender = 'Male'", "unknown gender user refers to Gender = 'Unknown'", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))", "tweet got 535 retweets refers to RetweetCount = 535", "\"French\" is the language and refers to Lang = 'fr'; 'Australia' is the Country", "\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "tw-685681052912873473' is the TweetID"]}} {"set": {"query": "What is the day of the week that tweet with ID tw-682712873332805633 was posted?", "pos": ["\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday"], "neg": ["positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'", "\"tw-715909161071091712\" is the TweetID", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "unknown gender user refers to Gender = 'Unknown'", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))", "\"Argentina\" is the Country", "\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach", "male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "tweet got 535 retweets refers to RetweetCount = 535"]}} {"set": {"query": "Write down the tweet text posted from Rawang, Selangor, Malaysia.", "pos": ["\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country"], "neg": ["\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "\"Bangkok\" and \"Chiang Mai\" are both City; average number of like = Divide (Sum(Likes), Count(TweetID))", "\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'", "tw-685681052912873473' is the TweetID", "\"Canada\" is the Country; city with most number of tweets refers to City where Max(Count(TweetID))", "\"Australia\" is the Country", "reshared refers to Isreshare = 'TRUE'; 'Buenos Aires' is the City", "english is the language and refers to Lang = 'en'"]}} {"set": {"query": "How many more tweets with a positive sentiment than the tweets with a neutral sentiment were posted by male users?", "pos": ["positive sentiment tweet refers to Sentiment > 0; neutral sentiment refers to Sentiment = 0; male user refers to Gender = 'Male'; difference = Subtract (Count (TweetID where Sentiment > 0), Count (TweetID where Sentiment = 0))"], "neg": ["seen by more than 1000 unique users refers to Reach > 1000", "\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach", "male user refers to Gender = 'Male'; 'Monday' is the Weekday; average number of likes = Divide (Sum(Likes), Count(TweetID))", "\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))", "\"Argentina\" is the Country", "\"French\" is the language and refers to Lang = 'fr'; male user refers to Gender = 'Male'", "retweet more than 30 times refers to RetweetCount > 30", "\"Brazil\" is the Country; language refers to Lang", "\"en\" is the language and refers to Lang = 'en'", "got the most like refers to Max(Likes)"]}} {"set": {"query": "Among all the tweets that have a positive sentiment, how many of them are posted on Thursday?", "pos": ["positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'"], "neg": ["retweet more than 30 times refers to RetweetCount > 30", "\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country", "\"en\" is the language and refers to Lang = 'en'", "neutral sentiment refers to Sentiment = 0", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'", "\"Argentina\" is the Country", "seen by more than 1000 unique users refers to Reach > 1000", "\"French\" is the language and refers to Lang = 'fr'; 'Australia' is the Country"]}} {"set": {"query": "Among all the tweets with a positive sentiment, how many of them were posted by male users in Australia?", "pos": ["tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country"], "neg": ["\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday", "\"Argentina\" is the Country", "positive sentiment refers to Sentiment > 0; posted on Thursday refers to Weekday = 'Thursday'", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "tweet with the most likes refers to Max(Likes)", "got the most like refers to Max(Likes)", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'", "tw-685681052912873473' is the TweetID"]}} {"set": {"query": "Among the tweets posted from Santa Fe state in Argentina, how many of them were posted on 31st?", "pos": ["\"Sante Fe\" is the State; \"Argentina\" is the Country; posted on 31st refers to Day = 31"], "neg": ["english is the language and refers to Lang = 'en'", "positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; percentage = Divide (Count(TweetID where Gender = 'Male'), Count (TweetID)) * 100", "male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "got the most like refers to Max(Likes)", "male user refers to Gender = 'Male'; 'Argentina' is the Country; most number of likes refers to Max(Likes)", "over 1000 likes refers to Likes > 1000; 'Male' is the Gender of user", "\"Argentina\" and \"Australia\" are both Country; positive tweets refers to Sentiment > 0; Country posted more number of tweets refers to Country where Max(Count(TweetID))", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State"]}} {"set": {"query": "Please list the texts of all the tweets posted by male users from Buenos Aires.", "pos": ["\"Buenos Aires\" is the City; male user refers to Gender = 'Male'"], "neg": ["got the most like refers to Max(Likes)", "\"en\" is the language and refers to Lang = 'en'", "\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "english is the language and refers to Lang = 'en'", "\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "tweet with most number of retweet post refers to Max(RetweetCount)", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)", "\"Monday\" is the Weekday; reshare refers to IsReshare = 'TRUE'"]}} {"set": {"query": "State the number of tweets from Michigan on Thursdays.", "pos": ["\"Michigan\" is the State; 'Thursday' is the Weekday; number of tweets refers to Count(TweetID)"], "neg": ["tweet with positive sentiment refers to Sentiment > 0; male user refers to Gender = 'Male'; 'Australia' is the Country", "reshared tweet refers to IsReshare = 'TRUE'; 'Texas' is the State", "\"Brazil\" is the Country; language refers to Lang", "\"Happy New Year to all those AWS instances of ours!\" is the text; seen unique users refers to Reach", "\"California\" is the State; positive tweet refers to Sentiment > 0; percentage = Divide (Count(TweetID where Sentiment > 0), Count (TweetID)) * 100", "female users refers to Gender = 'Female'; reshare refers to IsReshare = 'TRUE'", "tweet with the most likes refers to Max(Likes)", "\"tw-682714583044243456\" is the TweetID", "tweet with most number of retweet post refers to Max(RetweetCount)", "reshared refers to Isreshare = 'TRUE'; 'Buenos Aires' is the City"]}} {"set": {"query": "What is the average number of tweets posted by the users in a city in Argentina?", "pos": ["\"Argentina\" is the Country; average number of tweets in a city = Divide (Count(TweetID where Country = 'Argentina'), Count (City))"], "neg": ["unknown gender user refers to Gender = 'Unknown'", "over 1000 likes refers to Likes > 1000; 'Male' is the Gender of user", "male user refers to Gender = 'Male'; average tweet in a week per user refers to Divide ( Divide(Count(TweetID), Count (UserID)), Divide(31, 7))", "tweet got 535 retweets refers to RetweetCount = 535", "\"en\" is the language and refers to Lang = 'en'", "\"Argentina\" is the Country; post the most tweets refers to Max(Count(TweetID))", "\"Rawang\" is the City; \"Selangor\" is the State; \"Malaysia\" is the Country", "\"tw-682712873332805633\" is the TweetID; day of the week refers to Weekday", "got the most like refers to Max(Likes)", "\"French\" is the language and refers to Lang = 'fr'; 'Australia' is the Country"]}} {"set": {"query": "List the educationnum and response of customers within the age of 20 to 30 that has the highest number of inhabitants among the group.", "pos": ["age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);"], "neg": ["yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;", "female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "GEOID = 134;", "widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;"]}} {"set": {"query": "What is the total number of customers with an age below 30?", "pos": ["age below 30 refers to age < 30;"], "neg": ["widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;", "widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);", "MARITAL_STATUS = 'Never-married';"]}} {"set": {"query": "List the income and number of inhabitants of customers with an age greater than the 80% of average age of all customers?", "pos": ["age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;"], "neg": ["RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "MARITAL_STATUS = 'Never-married';", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "age below 30 refers to age < 30;", "reference ID refers to REFID;", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "SEX = 'Male';", "elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;"]}} {"set": {"query": "Among the widowed female customers, give the income of those who has an level of education of 5 and below.", "pos": ["widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;"], "neg": ["ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "place with the highest average income per month refers to GEOID where MAX(INCOME_K);", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;", "RESPONSE = 'true'; AVG(age);", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;"]}} {"set": {"query": "How many of the customers are male?", "pos": ["SEX = 'Male';"], "neg": ["place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';", "the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);", "age below 30 refers to age < 30;", "female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;", "RESPONSE = 'true'; AVG(age);", "geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;", "elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;", "widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;"]}} {"set": {"query": "In widowed male customers ages from 40 to 60, how many of them has an income ranges from 3000 and above?", "pos": ["widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;"], "neg": ["number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;", "education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;", "DIVIDE(COUNT(INCOME_K \u2265 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;", "place with the highest average income per month refers to GEOID where MAX(INCOME_K);", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;"]}} {"set": {"query": "List down the geographic identifier with an income that ranges from 2100 to 2500.", "pos": ["geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;"], "neg": ["MARITAL_STATUS = 'Never-married';", "widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;", "male customers with an level of education of 4 and below refer to SEX = 'Male' where EDUCATIONNUM < 4;", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;", "the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;"]}} {"set": {"query": "Find out the yearly income of geographic ID when the customer is female and occupation as sales.", "pos": ["yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';"], "neg": ["the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "DIVIDE(COUNT(INCOME_K \u2265 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "female customers ages from 50 to 60 refer to SEX = 'Female' where age BETWEEN 50 AND 60; number of inhabitants ranges from 19 to 24 refers to INHABITANTS_K BETWEEN 19 AND 24;", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;"]}} {"set": {"query": "What is the response and number of inhabitants of the oldest female customer?", "pos": ["number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);"], "neg": ["over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "place with the highest average income per month refers to GEOID where MAX(INCOME_K);", "reference ID refers to REFID;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "SEX = 'Male';"]}} {"set": {"query": "Find and list the id and geographic ID of the elderly customers with an education level below 3.", "pos": ["elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;"], "neg": ["age below 30 refers to age < 30;", "GEOID = 134;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "RESPONSE = 'true'; AVG(age);", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;", "customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);"]}} {"set": {"query": "Of the first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department, how many of them are divorced males?", "pos": ["RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';"], "neg": ["number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);", "RESPONSE = 'true'; AVG(age);", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "RESPONSE = 'true';", "customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;", "male customers with an level of education of 4 and below refer to SEX = 'Male' where EDUCATIONNUM < 4;"]}} {"set": {"query": "Of the first 60,000 customers' responses to the incentive mailing sent by the marketing department, how many of them are considered a true response?", "pos": ["RESPONSE = 'true';"], "neg": ["average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;", "DIVIDE(COUNT(INCOME_K \u2265 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;", "place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';", "SEX = 'Male';"]}} {"set": {"query": "List the occupation and income of male customers with an level of education of 4 to 6.", "pos": ["male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;"], "neg": ["MARITAL_STATUS = 'Never-married';", "male customers with an level of education of 4 and below refer to SEX = 'Male' where EDUCATIONNUM < 4;", "RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;", "SEX = 'Male';", "geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;"]}} {"set": {"query": "What is the average age of first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department?", "pos": ["RESPONSE = 'true'; AVG(age);"], "neg": ["geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;", "female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "reference ID refers to REFID;"]}} {"set": {"query": "What is the occupation and response of female customers within the number of inhabitants range of 20 to 25?", "pos": ["female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;"], "neg": ["RESPONSE = 'true'; AVG(age);", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "place with the highest average income per month refers to GEOID where MAX(INCOME_K);", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;", "DIVIDE(COUNT(INCOME_K \u2265 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';"]}} {"set": {"query": "What percentage of elderly customers who are never married in the place with geographic ID 24?", "pos": ["elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;"], "neg": ["reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);", "widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "reference ID refers to REFID;", "MARITAL_STATUS = 'Never-married';"]}} {"set": {"query": "List down the customer's reference ID with true response.", "pos": ["reference ID refers to REFID;"], "neg": ["female customers ages from 50 to 60 refer to SEX = 'Female' where age BETWEEN 50 AND 60; number of inhabitants ranges from 19 to 24 refers to INHABITANTS_K BETWEEN 19 AND 24;", "GEOID = 134;", "DIVIDE(COUNT(INCOME_K \u2265 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "SEX = 'Male';", "reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;", "yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;", "education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';"]}} {"set": {"query": "In male customers ages from 30 to 50, how many of them has an income ranges from 2000 to 2300?", "pos": ["male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;"], "neg": ["elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "RESPONSE = 'true';", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);", "GEOID = 134;", "yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "MARITAL_STATUS = 'Never-married';", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;"]}} {"set": {"query": "Among the reference ID of under 10 who got response by marketing department, compare their education status.", "pos": ["reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;"], "neg": ["RESPONSE = 'true'; AVG(age);", "SEX = 'Male';", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "GEOID = 134;", "ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;"]}} {"set": {"query": "What is the income of female customers ages from 30 to 55 years old and has an occupation of machine-op-inspct?", "pos": ["female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;"], "neg": ["education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;", "SEX = 'Male';", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "GEOID = 134;"]}} {"set": {"query": "Describe the average income per month and yearly income of the geographic ID in which customer of ID \"209556\" and \"290135\".", "pos": ["the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);"], "neg": ["customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "age below 30 refers to age < 30;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "RESPONSE = 'true';", "yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';"]}} {"set": {"query": "Among the customers over 30, how many of them are Machine-op-inspcts?", "pos": ["over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';"], "neg": ["GEOID = 134;", "place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';", "ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;", "reference ID refers to REFID;", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);"]}} {"set": {"query": "In geographic identifier from 20 to 50, how many of them has a number of inhabitants below 20?", "pos": ["geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;"], "neg": ["the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;", "RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;", "female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;", "customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "GEOID = 134;", "the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;", "DIVIDE(COUNT(INCOME_K \u2265 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "place with the highest average income per month refers to GEOID where MAX(INCOME_K);"]}} {"set": {"query": "How many customers are from the place with the highest average income per month?", "pos": ["place with the highest average income per month refers to GEOID where MAX(INCOME_K);"], "neg": ["female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;", "SEX = 'Male';", "the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);"]}} {"set": {"query": "Among the customers with an average income per inhabitant above 3000, what percentage are in their eighties?", "pos": ["average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;"], "neg": ["RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;", "reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;", "widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;", "RESPONSE = 'true';"]}} {"set": {"query": "Among the male customers with an level of education of 4 and below, list their income K.", "pos": ["male customers with an level of education of 4 and below refer to SEX = 'Male' where EDUCATIONNUM < 4;"], "neg": ["place with the highest average income per month refers to GEOID where MAX(INCOME_K);", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "GEOID = 134;", "RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';", "female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "RESPONSE = 'true';"]}} {"set": {"query": "In customers with marital status of never married, what is the percentage of customers with income of 2500 and above?", "pos": ["DIVIDE(COUNT(INCOME_K \u2265 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;"], "neg": ["female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;", "ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "male customers with an level of education of 4 and below refer to SEX = 'Male' where EDUCATIONNUM < 4;", "yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "reference ID refers to REFID;"]}} {"set": {"query": "How many female customers have an education level of over 11?", "pos": ["education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';"], "neg": ["the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);", "reference ID refers to REFID;", "SEX = 'Male';", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "RESPONSE = 'true';", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;"]}} {"set": {"query": "What is the geographic identifier and income of the oldest customer?", "pos": ["the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;"], "neg": ["female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "male customers with an level of education of 4 and below refer to SEX = 'Male' where EDUCATIONNUM < 4;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "SEX = 'Male';", "widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;", "elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;", "female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;"]}} {"set": {"query": "What is the number of inhabitants of the place the most customers are from?", "pos": ["the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;"], "neg": ["OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;", "education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);", "the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "RESPONSE = 'true';"]}} {"set": {"query": "List down the number of inhabitants of customers with a divorced marital status and older than 50 years old.", "pos": ["number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;"], "neg": ["yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "age below 30 refers to age < 30;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;"]}} {"set": {"query": "What is the age of female customers within the number of inhabitants below 30?", "pos": ["female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;"], "neg": ["male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "RESPONSE = 'true';", "ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;", "RESPONSE = 'true'; AVG(age);", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;"]}} {"set": {"query": "What is the total number of widowed customers with an age below 50?", "pos": ["widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;"], "neg": ["yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "GEOID = 134;", "reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);"]}} {"set": {"query": "Of customers who provide other services, how many are from places where inhabitants are more than 20000?", "pos": ["OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;"], "neg": ["OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';", "female customers ages from 50 to 60 refer to SEX = 'Female' where age BETWEEN 50 AND 60; number of inhabitants ranges from 19 to 24 refers to INHABITANTS_K BETWEEN 19 AND 24;", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "GEOID = 134;", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);", "RESPONSE = 'true';", "place with the highest average income per month refers to GEOID where MAX(INCOME_K);", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;"]}} {"set": {"query": "What is the marital status of the customer ages 62 with an level of education of 7?", "pos": ["customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;"], "neg": ["male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "RESPONSE = 'true';", "place with the highest average income per month refers to GEOID where MAX(INCOME_K);", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "MARITAL_STATUS = 'Never-married';", "geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';", "OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;"]}} {"set": {"query": "How many customers have never married?", "pos": ["MARITAL_STATUS = 'Never-married';"], "neg": ["RESPONSE = 'true'; AVG(age);", "SEX = 'Male';", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "RESPONSE = 'true';", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "GEOID = 134;", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "age below 30 refers to age < 30;", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;"]}} {"set": {"query": "Among the customers from a place with more than 20,000 and less than 30,000 inhabitants, how many of them are Machine-op-inspcts?", "pos": ["place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';"], "neg": ["widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;", "widowed customers with an age below 50 refer to MARITAL_STATUS = 'Widowed' where age < 50;", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "place with the highest average income per month refers to GEOID where MAX(INCOME_K);", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;", "ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "the most customers are from refers to GEOID where MAX(COUNT(ID)); number of inhabitants refers to INHABITANTS_K;", "female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;"]}} {"set": {"query": "List the level of education and income of customers ages from 30 to 55 with a true response.", "pos": ["ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;"], "neg": ["widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;", "reference ID refers to REFID;", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;"]}} {"set": {"query": "Of the first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department, how many of them are teenagers?", "pos": ["RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;"], "neg": ["female customers within the number of inhabitants range of 20 to 25 refer to SEX = 'Female' where INHABITANTS_K BETWEEN 20 AND 25;", "place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "MARITAL_STATUS = 'Never-married';", "OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "female customers ages from 30 to 55 years old refer to SEX = 'Female' where age BETWEEN 30 AND 55; income refers to INCOME_K;", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "GEOID = 134;"]}} {"set": {"query": "In female customers ages from 50 to 60, how many of them has an number of inhabitants ranges from 19 to 24?", "pos": ["female customers ages from 50 to 60 refer to SEX = 'Female' where age BETWEEN 50 AND 60; number of inhabitants ranges from 19 to 24 refers to INHABITANTS_K BETWEEN 19 AND 24;"], "neg": ["customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "ages from 30 to 55 refer to age BETWEEN 30 AND 55; RESPONSE = 'true'; income refers to INCOME_K; education level refers to EDUCATIONNUM;", "geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;", "GEOID = 134;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';", "the average income per month refers to INCOME_K; yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12);", "reference ID refers to REFID;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;", "age of 20 to 30 refers to age BETWEEN 20 AND 30; the highest number of inhabitants refers to MAX(INHABITANTS_K);"]}} {"set": {"query": "Of the first 60,000 customers who sent a true response to the incentive mailing sent by the marketing department, how many of them are from a place with more than 30,000 inhabitants?", "pos": ["RESPONSE = 'true'; place with more than 30,000 inhabitants refers to GEOID where INHABITANTS_K > 30;"], "neg": ["yearly income of geographic ID refers to GEOID where MULTIPLY(INHABITANTS_K, INCOME_K, 12); SEX = 'Female';", "geographic identifier with an income that ranges from 2100 to 2500 refers to GEOID where INCOME_K BETWEEN 2100 AND 2500;", "customer ages 62 with an level of education of 7 refer age = 62 where EDUCATIONNUM = 7;", "place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "reference ID refers to REFID;", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);", "DIVIDE(COUNT(INCOME_K \u2265 2500 where MARITAL_STATUS = 'Never-married'), COUNT(INCOME_K where MARITAL_STATUS = 'Never-married')) as percentage;"]}} {"set": {"query": "List down the customer's geographic identifier who are handlers or cleaners.", "pos": ["geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';"], "neg": ["widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "widowed male customers ages from 40 to 60 refer to SEX = 'Male' where age BETWEEN 40 AND 60 and MARITAL_STATUS = 'Widowed'; income ranges from 3000 and above refers to INCOME_K BETWEEN 2000 AND 3000;", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "reference ID of under 10 refers to REFID < 10; got response refers to RESPONSE = 'true'; education status refers to EDUCATIONNUM;", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "male customers with an level of education of 4 to 6 refer to SEX = 'Male' where EDUCATIONNUM BETWEEN 4 AND 6; income refers to INCOME_K;", "geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;", "RESPONSE = 'true'; AVG(age);", "OCCUPATION = 'Other-service'; inhabitants are more than 20000 refer to INHABITANTS_K > 20;"]}} {"set": {"query": "Find the response status to customer whose geographic ID of 134.", "pos": ["GEOID = 134;"], "neg": ["education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;", "age below 30 refers to age < 30;", "female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;", "place with more than 20,000 and less than 30,000 inhabitants refers to GEOID where INHABITANTS_K BETWEEN 20 AND 30; OCCUPATION = 'Machine-op-inspct';", "RESPONSE = 'true'; SEX = 'Male'; MARITAL_STATUS = 'Divorced';", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "over 30 refers to age > 30; OCCUPATION = 'Machine-op-inspct';", "number of inhabitants refers to INHABITANTS_K; oldest female customer refers to SEX = 'Female' where MAX(age);", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;"]}} {"set": {"query": "Among the customers with a marital status of married-civ-spouse, list the number of inhabitants and age of those who are machine-op-inspct.", "pos": ["OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;"], "neg": ["SEX = 'Male';", "average income per inhabitant above 3000 refers to INCOME_K > 3000; eighties refer to age BETWEEN 80 AND 89; DIVIDE(COUNT(INCOME_K > 3000 and age BETWEEN 80 AND 89), COUNT(INCOME_K > 3000 )) as percentage;", "number of inhabitants refers to INHABITANTS_K; older than 50 years old refers to age < 50; MARITAL_STATUS = 'Divorced;", "geographic identifier from 20 to 50 refers to GEOID BETWEEN 20 AND 50; number of inhabitants below 20 refers to INHABITANTS_K < 20;", "male customers ages from 30 to 50 refer to SEX = 'Male' where age BETWEEN 30 AND 50; income ranges from 2000 to 2300 refers to INCOME_K BETWEEN 2000 AND 3000;", "female customers within the number of inhabitants below 30 refer to SEX = 'Female' where INHABITANTS_K < 30;", "RESPONSE = 'true';", "the oldest customer refers to MAX(age); geographic identifier refers to GEOID; income refers to INCOME_K;", "GEOID = 134;", "RESPONSE = 'true'; AVG(age);"]}} {"set": {"query": "Among the female customers with an level of education of 3 and below, list their income.", "pos": ["female customers with level of education of 3 and below refer to SEX = 'Female' where EDUCATIONNUM \u2264 3; income refers to INCOME_K;"], "neg": ["GEOID = 134;", "widowed female customers refer to SEX = 'Female' where MARITAL_STATUS = 'Widowed'; level of education of 5 and below refers to EDUCATIONNUM \u2264 5;", "education level of 11 refers to EDUCATIONNUM = 11; SEX = 'Female';", "geographic identifier refers to GEOID; OCCUPATION = 'Handlers-cleaners';", "place with the highest average income per month refers to GEOID where MAX(INCOME_K);", "elderly customers with an education level below 3 refer to age > 65 where EDUCATIONNUM < 3; geographic ID refers to GEOID;", "OCCUPATION = 'Machine-op-inspct'; number of inhabitants refers to INHABITANTS_K;", "age greater than the 80% of average age refers to age > (AVG(age) * 0.8); income refers to INCOME_K; number of inhabitants refers to INHABITANTS_K;", "elderly customers refer to age > 65; DIVIDE(COUNT(ID where age > 65, MARITAL_STATUS = 'never married' and GEOID = 24), COUNT(ID where GEOID = 24)) as percentage;", "RESPONSE = 'true'; teenagers are people aged between 13 and 19 years;"]}} {"set": {"query": "Among all students, calculate the percentage of disabled students.", "pos": ["percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');"], "neg": ["longest duration of absense refers to MAX(month)", "absent for 6 months refers to month = 6;", "male students are mentioned in male.name;", "enlisted in marines refers to organ = 'marines';", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "disability breakdown refers to the number of disabled students;", "Navy refers to organ = 'navy';", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');"]}} {"set": {"query": "State name of unemployed students who have the longest duration of absense from school.", "pos": ["longest duration of absense refers to MAX(month)"], "neg": ["navy refers to organ = 'navy';", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "organization refers to organ", "more than one organization refers to COUNT(organ) > 1", "absence for 4 month refers to month = 4;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "in the air force refers to organ = 'air_force';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';"]}} {"set": {"query": "Calculate the ratio of unemployed students who have never been absent from school.", "pos": ["ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);"], "neg": ["average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "navy refers to organ = 'navy';", "navy refers to organ = 'navy';", "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;", "absent for 8 months refers to month = 8;", "absent for 6 months refers to month = 6;", "more than one organization refers to COUNT(organ) > 1", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "who have payment due refers to bool = 'pos';", "absent from school for 9 months refers to month = 9"]}} {"set": {"query": "Among students who have been absent for nine months, how many of them are disabled?", "pos": ["absent for 9 months refers to month = 9;"], "neg": ["in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';", "belong to the navy department refers to organ = 'navy';", "absent above 2 months refers to month > 2;", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "organization refers to organ; organ = 'army';", "longest duration of absense refers to MAX(month)", "absense from school for 5 month refers to month = 5", "longest duration of absense refers to MAX(month)", "Air Force refers to organ = 'air_force';", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');"]}} {"set": {"query": "Among the students with payment due, how many of them are unemployed?", "pos": ["with payment due refers to bool = 'pos';"], "neg": ["absense from school for 5 month refers to month = 5", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "OCC refers to school = 'occ';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "male students are mentioned in male.name;", "students that have a payment due refers to bool = 'pos';", "enlisted in the fire-department refers to organ = 'fire_department';", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "longest duration of absense refers to MAX(month)"]}} {"set": {"query": "How many unemployed disabled students have been absent for 8 months from school?", "pos": ["absent for 8 months refers to month = 8;"], "neg": ["have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "male students are mentioned in male.name;", "belong to foreign legion refers to organ = 'foreign_legion';", "enlisted in the air force refers to organ = 'air_force';", "from SMC refers to school = 'smc';", "in the foreign legion refers to organ = 'foreign_legion';"]}} {"set": {"query": "How many SMC's students that absent for 7 months?", "pos": ["SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7"], "neg": ["have never been absent refers to `month` = 0;", "longest duration of absense refers to MAX(month)", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "longest duration of absense refers to MAX(month)", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "with payment due refers to bool = 'pos';", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "have never been absent from school refers to month = 0", "organization refers to organ"]}} {"set": {"query": "List any five female students' names who enlisted for the air force.", "pos": ["female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';"], "neg": ["had never been absent refers to month = 0", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa", "absent from school for 9 months refers to month = 9", "have payment due refers to bool = 'pos';", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "belong to the navy department refers to organ = 'navy';", "longest absense refers to MAX(month)", "have payment due refers to bool = 'pos';", "absent for 8 months refers to month = 8;"]}} {"set": {"query": "For the students who have been absent from school for the longest time, how many months have they been absent?", "pos": ["absent from school for the longest time refers to MAX(month)"], "neg": ["Air Force refers to organ = 'air_force';", "absent for 6 months refers to month = 6;", "enlisted in the navy organization refers to organ = 'navy';", "more than one organization refers to COUNT(organ) > 1", "Air Force refers to organ = 'air_force';", "navy refers to organ = 'navy';", "average refers to DIVIDE(SUM(month), COUNT(name))", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "male students are mentioned in male.name; OCC refers to school = 'occ';", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;"]}} {"set": {"query": "What is the school and gender of student34?", "pos": ["male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;"], "neg": ["in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "from SMC refers to school = 'smc';", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "belong to the navy department refers to organ = 'navy';"]}} {"set": {"query": "Sum up the number of students enlisted in foreign legion, peace corps and army.", "pos": ["enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'"], "neg": ["have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "who have payment due refers to bool = 'pos';", "have never been absent from school refers to month = 0", "longest duration of absense refers to MAX(month)", "have payment due refers to bool = 'pos';", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "more than one organization refers to COUNT(organ) > 1", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "in the foreign legion refers to organ = 'foreign_legion';"]}} {"set": {"query": "How many students belong to the navy department?", "pos": ["belong to the navy department refers to organ = 'navy';"], "neg": ["never been absent from school refers to month = 0", "absent for more than 5 months refers to month > 5;", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "make payment before due refers to bool = 'neg';", "navy refers to organ = 'navy';", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "enlisted in the navy organization refers to organ = 'navy';", "who have payment due refers to bool = 'pos';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "longest absense refers to MAX(month)"]}} {"set": {"query": "How many students has the longest absense from school for 5 months?", "pos": ["absense from school for 5 month refers to month = 5"], "neg": ["enlisted in the army refers to organ = 'army';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "navy refers to organ = 'navy';", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "have no due payments refers to bool = 'neg';", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;"]}} {"set": {"query": "Which female students had never been absent?", "pos": ["had never been absent refers to month = 0"], "neg": ["disability breakdown refers to the number of disabled students;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "belong to foreign legion refers to organ = 'foreign_legion';", "who have payment due refers to bool = 'pos';", "have never been absent refers to `month` = 0;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "absent for 8 months refers to month = 8;", "absent from school for the longest time refers to MAX(month)", "absence for 4 month refers to month = 4;", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'"]}} {"set": {"query": "How many male stuents do not have payment due?", "pos": ["do not have payment due refers to bool = 'neg';"], "neg": ["organization refers to organ; student168 is a name of student;", "organization refers to organ; organ = 'army';", "absent for 8 months refers to month = 8;", "still have payment due refers to bool = 'pos'", "longest duration of absence refers to MAX(month);", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "from SMC refers to school = 'smc';", "average refers to DIVIDE(SUM(month), COUNT(name))", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables."]}} {"set": {"query": "How many students have never been absent from school?", "pos": ["have never been absent refers to `month` = 0;"], "neg": ["average refers to DIVIDE(SUM(month), COUNT(name))", "absents for more than 6 months refers to month > 6", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "Air Force refers to organ = 'air_force';", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "in the foreign legion refers to organ = 'foreign_legion';", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));"]}} {"set": {"query": "How many students in the Air Force?", "pos": ["Air Force refers to organ = 'air_force';"], "neg": ["never been absent from school refers to month = 0", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "absent for 8 months refers to month = 8;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "still have payment due refers to bool = 'pos'", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;"]}} {"set": {"query": "How many of the students joined two organization?", "pos": ["joined two organization refers to COUNT(organ) > = 2"], "neg": ["Navy refers to organ = 'navy';", "longest duration of absence refers to MAX(month);", "do not have payment due refers to bool = 'neg';", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "absent for more than 5 months refers to month > 5;", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "longest duration of absense refers to MAX(month)", "with payment due refers to bool = 'pos';"]}} {"set": {"query": "What is the percentage ratio of students who are enlisted in foreign legions that have a due payment?", "pos": ["have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))"], "neg": ["in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';", "longest duration of absence refers to MAX(month);", "average refers to DIVIDE(SUM(month), COUNT(name))", "navy refers to organ = 'navy';", "organization refers to organ; organ = 'army';", "longest duration of absense refers to MAX(month)", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';"]}} {"set": {"query": "How many students have been absent above 2 months?", "pos": ["absent above 2 months refers to month > 2;"], "neg": ["from SMC refers to school = 'smc';", "navy refers to organ = 'navy';", "average refers to DIVIDE(SUM(month), COUNT(name))", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "enlisted in the navy organization refers to organ = 'navy';", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "with payment due refers to bool = 'pos';", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "absent for 6 months refers to month = 6;", "absent for 9 months refers to month = 9;"]}} {"set": {"query": "Which students that filed for bankruptcy are also in the foreign legion?", "pos": ["in the foreign legion refers to organ = 'foreign_legion';"], "neg": ["absense from school for 5 month refers to month = 5", "have payment due refers to bool = 'pos';", "more than one organization refers to COUNT(organ) > 1", "have no due payments refers to bool = 'neg';", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "have payment due refers to bool = 'pos';", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "have absent from school refers to month > 1;"]}} {"set": {"query": "List the longest duration of absense for a student enlisted in the fire department.", "pos": ["longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';"], "neg": ["enlisted in the air force refers to organ = 'air_force';", "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;", "average refers to DIVIDE(SUM(month), COUNT(name))", "longest duration of absense refers to MAX(month)", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "absent for 6 months refers to month = 6;", "never been absent in school refers to month = 0;", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';"]}} {"set": {"query": "Please provide a gender breakdown for each organization.", "pos": ["gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;"], "neg": ["longest duration of absense refers to MAX(month)", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "absents for more than 6 months refers to month > 6", "absent for more than 5 months refers to month > 5;", "disability breakdown refers to the number of disabled students;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));"]}} {"set": {"query": "What is the employment and payment status of student110?", "pos": ["employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;"], "neg": ["longest duration of absense refers to MAX(month)", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "OCC refers to school = 'occ';", "longest absense refers to MAX(month)", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "never been absent in school refers to month = 0;"]}} {"set": {"query": "Among the students enrolled in UCLA, what is the percentage of male students in the air force department?", "pos": ["UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';"], "neg": ["absent from school for the longest time refers to MAX(month)", "navy refers to organ = 'navy';", "enlisted in the army refers to organ = 'army';", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "absense from school for 5 month refers to month = 5", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "OCC refers to school = 'occ';", "absent from school for 9 months refers to month = 9"]}} {"set": {"query": "Among the students that filed for bankruptcy, how many of them have been enrolled in OCC?", "pos": ["OCC refers to school = 'occ';"], "neg": ["female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "enlisted in the navy organization refers to organ = 'navy';", "absent from school for 9 months refers to month = 9", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "absent for 8 months refers to month = 8;", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "absense from school for 5 month refers to month = 5", "absent for more than 5 months refers to month > 5;"]}} {"set": {"query": "State the number of students who filed for bankruptcy and have payment due.", "pos": ["have payment due refers to bool = 'pos';"], "neg": ["average refers to DIVIDE(SUM(month), COUNT(name))", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "absent for more than 5 months refers to month > 5;", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "enlisted in the air force refers to organ = 'air_force';", "in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;"]}} {"set": {"query": "List out all bankrupt students that are able to make payment before due?", "pos": ["make payment before due refers to bool = 'neg';"], "neg": ["enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "longest duration of absense refers to MAX(month)", "Navy refers to organ = 'navy';", "absent for 9 months refers to month = 9;", "enrolled in SMC refers to school = 'smc';", "OCC refers to school = 'occ';", "absent for more than 5 months refers to month > 5;"]}} {"set": {"query": "What is the ratio of disable female to male students?", "pos": ["ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))"], "neg": ["male students are mentioned in male.name; OCC refers to school = 'occ';", "belong to the navy department refers to organ = 'navy';", "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "disability breakdown refers to the number of disabled students;", "enlisted in the fire-department refers to organ = 'fire_department';", "navy refers to organ = 'navy';", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;"]}} {"set": {"query": "List out the number of female students who enlisted in the air force.", "pos": ["enlisted in the air force refers to organ = 'air_force';"], "neg": ["belong to the navy department refers to organ = 'navy';", "organization refers to organ; student168 is a name of student;", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "absent for 6 months refers to month = 6;", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "who have payment due refers to bool = 'pos';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables."]}} {"set": {"query": "State name of students who have the longest duration of absense from school and do not have payment due.", "pos": ["longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';"], "neg": ["enlisted in marines refers to organ = 'marines';", "navy refers to organ = 'navy';", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "organization joined refers to organ", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "have never been absent refers to `month` = 0;", "from SMC refers to school = 'smc';", "more than one organization refers to COUNT(organ) > 1"]}} {"set": {"query": "Among all students, calculate the percentage of male students.", "pos": ["percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;"], "neg": ["organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "organization refers to organ; student211 is a name of student;", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "joined two organization refers to COUNT(organ) > = 2", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "absent for 9 months refers to month = 9;", "if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa", "navy refers to organ = 'navy';"]}} {"set": {"query": "Calculate the average number of disabled female students enrolled in UCI.", "pos": ["average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';"], "neg": ["in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';", "never been absent from school refers to month = 0", "absent for more than 5 months refers to month > 5;", "absense from school for 5 month refers to month = 5", "male students are mentioned in male.name; OCC refers to school = 'occ';", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "disability breakdown refers to the number of disabled students;", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "in the air force refers to organ = 'air_force';"]}} {"set": {"query": "How many unemployed students are there that have been absent for 6 months?", "pos": ["absent for 6 months refers to month = 6;"], "neg": ["enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "who have payment due refers to bool = 'pos';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "longest duration of absence refers to MAX(month);", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa", "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;"]}} {"set": {"query": "State name of students who have been absent for 5 months from school and do not have payment due.", "pos": ["absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';"], "neg": ["average refers to DIVIDE(SUM(month), COUNT(name))", "in the foreign legion refers to organ = 'foreign_legion';", "in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "enlisted in the navy organization refers to organ = 'navy';", "never been absent in school refers to month = 0;", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "never been absent from school refers to month = 0", "have payment due refers to bool = 'pos';"]}} {"set": {"query": "What is the average of absence for an employed students?", "pos": ["average refers to DIVIDE(SUM(month), COUNT(name))"], "neg": ["students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "have absent from school refers to month > 1;", "enlisted in the navy organization refers to organ = 'navy';", "enlisted in the fire-department refers to organ = 'fire_department';", "in the air force refers to organ = 'air_force';", "longest duration of absense refers to MAX(month)", "Navy refers to organ = 'navy';", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "disability breakdown refers to the number of disabled students;"]}} {"set": {"query": "Among students with 1 month of absenses, how many of them are enlisted in the air force department?", "pos": ["1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';"], "neg": ["more than one organization refers to COUNT(organ) > 1", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "enrolled in SMC refers to school = 'smc';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "longest duration of absense refers to MAX(month)", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "absent for 6 months refers to month = 6;"]}} {"set": {"query": "List at least 10 students who have no payment due and are enlisted in Fire Department organization.", "pos": ["no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';"], "neg": ["disability breakdown refers to the number of disabled students;", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "longest duration of absense refers to MAX(month)", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "enlisted in the fire-department refers to organ = 'fire_department';", "do not have payment due refers to bool = 'neg';", "OCC refers to school = 'occ';", "absense from school for 5 month refers to month = 5", "enlisted in the air force refers to organ = 'air_force';", "organization refers to organ; student168 is a name of student;"]}} {"set": {"query": "How many female students have no payment due?", "pos": ["have no payment due refers to bool = 'neg'; female students refers to name NOT in male table"], "neg": ["have payment due refers to bool = 'pos';", "absence for 4 month refers to month = 4;", "have payment due refers to bool = 'pos';", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "enlisted in the navy organization refers to organ = 'navy';", "average refers to DIVIDE(SUM(month), COUNT(name))", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';"]}} {"set": {"query": "How many students enlisted in the navy?", "pos": ["navy refers to organ = 'navy';"], "neg": ["in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "belong to the navy department refers to organ = 'navy';", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "organization refers to organ", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "absent from school for 9 months refers to month = 9", "absent for 6 months refers to month = 6;", "never been absent in school refers to month = 0;"]}} {"set": {"query": "Calculate the average number of female students who are disabled and who joined Foreign Legion organization.", "pos": ["average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';"], "neg": ["have absent from school refers to month > 1;", "never been absent from school refers to month = 0", "longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "enrolled in SMC refers to school = 'smc';", "organization refers to organ", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "have payment due refers to bool = 'pos';", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "organization refers to organ; student211 is a name of student;"]}} {"set": {"query": "How many male students have no due payments?", "pos": ["have no due payments refers to bool = 'neg';"], "neg": ["average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "male students are mentioned in male.name;", "absents for more than 6 months refers to month > 6", "longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "have payment due refers to bool = 'pos';", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "have absent from school refers to month > 1;", "enlisted in marines refers to organ = 'marines';", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;"]}} {"set": {"query": "Among the students that have been absent from school for more than 5 months, how many of them are male?", "pos": ["absent from school for more than 5 months refers to `month`\u00a0 > = 5;"], "neg": ["female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "never been absent in school refers to month = 0;", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "in the air force refers to organ = 'air_force';", "enlisted in the navy organization refers to organ = 'navy';", "have absent from school refers to month > 1;", "average refers to DIVIDE(SUM(month), COUNT(name))", "enlisted in the air force refers to organ = 'air_force';", "with payment due refers to bool = 'pos';"]}} {"set": {"query": "Please check if student 124 is disabled male.", "pos": ["if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa"], "neg": ["unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "longest duration of absense refers to MAX(month)", "enlisted in marines refers to organ = 'marines';", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "absense from school for 5 month refers to month = 5", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "in the foreign legion refers to organ = 'foreign_legion';", "still have payment due refers to bool = 'pos'"]}} {"set": {"query": "Please list the male students that are disabled and have filed for bankruptcy.", "pos": ["male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables."], "neg": ["Navy refers to organ = 'navy';", "Air Force refers to organ = 'air_force';", "absent from school for the longest time refers to MAX(month)", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "still have payment due refers to bool = 'pos'", "organization refers to organ; student211 is a name of student;", "more than one organization refers to COUNT(organ) > 1", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))"]}} {"set": {"query": "Please list the names of the male students that belong to the navy department.", "pos": ["belong to the navy department refers to organ = 'navy';"], "neg": ["navy refers to organ = 'navy';", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'", "navy refers to organ = 'navy';", "average refers to DIVIDE(SUM(month), COUNT(name))", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "absent from school for 9 months refers to month = 9", "from SMC refers to school = 'smc';"]}} {"set": {"query": "Mention the name of disabled students who have never been absent from school.", "pos": ["never been absent from school refers to month = 0"], "neg": ["enrolled in SMC refers to school = 'smc';", "organization refers to organ; student211 is a name of student;", "organization joined refers to organ", "had never been absent refers to month = 0", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "OCC refers to school = 'occ';", "in the air force refers to organ = 'air_force';", "have never been absent from school refers to month = 0"]}} {"set": {"query": "Among the students enlisted in marines, how many of them are disabled?", "pos": ["enlisted in marines refers to organ = 'marines';"], "neg": ["disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "male students are mentioned in male.name; OCC refers to school = 'occ';", "more than one organization refers to COUNT(organ) > 1", "belong to the navy department refers to organ = 'navy';", "enlisted in marines refers to organ = 'marines';", "ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))", "joined two organization refers to COUNT(organ) > = 2", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "still have payment due refers to bool = 'pos'"]}} {"set": {"query": "How many unemployed students still have payment due?", "pos": ["still have payment due refers to bool = 'pos'"], "neg": ["gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "organization joined refers to organ", "in the foreign legion refers to organ = 'foreign_legion';", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "longest duration of absence refers to MAX(month);", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "enlisted in the air force refers to organ = 'air_force';"]}} {"set": {"query": "List at least 5 students who has the longest absense from schoool?", "pos": ["longest absense refers to MAX(month)"], "neg": ["Navy refers to organ = 'navy';", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "OCC refers to school = 'occ';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "organization refers to organ; organ = 'army';", "absent from school for the longest time refers to MAX(month)", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;"]}} {"set": {"query": "How many disabled students have payment due?", "pos": ["have payment due refers to bool = 'pos';"], "neg": ["enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "organization refers to organ; student211 is a name of student;", "absent for 9 months refers to month = 9;", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "absent above 2 months refers to month > 2;", "have payment due refers to bool = 'pos';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';"]}} {"set": {"query": "List down the student names who did not file for bankruptcy.", "pos": ["students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;"], "neg": ["average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "absent from school for the longest time refers to MAX(month)", "never been absent in school refers to month = 0;", "enlisted in the navy organization refers to organ = 'navy';", "enlisted in the fire-department refers to organ = 'fire_department';", "enlisted in the navy organization refers to organ = 'navy';", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "have payment due refers to bool = 'pos';", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "navy refers to organ = 'navy';"]}} {"set": {"query": "Which students that are in the marines have been absent for 6 months?", "pos": ["in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6"], "neg": ["joined two organization refers to COUNT(organ) > = 2", "make payment before due refers to bool = 'neg';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "never been absent in school refers to month = 0;", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;"]}} {"set": {"query": "How many disabled male students joined an organization?", "pos": ["organization refers to organ; disabled male students refers to disabled.name who are IN male.name;"], "neg": ["status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "joined two organization refers to COUNT(organ) > = 2", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "have payment due refers to bool = 'pos';", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "absense from school for 5 month refers to month = 5", "absents for more than 6 months refers to month > 6", "male students are mentioned in male.name; with payment due refers to bool = 'pos';"]}} {"set": {"query": "State name of female students who filed for bankruptcy.", "pos": ["female students refers to filed_for_bankrupcy.name who are NOT in male.name;"], "neg": ["from SMC refers to school = 'smc';", "organization refers to organ", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "enlisted in marines refers to organ = 'marines';", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "enrolled in SMC refers to school = 'smc';", "who have payment due refers to bool = 'pos';", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';"]}} {"set": {"query": "How many female students are enlisted in the Navy organization?", "pos": ["female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';"], "neg": ["have never been absent from school refers to month = 0", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "absent for 8 months refers to month = 8;", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "enlisted in marines refers to organ = 'marines';", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "joined two organization refers to COUNT(organ) > = 2", "students that have a payment due refers to bool = 'pos';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa"]}} {"set": {"query": "Give the number of students who have payment due.", "pos": ["who have payment due refers to bool = 'pos';"], "neg": ["male students are mentioned in male.name;", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "Air Force refers to organ = 'air_force';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "average refers to DIVIDE(SUM(month), COUNT(name))", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "more than one organization refers to COUNT(organ) > 1", "enlisted in the navy organization refers to organ = 'navy';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';"]}} {"set": {"query": "How many male students are enrolled at OCC?", "pos": ["male students are mentioned in male.name; OCC refers to school = 'occ';"], "neg": ["enlisted in marines refers to organ = 'marines';", "have absent from school refers to month > 1;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "belong to the navy department refers to organ = 'navy';", "absents for more than 6 months refers to month > 6", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "have never been absent refers to `month` = 0;", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "absent from school for the longest time refers to MAX(month)"]}} {"set": {"query": "Define the gender of \"student995\" and his/her enrolled schools.", "pos": ["male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;"], "neg": ["male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;", "who have payment due refers to bool = 'pos';", "longest duration of absense refers to MAX(month)", "belong to the navy department refers to organ = 'navy';", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "with payment due refers to bool = 'pos';"]}} {"set": {"query": "How many female students have enlisted for the Army?", "pos": ["female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';"], "neg": ["absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "absent for 6 months refers to month = 6;", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'", "who have payment due refers to bool = 'pos';", "longest duration of absense refers to MAX(month)", "average refers to DIVIDE(SUM(month), COUNT(name))", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "absence for 4 month refers to month = 4;", "average refers to DIVIDE(SUM(month), COUNT(name))"]}} {"set": {"query": "Please provide a disability breakdown for each school.", "pos": ["disability breakdown refers to the number of disabled students;"], "neg": ["female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "enlisted in the fire-department refers to organ = 'fire_department';", "more than one organization refers to COUNT(organ) > 1", "had never been absent refers to month = 0", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "have never been absent from school refers to month = 0", "enlisted in marines refers to organ = 'marines';", "longest duration of absense refers to MAX(month)", "in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';"]}} {"set": {"query": "What percentage of students who enlisted in the navy make up the number of students enrolled in OCC?", "pos": ["in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'"], "neg": ["Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "organization joined refers to organ", "Air Force refers to organ = 'air_force';", "have no due payments refers to bool = 'neg';", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "absense from school for 5 month refers to month = 5", "navy refers to organ = 'navy';", "still have payment due refers to bool = 'pos'", "absent above 2 months refers to month > 2;"]}} {"set": {"query": "Name all disabled students that are enrolled in SMC.", "pos": ["enrolled in SMC refers to school = 'smc';"], "neg": ["in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "belong to the navy department refers to organ = 'navy';", "absent for more than 5 months refers to month > 5;", "never been absent from school refers to month = 0", "enlisted in marines refers to organ = 'marines';", "absence for 4 month refers to month = 4;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;", "navy refers to organ = 'navy';", "OCC refers to school = 'occ';"]}} {"set": {"query": "How many students enlisted in the Navy?", "pos": ["Navy refers to organ = 'navy';"], "neg": ["longest absense refers to MAX(month)", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "navy refers to organ = 'navy';", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "absent from school for 9 months refers to month = 9", "ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "absent for more than 5 months refers to month > 5;"]}} {"set": {"query": "Which organization has the highest number of male students? Calculate for the percentage of the male students in the said organization.", "pos": ["organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;"], "neg": ["average refers to DIVIDE(SUM(month), COUNT(name))", "in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "longest absense refers to MAX(month)", "make payment before due refers to bool = 'neg';", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "never been absent from school refers to month = 0", "longest duration of absense refers to MAX(month)", "have absent from school refers to month > 1;", "male students are mentioned in male.name;"]}} {"set": {"query": "Find the average number of absences for each student.", "pos": ["average refers to DIVIDE(SUM(month), COUNT(name))"], "neg": ["navy refers to organ = 'navy';", "students that have a payment due refers to bool = 'pos';", "have never been absent refers to `month` = 0;", "longest duration of absence refers to MAX(month);", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "absense from school for 5 month refers to month = 5", "navy refers to organ = 'navy';", "belong to the navy department refers to organ = 'navy';", "enrolled in SMC refers to school = 'smc';"]}} {"set": {"query": "List the names of disabled students enlisted in the navy.", "pos": ["navy refers to organ = 'navy';"], "neg": ["absent for 9 months refers to month = 9;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "longest duration of absense refers to MAX(month)", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "navy refers to organ = 'navy';", "disability breakdown refers to the number of disabled students;", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "average refers to DIVIDE(SUM(month), COUNT(name))", "enrolled in SMC refers to school = 'smc';"]}} {"set": {"query": "List all students in the air force and which school they were enrolled at.", "pos": ["in the air force refers to organ = 'air_force';"], "neg": ["enlisted in the fire-department refers to organ = 'fire_department';", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "organization refers to organ", "absent for 8 months refers to month = 8;", "organization refers to organ", "longest absense refers to MAX(month)", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "enrolled in SMC refers to school = 'smc';", "belong to foreign legion refers to organ = 'foreign_legion';", "had never been absent refers to month = 0"]}} {"set": {"query": "Which organization does student 313 belong to?", "pos": ["organization refers to organ"], "neg": ["have payment due refers to bool = 'pos';", "Air Force refers to organ = 'air_force';", "absents for more than 6 months refers to month > 6", "male students are mentioned in male.name;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "have never been absent from school refers to month = 0", "percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;", "have payment due refers to bool = 'pos';"]}} {"set": {"query": "How many students have absent from school?", "pos": ["have absent from school refers to month > 1;"], "neg": ["gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "enlisted in the army refers to organ = 'army';", "navy refers to organ = 'navy';", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "have never been absent from school refers to month = 0"]}} {"set": {"query": "How many students are enlisted in the Navy organization?", "pos": ["enlisted in the navy organization refers to organ = 'navy';"], "neg": ["disability breakdown refers to the number of disabled students;", "Air Force refers to organ = 'air_force';", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "have payment due refers to bool = 'pos';", "enlisted in marines refers to organ = 'marines';", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "enlisted in the navy organization refers to organ = 'navy';", "enlisted in the air force refers to organ = 'air_force';", "absent for 8 months refers to month = 8;", "absence for 4 month refers to month = 4;"]}} {"set": {"query": "State name of disabled students who have the longest duration of absense from school.", "pos": ["longest duration of absense refers to MAX(month)"], "neg": ["absent above 2 months refers to month > 2;", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "average refers to DIVIDE(SUM(month), COUNT(name))", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "still have payment due refers to bool = 'pos'", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "enlisted in the army refers to organ = 'army';", "organization joined refers to organ", "ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))"]}} {"set": {"query": "Calculate the ratio in percentage between the average number of female and male students who joined Fire Department organization.", "pos": ["ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';"], "neg": ["still have payment due refers to bool = 'pos'", "average refers to DIVIDE(SUM(month), COUNT(name))", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "enlisted in marines refers to organ = 'marines';", "longest duration of absense refers to MAX(month)", "who have payment due refers to bool = 'pos';", "had never been absent refers to month = 0", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "enlisted in the navy organization refers to organ = 'navy';"]}} {"set": {"query": "How many male students filed for bankruptcy as compare to female students?", "pos": ["difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;"], "neg": ["absent from school for 9 months refers to month = 9", "disability breakdown refers to the number of disabled students;", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "enlisted in the navy organization refers to organ = 'navy';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "have payment due refers to bool = 'pos';", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "navy refers to organ = 'navy';", "organization joined refers to organ"]}} {"set": {"query": "How many disabled students are male?", "pos": ["male students are mentioned in male.name;"], "neg": ["absence for 4 month refers to month = 4;", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "joined two organization refers to COUNT(organ) > = 2", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "longest duration of absense refers to MAX(month)", "more than one organization refers to COUNT(organ) > 1", "enlisted in the fire-department refers to organ = 'fire_department';", "from SMC refers to school = 'smc';", "longest duration of absense refers to MAX(month)", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';"]}} {"set": {"query": "How many students are enlisted in the Army organization?", "pos": ["enlisted in the army refers to organ = 'army';"], "neg": ["SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "belong to the navy department refers to organ = 'navy';", "enlisted in the air force refers to organ = 'air_force';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';"]}} {"set": {"query": "Provide the name of disabled male students that are unemployed.", "pos": ["disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;"], "neg": ["if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "belong to the navy department refers to organ = 'navy';", "have payment due refers to bool = 'pos';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "have payment due refers to bool = 'pos';", "enlisted in the navy organization refers to organ = 'navy';", "navy refers to organ = 'navy';"]}} {"set": {"query": "Calculate the average duration of absense of disabled students.", "pos": ["average refers to DIVIDE(SUM(month), COUNT(name))"], "neg": ["have payment due refers to bool = 'pos';", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "organization refers to organ; student211 is a name of student;", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "have payment due refers to bool = 'pos';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "enlisted in the navy organization refers to organ = 'navy';", "organization refers to organ; student168 is a name of student;"]}} {"set": {"query": "Mention the name of unemployed students who have never been absent from school.", "pos": ["have never been absent from school refers to month = 0"], "neg": ["organization refers to organ; student168 is a name of student;", "disability breakdown refers to the number of disabled students;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "make payment before due refers to bool = 'neg';", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "with payment due refers to bool = 'pos';", "navy refers to organ = 'navy';", "in the air force refers to organ = 'air_force';", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;"]}} {"set": {"query": "Count the number of male students who belong to foreign legion.", "pos": ["belong to foreign legion refers to organ = 'foreign_legion';"], "neg": ["organization refers to organ", "male students are mentioned in male.name;", "belong to the navy department refers to organ = 'navy';", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "have never been absent from school refers to month = 0", "average refers to DIVIDE(SUM(month), COUNT(name))", "in the air force refers to organ = 'air_force';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "absent from school for 9 months refers to month = 9", "percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;"]}} {"set": {"query": "What is the school and organization enrolled by student211?", "pos": ["organization refers to organ; student211 is a name of student;"], "neg": ["have never been absent from school refers to month = 0", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "navy refers to organ = 'navy';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "from SMC refers to school = 'smc';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "absent for 9 months refers to month = 9;", "enrolled in SMC refers to school = 'smc';", "belong to the navy department refers to organ = 'navy';"]}} {"set": {"query": "State name of students who filed for bankruptcy and have the longest duration of absense from school.", "pos": ["longest duration of absense refers to MAX(month)"], "neg": ["average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "longest duration of absense refers to MAX(month)", "more than one organization refers to COUNT(organ) > 1", "belong to the navy department refers to organ = 'navy';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "navy refers to organ = 'navy';", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "have absent from school refers to month > 1;", "enlisted in marines refers to organ = 'marines';"]}} {"set": {"query": "Please list the departments the students are absent from school for 9 months are in.", "pos": ["absent from school for 9 months refers to month = 9"], "neg": ["female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "average refers to DIVIDE(SUM(month), COUNT(name))", "male students are mentioned in male.name; OCC refers to school = 'occ';", "navy refers to organ = 'navy';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "never been absent from school refers to month = 0", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "absent for 6 months refers to month = 6;", "enlisted in marines refers to organ = 'marines';", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'"]}} {"set": {"query": "What is the status of payment of student 124?", "pos": ["status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;"], "neg": ["longest duration of absense refers to MAX(month)", "disability breakdown refers to the number of disabled students;", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "have payment due refers to bool = 'pos';", "1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';", "who have payment due refers to bool = 'pos';", "organization refers to organ", "longest absense refers to MAX(month)", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';"]}} {"set": {"query": "How many unemployed students are enlisted in the Army organization?", "pos": ["organization refers to organ; organ = 'army';"], "neg": ["absent for 8 months refers to month = 8;", "navy refers to organ = 'navy';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "male students are mentioned in male.name;", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "longest duration of absense refers to MAX(month)", "absent for more than 5 months refers to month > 5;", "organization joined refers to organ", "never been absent in school refers to month = 0;", "with payment due refers to bool = 'pos';"]}} {"set": {"query": "How many students were absence for 4 month?", "pos": ["absence for 4 month refers to month = 4;"], "neg": ["difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "have no due payments refers to bool = 'neg';", "absent from school for 9 months refers to month = 9", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "navy refers to organ = 'navy';", "longest duration of absense refers to MAX(month)", "in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6", "no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';", "make payment before due refers to bool = 'neg';", "male students are mentioned in male.name; with payment due refers to bool = 'pos';"]}} {"set": {"query": "How many unemployed students are enlisted in the navy organization?", "pos": ["enlisted in the navy organization refers to organ = 'navy';"], "neg": ["Air Force refers to organ = 'air_force';", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "belong to the navy department refers to organ = 'navy';", "in the air force refers to organ = 'air_force';", "disability breakdown refers to the number of disabled students;", "organization refers to organ; organ = 'army';", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;"]}} {"set": {"query": "Calculate the average duration of absense of female students.", "pos": ["average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;"], "neg": ["absent above 2 months refers to month > 2;", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "Air Force refers to organ = 'air_force';", "organization refers to organ", "more than one organization refers to COUNT(organ) > 1", "who have payment due refers to bool = 'pos';", "in the foreign legion refers to organ = 'foreign_legion';", "navy refers to organ = 'navy';", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "average refers to DIVIDE(SUM(month), COUNT(name))"]}} {"set": {"query": "How many students have been absents for more than 6 months?", "pos": ["absents for more than 6 months refers to month > 6"], "neg": ["absent for more than 5 months refers to month > 5;", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "in the foreign legion refers to organ = 'foreign_legion';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "enlisted in marines refers to organ = 'marines';", "in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';", "enlisted in the navy organization refers to organ = 'navy';", "absence for 4 month refers to month = 4;", "navy refers to organ = 'navy';", "absense from school for 5 month refers to month = 5"]}} {"set": {"query": "List out female students that enrolled in occ school and ulca?", "pos": ["female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');"], "neg": ["organization refers to organ", "absent above 2 months refers to month > 2;", "with payment due refers to bool = 'pos';", "organization refers to organ; student168 is a name of student;", "make payment before due refers to bool = 'neg';", "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "have payment due refers to bool = 'pos';"]}} {"set": {"query": "How many students have never been absent in school?", "pos": ["never been absent in school refers to month = 0;"], "neg": ["had never been absent refers to month = 0", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "still have payment due refers to bool = 'pos'", "students that have a payment due refers to bool = 'pos';", "male students are mentioned in male.name;", "navy refers to organ = 'navy';", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "absent from school for the longest time refers to MAX(month)", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "longest duration of absense refers to MAX(month)"]}} {"set": {"query": "How many students enlisted in the fire-department?", "pos": ["enlisted in the fire-department refers to organ = 'fire_department';"], "neg": ["have payment due refers to bool = 'pos';", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "more than one organization refers to COUNT(organ) > 1", "who have payment due refers to bool = 'pos';", "percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';", "organization refers to organ", "from SMC refers to school = 'smc';"]}} {"set": {"query": "State the number of disabled students who have payment due.", "pos": ["have payment due refers to bool = 'pos';"], "neg": ["male students are mentioned in male.name;", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';", "absent for 8 months refers to month = 8;", "from SMC refers to school = 'smc';", "enlisted in marines refers to organ = 'marines';", "have no due payments refers to bool = 'neg';", "joined two organization refers to COUNT(organ) > = 2", "in the foreign legion refers to organ = 'foreign_legion';", "organization refers to organ; student168 is a name of student;", "belong to foreign legion refers to organ = 'foreign_legion';"]}} {"set": {"query": "What is the name of the student with the longest duration of absence?", "pos": ["longest duration of absence refers to MAX(month);"], "neg": ["female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "enlisted in the fire-department refers to organ = 'fire_department';", "male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.", "average refers to DIVIDE(SUM(month), COUNT(name))", "average refers to DIVIDE(SUM(month), COUNT(name))", "navy refers to organ = 'navy';", "absent for more than 5 months refers to month > 5;", "organization refers to organ; student211 is a name of student;", "OCC refers to school = 'occ';", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;"]}} {"set": {"query": "Among the students from the navy department, how many of them have payment due?", "pos": ["from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';"], "neg": ["absense from school for 5 month refers to month = 5", "still have payment due refers to bool = 'pos'", "with payment due refers to bool = 'pos';", "absent above 2 months refers to month > 2;", "belong to foreign legion refers to organ = 'foreign_legion';", "absent for 9 months refers to month = 9;", "have never been absent from school refers to month = 0", "in the air force refers to organ = 'air_force';", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));"]}} {"set": {"query": "Among the male students, list down the names of students with payment due.", "pos": ["male students are mentioned in male.name; with payment due refers to bool = 'pos';"], "neg": ["absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "navy refers to organ = 'navy';", "have payment due refers to bool = 'pos';", "absent above 2 months refers to month > 2;", "absent for more than 5 months refers to month > 5;", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "male students are mentioned in male.name; OCC refers to school = 'occ';", "navy refers to organ = 'navy';", "absent for 6 months refers to month = 6;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';"]}} {"set": {"query": "Among the students that have a payment due, how many students are unemployed?", "pos": ["students that have a payment due refers to bool = 'pos';"], "neg": ["female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "have no due payments refers to bool = 'neg';", "do not have payment due refers to bool = 'neg';", "female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "had never been absent refers to month = 0", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "absent for more than 5 months refers to month > 5;", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';"]}} {"set": {"query": "How many male students join more than one organization?", "pos": ["more than one organization refers to COUNT(organ) > 1"], "neg": ["have absent from school refers to month > 1;", "male students are mentioned in male.name;", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "enlisted in the navy organization refers to organ = 'navy';", "had never been absent refers to month = 0", "absents for more than 6 months refers to month > 6", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "enlisted in marines refers to organ = 'marines';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;"]}} {"set": {"query": "How many students from SMC are unemployed?", "pos": ["from SMC refers to school = 'smc';"], "neg": ["female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "Air Force refers to organ = 'air_force';", "absence for 4 month refers to month = 4;", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';", "navy refers to organ = 'navy';", "enlisted in the air force refers to organ = 'air_force';", "average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "have never been absent refers to `month` = 0;", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;"]}} {"set": {"query": "Student21 is enlisted in which organization and has the student been absent?", "pos": ["organization refers to organ"], "neg": ["enlisted in the navy organization refers to organ = 'navy';", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "have payment due refers to bool = 'pos';", "enrolled in SMC refers to school = 'smc';", "have payment due refers to bool = 'pos';", "have absent from school refers to month > 1;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "navy refers to organ = 'navy';", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;"]}} {"set": {"query": "How many unemployed students filed for bankruptcy?", "pos": ["unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;"], "neg": ["have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "absents for more than 6 months refers to month > 6", "joined two organization refers to COUNT(organ) > = 2", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "longest duration of absence refers to MAX(month);", "in the foreign legion refers to organ = 'foreign_legion';", "who have payment due refers to bool = 'pos';", "never been absent in school refers to month = 0;", "have no due payments refers to bool = 'neg';", "never been absent from school refers to month = 0"]}} {"set": {"query": "How many unemployed students have payment due?", "pos": ["have payment due refers to bool = 'pos';"], "neg": ["longest duration of absense refers to MAX(month)", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "absent from school for 9 months refers to month = 9", "male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;", "enlisted in the fire-department refers to organ = 'fire_department';", "organization refers to organ", "enlisted in marines refers to organ = 'marines';", "navy refers to organ = 'navy';", "from SMC refers to school = 'smc';", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';"]}} {"set": {"query": "How many employed disabled students have zero absences?", "pos": ["employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;"], "neg": ["organization refers to organ; student168 is a name of student;", "absent for 8 months refers to month = 8;", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "make payment before due refers to bool = 'neg';", "enrolled in SMC refers to school = 'smc';", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;", "longest duration of absense refers to MAX(month)", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "absence for 4 month refers to month = 4;"]}} {"set": {"query": "How many students are enlisted in the Peace Corps organization are enrolled in UCSD school?", "pos": ["enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';"], "neg": ["female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "Air Force refers to organ = 'air_force';", "percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "have never been absent refers to `month` = 0;", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;"]}} {"set": {"query": "List out the organization joined and school enrolled by student27, student17 and student101?", "pos": ["organization joined refers to organ"], "neg": ["average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "students that have a payment due refers to bool = 'pos';", "belong to foreign legion refers to organ = 'foreign_legion';", "disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;", "Air Force refers to organ = 'air_force';", "belong to the navy department refers to organ = 'navy';", "if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa", "unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "Air Force refers to organ = 'air_force';"]}} {"set": {"query": "State the unemployed students who enlisted in marines.", "pos": ["enlisted in marines refers to organ = 'marines';"], "neg": ["unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;", "male students are mentioned in male.name; OCC refers to school = 'occ';", "with payment due refers to bool = 'pos';", "enlisted in the navy organization refers to organ = 'navy';", "longest duration of absence refers to MAX(month);", "absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';", "longest duration of absense refers to MAX(month)", "navy refers to organ = 'navy';", "enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army'", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table"]}} {"set": {"query": "Calculate the average enlisted students per organization.", "pos": ["average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));"], "neg": ["enlisted in the navy organization refers to organ = 'navy';", "absent for 8 months refers to month = 8;", "from SMC refers to school = 'smc';", "navy refers to organ = 'navy';", "ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);", "status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;", "students that have a payment due refers to bool = 'pos';", "longest duration of absense refers to MAX(month)", "organization refers to organ; disabled male students refers to disabled.name who are IN male.name;", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';"]}} {"set": {"query": "Count the number of students from UCSD enlisted in the peace corps.", "pos": ["in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';"], "neg": ["Navy refers to organ = 'navy';", "have payment due refers to bool = 'pos';", "organization refers to organ; organ = 'army';", "difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;", "enlisted in the fire-department refers to organ = 'fire_department';", "absence for 4 month refers to month = 4;", "enlisted in the army refers to organ = 'army';", "absent for more than 5 months refers to month > 5;", "ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))", "had never been absent refers to month = 0"]}} {"set": {"query": "Count the number of female students who belong to marines organization.", "pos": ["female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';"], "neg": ["have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "longest duration of absense refers to MAX(month)", "belong to the navy department refers to organ = 'navy';", "male students are mentioned in male.name; with payment due refers to bool = 'pos';", "have no due payments refers to bool = 'neg';", "enlisted in the navy organization refers to organ = 'navy';", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';", "joined two organization refers to COUNT(organ) > = 2", "average refers to DIVIDE(SUM(month), COUNT(name))", "had never been absent refers to month = 0"]}} {"set": {"query": "List out the number of students who filed for bankruptcy and enlisted in navy.", "pos": ["navy refers to organ = 'navy';"], "neg": ["have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "absent for 8 months refers to month = 8;", "Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));", "longest duration of absence refers to MAX(month);", "belong to the navy department refers to organ = 'navy';", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';", "male students are mentioned in male.name;", "students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;", "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;"]}} {"set": {"query": "What is the organization enlisted by student168?", "pos": ["organization refers to organ; student168 is a name of student;"], "neg": ["absent for 8 months refers to month = 8;", "had never been absent refers to month = 0", "ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';", "have absent from school refers to month > 1;", "employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;", "female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');", "average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "have payment due refers to bool = 'pos';", "have never been absent from school refers to month = 0"]}} {"set": {"query": "Mention the status of payment of student 299.", "pos": ["status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;"], "neg": ["average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';", "absent from school for the longest time refers to MAX(month)", "have payment due refers to bool = 'pos';", "have no payment due refers to bool = 'neg'; female students refers to name NOT in male table", "still have payment due refers to bool = 'pos'", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "navy refers to organ = 'navy';", "absent for more than 5 months refers to month > 5;", "OCC refers to school = 'occ';", "organization refers to organ; student168 is a name of student;"]}} {"set": {"query": "How many students are enlisted to the air force?", "pos": ["Air Force refers to organ = 'air_force';"], "neg": ["female students refers to filed_for_bankrupcy.name who are NOT in male.name;", "OCC refers to school = 'occ';", "longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';", "enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';", "who have payment due refers to bool = 'pos';", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "have payment due refers to bool = 'pos';", "navy refers to organ = 'navy';", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;"]}} {"set": {"query": "List the names of the disabled students who were absent from school for more than 5 months.", "pos": ["absent for more than 5 months refers to month > 5;"], "neg": ["organization joined refers to organ", "employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;", "students that have a payment due refers to bool = 'pos';", "had never been absent refers to month = 0", "male students are mentioned in male.name;", "absent above 2 months refers to month > 2;", "enrolled in SMC refers to school = 'smc';", "female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';", "have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))", "female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';"]}} {"set": {"query": "How many months did a student in the Air Force miss school the most?", "pos": ["Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));"], "neg": ["percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');", "in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ'", "enlisted in the fire-department refers to organ = 'fire_department';", "organization refers to organ; organ = 'army';", "have absent from school refers to month > 1;", "absent from school for more than 5 months refers to `month`\u00a0 > = 5;", "absent for 6 months refers to month = 6;", "average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;", "absent for more than 5 months refers to month > 5;", "UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';"]}} {"set": {"query": "What is the ship date of the order by the customer named Ann Chong in the central region?", "pos": ["Ann Chong' is the \"Customer Name\"; Region = 'Central'"], "neg": ["highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "Bush Mission Pointe Library' is the \"Product Name\";", "Region = 'West'", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "customer live in Texas refers to State = 'Texas'", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "product refers to \"Product Name\"", "customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";"]}} {"set": {"query": "What is the ratio between customers who live in Texas and customers who live in Indiana?", "pos": ["live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana'))"], "neg": ["name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "caused a loss to the company refers to Profit < 0", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "Region = 'West'"]}} {"set": {"query": "What are the names of the products that had been shipped in March 2013 at central superstore?", "pos": ["names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'"], "neg": ["highest profit refers to max(Profit)", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "caused a loss to the company refers to Profit < 0", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');"]}} {"set": {"query": "Who is the customer from the West region that received the highest discount?", "pos": ["received the highest discount refers to MAX(discount); customer refers to \"Customer Name\""], "neg": ["name of the product refers to \"Product Name\"", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "made the highest sales refers to MAX(Sales)", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "names of the products refers to \"Product Name\";\u00a0 profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');"]}} {"set": {"query": "What is the percentage of furniture orders that were shipped through first class in 2013 at the Central superstore?", "pos": ["furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage"], "neg": ["name of the product refers to \"Product Name\"", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');"]}} {"set": {"query": "List the name of all products that Cindy Stewart ordered in the east superstore.", "pos": ["name of all products refers to Product Name; Cindy Stewart is the Customer Name;"], "neg": ["highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "names of the products refers to \"Product Name\";\u00a0 profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "customer live in Texas refers to State = 'Texas'", "Region = 'West'", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\""]}} {"set": {"query": "How many orders purchased by Aaron Bergman have been delivered with the slowest shipping speed?", "pos": ["slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'"], "neg": ["name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "Region = 'West'", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'"]}} {"set": {"query": "Calculate the percentage of ordered office supplies products in the central and the south superstore.", "pos": ["office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'"], "neg": ["Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "caused a loss to the company refers to Profit < 0", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "office supply refers to Category = 'Office Supplies'", "customer live in Texas refers to State = 'Texas'"]}} {"set": {"query": "List the customer's name from the South region with a standard class ship mode and sales greater than the 88% of the average sales of all orders.", "pos": ["sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore"], "neg": ["name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "highest profit refers to MAX(profit); Region = 'East'", "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "Security-Tint Envelopes' refers to \"Product Name\"; ordered on June 3, 2013 refers to \"Order Date\" = '2013-06-03'", "Frank Olsen' is the \"Customer Name\"; Region = 'South'"]}} {"set": {"query": "Provide the names, cities, and countries of the customers who ordered the Plantronics single ear headset.", "pos": ["Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";"], "neg": ["Bush Mission Pointe Library' is the \"Product Name\";", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\""]}} {"set": {"query": "What was the quantity of Xerox 1952 ordered by Aimee Bixby on 2014/9/10?", "pos": ["Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');"], "neg": ["made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "office supply refers to Category = 'Office Supplies'", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "name of the product refers to \"Product Name\"", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";"]}} {"set": {"query": "What is the highest profit order in the East superstore of customers from Houston, Texas?", "pos": ["highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'"], "neg": ["Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "Bush Mission Pointe Library' is the \"Product Name\";", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "Region = 'West'"]}} {"set": {"query": "What is the total sales of furniture products in the east superstore in the year 2016.\n", "pos": ["furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'"], "neg": ["Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "caused a loss to the company refers to Profit < 0", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\""]}} {"set": {"query": "How much is the total quantity of items from the East region shipped on 3/25/2015? Name the products.", "pos": ["shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');"], "neg": ["Region = 'West'", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "caused a loss to the company refers to Profit < 0", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "made the highest sales refers to MAX(Sales)", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage"]}} {"set": {"query": "Give the customer segment from the West region that orders the order ID CA-2011-108189.", "pos": ["Region = 'West'"], "neg": ["Ann Chong' is the \"Customer Name\"; Region = 'Central'", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "names of the products refers to \"Product Name\";\u00a0 profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "office supply refers to Category = 'Office Supplies'", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\""]}} {"set": {"query": "Among the customers in South superstore, which customers ordered more than 3 times in 2015? State the name of the customers.", "pos": ["name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3"], "neg": ["names of the products refers to \"Product Name\";\u00a0 profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "highest profit refers to MAX(profit); Region = 'East'", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "office supply refers to Category = 'Office Supplies'", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "Patrick Gardner is the \"Customer Name\"; Region = 'Central'"]}} {"set": {"query": "Please list the names of all the customers who had ordered the product \"Telescoping Adjustable Floor Lamp\".", "pos": ["\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\""], "neg": ["Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')", "product refers to \"Product Name\"", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'"]}} {"set": {"query": "Among the orders from 2016 in the Central region, what is the product with the lowest profit?", "pos": ["orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)"], "neg": ["'Hon Valutask Swivel Chairs' is the \"Product Name\"", "Security-Tint Envelopes' refers to \"Product Name\"; ordered on June 3, 2013 refers to \"Order Date\" = '2013-06-03'", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')", "caused a loss to the company refers to Profit < 0", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');"]}} {"set": {"query": "How many of the \"Hon Pagoda Stacking Chairs\" have been sold in total in the west superstore?", "pos": ["Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'"], "neg": ["Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "name of the product refers to \"Product Name\"", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))"]}} {"set": {"query": "Among the customers who have ordered the product \"Telescoping Adjustable Floor Lamp\", how many of them are consumers?", "pos": ["\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';"], "neg": ["Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "product refers to \"Product Name\"", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"", "highest profit refers to max(Profit)", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))"]}} {"set": {"query": "How many orders has Aimee Bixby made?", "pos": ["Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';"], "neg": ["name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "office supply refers to Category = 'Office Supplies'", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;"]}} {"set": {"query": "How many orders were made by customers who live in Texas at the Central superstore?", "pos": ["customer live in Texas refers to State = 'Texas'"], "neg": ["ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "Bush Mission Pointe Library' is the \"Product Name\";", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "name of the product refers to \"Product Name\"", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000"]}} {"set": {"query": "What is the name of the product that has the highest original price?", "pos": ["has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\""], "neg": ["Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "name of the product refers to \"Product Name\"", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\""]}} {"set": {"query": "Which order of Logitech G600 MMO Gaming Mouse has the highest total cost?", "pos": ["Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))"], "neg": ["slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\""]}} {"set": {"query": "List down the customers that purchased the product named Xerox 23 in the South region.", "pos": ["product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\""], "neg": ["on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "product refers to \"Product Name\"", "Who refers to \"Customer Name\"", "made the highest sales refers to MAX(Sales)", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)"]}} {"set": {"query": "List the products that were ordered by Anne McFarland from the Western store.", "pos": ["Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\""], "neg": ["shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana'))", "name of the product refers to \"Product Name\"", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "Who refers to \"Customer Name\"", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';"]}} {"set": {"query": "Who ordered the order ID CA-2011-118976 from the East region?", "pos": ["Who refers to \"Customer Name\""], "neg": ["Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\""]}} {"set": {"query": "State the highest profit made by Anna Chung's orders in the Central Superstore.", "pos": ["highest profit refers to max(Profit)"], "neg": ["product refers to \"Product Name\"", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\""]}} {"set": {"query": "List the name of all the products with order quantities greater than or equal to 10 in the central superstore that has been shipped by the slowest delivery method.", "pos": ["name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'"], "neg": ["in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "names of the products refers to \"Product Name\";\u00a0 profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"", "name of the product refers to \"Product Name\""]}} {"set": {"query": "List the products ordered by customers in Coachella.", "pos": ["in Coachella refers to City = 'Coachella'; products refers to \"Product Name\""], "neg": ["Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3"]}} {"set": {"query": "Calculate the difference between the total sales in the East superstore and the total sales in the West superstore.", "pos": ["East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')"], "neg": ["name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "office supply refers to Category = 'Office Supplies'", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\""]}} {"set": {"query": "What are the total sales of the accumulated orders of Hon Valutask Swivel Chairs in the West region?", "pos": ["'Hon Valutask Swivel Chairs' is the \"Product Name\""], "neg": ["\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "Who refers to \"Customer Name\"", "Bush Mission Pointe Library' is the \"Product Name\";", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "customer live in Texas refers to State = 'Texas'", "highest profit refers to max(Profit)", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3"]}} {"set": {"query": "What is the total profit of \"Memorex Froggy Flash Drive 8 GB in south superstore?", "pos": ["\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\""], "neg": ["furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Patrick Gardner is the \"Customer Name\"; Region = 'Central'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "Who refers to \"Customer Name\"", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "customer live in Texas refers to State = 'Texas'", "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'"]}} {"set": {"query": "Who was the customer in the South Region superstore who bought the most \u201cHon Multipurpose Stacking Arm Chairs\"?", "pos": ["customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";"], "neg": ["furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "highest profit refers to max(Profit)", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\""]}} {"set": {"query": "How many orders of O'Sullivan Plantations 2-Door Library in Landvery Oak in central superstore were shipped through the shipping mode with the fastest delivery speed?", "pos": ["'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'"], "neg": ["name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "name of the product refers to \"Product Name\"", "Who refers to \"Customer Name\"", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "Region = 'West'", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore"]}} {"set": {"query": "What is the name of the product that Aimee Bixby bought?", "pos": ["name of the product refers to \"Product Name\""], "neg": ["in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'", "furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'"]}} {"set": {"query": "List the name of all products in the west superstore that customers chose for same-day shipment in the year 2013.", "pos": ["name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'"], "neg": ["Frank Olsen' is the \"Customer Name\"; Region = 'South'", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "customer live in Texas refers to State = 'Texas'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "Region = 'West'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "office supply refers to Category = 'Office Supplies'"]}} {"set": {"query": "Among the orders in Central superstore, which art product were ordered the most?", "pos": ["art product refers to Sub-Category = 'Art'; the most refers to max(order_number)"], "neg": ["furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "customer live in Texas refers to State = 'Texas'", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "Frank Olsen' is the \"Customer Name\"; Region = 'South'"]}} {"set": {"query": "Add the total profit of Patrick Gardner in the Central region.", "pos": ["Patrick Gardner is the \"Customer Name\"; Region = 'Central'"], "neg": ["slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "Region = 'West'", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "highest profit refers to max(Profit)", "live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana'))"]}} {"set": {"query": "What product was ordered in the Central region on April 26, 2018, and shipped by April 27, 2018?", "pos": ["on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');"], "neg": ["Who refers to \"Customer Name\"", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "highest profit refers to MAX(profit); Region = 'East'", "made the highest sales refers to MAX(Sales)"]}} {"set": {"query": "List the products ordered by Becky Martin around the Central region.", "pos": ["ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\""], "neg": ["Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "Bush Mission Pointe Library' is the \"Product Name\";", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "'Hon Valutask Swivel Chairs' is the \"Product Name\""]}} {"set": {"query": "Who ordered the Bush Mission Pointe Library in the Central Region?", "pos": ["Bush Mission Pointe Library' is the \"Product Name\";"], "neg": ["customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"", "Patrick Gardner is the \"Customer Name\"; Region = 'Central'", "made the highest sales refers to MAX(Sales)", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Region = 'West'", "Who refers to \"Customer Name\"", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3"]}} {"set": {"query": "Which product did Phillina Ober buy?", "pos": ["product refers to \"Product Name\""], "neg": ["Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "caused a loss to the company refers to Profit < 0", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "highest profit refers to max(Profit)", "Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)"]}} {"set": {"query": "Who is the customer from the East region that purchased the order with the highest profit?", "pos": ["highest profit refers to MAX(profit); Region = 'East'"], "neg": ["\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "caused a loss to the company refers to Profit < 0", "made the highest sales refers to MAX(Sales)", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';"]}} {"set": {"query": "What was the total cost of Xerox 1952 ordered by Aimee Bixby on 2014/9/10?", "pos": ["Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)"], "neg": ["highest profit refers to MAX(profit); Region = 'East'", "name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "name of the product refers to \"Product Name\"", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000", "Who refers to \"Customer Name\"", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'"]}} {"set": {"query": "How many customers in Chicago ordered at least 10 Cardinal EasyOpen D-Ring Binders in a single order?", "pos": ["at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'"], "neg": ["furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "office supply refers to Category = 'Office Supplies'", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "Patrick Gardner is the \"Customer Name\"; Region = 'Central'", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "in Coachella refers to City = 'Coachella'; products refers to \"Product Name\"", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana'))"]}} {"set": {"query": "Please list any three orders that caused a loss to the company.", "pos": ["caused a loss to the company refers to Profit < 0"], "neg": ["Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "Hon Pagoda Stacking Chairs' is the \"Product Name\"; west superstore refers to Region = 'West'", "Bush Mission Pointe Library' is the \"Product Name\";", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "Who refers to \"Customer Name\"", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';"]}} {"set": {"query": "What are the names of the products that were ordered by Alejandro Grove?", "pos": ["ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\""], "neg": ["name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "highest profit refers to max(Profit)", "name of the product refers to \"Product Name\"", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "product refers to \"Product Name\"", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)"]}} {"set": {"query": "Indicate the profit of product Sauder Camden County Barrister Bookcase, Planked Cherry Finish.", "pos": ["Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\""], "neg": ["slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "name of the product refers to \"Product Name\"", "Patrick Gardner is the \"Customer Name\"; Region = 'Central'", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)"]}} {"set": {"query": "Please give the name of customers from the West region that bought exactly 8 items in their purchase.", "pos": ["name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8"], "neg": ["names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "customer live in Texas refers to State = 'Texas'", "Region = 'West'", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "Who refers to \"Customer Name\"", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "caused a loss to the company refers to Profit < 0"]}} {"set": {"query": "How many office supply orders were made by Cindy Stewart in the south superstore?", "pos": ["office supply refers to Category = 'Office Supplies'"], "neg": ["ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "highest profit refers to max(Profit)", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'"]}} {"set": {"query": "Among the customers from Indiana, what is the percentage of their purchased orders in the Central region with no discount?", "pos": ["Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage"], "neg": ["highest profit refers to max(Profit)", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "name of the product refers to \"Product Name\"", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\""]}} {"set": {"query": "What is the total quantity that Cindy Stewart order \"Lexmark X 9575 Professional All-in-One Color Printer\" in the south superstore?", "pos": ["Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\""], "neg": ["shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "name of all products refers to Product Name; same-day shipment refers to \"Ship Mode\" = 'Same Day'; year 2013 refers to \"Ship Date\" BETWEEN '2013-01-01' AND '2013-12-31'", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'"]}} {"set": {"query": "Please list the names of all the products ordered in order CA-2011-112326 in superstores in the center.", "pos": ["names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';"], "neg": ["ordered by Becky Martin refers to \"Customer Name\" = 'Becky Martin'; Region = 'Central'; products refers to \"Product Name\"", "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')", "\"Telescoping Adjustable Floor Lamp\" is a \"Product Name\"; consumers refers to Segment = 'Consumer';", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8"]}} {"set": {"query": "Among the orders with sales value of no less than 5,000 in west superstore, how many were bought by the customers in California?", "pos": ["customers in California refers to State = 'California'; orders with sales value of no less than 5,000 refers to Sales > = 5,000"], "neg": ["furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "customer live in Texas refers to State = 'Texas'", "furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "caused a loss to the company refers to Profit < 0", "Who refers to \"Customer Name\"", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'"]}} {"set": {"query": "Calculate the total cost of the orders by Brad Thomas in 2016.", "pos": ["Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))"], "neg": ["Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "highest profit refers to MAX(profit); Region = 'East'", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "Region = 'West'", "office supplies products refers to Category = 'Office Supplies'; central refers to Region = 'Central'; south superstore refers to Region = 'South'; percentage = divide(SUM(Product ID where Category = 'Office Supplies'), count(Product ID)) * 100 where Region = 'Central' OR Region = 'South'", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "live in Texas refers to State = 'Texas'; live in Indiana refers to State = 'Indiana'; Ratio = divide(sum(State = 'Texas'), sum(State = 'Indiana'))", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"", "made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';"]}} {"set": {"query": "Provide the order ID of Frank Olsen of the South region.", "pos": ["Frank Olsen' is the \"Customer Name\"; Region = 'South'"], "neg": ["shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "name of the customers refers to Customer_Name; in 2015 refers to \"Order Date\" BETWEEN '2015-01-01' AND '2015-12-31'; more than 3 times refers to count(Order_ID) > 3", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "Ann Chong' is the \"Customer Name\"; Region = 'Central'"]}} {"set": {"query": "How many art products were ordered in 2013 in the east superstore?", "pos": ["ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'"], "neg": ["names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "furniture products refers to Category = 'Furnitures'; in the year 2016 refers to \"Order Date\" BETWEEN '2016-01-01' AND '2016-12-31'", "made the highest sales refers to MAX(Sales)", "name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8", "highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'", "highest profit refers to MAX(profit); Region = 'East'", "Brad Thomas is the \"Customer Name\"; in 2016 refers to strftime('%Y', \"Order Date\") = '2016'; total cost refers to SUM(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))"]}} {"set": {"query": "What is the shipment duration for order number CA-2011-134103?", "pos": ["shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'"], "neg": ["Patrick Gardner is the \"Customer Name\"; Region = 'Central'", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')", "furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'", "name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)"]}} {"set": {"query": "What is the order ID of the security-Tint Envelopes product ordered on June 3, 2013, in the Central region?", "pos": ["Security-Tint Envelopes' refers to \"Product Name\"; ordered on June 3, 2013 refers to \"Order Date\" = '2013-06-03'"], "neg": ["has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "Bush Mission Pointe Library' is the \"Product Name\";", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "highest profit refers to max(Profit)", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "product named Xerox 23 refers to \"Product Name\" = 'Xerox 23'; customers refers to \"Customer Name\"", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "name of the product refers to \"Product Name\""]}} {"set": {"query": "How many orders were made by Maxwell Schwartz in 2015?", "pos": ["Maxwell Schwartz' is the \"Customer Name\"; in 2015 refers to strftime('%Y', \"Order Date\") = '2015';"], "neg": ["name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "Plantronics Single Ear Headset' is the \"Product Name\"; name refers to \"Customer Name\";", "Frank Olsen' is the \"Customer Name\"; Region = 'South'", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "name of all products refers to Product Name; Cindy Stewart is the Customer Name;", "name of the product refers to \"Product Name\"", "furniture refers to Category = 'Furniture'; shipped through first class in 2013 refers to ship mode = 'first class' and \"Ship Date\" = '2013%'; percentage = divide(sum(Order ID) when Category = 'Furniture' and \"Ship Date\" = '2013%', sum(Order ID)) as percentage", "Who refers to \"Customer Name\""]}} {"set": {"query": "Who is the customer with an order shipped on March 5, 2013, in the eastern region?", "pos": ["Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'"], "neg": ["highest profit refers to max(Profit); Houston, Texas refers to City = 'Houston' and State = 'Texas'", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "Patrick Gardner is the \"Customer Name\"; Region = 'Central'", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10'); total cost refers to SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit)", "art product refers to Sub-Category = 'Art'; the most refers to max(order_number)", "names of the products refers to \"Product Name\";\u00a0 profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)", "highest profit refers to MAX(profit); Region = 'East'", "customer live in Texas refers to State = 'Texas'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore"]}} {"set": {"query": "Among the orders made by Aimee Bixby, how many of them included at least one kind of product under the category \"Furniture\"?", "pos": ["made by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby';"], "neg": ["Logitech G600 MMO Gaming Mouse refers to \"Product Name\"; highest total cost refers to MAX(SUTRACT(MULTIPLY(DIVIDE(Sales, SUTRACT(1, discount)), Quantity), Profit))", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "customer refers to \"Customer Name\"; \u201cHon Multipurpose Stacking Arm Chairs\" is the \"Product Name\";", "sales greater than the 88% of the average sales of all orders refers to Sales > avg(Sales) * 0.88; South region refers to south_superstore", "shipment duration = subtract(\"Ship Date\", \"Order Date\"); order number CA-2011-134103 refers to \"Order ID\" = 'CA-2011-134103'", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\"", "Ann Chong' is the \"Customer Name\"; Region = 'Central'", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "name of the product refers to \"Product Name\""]}} {"set": {"query": "Calculate the total profit by Cisco SPA301 for all regions.", "pos": ["Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore"], "neg": ["'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "caused a loss to the company refers to Profit < 0", "Xerox 1952 is a \"Product Name\"; ordered by Aimee Bixby refers to \"Customer Name\" = 'Aimee Bixby'; on 2014/9/10 refers to \"Order Date\" = date('2014-09-10');", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "office supply refers to Category = 'Office Supplies'", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "received the highest discount refers to MAX(discount); customer refers to \"Customer Name\"", "orders from 2016 refers to \"Order Date\" = '2016%'; product refers to \"Product Name\"; lowest profit refers to min(Profit)", "Who is the customer refers to Customer Name; shipped on March 5, 2013 refers to \"Ship Date\" = '2013-03-05'; eastern region refers to Region = 'East'"]}} {"set": {"query": "How many furniture products had been shipped by standard class in the East superstore?", "pos": ["furniture products refers to Category = 'Furniture'; shipped by standard class refers to \"Ship Mode\" = 'Standard Class'"], "neg": ["name of customers refers to \"Customer Name\"; bought exactly 8 items refers to Quantity = 8", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage", "'O'Sullivan Cherrywood Estates Traditional Bookcase' is the \"Product Name\"; shipping mode with the fastest delivery speed refers to \"Ship Mode\" = 'First Class'", "product refers to \"Product Name\"", "East superstore refers to Region = 'East'; West superstore refers to Region = 'West'; difference = subtract(sum(Sales) when Region = 'East', sum(Sales) when Region = 'West')", "on April 26, 2018 refers to \"Order Date\" = date('2018-04-26'); shipped by April 27, 2018 refers to \"Ship Date\" = date('2018-04-27');", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "caused a loss to the company refers to Profit < 0", "Anne McFarland' is the \"Customer Name\"; Western store refers to west_superstore; products refers to \"Product Name\"", "ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\""]}} {"set": {"query": "Provide the names of the products with a profit greater than 98% of the average profit of all products in the East region.", "pos": ["names of the products refers to \"Product Name\";\u00a0 profit greater than 98% of the average profit refers to Profit > MULTIPLY(AVG(Profit), 0.98)"], "neg": ["has the highest original price refers to MAX(DIVIDE(Sales, SUTRACT(1, discount))); name of the product refers to \"Product Name\"", "\"Telescoping Adjustable Floor Lamp\" is a product name; names of all the customers refers to \"Customer Name\"", "shipped on 3/25/2015 refers to \"Ship Date\" = Date('2015-03-25');", "Lexmark X 9575 Professional All-in-One Color Printer' is the \"Product Name\"", "name of all the products refers to Product Name; order quantities greater than or equal to 10 refers to COUNT(\"Order ID\") > = 10; slowest delivery refers to \"Ship Mode\" = 'Standard Class'", "Cisco SPA301' is the \"Product Name\"; all regions refers to central_superstore, south_superstore, west_superstore, east_superstore", "office supply refers to Category = 'Office Supplies'", "ordered in 2013 refers to strftime('%Y', \"Order Date\") = '2013'; art products refers to \"Sub-Category\" = 'Art'", "names of all the products refers to \"Product Name\"; order CA-2011-112326 refers to \"Order ID\" = 'CA-2011-112326'; in the center refers to Region = 'Central';", "Indiana refers to State = 'Indiana'; no discount refers to Discount = 0; percentage = divide(sum(Discount) when Discount = 0, count(Discount)) as percentage"]}} {"set": {"query": "Among the products under the office supplies category, what is the product that made the highest sales in the Central region?", "pos": ["made the highest sales refers to MAX(Sales)"], "neg": ["ordered by Alejandro Grove refers to \"Customer Name\" = 'Alejandro Grove'; names of the products refers to \"Product Name\"", "at least 10 goods refers to Quantity > = 14; Cardinal EasyOpen D-Ring Binders refers to \"Product Name\"; customers in Chicago refers to City = 'Chicago'", "Region = 'West'", "customer live in Texas refers to State = 'Texas'", "slowest shipping speed refers to \"Ship Mode\" = 'Standard Class'", "Sauder Camden County Barrister Bookcase, Planked Cherry Finish' refers to \"Product Name\"", "names of the products refers to Product Name; shipped in March 2013 refers to \"Ship Date\" = '2013-03%'", "Aimee Bixby made refers to \"Customer Name\" = 'Aimee Bixby';", "'Hon Valutask Swivel Chairs' is the \"Product Name\"", "\"Memorix Froggy Flash Drive 8 GB\" is the \"Product Name\""]}} {"set": {"query": "Among the patients who have been using Penicillin V Potassium 250 MG, what percentage of patients are female?", "pos": ["Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';"], "neg": ["care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "Ibuprofen 200mg Oral Tablet refers to DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' from medications; started in 2016 refers to START like '2016%'; Dominican patients refer to ethnicity = 'dominican'; stopped taking the medicine after exactly one month refers to SUBTRACT(strftime('%m', STOP), strftime('%m', START)) = 1;", "expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "procedures refer to DESCRIPTION from procedures;", "medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';"]}} {"set": {"query": "Among the patients with viral sinusitis condition, which patient's gender is most affected? Provide the number for each respectively.", "pos": ["viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));"], "neg": ["social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';", "how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;", "body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "description of medication refers to medications.DESCRIPTION;", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "on 2009/8/9 refers to DATE = '2009-08-09';", "cystitis refers to conditions where DESCRIPTION = 'Cystitis';"]}} {"set": {"query": "What is the most common condition among the patients who received influenza seasonal injectable preservative free immunization?", "pos": ["the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;"], "neg": ["on 2009/8/9 refers to DATE = '2009-08-09';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "start of the care plan refers to careplans.START; alive patients refers to deathdate is null;", "difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';", "conditions refer to DESCRIPTION from conditions;"]}} {"set": {"query": "Calculate the number of female patients who accepted \"HPV quadrivalent\" immunization.", "pos": ["female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';"], "neg": ["kind of condition refers to DESCRIPTION from conditions;\u00a0from 2016/9/24 to 2016/10/10 refers to START = '2016-09-24' and STOP = '2016-10-10';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "procedures refer to DESCRIPTION from procedures;", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "conditions refer to DESCRIPTION from conditions;", "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;"]}} {"set": {"query": "Please provide the dates on which Elly Koss was immunized with the influenza seasonal injectable preservative-free vaccine.", "pos": ["date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';"], "neg": ["social security number refers to ssn; ssn = '999-15-3685';", "kind of condition refers to DESCRIPTION from conditions;\u00a0from 2016/9/24 to 2016/10/10 refers to START = '2016-09-24' and STOP = '2016-10-10';", "social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;"]}} {"set": {"query": "Give the number of claims did Ms. Abbie Cole have in the year of 2011.", "pos": ["in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';"], "neg": ["reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';", "how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;", "allergies refer to PATIENT from allergies;", "body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';", "full name refers to first, last; Yaz 28 Day Pack refers to DESCRIPTION = 'Yaz 28 Day Pack' from medications; started taking in 2011 refers to START like '2011%';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';"]}} {"set": {"query": "List down the first name of patients who encountered normal pregnancy.", "pos": ["encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';"], "neg": ["description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "start of the care plan refers to careplans.START; alive patients refers to deathdate is null;", "body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';", "cystitis refers to conditions where DESCRIPTION = 'Cystitis';", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "Italian patients refers to ethnicity = 'italian';"]}} {"set": {"query": "From 1/9/2011 to 8/29/2012, how many German patients have their outpatient encounters?", "pos": ["From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';"], "neg": ["drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';", "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';"]}} {"set": {"query": "Calculate the average period of Mr. Wesley Lemke's care plans.", "pos": ["DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));"], "neg": ["Ibuprofen 200mg Oral Tablet refers to DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' from medications; started in 2016 refers to START like '2016%'; Dominican patients refer to ethnicity = 'dominican'; stopped taking the medicine after exactly one month refers to SUBTRACT(strftime('%m', STOP), strftime('%m', START)) = 1;", "percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;"]}} {"set": {"query": "State the average period of Ms. Angelena Kertzmann's several normal pregnancies.", "pos": ["DIVIDE(SUBTRACT(stop time - start time), COUNT(DESCRIPTION = 'Normal pregnancy')));"], "neg": ["black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "allergic to peanuts refers to allergies.DESCRIPTION = 'Allergy to peanuts'; asthma refers to conditions.DESCRIPTION = 'Asthma';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';"]}} {"set": {"query": "Calculate the percentage of male patients with viral sinusitis condition.", "pos": ["percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';"], "neg": ["immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;", "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;"]}} {"set": {"query": "List out patient names with calcium deficiency.", "pos": ["patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;"], "neg": ["stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n"]}} {"set": {"query": "What was the condition of Elly Koss on 2009/1/8?", "pos": ["condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';"], "neg": ["expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "start of the care plan refers to careplans.START; alive patients refers to deathdate is null;", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';"]}} {"set": {"query": "How many mothers have taken immunization during prenatal visit?", "pos": ["expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';"], "neg": ["full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';", "full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "medication that are prescribed refers to DESCRIPTION from medications;", "allergies refer to PATIENT from allergies;", "the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';"]}} {"set": {"query": "In 2009, who among the married patients had undergone a care plan for more than 60 days?", "pos": ["in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;"], "neg": ["time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "procedure refers to procedures.DESCRIPTION; medicine prescribed refers to medications.DESCRIPTION; drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose';", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n"]}} {"set": {"query": "Why did Elly Koss need to take Acetaminophen?", "pos": ["why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;"], "neg": ["female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "description of medication refers to medications.DESCRIPTION;", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "conditions refer to DESCRIPTION from conditions;", "difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';", "start date of the care plan refers to careplans.START;", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';"]}} {"set": {"query": "What is the glucose level of the patient that lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US?", "pos": ["glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';"], "neg": ["reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "allergies refer to PATIENT from allergies;", "when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "full name refers to first, last; Yaz 28 Day Pack refers to DESCRIPTION = 'Yaz 28 Day Pack' from medications; started taking in 2011 refers to START like '2011%';", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;"]}} {"set": {"query": "What is the social security number and address of the patient who encountered viral sinusitis symptoms on 6/13/2008?", "pos": ["social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';", "difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));"]}} {"set": {"query": "What kind of condition did Keven Kuhn have from 2016/9/24 to 2016/10/10? Describe the condition.", "pos": ["kind of condition refers to DESCRIPTION from conditions;\u00a0from 2016/9/24 to 2016/10/10 refers to START = '2016-09-24' and STOP = '2016-10-10';"], "neg": ["reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);", "body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';", "the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "cystitis refers to conditions where DESCRIPTION = 'Cystitis';"]}} {"set": {"query": "List out the procedure and medicine prescribed for drug overdose patients.", "pos": ["procedure refers to procedures.DESCRIPTION; medicine prescribed refers to medications.DESCRIPTION; drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose';"], "neg": ["allergies refer to PATIENT from allergies;", "medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;"]}} {"set": {"query": "How many allergies does Mrs. Saundra Monahan have?", "pos": ["allergies refer to PATIENT from allergies;"], "neg": ["SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "procedure refers to procedures.DESCRIPTION; medicine prescribed refers to medications.DESCRIPTION; drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose';", "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';"]}} {"set": {"query": "For how long did Elly Koss's cystitis last?", "pos": ["SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';"], "neg": ["\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';", "body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';"]}} {"set": {"query": "What is the difference between the number of married patients and the number of single patients with diabetes?", "pos": ["difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';"], "neg": ["cystitis refers to conditions where DESCRIPTION = 'Cystitis';", "allergic to peanuts refers to allergies.DESCRIPTION = 'Allergy to peanuts'; asthma refers to conditions.DESCRIPTION = 'Asthma';", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); his first emergency room admission refers to MIN(encounters.DATE); drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose' ;", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';", "medication that are prescribed refers to DESCRIPTION from medications;", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;", "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;\u00a0 in July 2009 refers to\u00a0 substr(encounters.DATE, 1, 7) = '2009-07' ;"]}} {"set": {"query": "Among the patients that died, what is the condition of the oldest patient?", "pos": ["if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));"], "neg": ["start date of the care plan refers to careplans.START;", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;", "body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "social security number refers to ssn; ssn = '999-15-3685';", "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';"]}} {"set": {"query": "How old was Mr. Stacy Morar at the time of his first emergency room admission due to a drug overdose?", "pos": ["how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); his first emergency room admission refers to MIN(encounters.DATE); drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose' ;"], "neg": ["start of the care plan refers to careplans.START; alive patients refers to deathdate is null;", "how long = SUBTRACT(medications.STOP, medications.START); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG'; acute bronchitis refers to medications.REASONDESCRIPTION = 'Acute bronchitis (disorder)';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "on 2009/8/9 refers to DATE = '2009-08-09';", "Italian patients refers to ethnicity = 'italian';", "description of medication refers to medications.DESCRIPTION;", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;"]}} {"set": {"query": "How many patients sought medical attention due to a second-degree burn? Describe the care plan recommended to them.", "pos": ["second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;"], "neg": ["procedure refers to procedures.DESCRIPTION; medicine prescribed refers to medications.DESCRIPTION; drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose';", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "allergies refer to PATIENT from allergies;", "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;\u00a0 in July 2009 refers to\u00a0 substr(encounters.DATE, 1, 7) = '2009-07' ;", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';"]}} {"set": {"query": "List down the first name of patients who received \"Influenza seasonal injectable preservative free\" immunization.", "pos": ["\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';"], "neg": ["DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);", "patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';", "medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';", "full name refers to first, last; Yaz 28 Day Pack refers to DESCRIPTION = 'Yaz 28 Day Pack' from medications; started taking in 2011 refers to START like '2011%';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';"]}} {"set": {"query": "How many patients with 'allergy to eggs' have been immunized with 'Td (adult) preservative free'?", "pos": ["allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';"], "neg": ["full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;\u00a0 in July 2009 refers to\u00a0 substr(encounters.DATE, 1, 7) = '2009-07' ;", "description of medication refers to medications.DESCRIPTION;", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "start date of the care plan refers to careplans.START;", "full name refers to first, last; have 3 different allergies refer to allergies where COUNT(DESCRIPTION) > 3;", "Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';"]}} {"set": {"query": "When did Mrs. Joye Homenick receive her most recent influenza seasonal vaccine?", "pos": ["when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';"], "neg": ["procedure refers to procedures.DESCRIPTION; medicine prescribed refers to medications.DESCRIPTION; drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "social security number refers to ssn; ssn = '999-15-3685';", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;"]}} {"set": {"query": "How long was Mr. Major D'Amore prescribed with Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]?", "pos": ["how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';"], "neg": ["condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "full name refers to first, last; Yaz 28 Day Pack refers to DESCRIPTION = 'Yaz 28 Day Pack' from medications; started taking in 2011 refers to START like '2011%';", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';"]}} {"set": {"query": "Give me the reason, name of the drug, and duration of medication under encounter ID 23c293ec-dbae-4a22-896e-f12cf3c8bac3. Tell me if the patient is still alive.", "pos": ["reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;"], "neg": ["condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;", "social security number refers to ssn; ssn = '999-15-3685';", "social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';", "unmarried refers to marital = 'S'; women refers to gender = 'F'; normal pregnancy refers to conditions.DESCRIPTION = 'normal pregnancy';"]}} {"set": {"query": "According to all the observations of Elly Koss, what was her average weight?", "pos": ["DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';"], "neg": ["patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "allergies refer to PATIENT from allergies;", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';", "full names = first, last; nut allergy refers to allergies.DESCRIPTION = 'Allergy to nut';"]}} {"set": {"query": "List down the full name of Irish patients diagnosed with the prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions.", "pos": ["full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));"], "neg": ["condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';", "in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';", "procedures refer to DESCRIPTION from procedures;"]}} {"set": {"query": "Among all patients who sought medical attention in 2010 due to contact dermatitis, identify the percentage of females.", "pos": ["in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';"], "neg": ["allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';", "how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;"]}} {"set": {"query": "State the description of the reason why Angelo Buckridge needs the care plan.", "pos": ["description of the reason of the care plan refers to careplans.REASONDESCRIPTION;"], "neg": ["car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';", "patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';", "how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';", "DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;", "unmarried refers to marital = 'S'; women refers to gender = 'F'; normal pregnancy refers to conditions.DESCRIPTION = 'normal pregnancy';"]}} {"set": {"query": "How many patients with shellfish allergies died when they were under 12 years old? Please give their full names.", "pos": ["shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;"], "neg": ["the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "on 2009/8/9 refers to DATE = '2009-08-09';", "glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';", "DIVIDE(SUBTRACT(stop time - start time), COUNT(DESCRIPTION = 'Normal pregnancy')));", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;", "patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;"]}} {"set": {"query": "List down the encounter descriptions of patients who were born in Pittsfield MA US.", "pos": ["born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';"], "neg": ["black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "allergies refer to PATIENT from allergies;", "social security number refers to ssn; ssn = '999-15-3685';", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "Italian patients refers to ethnicity = 'italian';", "female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';"]}} {"set": {"query": "List out 5 most common conditions for underweight patient.", "pos": ["most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');"], "neg": ["description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "how long = SUBTRACT(medications.STOP, medications.START); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG'; acute bronchitis refers to medications.REASONDESCRIPTION = 'Acute bronchitis (disorder)';", "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;\u00a0 in July 2009 refers to\u00a0 substr(encounters.DATE, 1, 7) = '2009-07' ;", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "medication that are prescribed refers to DESCRIPTION from medications;", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;"]}} {"set": {"query": "Provide medications received by patients with an allergy to mould on 6th June 2016.", "pos": ["medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';"], "neg": ["immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';", "body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;", "allergies refer to PATIENT from allergies;", "DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;", "car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "medication that are prescribed refers to DESCRIPTION from medications;"]}} {"set": {"query": "What is the most common condition among the female Americans?", "pos": ["the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';"], "neg": ["body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';", "male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';", "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "allergic to peanuts refers to allergies.DESCRIPTION = 'Allergy to peanuts'; asthma refers to conditions.DESCRIPTION = 'Asthma';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "start of the care plan refers to careplans.START; alive patients refers to deathdate is null;", "medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';"]}} {"set": {"query": "What is the start date of the care plan of the patient whose maiden name is Adams?", "pos": ["start date of the care plan refers to careplans.START;"], "neg": ["procedures refer to DESCRIPTION from procedures;", "reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';", "cystitis refers to conditions where DESCRIPTION = 'Cystitis';", "medication that are prescribed refers to DESCRIPTION from medications;", "percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); his first emergency room admission refers to MIN(encounters.DATE); drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose' ;", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;"]}} {"set": {"query": "Give me the immunization codes and dates on which Ms. Jacquelyn Shanahan was immunized with influenza seasonal injectable preservative-free vaccine.", "pos": ["immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;"], "neg": ["female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';"]}} {"set": {"query": "Give the body height status of Mr. Vincent Wyman on 2010/8/2.", "pos": ["body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';"], "neg": ["female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;", "body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';", "the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;", "full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "allergic to peanuts refers to allergies.DESCRIPTION = 'Allergy to peanuts'; asthma refers to conditions.DESCRIPTION = 'Asthma';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';"]}} {"set": {"query": "How many patients with a body weight of more than 100 kg have a 'diabetes self-management plan' care plan?", "pos": ["body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';"], "neg": ["cystitis refers to conditions where DESCRIPTION = 'Cystitis';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';", "full names = first, last; nut allergy refers to allergies.DESCRIPTION = 'Allergy to nut';", "in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';"]}} {"set": {"query": "How many patients who are allergic to peanuts have asthma?", "pos": ["allergic to peanuts refers to allergies.DESCRIPTION = 'Allergy to peanuts'; asthma refers to conditions.DESCRIPTION = 'Asthma';"], "neg": ["Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';", "DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';", "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';"]}} {"set": {"query": "List out the stop date of the care plan of dead patients.", "pos": ["stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;"], "neg": ["between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "allergic to peanuts refers to allergies.DESCRIPTION = 'Allergy to peanuts'; asthma refers to conditions.DESCRIPTION = 'Asthma';", "medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';", "full name refers to first, last; have 3 different allergies refer to allergies where COUNT(DESCRIPTION) > 3;", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "how long = SUBTRACT(medications.STOP, medications.START); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG'; acute bronchitis refers to medications.REASONDESCRIPTION = 'Acute bronchitis (disorder)';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';"]}} {"set": {"query": "Why did Mrs. Annabelle Pouros take leucovorin 100 mg injection on 1970/12/19? State the reason.", "pos": ["reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';"], "neg": ["SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); his first emergency room admission refers to MIN(encounters.DATE); drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose' ;", "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;\u00a0 in July 2009 refers to\u00a0 substr(encounters.DATE, 1, 7) = '2009-07' ;"]}} {"set": {"query": "Indicate the patient's full name with the lowest body mass index in kg/m2.", "pos": ["full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';"], "neg": ["\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "on 2009/8/9 refers to DATE = '2009-08-09';", "percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;", "reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';", "procedures refer to DESCRIPTION from procedures;", "full names = first, last; nut allergy refers to allergies.DESCRIPTION = 'Allergy to nut';", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "DIVIDE(SUBTRACT(stop time - start time), COUNT(DESCRIPTION = 'Normal pregnancy')));"]}} {"set": {"query": "Provide the body weight of Elly Koss in every observation.", "pos": ["body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;"], "neg": ["female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;", "when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "unmarried refers to marital = 'S'; women refers to gender = 'F'; normal pregnancy refers to conditions.DESCRIPTION = 'normal pregnancy';"]}} {"set": {"query": "What are the full names of the patients who started taking Yaz 28 Day Pack in 2011?", "pos": ["full name refers to first, last; Yaz 28 Day Pack refers to DESCRIPTION = 'Yaz 28 Day Pack' from medications; started taking in 2011 refers to START like '2011%';"], "neg": ["immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "social security number refers to ssn; ssn = '999-15-3685';", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "start date of the care plan refers to careplans.START;", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));"]}} {"set": {"query": "What is the percentage of the most common conditions for patients age 60 and above?", "pos": ["most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);"], "neg": ["when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;", "car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "medication that are prescribed refers to DESCRIPTION from medications;", "cystitis refers to conditions where DESCRIPTION = 'Cystitis';"]}} {"set": {"query": "Calculate the average age of patients with prediabetes care plan.", "pos": ["SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;"], "neg": ["patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "full names = first, last; nut allergy refers to allergies.DESCRIPTION = 'Allergy to nut';", "expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "start date of the care plan refers to careplans.START;", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';"]}} {"set": {"query": "Give the procedure description of Ms. Jacquelyn Shanahan on 2009/8/9.", "pos": ["on 2009/8/9 refers to DATE = '2009-08-09';"], "neg": ["body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "Ibuprofen 200mg Oral Tablet refers to DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' from medications; started in 2016 refers to START like '2016%'; Dominican patients refer to ethnicity = 'dominican'; stopped taking the medicine after exactly one month refers to SUBTRACT(strftime('%m', STOP), strftime('%m', START)) = 1;", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "start date of the care plan refers to careplans.START;"]}} {"set": {"query": "Please include the full name of the patient who received a lung transplant.", "pos": ["full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';"], "neg": ["full name refers to first, last; have 3 different allergies refer to allergies where COUNT(DESCRIPTION) > 3;", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "Ibuprofen 200mg Oral Tablet refers to DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' from medications; started in 2016 refers to START like '2016%'; Dominican patients refer to ethnicity = 'dominican'; stopped taking the medicine after exactly one month refers to SUBTRACT(strftime('%m', STOP), strftime('%m', START)) = 1;", "conditions refer to DESCRIPTION from conditions;", "body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';", "on 2009/8/9 refers to DATE = '2009-08-09';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;", "glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';"]}} {"set": {"query": "What is the medicine prescribed for the patient with social security number 999-94-3751?", "pos": ["medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';"], "neg": ["social security number refers to ssn; ssn = '999-15-3685';", "social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "conditions refer to DESCRIPTION from conditions;"]}} {"set": {"query": "What condition forced Mrs. Joye Homenick to seek medical attention in 2017?", "pos": ["condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "Italian patients refers to ethnicity = 'italian';", "cystitis refers to conditions where DESCRIPTION = 'Cystitis';", "Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';", "procedure refers to procedures.DESCRIPTION; medicine prescribed refers to medications.DESCRIPTION; drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose';", "conditions refer to DESCRIPTION from conditions;", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';"]}} {"set": {"query": "What is the percentage of female patients who started the care plan in 2010?", "pos": ["female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);"], "neg": ["medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';", "male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';"]}} {"set": {"query": "List out the start date of the care plan of alive patients.", "pos": ["start of the care plan refers to careplans.START; alive patients refers to deathdate is null;"], "neg": ["how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "full name refers to first, last; Yaz 28 Day Pack refers to DESCRIPTION = 'Yaz 28 Day Pack' from medications; started taking in 2011 refers to START like '2011%';", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "description of medication refers to medications.DESCRIPTION;", "medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';", "allergic to peanuts refers to allergies.DESCRIPTION = 'Allergy to peanuts'; asthma refers to conditions.DESCRIPTION = 'Asthma';", "DIVIDE(SUBTRACT(stop time - start time), COUNT(DESCRIPTION = 'Normal pregnancy')));", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';"]}} {"set": {"query": "How many unmarried women were checked for normal pregnancy?", "pos": ["unmarried refers to marital = 'S'; women refers to gender = 'F'; normal pregnancy refers to conditions.DESCRIPTION = 'normal pregnancy';"], "neg": ["when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';", "immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';"]}} {"set": {"query": "How long did Berry Keebler take the Acetaminophen 160 MG when he was admitted due to acute bronchitis?", "pos": ["how long = SUBTRACT(medications.STOP, medications.START); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG'; acute bronchitis refers to medications.REASONDESCRIPTION = 'Acute bronchitis (disorder)';"], "neg": ["DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';", "full name refers to first, last; have 3 different allergies refer to allergies where COUNT(DESCRIPTION) > 3;", "body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';", "when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';"]}} {"set": {"query": "Among the patients that started taking Ibuprofen 200mg Oral Tablet in 2016, how many Dominican patients stopped taking the medicine after exactly one month?", "pos": ["Ibuprofen 200mg Oral Tablet refers to DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' from medications; started in 2016 refers to START like '2016%'; Dominican patients refer to ethnicity = 'dominican'; stopped taking the medicine after exactly one month refers to SUBTRACT(strftime('%m', STOP), strftime('%m', START)) = 1;"], "neg": ["procedure refers to procedures.DESCRIPTION; medicine prescribed refers to medications.DESCRIPTION; drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "on 2009/8/9 refers to DATE = '2009-08-09';", "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';", "kind of condition refers to DESCRIPTION from conditions;\u00a0from 2016/9/24 to 2016/10/10 refers to START = '2016-09-24' and STOP = '2016-10-10';", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));"]}} {"set": {"query": "What are the medical encounter ids of patients who were born in Pembroke MA US?", "pos": ["medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';"], "neg": ["DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "procedures refer to DESCRIPTION from procedures;", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;"]}} {"set": {"query": "List down the first name of patients who have cystitis condition.", "pos": ["cystitis refers to conditions where DESCRIPTION = 'Cystitis';"], "neg": ["conditions refer to DESCRIPTION from conditions;", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "start date of the care plan refers to careplans.START;", "car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';"]}} {"set": {"query": "Among the patients with prediabetes, how many are female?", "pos": ["patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';"], "neg": ["in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';", "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';", "female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';"]}} {"set": {"query": "What is the care plan for the patient with social security number 999-15-3685?", "pos": ["social security number refers to ssn; ssn = '999-15-3685';"], "neg": ["date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "when a patient received her most recent vaccine refers to MAX(immunications.DATE); influenza seasonal vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "procedures refer to DESCRIPTION from procedures;", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';", "the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "allergies refer to PATIENT from allergies;", "difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';"]}} {"set": {"query": "How many of the patients who have stopped taking medication for 'coronary heart disease' are still alive?", "pos": ["patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;"], "neg": ["description of medication refers to medications.DESCRIPTION;", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "conditions refer to DESCRIPTION from conditions;", "reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';"]}} {"set": {"query": "Among the patients with acute bronchitis, what is the percentage of Asian women?", "pos": ["DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;"], "neg": ["body height status refers to DESCRIPTION = 'Body Height' from observations;\u00a0on 2010/8/2 refers to DATE = '2010-08-02';", "in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;", "full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));"]}} {"set": {"query": "Indicate the time frame and details of the most recent care plan suggested to Jacquelyn Shanahan.", "pos": ["time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);"], "neg": ["patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "social security number refers to ssn; encountered viral sinusitis refers to encounters.REASONDESCRIPTION = 'Viral sinusitis (disorder)'; on 6/13/2008 refers to encounters.DATE = '2008-06-13';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';", "the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';", "patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';"]}} {"set": {"query": "For how long was Elly Koss required to take Acetaminophen?", "pos": ["SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';"], "neg": ["full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';", "Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "medication that are prescribed refers to DESCRIPTION from medications;", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';", "Italian patients refers to ethnicity = 'italian';"]}} {"set": {"query": "Among all the patients who once had cystitis, what was the percentage of them being married?", "pos": ["DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n"], "neg": ["SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "medication that are prescribed refers to DESCRIPTION from medications;", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "on 2009/8/9 refers to DATE = '2009-08-09';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');"]}} {"set": {"query": "Please list all the medication that are prescribed to Elly Koss.", "pos": ["medication that are prescribed refers to DESCRIPTION from medications;"], "neg": ["immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';", "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "start of the care plan refers to careplans.START; alive patients refers to deathdate is null;", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "DIVIDE(SUBTRACT(stop time - start time), COUNT(DESCRIPTION = 'Normal pregnancy')));", "DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;"]}} {"set": {"query": "Among the patients who were immunized with meningococcal MCV4P, how many have viral sinusitis disorder after getting the immunization?", "pos": ["immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;"], "neg": ["social security number refers to ssn; ssn = '999-15-3685';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';", "body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "medication that are prescribed refers to DESCRIPTION from medications;", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;"]}} {"set": {"query": "What percentage of patients born in 'Pembroke MA US' have 'allergy to grass pollen'?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';"], "neg": ["diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';"]}} {"set": {"query": "Name the reason Walter Bahringer visited medical professionals in July 2009.", "pos": ["reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;\u00a0 in July 2009 refers to\u00a0 substr(encounters.DATE, 1, 7) = '2009-07' ;"], "neg": ["patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;", "medication that are prescribed refers to DESCRIPTION from medications;", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';"]}} {"set": {"query": "How many immunizations did the patient with the most prevalent condition that started recently get?", "pos": ["patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);"], "neg": ["encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;", "kind of condition refers to DESCRIPTION from conditions;\u00a0from 2016/9/24 to 2016/10/10 refers to START = '2016-09-24' and STOP = '2016-10-10';", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "Ibuprofen 200mg Oral Tablet refers to DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' from medications; started in 2016 refers to START like '2016%'; Dominican patients refer to ethnicity = 'dominican'; stopped taking the medicine after exactly one month refers to SUBTRACT(strftime('%m', STOP), strftime('%m', START)) = 1;", "body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;"]}} {"set": {"query": "What is the percentage of Hispanic patients who stopped their care plan in 2011?", "pos": ["Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';"], "neg": ["how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "unmarried refers to marital = 'S'; women refers to gender = 'F'; normal pregnancy refers to conditions.DESCRIPTION = 'normal pregnancy';", "in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';"]}} {"set": {"query": "What is the age of the patient with hypertension named Giovanni Russel?", "pos": ["age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';"], "neg": ["reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;", "medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';", "full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';", "conditions refer to DESCRIPTION from conditions;", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);", "full name refers to first, last; Yaz 28 Day Pack refers to DESCRIPTION = 'Yaz 28 Day Pack' from medications; started taking in 2011 refers to START like '2011%';", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';", "how long = SUBTRACT(medications.STOP, medications.START); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG'; acute bronchitis refers to medications.REASONDESCRIPTION = 'Acute bronchitis (disorder)';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;"]}} {"set": {"query": "Describe the care plans received by the patient with secondary malignant neoplasm of the colon.", "pos": ["care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';"], "neg": ["kind of condition refers to DESCRIPTION from conditions;\u00a0from 2016/9/24 to 2016/10/10 refers to START = '2016-09-24' and STOP = '2016-10-10';", "reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';", "unmarried refers to marital = 'S'; women refers to gender = 'F'; normal pregnancy refers to conditions.DESCRIPTION = 'normal pregnancy';", "full names = first, last; nut allergy refers to allergies.DESCRIPTION = 'Allergy to nut';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';", "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;\u00a0 in July 2009 refers to\u00a0 substr(encounters.DATE, 1, 7) = '2009-07' ;", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';"]}} {"set": {"query": "What is the prevalence rate of the patients' diseases started on 9th May 2014?", "pos": ["diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';"], "neg": ["reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;", "car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "Italian patients refers to ethnicity = 'italian';", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "conditions refer to DESCRIPTION from conditions;", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;"]}} {"set": {"query": "How old was Mrs. Laronda Bernier at the time of her most recent medical encounter?", "pos": ["how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);"], "neg": ["second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';"]}} {"set": {"query": "How many male patients have been described as immune to quadrivalent HPV?", "pos": ["male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';"], "neg": ["condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "how long = SUBTRACT(medications.STOP, medications.START); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG'; acute bronchitis refers to medications.REASONDESCRIPTION = 'Acute bronchitis (disorder)';", "difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';", "medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';", "medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);"]}} {"set": {"query": "How many patients have diabetes that started in 1988?", "pos": ["diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';"], "neg": ["medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);", "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';", "age refers to SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)); hypertension refers to conditions where DESCRIPTION = 'Hypertension';", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "Italian patients refers to ethnicity = 'italian';", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);"]}} {"set": {"query": "What is the total number of Asian patients who are allergic to peanuts?", "pos": ["Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n"], "neg": ["allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "female patients refers to gender = 'F'; started the care plan in 2010 refers to substr(careplans.START, 1, 4) = '2010'; percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE patients.gender = 'F'), COUNT(patients.patient) WHERE substr(careplans.START, 1, 4) = '2010'), 100);", "allergies refer to PATIENT from allergies;", "allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;", "DIVIDE(SUBTRACT(stop time - start time), COUNT(DESCRIPTION = 'Normal pregnancy')));", "on 2009/8/9 refers to DATE = '2009-08-09';"]}} {"set": {"query": "How many Italian patients have the care plan code of 304510005?", "pos": ["Italian patients refers to ethnicity = 'italian';"], "neg": ["description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');", "DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;", "immunization codes refers to immunizations.CODE; immunization dates refers to immunizations.DATE; immunized with influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free'; 4 consecutive years refers to 4 succeeding years;", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';"]}} {"set": {"query": "State the prevalence rate of condition no. 368581000119106.", "pos": ["condition no. 368581000119106 refers to conditions where CODE = '368581000119106';"], "neg": ["immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "patient names = first, last; calcium deficiency refers to observations.DESCRIPTION = 'Calcium' and observations.VALUE < 8.6;"]}} {"set": {"query": "How many male patients are diagnosed with hypertension as compared to female patients?", "pos": ["male refers to gender = 'M'; diagnosed with hypertension refers to conditions.DESCRIPTION = 'Hypertension'; female refers to gender = 'F'; number of male patients with hypertension = count(patient WHERE gender = 'M' AND conditions.DESCRIPTION = 'Hypertension'); number of female patients with hypertension = count(patient WHERE gender = 'F' AND conditions.DESCRIPTION = 'Hypertension');"], "neg": ["date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';", "From 1/9/2011 to 8/29/2012 refers to encounters.DATE between '2011-09-01' and '2012-08-29'; German patients refers to ethnicity = 'german'; outpatient encounters refers to encounters.DESCRIPTION = 'Outpatient Encounter';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "reason for visiting medical professionals refers to encounters.REASONDESCRIPTION;\u00a0 in July 2009 refers to\u00a0 substr(encounters.DATE, 1, 7) = '2009-07' ;", "the most common condition refers to MAX(COUNT(DESCRIPTION)); among the female Americans refer to PATIENT where gender = 'F' and ethnicity = 'american';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n"]}} {"set": {"query": "List out full name of patients who have \"Diabetic diet\" in the description of the care plan.", "pos": ["full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';"], "neg": ["full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';", "start of the care plan refers to careplans.START; alive patients refers to deathdate is null;", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';", "in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';", "medication that are prescribed refers to DESCRIPTION from medications;", "how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;"]}} {"set": {"query": "State description of medication taken by Joe Homenick.", "pos": ["description of medication refers to medications.DESCRIPTION;"], "neg": ["time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';", "drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';", "female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';"]}} {"set": {"query": "How many black patients stopped their care plan in 2017?", "pos": ["black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';"], "neg": ["patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "reason refers to medications.REASONDESCRIPTION; name of the drug refers to medications.DESCRIPTION; duration of medication = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); ecounter ID refers to encounters.ID; encounters.ID = '23c293ec-dbae-4a22-896e-f12cf3c8bac3'; if patients.deathdate is null then the patient is alive; if patients.deathdate is not null then the patient is not alive;", "description of the reason of the care plan refers to careplans.REASONDESCRIPTION;", "between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';", "conditions refer to DESCRIPTION from conditions;", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); his first emergency room admission refers to MIN(encounters.DATE); drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose' ;"]}} {"set": {"query": "List 5 patients' name that need medication due to streptococcal sore throat disorder.", "pos": ["patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';"], "neg": ["allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;", "full name refers to first, last; Yaz 28 Day Pack refers to DESCRIPTION = 'Yaz 28 Day Pack' from medications; started taking in 2011 refers to START like '2011%';", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;"]}} {"set": {"query": "How many patients are allergic to eggs?", "pos": ["allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;"], "neg": ["car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';", "conditions refer to DESCRIPTION from conditions;", "patients with prediabetes refer to PATIENT from conditions where DESCRIPTION = 'Prediabetes'; female refers to gender = 'F';", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "difference = SUBTRACT(patients.patient WHERE marital = 'M'), COUNT(patients.patient WHERE marital = 'S') WHERE conditions.DESCRIPTION = 'Diabetes'); married patients refers to marital = 'M'; single patients refers to marital = 'S'; diabetes refers to conditions.DESCRIPTION = 'Diabetes';", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;"]}} {"set": {"query": "How long did Isadora Moen's allergy last? Tell me what kind of allergy she has.", "pos": ["how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;"], "neg": ["description of medication refers to medications.DESCRIPTION;", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "conditions refer to DESCRIPTION from conditions;", "glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';", "female refers to gender = 'F'; \"HPV quadrivalent\" immunization refers to immunizations where DESCRIPTION = 'HPV quadrivalent';", "allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';", "in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';", "body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n"]}} {"set": {"query": "List all the full names of patients with a condition described as cystitis.", "pos": ["full names = first, last; condition described as cystitis refers to conditions.DESCRIPTION = ''Cystitis';"], "neg": ["social security number refers to ssn; ssn = '999-15-3685';", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "start date of the care plan refers to careplans.START;", "full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);"]}} {"set": {"query": "How long did Elly Koss have to take Acetaminophen 160 MG?", "pos": ["how long = SUBTRACT(julianday(medications.stop), julianday(medications.START)); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG';"], "neg": ["patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';", "male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';", "on 2009/8/9 refers to DATE = '2009-08-09';", "body weight VALUE and UNITS where DESCRIPTION = 'Body Weight' from observations;", "medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "shellfish allergies refers to allergies.DESCRIPTION = 'Shellfish allergy'; died under 12 years old = DIVIDE(SUBTRACT(julianday(patients.deathdate), julianday(patients.birthdate)), 365) < 12; full names = first, last;"]}} {"set": {"query": "What is the most common allergy among patients?", "pos": ["the most common allergy refers to MAX(COUNT(DESCRIPTION)) from allergies;"], "neg": ["medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';", "born in Pittsfield MA US refers to birthplace = 'Pittsfield MA US';", "full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';", "allergies refer to PATIENT from allergies;", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "black refers to race = 'black'; stopped their care plan in 2017 refers to substr(careplans.STOP, 1, 4) = '2017';", "DIVIDE(SUBTRACT(stop time - start time), COUNT(ID)));", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "diseases started on 9th May 2014 refer to DESCRIPTION from conditions where START = '5/9/2014';", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;"]}} {"set": {"query": "Which procedures and medications were received by the patient with the third-degree burn?", "pos": ["procedures refer to DESCRIPTION from procedures; medications refers to DESCRIPTION from medications; third-degree burn refers to conditions where DESCRIPTION = 'Third degree burn';"], "neg": ["SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION like 'Acetaminophen%';", "full name = first, last; Diabetic diet refers to careplans.DESCRIPTION = 'Diabetic diet';", "the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "Penicillin V Potassium 250 MG refers to medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'; percentage = MULTIPLY(DIVIDE(patients.patient WHERE gender = 'F'), COUNT(patients.patient) WHERE medications.DESCRIPTION = 'Penicillin V Potassium 250 MG'), 100) female refers to gender = 'F';", "percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "the most common condition refers to MAX(DESCRIPTION) from conditions; patients who received influenza seasonal injectable preservative free immunization refer to PATIENT where DESCRIPTION = 'Influenza seasonal injectable preservative free' from immunizations;", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;"]}} {"set": {"query": "What drug is administered more often to treat child attention deficit disorder?", "pos": ["drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';"], "neg": ["SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "allergic to peanuts refers to allergies.DESCRIPTION = 'Allergy to peanuts'; asthma refers to conditions.DESCRIPTION = 'Asthma';", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); his first emergency room admission refers to MIN(encounters.DATE); drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose' ;", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));", "procedure refers to procedures.DESCRIPTION; medicine prescribed refers to medications.DESCRIPTION; drug overdose refers to encounters.REASONDESCRIPTION = 'Drug overdose';", "condition refers to conditions.DESCRIPTION; in 2017 refers to substr(conditions.START, 1, 4) = '2017';"]}} {"set": {"query": "List the procedures received by Emmy Waelchi.", "pos": ["procedures refer to DESCRIPTION from procedures;"], "neg": ["\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;", "DIVIDE(SUM(VALUE), COUNT(VALUE)) WHERE DESCRIPTION = 'Body Weight';", "percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "glucose level refers to VALUE, UNITS where DESCRIPTION = 'Glucose' from observations; lives at 365 Della Crossroad Suite 202, Deerfield, MA 01342 US refers to address = '365 Della Crossroad Suite 202 Deerfield MA 01342 US';", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "SUM(MULTIPLY(365, SUBTRACT(strftime('%Y', STOP), strftime('%Y', START))), MULTIPLY(30, SUBTRACT(strftime('%m', STOP), strftime('%m', START))), SUBTRACT(strftime('%d', STOP), strftime('%d', START))) where DESCRIPTION = 'Cystitis';"]}} {"set": {"query": "During all the observations of Elly Koss, what was the highest Systolic Blood Pressure observed?", "pos": ["the highest Systolic Blood Pressure refers to MAX(DESCRIPTION = 'Systolic Blood Pressure') from observations;"], "neg": ["allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "description of medication refers to medications.DESCRIPTION;", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';", "in 2009 refers to year(careplans.START) = 2009; married patients refers to marital = 'M'; undergone a care plan for more than 60 days refers to SUBTRACT(careplans.STOP, careplans.START) > 60;", "medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';", "start date of the care plan refers to careplans.START;", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "on 2009/8/9 refers to DATE = '2009-08-09';"]}} {"set": {"query": "Indicate the full name of the patients who have 3 different allergies.", "pos": ["full name refers to first, last; have 3 different allergies refer to allergies where COUNT(DESCRIPTION) > 3;"], "neg": ["time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "on 2009/8/9 refers to DATE = '2009-08-09';", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);", "how old = SUBTRACT(MIN(encounters.DATE), patients.birthdate); most recent medical encounter refers to MIN(encounters.DATE);", "second-degree burn refers to encounters.REASONDESCRIPTION = 'Second degree burn'; ;", "Ibuprofen 200mg Oral Tablet refers to DESCRIPTION = 'Ibuprofen 200 MG Oral Tablet' from medications; started in 2016 refers to START like '2016%'; Dominican patients refer to ethnicity = 'dominican'; stopped taking the medicine after exactly one month refers to SUBTRACT(strftime('%m', STOP), strftime('%m', START)) = 1;", "allergy to eggs' refers to allergies where DESCRIPTION = 'Allergy to eggs'; immunized with 'Td (adult) preservative free' refers to immunizations where DESCRIPTION = 'Td (adult) preservative free';", "reason why take leucovorin 100 mg injection refers to REASONDESCRIPTION where DESCRIPTION = 'Leucovorin 100 MG Injection'; on 1970/12/19 refers to START = '1970-12-19';"]}} {"set": {"query": "How many interactions did Lorri Simons have with medical professionals between 2010 and 2017? What percentage of encounters are attributed to prenatal visits?", "pos": ["between 2010 and 2017 refers to substr(encounters.DATE, 1, 4) between '2010' and '2017'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.ID WHERE DESCRIPTION = 'Prenatal visit'), count(encounters.ID)), 1.0); prenatal visits refers to encounters.DESCRIPTION = 'Prenatal visit';"], "neg": ["male refers to gender = 'M'; immune to quadrivalent HPV refers to immunizations.DESCRIPTION = 'HPV quadrivalent';", "why need to take Acetaminophen refers to REASONDESCRIPTION\u00a0 where DESCRIPTION like 'Acetaminophen%' from medications;", "start of the care plan refers to careplans.START; alive patients refers to deathdate is null;", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "percentage = MULTIPLY(DIVIDE(COUNT(patients.patient WHERE gender = 'M'), COUNT(patients.patient) WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder))), 100); male patients refers to gender = 'M'; viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)';", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "drug that was administered refers to medications.DESCRIPTION; child attention deficit disorder refers to medications.REASONDESCRIPTION = 'Child attention deficit disorder';", "\"Influenza seasonal injectable preservative free\" immunization refers to immunizations where DESCRIPTION = 'Influenza seasonal injectable preservative free';", "body weight of more than 100 kg refers to observations.DESCRIPTION = 'Body Weight' AND observations.VALUE > 100 AND observations.UNITS = 'kg'; diabetes self-management plan refers to careplans.DESCRIPTION = 'Diabetes self management plan';", "full name = first, last; Irish refers to ethnicity = 'irish'; prevalent diseases that have an occurrence greater than the 96% of the average occurrences of all conditions = OCCURRENCES > (AVG(MULTIPLY(all_prevalences.OCCURRENCES, 0.96)));"]}} {"set": {"query": "List the full names of patients with nut allergy.", "pos": ["full names = first, last; nut allergy refers to allergies.DESCRIPTION = 'Allergy to nut';"], "neg": ["DIVIDE(COUNT(PATIENT where gender = 'F' and race = 'asian'), COUNT(PATIENT)) as percentage where DESCRIPTION = 'Acute bronchitis (disorder)' ;", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "how long the allergies last = SUBTRACT(allergies.STOP, allergies.START); kind of allergy refers to allergies.DESCRIPTION;", "Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';", "in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "viral sinusitis condition refers to conditions.DESCRIPTION = 'Viral sinusitis (disorder)'; gender that is most affected refers to MAX(COUNT(gender WHERE conditions.DESCRIPTION = 'Viral sinusitis (disorder)'));", "how long = SUBTRACT(julianday(medications.STOP, julianday(medications.START))); Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin] refers to medications.DESCRIPTION = 'Amoxicillin 250 MG / Clavulanate 125 MG [Augmentin]';", "patients who have stopped taking medication for 'coronary heart disease' refer to PATIENT where REASONDESCRIPTION = 'Coronary Heart Disease' and STOP is not null from medications; if deathdate is null, it means this patient is still alive;", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n"]}} {"set": {"query": "How many conditions did Tyree Eichmann have?", "pos": ["conditions refer to DESCRIPTION from conditions;"], "neg": ["medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';", "medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';", "immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';", "condition on 2009/1/8 refers to DESCRIPTION from conditions where START = '2009-01-08';", "how long = SUBTRACT(medications.STOP, medications.START); Acetaminophen 160 MG refers to medications.DESCRIPTION = 'Acetaminophen 160 MG'; acute bronchitis refers to medications.REASONDESCRIPTION = 'Acute bronchitis (disorder)';", "start of the care plan refers to careplans.START; alive patients refers to deathdate is null;", "SUBTRACT(SUM(deathdate), SUM(birthdate)), COUNT(patient) where REASONDESCRIPTION = 'Prediabetes' from careplans;", "allergic to eggs refer to DESCRIPTION = 'Allergy to eggs' from allergies;", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); underweight patient refers to MIN(observations.VALUE WHERE observations.DESCRIPTION = 'Body Mass Index');"]}} {"set": {"query": "What is the care plan, procedure, medication and the patient's full name for encounter 6f2e3935-b203-493e-a9c0-f23e847b9798?", "pos": ["car plan refers to careplans.DESCRIPTION; procedure refers to procedures.DESCRIPTION; medication refers to medications.DESCRIPTION; full name = first, last; encounter refers to encounters.ID; encounters.ID = '6f2e3935-b203-493e-a9c0-f23e847b9798';"], "neg": ["full name = first, last; lung transplant refers to procedures.DESCRIPTION = 'Transplant of lung (procedure)';", "diabetes that started in 1988 refers to DESCRIPTION = 'Diabetes' from conditions and START like '1988%';", "medications refers to DESCRIPTION from medications; allergy to mould refers to allergies where DESCRIPTION = 'Allergy to mould'; on 6th June 2016 refers to START = '6/6/16';", "time frame = SUBTRACT(JULIANDAY(careplans.STOP), JULIANDAY(careplans.START)); details of care plan refers to careplans.DESCRIPTION; most recent care plan refers to MIN(careplans.STAR);", "stop date of the care plan refers to careplans.STOP; dead patients refers to deathdate is not null;", "DIVIDE(COUNT(marital = 'M'), COUNT(patient)) as percentage where DESCRIPTION = 'Cystitis';\n", "percentage = MULTIPLY(DIVIDE(SUM(patient WHERE allergies.DESCRIPTION = 'Allergy to grass pollen'), COUNT(patient) WHERE birthplace = 'Pembroke MA US'), 100.0); born in Pembroke MA US refers to birthplace = 'Pembroke MA US'; allergy to grass pollen refers to allergies.DESCRIPTION = 'Allergy to grass';", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "patients name = first, last; streptococcal sore throat disorder refers to medications.REASONDESCRIPTION = 'Streptococcal sore throat (disorder)';", "in 2010 refers to substr(encounters.DATE, 1, 4) = '2010'; contact dermatitis refers to encounters.REASONDESCRIPTION = 'Contact dermatitis'; percentage = MULTIPLY(DIVIDE(COUNT(encounters.PATIENT WHERE gender = 'F'), count(encounters.PATIENT) WHERE encounters.REASONDESCRIPTION = 'Contact dermatitis'), 1.0) females refers to gender = 'F';"]}} {"set": {"query": "List the full name of all patients with 'otitis media'.", "pos": ["full name = first, last; otitis media refers to conditions.DESCRIPTION = 'Otitis media';"], "neg": ["medicine prescribed refers to DESCRIPTION from medications; social security number 999-94-3751 refers to ssn = '999-94-3751';", "condition no. 368581000119106 refers to conditions where CODE = '368581000119106';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "date of immunization refers to immunizations.DATE; immunized with the influenza seasonal injectable preservative-free vaccine refers to immunizations.DESCRIPTION = 'Influenza seasonal injectable preservative free';", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);", "if deathdate is not null, it means this patient died; condition refers to DESCRIPTION from conditions; the oldest patient refers to MAX(SUBTRACT(strftime('%Y', deathdate), strftime('%Y', birthdate)));", "start date of the care plan refers to careplans.START;", "medical encounter ids careplans.ID; born in Pembroke MA US refers to birthplace = 'Pembroke MA US';", "patient with the most prevalent condition refers to patient where MAX(PREVALENCE RATE); started recently refers to MAX(START);"]}} {"set": {"query": "How many patients immunized against 'monovalent rotavirus' ceased their care plan on 11/23/2013?", "pos": ["immunized against monovalent rotavirus refers to immunizations.DESCRIPTION = 'rotavirus monovalent'; ceased their care plan on 11/23/2013 refers to careplans.STOP = '2013-11-23';"], "neg": ["in the year of 2011 refers to BILLABLEPERIOD between '2010-12-31' and '2012-01-01';", "Asian refers to race like 'asian%'; allergic to peanuts refers to allergies where DESCRIPTION = 'Allergy to peanuts'; \n", "encountered normal pregnancy refers to encounters where REASONDESCRIPTION = 'Normal pregnancy';", "care plans refer to DESCRIPTION from careplans; secondary malignant neoplasm of the colon refers to conditions where DESCRIPTION = 'Secondary malignant neoplasm of colon';", "expecting mothers can be attributed to encounters.REASONDESCRIPTION = 'Normal pregnancy';", "full name refers to first, last; the lowest body mass index in kg/m2 refers to DESCRIPTION = Body Mass Index from observations where MIN(VALUE) and UNITS = 'kg/m2';", "most common condition refers to MAX(COUNT(conditions.DESCRIPTION)); age 60 and above refers to SUBTRACT(conditions.START, birthdate) > 60; percentage = MULTIPLY(DIVIDE(SUM(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)) AND SUBTRACT(conditions.START, birthdate) > 60))), COUNT(patients.patient WHERE MAX(COUNT(conditions.DESCRIPTION)), 10);", "Hispanic patients refers to ethnicity = 'hispanic'; percentage = MULTIPLY(DIVIDE(COUNT(careplans.PATIENT WHERE ethnicity = 'hispanic'), COUNT(careplans.PATIENT)), 1.0); stopped their care plan in 2011 refers to substr(careplans.stop, 1, 4) = '2011';", "immunized with meningococcal MCV4P refers to DESCRIPTION = 'meningococcal MCV4P' from immunizations; viral sinusitis disorder refers to DESCRIPTION = 'Viral sinusitis (disorder)' from conditions;", "on 2009/8/9 refers to DATE = '2009-08-09';"]}} {"set": {"query": "Among the devices with event no.2 happening, how many of them are vivo devices?", "pos": ["event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';"], "neg": ["more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;", "most common age group refers to MAX(COUNT(`group`));", "ID of the device refers to device_id; youngest user refers to MIN(age);", "female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "coordinates of (80,37) refers to longitude = 80 and latitude = 37;", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';"]}} {"set": {"query": "On what date were the most events logged on devices for 40-year-old male users?", "pos": ["date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old\u00a0 refers to age = 40; male refers to gender = 'M';"], "neg": ["youngest refers to MIN(age); female refers to gender = 'F';", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';", "male refers to gender = 'M';", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;", "ID of the device refers to device_id; youngest user refers to MIN(age);", "event no. refers to event_id; event_id = '887711';", "M23-26 user group refers to `group` = 'M23-26';", "models refers to device_model; under 10 years of age refers to age < 10;", "devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';"]}} {"set": {"query": "How many models does the VIVO phone brand released?", "pos": ["models refers to device_model;"], "neg": ["locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "youngest refers to MIN(age); female refers to gender = 'F';", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';", "male refers to gender = 'M';", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "oldest event refers to MIN(timestamp);", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "ID of the device refers to device_id; youngest user refers to MIN(age);"]}} {"set": {"query": "To which categories does app user no.1977658975649780000 belong?", "pos": ["app no. refers to app_id; app_id = 1977658975649780000;"], "neg": ["percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';", "id refers to device_id;", "most app users refers to MAX(COUNT(app_id));", "88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';", "model of the device refers to device_model; oldest user refers to MAX(age);", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;", "on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';"]}} {"set": {"query": "What is the age of the oldest active user that participated in the event held on 5/6/2016 at coordinates 121, 31?", "pos": ["oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;"], "neg": ["user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "models refers to device_model; under 10 years of age refers to age < 10;", "label that represented the behavior category refers to label_id;", "88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';", "group of age refers to group;", "female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "app user ID refers to app_id; app_id = 7324884708820020000;"]}} {"set": {"query": "What is the age and gender of the person who uses the device number 29182687948017100 on event number 1?", "pos": ["device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;"], "neg": ["on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "group of age refers to group;", "female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';", "females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);", "under 30 refers to age < 30;", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "labeled 7 refers to label_id = 7;", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';", "percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;"]}} {"set": {"query": "Provide the total number of the male users that use OPPO as their phone brand.", "pos": ["male refers to gender = 'Male';"], "neg": ["phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;", "in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "app categories refers to category; related to games refers to category like '%game%';", "models of the devices refers to device_model; female refers to gender = 'F';", "female refers to gender = 'F';", "OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;"]}} {"set": {"query": "State the gender of users who use the device \"-9222956879900150000\".", "pos": ["device refers to device_id; device_id = -9222956879900150000;"], "neg": ["youngest refers to MIN(age); female refers to gender = 'F';", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;", "models refers to device_model; under 10 years of age refers to age < 10;", "time refers to timestamp;", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "under 30 refers to age < 30;", "location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';", "model of the device refers to device_model; oldest user refers to MAX(age);"]}} {"set": {"query": "What is the age of the oldest device user?", "pos": ["oldest device user refers to MAX(age);"], "neg": ["difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';", "more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "labeled 7 refers to label_id = 7;", "brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;", "females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';", "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';"]}} {"set": {"query": "What is the percentage of users who experienced event number 6 who have the app installed but do not use the app?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;"], "neg": ["event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';", "models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';", "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "event no. refers to event_id; event_id = '887711';", "devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';"]}} {"set": {"query": "What are the behavior categories that user number -9222198347540750000 belongs to?", "pos": ["behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;"], "neg": ["model refers to device_model;", "device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';", "models refers to device_model;", "under 30 refers to age < 30;", "difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';", "labeled 7 refers to label_id = 7;", "brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;"]}} {"set": {"query": "How many active users are there in the event?", "pos": ["active refers to is_active = 1;"], "neg": ["oldest device user refers to MAX(age);", "location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';", "percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;", "model refers to device_model;", "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;", "male refers to gender = 'Male';", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;", "app user ID refers to app_id; app_id = 7324884708820020000;", "vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);"]}} {"set": {"query": "How many users of the app were not active when event no.2 happened?", "pos": ["not active refers to is_active = 0; event no. refers to event_id; event_id = 2;"], "neg": ["female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';", "app no. refers to app_id; app_id = 1977658975649780000;", "device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';", "most app users refers to MAX(COUNT(app_id));", "oldest user refers to MAX(age);", "date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old\u00a0 refers to age = 40; male refers to gender = 'M';"]}} {"set": {"query": "What is the most common age group among all device users?", "pos": ["most common age group refers to MAX(COUNT(`group`));"], "neg": ["difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "models refers to device_model;", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;", "most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "youngest refers to MIN(age); female refers to gender = 'F';", "id refers to device_id;", "male refers to gender = 'M';", "time refers to timestamp;", "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;"]}} {"set": {"query": "What is the name of the category which most users belong to?", "pos": ["most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;"], "neg": ["HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old\u00a0 refers to age = 40; male refers to gender = 'M';", "male refers to gender = 'M';", "location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';", "models refers to device_model;", "vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';", "ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;", "M23-26 user group refers to `group` = 'M23-26';", "brand vivo refers to phone_brand = 'vivo';", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';"]}} {"set": {"query": "How many female users belong to the age group of 27 to 28?", "pos": ["female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';"], "neg": ["model of the device refers to device_model; oldest user refers to MAX(age);", "id refers to device_id;", "male refers to gender = 'M';", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;", "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;", "ID of the device refers to device_id; youngest user refers to MIN(age);", "vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;"]}} {"set": {"query": "Calculate the ratio in percentage between the average number of app users belonging to \"80s Japanese comic\" and \"90s Japanese comic\".", "pos": ["ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';"], "neg": ["male refers to gender = 'M';", "youngest refers to MIN(age); female refers to gender = 'F';", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "model refers to device_model; device_model = 'A51';", "date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old\u00a0 refers to age = 40; male refers to gender = 'M';", "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;", "brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "active refers to is_active = 1;"]}} {"set": {"query": "List at least 15 phone models released under the OPPO brand.", "pos": ["phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';"], "neg": ["ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;", "not active refers to is_active = 0; event no. refers to event_id; event_id = 2;", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "most app users refers to MAX(COUNT(app_id));", "device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;"]}} {"set": {"query": "What is the age of the youngest female device user?", "pos": ["youngest refers to MIN(age); female refers to gender = 'F';"], "neg": ["installed refers to is_installed = 1; not active refers to is_active = 0;", "app no. refers to app_id; app_id = 1977658975649780000;", "gender that owned more = SUBTRACT(IF(SUM(gender = 'M'), SUM(gender = 'F'),'M','F'));", "ID of the device refers to device_id; youngest user refers to MIN(age);", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "male refers to gender = 'M';", "youngest user refers to MIN(age);", "more events refers to MAX(COUNT(event_id));", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "female refers to gender = 'F'; over the age of 50 refers to age > 50;"]}} {"set": {"query": "Please list the ages of all the users who use a Galaxy Note 2.", "pos": ["Galaxy Note 2 refers to device_model = 'Galaxy Note 2';"], "neg": ["models refers to device_model; under 10 years of age refers to age < 10;", "youngest user refers to MIN(age);", "female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';", "females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';", "event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';", "male refers to gender = 'M';"]}} {"set": {"query": "Among the users who use SUGAR, calculate the percentage of those who are above 20 years old.", "pos": ["SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;"], "neg": ["difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';", "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;", "location = longitude, latitude;", "labeled 7 refers to label_id = 7;", "M23-26 user group refers to `group` = 'M23-26';", "installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';"]}} {"set": {"query": "How many users belong to the same behavior category as comics?", "pos": ["behavior category refers to category; category = 'comics';"], "neg": ["vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "labeled 7 refers to label_id = 7;", "ID of the device refers to device_id; youngest user refers to MIN(age);", "model refers to device_model;", "oldest device user refers to MAX(age);", "more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;", "ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';", "oldest user refers to MAX(age);"]}} {"set": {"query": "State the category of the label that represented the behavior category of app id 4955831798976240000.", "pos": ["label that represented the behavior category refers to label_id;"], "neg": ["location = longitude, latitude;", "event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';", "youngest refers to MIN(age); female refers to gender = 'F';", "female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';", "female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "active refers to is_active = 1;", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';"]}} {"set": {"query": "How many more devices are there of the brand vivo than of the brand LG?", "pos": ["how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';"], "neg": ["installed refers to is_installed = 1; not active refers to is_active = 0;", "most app users refers to MAX(COUNT(app_id));", "event no. refers to event_id; event_id = '887711';", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "labeled 7 refers to label_id = 7;", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';", "most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;", "male refers to gender = 'M';", "models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;", "device refers to device_id; device_id = -9222956879900150000;"]}} {"set": {"query": "Among the users who uses a vivo device, how many of them are female and under 30?", "pos": ["vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;"], "neg": ["gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "event no. refers to event_id; event_id = '887711';", "ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';", "difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "active refers to is_active = 1;", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';"]}} {"set": {"query": "How many different models does the HTC brand have?", "pos": ["models refers to device_model; HTC brand refers to phone_brand = 'HTC';"], "neg": ["devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';", "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;", "brand vivo refers to phone_brand = 'vivo';", "OPPO refers to phone_brand = 'OPPO';", "coordinates of (80,37) refers to longitude = 80 and latitude = 37;", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';", "brand of the device refers to phone_brand; youngest user refers to MIN(age);"]}} {"set": {"query": "List the phone brands and models of the users under 10 years of age.", "pos": ["models refers to device_model; under 10 years of age refers to age < 10;"], "neg": ["average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "group of age refers to group;", "under 30 refers to age < 30;", "models refers to device_model;", "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;", "id refers to device_id;", "model of the device refers to device_model; oldest user refers to MAX(age);", "female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';", "app categories refers to category; related to games refers to category like '%game%';", "brand of the device refers to phone_brand; youngest user refers to MIN(age);"]}} {"set": {"query": "How many male users have the log of events at the same longitude of 114?", "pos": ["male refers to gender = 'M';"], "neg": ["vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "group of age refers to group;", "M23-26 user group refers to `group` = 'M23-26';", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "id refers to device_id;", "models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;", "installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;"]}} {"set": {"query": "What is the age group of most OPPO users?", "pos": ["age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';"], "neg": ["installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;", "id refers to device_id;", "female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';", "brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;", "device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "active refers to is_active = 1;", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';"]}} {"set": {"query": "How many events in total have happened on all the vivo devices in the year 2016?", "pos": ["vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;"], "neg": ["average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';", "behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;", "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;", "most app users refers to MAX(COUNT(app_id));"]}} {"set": {"query": "Please list any three OPPO device models.", "pos": ["OPPO refers to phone_brand = 'OPPO';"], "neg": ["event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';", "male refers to gender = 'M';", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "ID of the device refers to device_id; youngest user refers to MIN(age);", "percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "installed refers to is_installed = 1; not active refers to is_active = 0;"]}} {"set": {"query": "Describe the phone brands and models of the users who participated in events on 5th May, 2016 at the coordinates of (112,44).", "pos": ["models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;"], "neg": ["location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "OPPO refers to phone_brand = 'OPPO';", "model of the device refers to device_model; oldest user refers to MAX(age);", "age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "most common age group refers to MAX(COUNT(`group`));", "vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);"]}} {"set": {"query": "Please list the event IDs of the events that have happened on the device of the oldest user.", "pos": ["oldest user refers to MAX(age);"], "neg": ["models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;", "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "male refers to gender = 'M';", "app user ID refers to app_id; app_id = 7324884708820020000;", "device refers to device_id; device_id = -9222956879900150000;", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "model refers to device_model; device_model = 'A51';", "LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';", "device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';", "installed refers to is_installed = 1; not active refers to is_active = 0;"]}} {"set": {"query": "How many users installed the app but are not active?", "pos": ["installed refers to is_installed = 1; not active refers to is_active = 0;"], "neg": ["model of the device refers to device_model; oldest user refers to MAX(age);", "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);", "location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';", "female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;", "event no. refers to event_id; event_id = '887711';", "ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';", "male refers to gender = 'M';", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';"]}} {"set": {"query": "What is the brand of the youngest user's device?", "pos": ["brand of the device refers to phone_brand; youngest user refers to MIN(age);"], "neg": ["male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "app user ID refers to app_id; app_id = 7324884708820020000;", "female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';", "most app users refers to MAX(COUNT(app_id));", "youngest refers to MIN(age); female refers to gender = 'F';", "active refers to is_active = 1;", "location = longitude, latitude;", "youngest refers to MIN(age); female refers to gender = 'F';", "LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;"]}} {"set": {"query": "Which phone brand and model was used for event ID \"6701\"?", "pos": ["model refers to device_model;"], "neg": ["percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';", "more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;", "model of the device refers to device_model; oldest user refers to MAX(age);", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';"]}} {"set": {"query": "How many events did the 88-years-old male users participate on 4th May,2016?", "pos": ["88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';"], "neg": ["ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';", "most app users refers to MAX(COUNT(app_id));", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "male refers to gender = 'M';", "event no. refers to event_id; event_id = '887711';", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "app categories refers to category; related to games refers to category like '%game%';", "event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';"]}} {"set": {"query": "Indicate the location of all the events that occurred on April 30, 2016.", "pos": ["location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';"], "neg": ["ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old\u00a0 refers to age = 40; male refers to gender = 'M';", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;", "male refers to gender = 'Male';", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "most common age group refers to MAX(COUNT(`group`));", "brand vivo refers to phone_brand = 'vivo';", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "male refers to gender = 'M';"]}} {"set": {"query": "What percentage of vivo devices belong to users with no information?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;"], "neg": ["female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';", "average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;", "location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';", "most common age group refers to MAX(COUNT(`group`));", "male refers to gender = 'Male';"]}} {"set": {"query": "What is the category that the most app users belong to?", "pos": ["most app users refers to MAX(COUNT(app_id));"], "neg": ["vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);", "female refers to gender = 'F';", "youngest refers to MIN(age); female refers to gender = 'F';", "active refers to is_active = 1;", "app user ID refers to app_id; app_id = 7324884708820020000;", "difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "oldest device user refers to MAX(age);", "label that represented the behavior category refers to label_id;", "labeled 7 refers to label_id = 7;", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;"]}} {"set": {"query": "Please list any three devices that are owned by female users.", "pos": ["female refers to gender = 'F';"], "neg": ["behavior category refers to category; category = 'comics';", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "male refers to gender = 'M';", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "labeled 7 refers to label_id = 7;", "oldest event refers to MIN(timestamp);", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "installed refers to is_installed = 1; not active refers to is_active = 0;", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "app categories refers to category; related to games refers to category like '%game%';"]}} {"set": {"query": "Which gender logged in the most to an event in the first 10 days of May 2016?", "pos": ["gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';"], "neg": ["models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;", "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "most app users refers to MAX(COUNT(app_id));", "OPPO refers to phone_brand = 'OPPO';", "models refers to device_model;", "group of age refers to group;", "youngest user refers to MIN(age);"]}} {"set": {"query": "Give the time stamp for event No.887711.", "pos": ["event no. refers to event_id; event_id = '887711';"], "neg": ["how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';", "active refers to is_active = 1;", "installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;", "installed refers to is_installed = 1; not active refers to is_active = 0;", "location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "male refers to gender = 'M';", "male refers to gender = 'M';", "female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';", "oldest device user refers to MAX(age);"]}} {"set": {"query": "Please list the location coordinates of all the devices with an inactive app user when event no.2 happened.", "pos": ["location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;"], "neg": ["in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';", "male refers to gender = 'M';", "device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);", "models of the devices refers to device_model; female refers to gender = 'F';", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';"]}} {"set": {"query": "How many devices belong to model \"A51\"?", "pos": ["model refers to device_model; device_model = 'A51';"], "neg": ["event no. refers to event_id; event_id = '887711';", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);", "vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;", "oldest device user refers to MAX(age);", "ID of the device refers to device_id; youngest user refers to MIN(age);", "coordinates of (80,37) refers to longitude = 80 and latitude = 37;"]}} {"set": {"query": "How many male users of the \"Galaxy S5\" device model?", "pos": ["male refers to gender = 'M';"], "neg": ["ID of the device refers to device_id; youngest user refers to MIN(age);", "88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "event no. refers to event_id; event_id = '887711';", "models refers to device_model; under 10 years of age refers to age < 10;", "females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';", "male refers to gender = 'M';", "group of age refers to group;", "app no. refers to app_id; app_id = 1977658975649780000;", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;"]}} {"set": {"query": "How many users who are under 30 years old use device model of Galaxy Note 2?", "pos": ["under 30 refers to age < 30;"], "neg": ["male refers to gender = 'Male';", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "models refers to device_model;", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';", "behavior category refers to category; category = 'comics';", "app no. refers to app_id; app_id = 1977658975649780000;", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;", "female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';"]}} {"set": {"query": "What is the gender of the youngest user?", "pos": ["youngest user refers to MIN(age);"], "neg": ["male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "id refers to device_id;", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';", "date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old\u00a0 refers to age = 40; male refers to gender = 'M';", "female refers to gender = 'F'; over the age of 50 refers to age > 50;"]}} {"set": {"query": "Which behavior category does user number 5902120154267990000 belong to?", "pos": ["behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;"], "neg": ["HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';", "oldest device user refers to MAX(age);", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';", "app user ID refers to app_id; app_id = 7324884708820020000;", "LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';", "time refers to timestamp;", "device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;", "in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';"]}} {"set": {"query": "Provide the phone brands and models of the users who were at the coordinates of (80,44).", "pos": ["models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;"], "neg": ["models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "female refers to gender = 'F';", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "male refers to gender = 'M';", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "installed refers to is_installed = 1; not active refers to is_active = 0;", "88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';"]}} {"set": {"query": "List all the devices' brands and models of events on 5/7/2016 at 6:03:22 AM.", "pos": ["devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';"], "neg": ["at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';", "oldest user refers to MAX(age);", "more events refers to MAX(COUNT(event_id));", "average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "models refers to device_model;", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';", "behavior category refers to category; category = 'comics';", "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "model refers to device_model;"]}} {"set": {"query": "What are the ages and genders of the LG L70 users?", "pos": ["LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';"], "neg": ["ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "youngest user refers to MIN(age);", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "ID of the device refers to device_id; youngest user refers to MIN(age);", "male refers to gender = 'M';", "youngest refers to MIN(age); female refers to gender = 'F';", "average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;"]}} {"set": {"query": "How many events have happened on the device of the youngest female user?", "pos": ["youngest refers to MIN(age); female refers to gender = 'F';"], "neg": ["youngest refers to MIN(age); female refers to gender = 'F';", "installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';", "label that represented the behavior category refers to label_id;", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;"]}} {"set": {"query": "Mention the group of age of users who use phone brand of LG.", "pos": ["group of age refers to group;"], "neg": ["models refers to device_model; under 10 years of age refers to age < 10;", "youngest user refers to MIN(age);", "models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;", "male refers to gender = 'M';", "location = longitude, latitude; on April 30, 2016 refers timestamp BETWEEN '2016-04-30 00:00:00' AND '2016-04-30 23:59:59';", "time refers to timestamp;", "OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "label that represented the behavior category refers to label_id;"]}} {"set": {"query": "What is the difference between the events of device number -9222956879900150000 that can be located and those that are unable to be located?", "pos": ["difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;"], "neg": ["not active refers to is_active = 0; event no. refers to event_id; event_id = 2;", "time refers to timestamp;", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "behavior category refers to category; category = 'comics';", "youngest refers to MIN(age); female refers to gender = 'F';", "model refers to device_model; device_model = 'A51';", "event no. refers to event_id; event_id = '887711';", "location = longitude, latitude;", "male refers to gender = 'M';"]}} {"set": {"query": "Among all the times event no.2 happened when the app user was not active, when was the earliest time this situation happened?", "pos": ["event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);"], "neg": ["models refers to device_model;", "app user ID refers to app_id; app_id = 7324884708820020000;", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';", "under 30 refers to age < 30;", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;", "most common age group refers to MAX(COUNT(`group`));", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;", "active refers to is_active = 1;", "age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';"]}} {"set": {"query": "How many devices are of the brand vivo?", "pos": ["brand vivo refers to phone_brand = 'vivo';"], "neg": ["on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';", "male refers to gender = 'M';", "M23-26 user group refers to `group` = 'M23-26';", "most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;", "male refers to gender = 'M';", "OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';"]}} {"set": {"query": "How many male users are in the age group of M32-38?", "pos": ["male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';"], "neg": ["Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "ID of the device refers to device_id; youngest user refers to MIN(age);", "LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';", "models refers to device_model; under 10 years of age refers to age < 10;", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "male refers to gender = 'M';", "app user ID refers to app_id; app_id = 7324884708820020000;", "youngest user refers to MIN(age);", "device refers to device_id; device_id = -9222956879900150000;", "id refers to device_id;"]}} {"set": {"query": "Among the devices on which an event happened on 2016/5/1, how many of them are used by a male user?", "pos": ["on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';"], "neg": ["models refers to device_model; under 10 years of age refers to age < 10;", "vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';", "model of the device refers to device_model; oldest user refers to MAX(age);", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;", "ID of the device refers to device_id; youngest user refers to MIN(age);", "in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';", "OPPO refers to phone_brand = 'OPPO';", "model refers to device_model; device_model = 'A51';", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);"]}} {"set": {"query": "How many female users over the age of 50 are there?", "pos": ["female refers to gender = 'F'; over the age of 50 refers to age > 50;"], "neg": ["installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;", "active refers to is_active = 1;", "percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;", "brand vivo refers to phone_brand = 'vivo';", "OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;", "behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "most app users refers to MAX(COUNT(app_id));"]}} {"set": {"query": "What is the average age of the female users who uses a vivo device?", "pos": ["average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';"], "neg": ["difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "brand vivo refers to phone_brand = 'vivo';", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "not active refers to is_active = 0; event no. refers to event_id; event_id = 2;", "group of age refers to group;", "youngest refers to MIN(age); female refers to gender = 'F';", "oldest user refers to MAX(age);", "male refers to gender = 'Male';", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';"]}} {"set": {"query": "Which category has more app users, Securities or Finance?", "pos": ["more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;"], "neg": ["vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';", "oldest user refers to MAX(age);", "behavior category refers to category; category = 'comics';", "event no. refers to event_id; event_id = '887711';", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "oldest device user refers to MAX(age);"]}} {"set": {"query": "Please list the time when event no.2 happened on a vivo device.", "pos": ["time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';"], "neg": ["installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;", "app user ID refers to app_id; app_id = 7324884708820020000;", "brand vivo refers to phone_brand = 'vivo';", "OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;", "ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "male refers to gender = 'M';", "behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;", "youngest refers to MIN(age); female refers to gender = 'F';", "youngest user refers to MIN(age);"]}} {"set": {"query": "Locate all events on devices of women under 30 years old.", "pos": ["locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;"], "neg": ["ID of the device refers to device_id; youngest user refers to MIN(age);", "at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "model refers to device_model;", "male refers to gender = 'Male';", "average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "event no. refers to event_id; event_id = '887711';", "not active refers to is_active = 0; event no. refers to event_id; event_id = 2;"]}} {"set": {"query": "Give the number of male users who use phone branded HTC.", "pos": ["male refers to gender = 'M';"], "neg": ["group of age refers to group;", "oldest event refers to MIN(timestamp);", "models of the devices refers to device_model; female refers to gender = 'F';", "at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';", "most common age group refers to MAX(COUNT(`group`));", "behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "models refers to device_model; under 10 years of age refers to age < 10;", "event no. refers to event_id; event_id = '887711';", "male refers to gender = 'M';"]}} {"set": {"query": "Identify all installed and activated apps by their id.", "pos": ["installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;"], "neg": ["\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';", "most common age group refers to MAX(COUNT(`group`));", "percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';", "ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "device refers to device_id; device_id = -9222956879900150000;", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;"]}} {"set": {"query": "Among the users who use a Galaxy Note 2, how many of them are female?", "pos": ["Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';"], "neg": ["coordinates of (80,37) refers to longitude = 80 and latitude = 37;", "models refers to device_model;", "most app users refers to MAX(COUNT(app_id));", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "oldest device user refers to MAX(age);", "male refers to gender = 'M';"]}} {"set": {"query": "Please provide the gender of at least one user who owns an HTC Desire 826 device.", "pos": ["HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';"], "neg": ["behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;", "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "coordinates of (80,37) refers to longitude = 80 and latitude = 37;", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;"]}} {"set": {"query": "What is the ID of the device used by the youngest user?", "pos": ["ID of the device refers to device_id; youngest user refers to MIN(age);"], "neg": ["event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "model of the device refers to device_model; oldest user refers to MAX(age);", "male refers to gender = 'M';", "in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';", "average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "group of age refers to group;", "device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "app no. refers to app_id; app_id = 1977658975649780000;"]}} {"set": {"query": "For the event which happened at 23:55:16 on 2016/5/7, in the location coordinate(113, 28), on what device did it happen? Give the name of the device model.", "pos": ["at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';"], "neg": ["model of the device refers to device_model; oldest user refers to MAX(age);", "device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "model refers to device_model; device_model = 'A51';", "id refers to device_id;", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "gender that owned more = SUBTRACT(IF(SUM(gender = 'M'), SUM(gender = 'F'),'M','F'));"]}} {"set": {"query": "Please list the location coordinates of all the Galaxy Note 2 devices when an event happened.", "pos": ["location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';"], "neg": ["oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "male refers to gender = 'M';", "event no. refers to event_id; event_id = '887711';", "percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "oldest event refers to MIN(timestamp);", "female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';", "male refers to gender = 'M';", "brand vivo refers to phone_brand = 'vivo';"]}} {"set": {"query": "What is the ratio of female users to male users who uses a vivo device?", "pos": ["ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';"], "neg": ["youngest refers to MIN(age); female refers to gender = 'F';", "ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "model refers to device_model; device_model = 'A51';", "age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';", "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';"]}} {"set": {"query": "How many apps are labeled 7?", "pos": ["labeled 7 refers to label_id = 7;"], "neg": ["LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';", "M23-26 user group refers to `group` = 'M23-26';", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);", "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "id refers to device_id;", "installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;", "male refers to gender = 'M';", "location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';"]}} {"set": {"query": "How many female users use ZenFone 5 devices?", "pos": ["female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "model refers to device_model;", "installed refers to is_installed = 1; not active refers to is_active = 0;", "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "most app users refers to MAX(COUNT(app_id));", "male refers to gender = 'M';", "OPPO refers to phone_brand = 'OPPO';", "date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old\u00a0 refers to age = 40; male refers to gender = 'M';", "male refers to gender = 'M';", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';"]}} {"set": {"query": "Please list the IDs of the events happened on all the vivo devices.", "pos": ["IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';"], "neg": ["females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';", "vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "most app users refers to MAX(COUNT(app_id));", "on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "female refers to gender = 'F'; ZenFone 5 refers to device_model = 'ZenFone 5';", "event no. refers to event_id; event_id = '887711';", "male refers to gender = 'M';"]}} {"set": {"query": "Among the users who use OPPO, calculate the percentage of those who are under 50 years old.", "pos": ["OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;"], "neg": ["most app users refers to MAX(COUNT(app_id));", "model refers to device_model;", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "labeled 7 refers to label_id = 7;", "device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';", "88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;"]}} {"set": {"query": "What are the categories of the top 2 oldest events?", "pos": ["oldest event refers to MIN(timestamp);"], "neg": ["vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "oldest user refers to MAX(age);", "under 30 refers to age < 30;", "date refers to timestamp; most events refers to MAX(COUNT(event_id)); 40-year-old\u00a0 refers to age = 40; male refers to gender = 'M';", "event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "active refers to is_active = 1;", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';"]}} {"set": {"query": "List all females aged 24 to 26 devices' locations.", "pos": ["females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';"], "neg": ["gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "male refers to gender = 'M';", "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "installed refers to is_installed = 1; not active refers to is_active = 0;", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;"]}} {"set": {"query": "For the device with an event occurring on 2016/5/1 at 0:55:25, what is the gender of its user?", "pos": ["on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';"], "neg": ["youngest refers to MIN(age); female refers to gender = 'F';", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';", "youngest user refers to MIN(age);", "more events refers to MAX(COUNT(event_id));", "on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';", "under 30 refers to age < 30;", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';"]}} {"set": {"query": "How many device users are male?", "pos": ["male refers to gender = 'M';"], "neg": ["under 30 refers to age < 30;", "male refers to gender = 'Male';", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';", "M23-26 user group refers to `group` = 'M23-26';", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "IDs of the events refers to event_id; vivo devices refers to phone_brand = 'vivo';", "models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;", "labeled 7 refers to label_id = 7;"]}} {"set": {"query": "How many users in user group M23-26 use a vivo device?", "pos": ["user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';"], "neg": ["device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;", "most common age group refers to MAX(COUNT(`group`));", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;", "models of the devices refers to device_model; female refers to gender = 'F';", "id refers to device_id;", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "app user ID refers to app_id; app_id = 7324884708820020000;"]}} {"set": {"query": "Among all the users who use a vivo device, what is the percentage of the users in the M23-26 user group?", "pos": ["vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';"], "neg": ["models refers to device_model; under 10 years of age refers to age < 10;", "percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';", "male refers to gender = 'M';", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;", "on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "app no. refers to app_id; app_id = 1977658975649780000;", "ID of the device refers to device_id; youngest user refers to MIN(age);", "device number refers to device_id; device_id = 29182687948017100; event number refers to event_id; and event_id = 1;", "active refers to is_active = 1;"]}} {"set": {"query": "Which brand is most common among people in their twenties?", "pos": ["brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;"], "neg": ["percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "brand vivo refers to phone_brand = 'vivo';", "group of age refers to group;", "average age = AVG(age); female refers to gender = 'F'; vivo device refers to phone_brand = 'vivo';", "models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;", "coordinates of (80,37) refers to longitude = 80 and latitude = 37;", "model of the device refers to device_model; oldest user refers to MAX(age);", "devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "male refers to gender = 'Male';"]}} {"set": {"query": "Calculate the percentage of male users among all device users.", "pos": ["percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';"], "neg": ["more events refers to MAX(COUNT(event_id));", "male refers to gender = 'Male';", "youngest user refers to MIN(age);", "male refers to gender = 'M';", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "coordinates of (80,37) refers to longitude = 80 and latitude = 37;", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "under 30 refers to age < 30;"]}} {"set": {"query": "Among all the devices with event no.2 happening, what is the percentage of the device being a vivo phone?", "pos": ["event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';"], "neg": ["gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';", "oldest user refers to MAX(age);", "ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "installed refers to is_installed = 1; not active refers to is_active = 0;", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "male refers to gender = 'M';", "not active refers to is_active = 0; event no. refers to event_id; event_id = 2;", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';"]}} {"set": {"query": "State the number of the \"\u9b45\u84ddNote 2\" users who are in the \"F29-32\" group.", "pos": ["\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';"], "neg": ["location coordinates = longitude, latitude; inactive refers to is_active = 0; event no. refers to event_id; event_id = 2;", "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;", "male refers to gender = 'M';", "model of the device refers to device_model; oldest user refers to MAX(age);", "in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "more events refers to MAX(COUNT(event_id));", "OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;", "event no. refers to event_id; event_id = '887711';", "location = longitude, latitude;"]}} {"set": {"query": "Please list the device models of all the devices used by a user in the M23-26 user group.", "pos": ["M23-26 user group refers to `group` = 'M23-26';"], "neg": ["most app users refers to MAX(COUNT(app_id));", "most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);", "OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "female refers to gender = 'F';", "models refers to device_model;", "label that represented the behavior category refers to label_id;", "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;"]}} {"set": {"query": "Among the male users, how many users use device model of Desire 820?", "pos": ["male refers to gender = 'M';"], "neg": ["male refers to gender = 'M';", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;", "on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "youngest refers to MIN(age); female refers to gender = 'F';", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "event no. refers to event_id; event_id = '887711';", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;", "male refers to gender = 'M';", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';"]}} {"set": {"query": "How many male users have a Galaxy Note 3?", "pos": ["male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';"], "neg": ["difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;", "percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;", "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "user group M23-26 refers to group = 'M23-26'; vivo device refers to phone_brand = 'vivo';", "percentage = MULTIPLY(DIVIDE(SUM(is_installed = 1 and is_active = 0), COUNT(app_id)), 1.0); event number refers to event_id = 6; installed refers to is_installed = 1; do not use refers to is_active = 0;", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;", "youngest refers to MIN(age); female refers to gender = 'F';", "ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';"]}} {"set": {"query": "Please list all the models of the devices used by a female user.", "pos": ["models of the devices refers to device_model; female refers to gender = 'F';"], "neg": ["more events refers to MAX(COUNT(event_id));", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "event no. refers to event_id; event_id = '887711';", "female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';", "most app users refers to MAX(COUNT(app_id));", "behavior category refers to category; number refers to app_id; app_id = 5902120154267990000;", "in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';", "percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';", "oldest device user refers to MAX(age);", "id refers to device_id;"]}} {"set": {"query": "Among all the users who use a vivo device, what is the age of the youngest user?", "pos": ["vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);"], "neg": ["in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';", "device refers to device_id; device_id = -9222956879900150000;", "id refers to device_id;", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "model refers to device_model; device_model = 'A51';", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "vivo device refers to phone_brand = 'vivo'; female refers to gender = 'F'; under 30 refers to age < 30;", "event no. refers to event_id; event_id = '887711';", "difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;"]}} {"set": {"query": "What is the model of the oldest user's device?", "pos": ["model of the device refers to device_model; oldest user refers to MAX(age);"], "neg": ["ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';", "labeled 7 refers to label_id = 7;", "model refers to device_model; device_model = 'A51';", "male refers to gender = 'M';", "app no. refers to app_id; app_id = 1977658975649780000;", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "device refers to device_id; device_id = -9222956879900150000;", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "male refers to gender = 'M';", "difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;"]}} {"set": {"query": "Please list any five app categories that are related to games, along with their label ID.", "pos": ["app categories refers to category; related to games refers to category like '%game%';"], "neg": ["locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;", "male refers to gender = 'M';", "females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';", "event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';", "male refers to gender = 'M';", "at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "app no. refers to app_id; app_id = 1977658975649780000;", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;"]}} {"set": {"query": "Among the devices with an event occurring in 2016, how many of them are owned by a user in the M23-26 user group?", "pos": ["in 2016 refers to year(timestamp) = 2016; M23-26 user group refers to `group` = 'M23-26';"], "neg": ["more events refers to MAX(COUNT(event_id));", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "SUGAR refers to phone_brand = 'SUGAR'; percentage = MULTIPLY(DIVIDE(SUM(age > 20), COUNT(device_id)) 1.0); above 20 years old refers to age > 20;", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';", "app categories refers to category; related to games refers to category like '%game%';", "male refers to gender = 'Male';", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "female refers to gender = 'F';", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';"]}} {"set": {"query": "Between device ID of \"-9215352913819630000\" and \"-9222956879900150000\", mention the age and gender of device user who participated more events.", "pos": ["more events refers to MAX(COUNT(event_id));"], "neg": ["male refers to gender = 'M';", "not active refers to is_active = 0; event no. refers to event_id; event_id = 2;", "devices' brands refers to phone_brand; models refers to device_model; on 5/7/2016 at 6:03:22 AM refers to timestamp = '2016-05-07 06:03:22';", "brand vivo refers to phone_brand = 'vivo';", "30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';", "OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;", "label that represented the behavior category refers to label_id;", "device refers to device_id; device_id = -9222956879900150000;", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "vivo devices refers to phone_brand = 'vivo'; in the year 2016 refers to year(timestamp) = 2016;"]}} {"set": {"query": "Which gender owned more of the Galaxy Note 2 device model?", "pos": ["gender that owned more = SUBTRACT(IF(SUM(gender = 'M'), SUM(gender = 'F'),'M','F'));"], "neg": ["Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "models refers to device_model;", "more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;", "time refers to timestamp;", "models refers to device_model; coordinates of (80,44) refers to longitude = 80 AND latitude = 44;", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "coordinates of (80,37) refers to longitude = 80 and latitude = 37;", "vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';", "LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';"]}} {"set": {"query": "Provide the number of events participated by the device users at coordinates of (80,37).", "pos": ["coordinates of (80,37) refers to longitude = 80 and latitude = 37;"], "neg": ["not active refers to is_active = 0; event no. refers to event_id; event_id = 2;", "location = longitude, latitude;", "oldest event refers to MIN(timestamp);", "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "youngest refers to MIN(age); female refers to gender = 'F';", "app categories refers to category; related to games refers to category like '%game%';", "on 2016/5/1 refers to timestamp = '2016-05-01'; male refers to gender = 'M';", "OPPO refers to phone_brand = 'OPPO';", "behavior category refers to category; category = 'comics';", "model of the device refers to device_model; oldest user refers to MAX(age);"]}} {"set": {"query": "For the event which happened at 23:33:34 on 2016/5/6, how many installed apps were involved?", "pos": ["at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';"], "neg": ["Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';", "coordinates of (80,37) refers to longitude = 80 and latitude = 37;", "oldest device user refers to MAX(age);", "phone models refers to device_model; OPPO brand refers to phone_brand = 'OPPO';", "models refers to device_model; on 5th May, 2016 refers to timestamp LIKE '2016-05-05%'; coordinates of (112,44) refers to longitude = 112 AND latitude = 44;", "models refers to device_model; under 10 years of age refers to age < 10;", "label that represented the behavior category refers to label_id;", "models of the devices refers to device_model; female refers to gender = 'F';", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';"]}} {"set": {"query": "Give the number of 30-year-old users who were active in the events on 2016/5/2.", "pos": ["30-year-old refers to age = '30'; active refers to is_active = 1; on 2016/5/2 refers to timestamp = '2016/5/2 XX:XX:XX';"], "neg": ["group of age refers to group;", "time refers to timestamp;", "male refers to gender = 'M';", "installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;", "at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';", "male refers to gender = 'M';", "88-years-old refers to age = 88; male refers to gender = 'M'; on 4th May, 2016 refers to timestamp LIKE '2016-05-04%';", "female refers to gender = 'F';", "location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "youngest user refers to MIN(age);"]}} {"set": {"query": "List out the time of the event id 12.", "pos": ["time refers to timestamp;"], "neg": ["model of the device refers to device_model; oldest user refers to MAX(age);", "most common age group refers to MAX(COUNT(`group`));", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "group of age refers to group;", "brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;", "models refers to device_model;", "most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;", "label that represented the behavior category refers to label_id;", "event no. refers to event_id; event_id = '2'; percentage = SUM(IF(phone_brand = 'vivo',1,0)), COUNT(device_id) WHERE event_id = '2'; vivo phone refers to phone_brand = 'vivo';", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);"]}} {"set": {"query": "What are the categories that app user ID7324884708820020000 belongs to?", "pos": ["app user ID refers to app_id; app_id = 7324884708820020000;"], "neg": ["male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';", "OPPO refers to phone_brand = 'OPPO';", "model of the device refers to device_model; oldest user refers to MAX(age);", "behavior categories refers to category; user number refers to app_id; app_id = -9222198347540750000;", "app categories refers to category; related to games refers to category like '%game%';", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';", "installed refers to is_installed = 1; activated refers to is_active = 1; id refers to app_id;", "male refers to gender = 'M';", "female refers to gender = 'F';"]}} {"set": {"query": "What is the percentage of female OPPO users against the male OPPO users?", "pos": ["percentage = DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'F'), 100), COUNT(device_id)), '%') AS 'the percentage of female OPPO users'; DIVIDE(MULTIPLY(CONCAT(COUNT(device_id WHERE phone_brand = 'OPPO' AND gender = 'M'), 100), COUNT(device_id)), '%') AS 'the percentage of male OPPO users';"], "neg": ["ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;", "percentage = DVIDE(SUM(gender = 'M'), COUNT(device_id)); male refers to gender = 'M';", "time refers to timestamp; event no. refers to event_id; event_id = '2'; vivo device refers to phone_brand = 'vivo';", "device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';", "oldest event refers to MIN(timestamp);", "ratio = DIVIDE(SUM(gender = 'M' WHERE phone_brand = 'vivo'), SUM(gender = 'F' WHERE phone_brand = 'vivo')); female refers to gender = 'F'; male refers to gender = 'M'; vivo device refers to phone_brand = 'vivo';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2'; female refers to gender = 'F';", "event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;", "at 23:33:34 on 2016/5/6 refers to timestamp = '2016/5/6 23:33:34'; installed refers to is_installed = '1';", "youngest user refers to MIN(age);"]}} {"set": {"query": "Describe the number of app IDs and location of the event ID \"79641\".", "pos": ["location = longitude, latitude;"], "neg": ["M23-26 user group refers to `group` = 'M23-26';", "model of the device refers to device_model; oldest user refers to MAX(age);", "most users belong to refers to MAX(COUNT(app_id)); name of category refers to category;", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "labeled 7 refers to label_id = 7;", "ratio in percentage = DIVIDE(SUM(IF(category = '80s Japanese comic',1,0)), COUNT(app_id)) as '80s'; DIVIDE(SUM(IF(category = '90s Japanese comic',1,0)), COUNT(app_id)) as '90s'; 80s Japanese comic refers to category = '80s Japanese comic'; 90s Japanese comic refers to category = '80s Japanese comic';", "youngest refers to MIN(age); female refers to gender = 'F';", "percentage = MULTIPLY(DIVIDE(SUM(gender = NULL and age = NULL and `group` = NULL), COUNT(device_id)), 1.0); vivo devices refers to phone_brand = 'vivo'; no information refers to gender = NULL AND age = NULL AND `group` = NULL;", "at 23:55:16 on 2016/5/7 refers to timestamp = '2016/5/7 23:55:16'; location coordinate (113, 28) refers to longitude = '113' AND latitude = '28';", "age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';"]}} {"set": {"query": "What is the ratio of active and inactive app users of the event ID \"58\"?", "pos": ["ratio = DIVIDE(SUM(is_active = 1), SUM(is_active = 0)); active refers to is_active = 1; inactive refers to is_active = 0;"], "neg": ["on 2016/5/1 at 0:55:25 refers to timestamp = '2016-05-01 00:55:25';", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "models of the devices refers to device_model; female refers to gender = 'F';", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "vivo device refers to phone_brand = 'vivo'; percentage = MULTIPLY(DIVIDE(COUNT(phone_brand = 'vivo WHERE group = 'M23-26), COUNT(phone_brand = 'vivo)), 100); M23-26 user group refers to group = 'M23-26';", "female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';", "ID of the device refers to device_id; youngest user refers to MIN(age);", "male refers to gender = 'M'; age group refers to group; `group` = 'M32-38';", "youngest user refers to MIN(age);", "age group refers to group; most OPPO users refers to MAX(COUNT(phone_brand = 'OPPO')); OPPO users refers to phone_brand = 'OPPO';"]}} {"set": {"query": "How many events have happened on device no.29182687948017100 in 2016?", "pos": ["device no. refers to device_id; device_id = 29182687948017100; in 2016 refers to `timestamp` LIKE '2016%';"], "neg": ["location = longitude, latitude;", "how many more = SUBTRACT(SUM(IF(phone_brand = 'vivo',1,0)), SUM(IF(phone_brand = 'LG',1,0))); brand vivo refers to phone_brand = 'vivo'; brand LG refers to phone_brand = 'LG';", "locate = longitude, latitude; women refers to gender = 'F'; under 30 years old refers to age < 30;", "active refers to is_active = 1;", "app user ID refers to app_id; app_id = 7324884708820020000;", "oldest user refers to MAX(age); active user refers to is_active = 1; on 5/6/2016 refers to timestamp LIKE '2016-05-06%'; coordinates 121, 31 refers to longitude = 121 AND latitude = 31;", "youngest refers to MIN(age); female refers to gender = 'F';", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "OPPO refers to phone_brand = 'OPPO'; percentage = MULTIPLY(DIVIDE(SUM(age < 50), COUNT(device_id)), 1.0); under 50 years old refers to age < 50;", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';"]}} {"set": {"query": "Identify by their id all the apps that belong to the game-stress reliever category.", "pos": ["id refers to device_id;"], "neg": ["male refers to gender = 'M';", "gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "male refers to gender = 'M';", "app no. refers to app_id; app_id = 1977658975649780000;", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "more app users refers to SUBTRACT(IF(SUM(category = 'Securities'), SUM(category = 'Finance')) > 0,'Securities','Finance') as more;", "event no. refers to event_id; event_id = 2; vivo devices refers to phone_brand = 'vivo';", "under 30 refers to age < 30;", "location coordinates = longitude, latitude; Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "device refers to device_id; device_id = -9222956879900150000;"]}} {"set": {"query": "Among the female users that uses OPPO as their phone brand, what is the percentage of them of the user that uses R815T model to install the app?", "pos": ["female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';"], "neg": ["gender that logged in the most refers to MAX(COUNT(gender)); first 10 days of May 2016 refers to timestamp BETWEEN '2016-05-01 00:00:00' AND '2016-05-10 23:59:59';", "brand of the device refers to phone_brand; youngest user refers to MIN(age);", "youngest user refers to MIN(age);", "male refers to gender = 'M';", "LG L70 refers to phone_brand = 'LG' AND device_model = 'L70';", "group of age refers to group;", "installed refers to is_installed = 1; not active refers to is_active = 0;", "male refers to gender = 'M'; Galaxy Note 3 refers to device_model = 'Galaxy Note 3';", "behavior category refers to category; category = 'comics';", "active refers to is_active = 1;"]}} {"set": {"query": "What are the top 3 categories with the most app users?", "pos": ["most app users refers to MAX(COUNT(app_id));"], "neg": ["brand refers to phone_brand; brand that is most common refers to MAX(COUNT(phone_brand)); twenties refers to age BETWEEN 20 AND 30;", "model refers to device_model; device_model = 'A51';", "installed refers to is_installed = 1; not active refers to is_active = 0;", "event no. refers to event_id; event_id = 2; not active refers to is_active = 0; earliest time refers to MIN(timestamp);", "HTC Desire 826 refers to phone_brand = 'HTC' AND device_model = 'Desire 826';", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "male refers to gender = 'Male';", "Galaxy Note 2 refers to device_model = 'Galaxy Note 2';", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "difference = SUBTRACT(SUM(latitude! = 0 and longitude! = 0), SUM(latitude = 0 and longitude = 0)); device number refers to device_id; device_id = -922956879900150000; can be location refers to latitude ! = 0 and longitude ! = 0; unable to be location refers to latitude = 0 and longitude = 0;"]}} {"set": {"query": "When did event number 7 happen for user number -8022267440849930000?", "pos": ["event number refers to event_id; event_id = 7; user number refers to app_id; app_id = -8022267440849930000;"], "neg": ["label that represented the behavior category refers to label_id;", "model of the device refers to device_model; oldest user refers to MAX(age);", "female refers to gender = 'F'; over the age of 50 refers to age > 50;", "female refers to gender = 'F'; percentage = DIVIDE(SUM(IF(phone_brand = 'OPPO',1,0)), SUM(IF(device_id = 'R815T',1,0))); R815T refers to device_id = 'R815T';", "\u9b45\u84ddNote 2 refers to device_model = '\u9b45\u84ddNote 2';", "vivo device refers to phone_brand = 'vivo'; youngest refers to MIN(age);", "models refers to device_model; HTC brand refers to phone_brand = 'HTC';", "females refers to gender = 'F'; aged 24 to 26 refers to `group` = 'F24-26';", "female refers to gender = 'F'; age group of 27 to 28 refers to `group` = 'F27-28';", "male refers to gender = 'M';"]}} {"set": {"query": "Please list the directions in which the trains with 4 short cars run.", "pos": ["short refers to len = 'short'; 4 cars run refers to position = 4"], "neg": ["majority of train refers to MAX(count(id))", "fully loaded refers to load_num = 3; head cars refers to position = 1", "at least one empty-loaded car run refers to load_num = 0", "2 or less cars refers to trailPosi < = 2", "eastbound refers to direction = 'east'; head cars refers to position = 1", "train no.1 refers to train_id = 1; tail car refers to position = 4", "short cars refers to len = 'short'; in the shape of hexagon refers to shape = 'hexagon'", "shape = 'ellipse'", "flat roof refers to roof = 'flat'", "running west refers to direction = 'west'; open roof refers to roof = 'none'"]}} {"set": {"query": "List all the load shapes of all head cars of each train and identify which load shape has the highest number. Calculate the percentage of the trains with the said head car that are running eas", "pos": ["which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)"], "neg": ["short refers to len = 'short'; ellipse cars refers to shape = 'ellipse'", "east is a direction; at least 4 cars refers to carsNum > = 4", "less than 4 cars refers to carsNum < 4", "2nd car refers to position = 2", "short refers to len = 'short'; 4 cars run refers to position = 4", "most of the trains refers to MAX(count(id)); second cars refers to position = 2", "long cars refers to len = 'long'", "eastbound refers to direction = 'east'; head cars refers to position = 1", "shape = 'ellipse'", "2 or less cars refers to trailPosi < = 2"]}} {"set": {"query": "How many trains are running west?", "pos": ["west is a direction"], "neg": ["majority of train refers to MAX(count(id))", "fully loaded refers to load_num = 3; head cars refers to position = 1", "flat roof refers to roof = 'flat'", "head cars refers to position = 1;", "most of the trains refers to MAX(count(id)); second cars refers to position = 2", "less than 4 cars refers to carsNum < 4", "east is a direction", "running west refers to direction = 'west'; open roof refers to roof = 'none'", "3 cars refers to carsNum = 3", "east is a direction; at least 4 cars refers to carsNum > = 4"]}} {"set": {"query": "How many wheels do the long cars have?", "pos": ["long cars refers to len = 'long'"], "neg": ["fully loaded refers to load_num = 3; head cars refers to position = 1", "at least one empty-loaded car run refers to load_num = 0", "most of the trains refers to MAX(count(id)); second cars refers to position = 2", "which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)", "west is a direction", "short refers to len = 'short'; 4 cars run refers to position = 4", "east is a direction", "majority of train refers to MAX(count(id))", "shape = 'ellipse'", "east is a direction; at least 4 cars refers to carsNum > = 4"]}} {"set": {"query": "How many trains with fully loaded head cars are running east?", "pos": ["fully loaded refers to load_num = 3; head cars refers to position = 1"], "neg": ["which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)", "shape = 'ellipse'", "less than 4 cars refers to carsNum < 4", "long cars refers to len = 'long'", "short refers to len = 'short'; ellipse cars refers to shape = 'ellipse'", "short cars refers to len = 'short'; in the shape of hexagon refers to shape = 'hexagon'", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "at least one empty-loaded car run refers to load_num = 0", "east is a direction; at least 4 cars refers to carsNum > = 4", "east is a direction"]}} {"set": {"query": "Please list the IDs of all the trains that run in the east direction and have less than 4 cars.", "pos": ["less than 4 cars refers to carsNum < 4"], "neg": ["2 or less cars refers to trailPosi < = 2", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)", "at least one empty-loaded car run refers to load_num = 0", "majority of train refers to MAX(count(id))", "short refers to len = 'short'; 4 cars run refers to position = 4", "most of the trains refers to MAX(count(id)); second cars refers to position = 2", "shape = 'ellipse'", "running west refers to direction = 'west'; open roof refers to roof = 'none'", "flat roof refers to roof = 'flat'"]}} {"set": {"query": "How many short cars are in the shape of hexagon?", "pos": ["short cars refers to len = 'short'; in the shape of hexagon refers to shape = 'hexagon'"], "neg": ["flat roof refers to roof = 'flat'; load_shape = 'circle'", "east is a direction; at least 4 cars refers to carsNum > = 4", "empty cars refers to load_num = 0", "head cars refers to position = 1;", "3 cars refers to carsNum = 3", "east is a direction", "west is a direction", "2 or less cars refers to trailPosi < = 2", "less than 4 cars refers to carsNum < 4", "most of the trains refers to MAX(count(id)); second cars refers to position = 2"]}} {"set": {"query": "Please list the shapes of all the head cars on the trains that run in the east direction.", "pos": ["head cars refers to position = 1;"], "neg": ["flat roof refers to roof = 'flat'", "running west refers to direction = 'west'; open roof refers to roof = 'none'", "short refers to len = 'short'; ellipse cars refers to shape = 'ellipse'", "short refers to len = 'short'; 4 cars run refers to position = 4", "empty cars refers to load_num = 0", "most of the trains refers to MAX(count(id)); second cars refers to position = 2", "west is a direction", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "shape = 'ellipse'", "majority of train refers to MAX(count(id))"]}} {"set": {"query": "Which direction do most of the trains with rectangle-shaped second cars run?", "pos": ["most of the trains refers to MAX(count(id)); second cars refers to position = 2"], "neg": ["2nd car refers to position = 2", "eastbound refers to direction = 'east'; head cars refers to position = 1", "running west refers to direction = 'west'; open roof refers to roof = 'none'", "at least one empty-loaded car run refers to load_num = 0", "fully loaded refers to load_num = 3; head cars refers to position = 1", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "2 or less cars refers to trailPosi < = 2", "head cars refers to position = 1;", "3 cars refers to carsNum = 3", "short refers to len = 'short'; ellipse cars refers to shape = 'ellipse'"]}} {"set": {"query": "In which direction does the train with an ellipse-shape car run?", "pos": ["shape = 'ellipse'"], "neg": ["empty cars refers to load_num = 0", "short refers to len = 'short'; 4 cars run refers to position = 4", "running west refers to direction = 'west'; open roof refers to roof = 'none'", "east is a direction; at least 4 cars refers to carsNum > = 4", "west is a direction", "less than 4 cars refers to carsNum < 4", "long cars refers to len = 'long'", "eastbound refers to direction = 'east'; head cars refers to position = 1", "at least one empty-loaded car run refers to load_num = 0", "3 cars refers to carsNum = 3"]}} {"set": {"query": "How many trains are there that run in the east direction?", "pos": ["east is a direction"], "neg": ["fully loaded refers to load_num = 3; head cars refers to position = 1", "short refers to len = 'short'; ellipse cars refers to shape = 'ellipse'", "west is a direction", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "flat roof refers to roof = 'flat'", "short cars refers to len = 'short'; in the shape of hexagon refers to shape = 'hexagon'", "2nd car refers to position = 2", "3 cars refers to carsNum = 3", "eastbound refers to direction = 'east'; head cars refers to position = 1", "less than 4 cars refers to carsNum < 4"]}} {"set": {"query": "What is the shape of the tail car on train no.1?", "pos": ["train no.1 refers to train_id = 1; tail car refers to position = 4"], "neg": ["which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "flat roof refers to roof = 'flat'", "running west refers to direction = 'west'; open roof refers to roof = 'none'", "eastbound refers to direction = 'east'; head cars refers to position = 1", "short cars refers to len = 'short'; in the shape of hexagon refers to shape = 'hexagon'", "fully loaded refers to load_num = 3; head cars refers to position = 1", "shape = 'ellipse'", "3 cars refers to carsNum = 3", "2nd car refers to position = 2"]}} {"set": {"query": "Which direction do the majority of the trains are running?", "pos": ["majority of train refers to MAX(count(id))"], "neg": ["2 or less cars refers to trailPosi < = 2", "fully loaded refers to load_num = 3; head cars refers to position = 1", "train no.1 refers to train_id = 1; tail car refers to position = 4", "flat roof refers to roof = 'flat'", "head cars refers to position = 1;", "short refers to len = 'short'; 4 cars run refers to position = 4", "west is a direction", "short cars refers to len = 'short'; in the shape of hexagon refers to shape = 'hexagon'", "3 cars refers to carsNum = 3", "less than 4 cars refers to carsNum < 4"]}} {"set": {"query": "How many cars on a train that runs in the east direction have a flat roof?", "pos": ["flat roof refers to roof = 'flat'"], "neg": ["3 cars refers to carsNum = 3", "short refers to len = 'short'; 4 cars run refers to position = 4", "at least one empty-loaded car run refers to load_num = 0", "long cars refers to len = 'long'", "shape = 'ellipse'", "most of the trains refers to MAX(count(id)); second cars refers to position = 2", "east is a direction", "which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)", "train no.1 refers to train_id = 1; tail car refers to position = 4", "empty cars refers to load_num = 0"]}} {"set": {"query": "Provide the directions for all the trains that have 2 or less cars.", "pos": ["2 or less cars refers to trailPosi < = 2"], "neg": ["train no.1 refers to train_id = 1; tail car refers to position = 4", "empty cars refers to load_num = 0", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "at least one empty-loaded car run refers to load_num = 0", "shape = 'ellipse'", "most of the trains refers to MAX(count(id)); second cars refers to position = 2", "less than 4 cars refers to carsNum < 4", "flat roof refers to roof = 'flat'", "fully loaded refers to load_num = 3; head cars refers to position = 1", "eastbound refers to direction = 'east'; head cars refers to position = 1"]}} {"set": {"query": "Which direction does the majority of the trains that have 3 cars are running?", "pos": ["3 cars refers to carsNum = 3"], "neg": ["east is a direction", "2 or less cars refers to trailPosi < = 2", "shape = 'ellipse'", "2nd car refers to position = 2", "east is a direction; at least 4 cars refers to carsNum > = 4", "short refers to len = 'short'; 4 cars run refers to position = 4", "train no.1 refers to train_id = 1; tail car refers to position = 4", "at least one empty-loaded car run refers to load_num = 0", "empty cars refers to load_num = 0", "most of the trains refers to MAX(count(id)); second cars refers to position = 2"]}} {"set": {"query": "List all the directions of the trains that have empty cars.", "pos": ["empty cars refers to load_num = 0"], "neg": ["short refers to len = 'short'; 4 cars run refers to position = 4", "2 or less cars refers to trailPosi < = 2", "majority of train refers to MAX(count(id))", "long cars refers to len = 'long'", "flat roof refers to roof = 'flat'", "2nd car refers to position = 2", "short cars refers to len = 'short'; in the shape of hexagon refers to shape = 'hexagon'", "at least one empty-loaded car run refers to load_num = 0", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "shape = 'ellipse'"]}} {"set": {"query": "Among the trains running east, how many trains have at least 4 cars?", "pos": ["east is a direction; at least 4 cars refers to carsNum > = 4"], "neg": ["train no.1 refers to train_id = 1; tail car refers to position = 4", "flat roof refers to roof = 'flat'", "which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)", "short refers to len = 'short'; 4 cars run refers to position = 4", "long cars refers to len = 'long'", "most of the trains refers to MAX(count(id)); second cars refers to position = 2", "fully loaded refers to load_num = 3; head cars refers to position = 1", "3 cars refers to carsNum = 3", "west is a direction", "majority of train refers to MAX(count(id))"]}} {"set": {"query": "Please list the directions in which the trains with at least one empty-loaded car run.", "pos": ["at least one empty-loaded car run refers to load_num = 0"], "neg": ["running west refers to direction = 'west'; open roof refers to roof = 'none'", "train no.1 refers to train_id = 1; tail car refers to position = 4", "2nd car refers to position = 2", "head cars refers to position = 1;", "less than 4 cars refers to carsNum < 4", "which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)", "empty cars refers to load_num = 0", "fully loaded refers to load_num = 3; head cars refers to position = 1", "majority of train refers to MAX(count(id))", "flat roof refers to roof = 'flat'; load_shape = 'circle'"]}} {"set": {"query": "What are the load shapes of all the short ellipse cars?", "pos": ["short refers to len = 'short'; ellipse cars refers to shape = 'ellipse'"], "neg": ["west is a direction", "eastbound refers to direction = 'east'; head cars refers to position = 1", "majority of train refers to MAX(count(id))", "east is a direction; at least 4 cars refers to carsNum > = 4", "at least one empty-loaded car run refers to load_num = 0", "head cars refers to position = 1;", "2nd car refers to position = 2", "long cars refers to len = 'long'", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "less than 4 cars refers to carsNum < 4"]}} {"set": {"query": "How many eastbound trains have rectangular-shaped head cars?", "pos": ["eastbound refers to direction = 'east'; head cars refers to position = 1"], "neg": ["train no.1 refers to train_id = 1; tail car refers to position = 4", "at least one empty-loaded car run refers to load_num = 0", "short refers to len = 'short'; 4 cars run refers to position = 4", "less than 4 cars refers to carsNum < 4", "fully loaded refers to load_num = 3; head cars refers to position = 1", "running west refers to direction = 'west'; open roof refers to roof = 'none'", "east is a direction; at least 4 cars refers to carsNum > = 4", "short refers to len = 'short'; ellipse cars refers to shape = 'ellipse'", "3 cars refers to carsNum = 3", "most of the trains refers to MAX(count(id)); second cars refers to position = 2"]}} {"set": {"query": "What is the direction of the train with a diamond-shaped load in its 2nd car?", "pos": ["2nd car refers to position = 2"], "neg": ["3 cars refers to carsNum = 3", "at least one empty-loaded car run refers to load_num = 0", "running west refers to direction = 'west'; open roof refers to roof = 'none'", "shape = 'ellipse'", "short refers to len = 'short'; ellipse cars refers to shape = 'ellipse'", "which load shape has the highest number refers to MAX(load_shape); head car refers to position = 1; east is a direction; calculation = MULTIPLY(DIVIDE(count(direction = 'east' where MAX(load_shape) where position = 1 then id), count(id)), 100)", "empty cars refers to load_num = 0", "short cars refers to len = 'short'; in the shape of hexagon refers to shape = 'hexagon'", "west is a direction", "east is a direction; at least 4 cars refers to carsNum > = 4"]}} {"set": {"query": "Among the trains running west, how many trains have no more than one car with an open roof?", "pos": ["running west refers to direction = 'west'; open roof refers to roof = 'none'"], "neg": ["at least one empty-loaded car run refers to load_num = 0", "east is a direction; at least 4 cars refers to carsNum > = 4", "flat roof refers to roof = 'flat'; load_shape = 'circle'", "head cars refers to position = 1;", "empty cars refers to load_num = 0", "less than 4 cars refers to carsNum < 4", "3 cars refers to carsNum = 3", "short cars refers to len = 'short'; in the shape of hexagon refers to shape = 'hexagon'", "short refers to len = 'short'; 4 cars run refers to position = 4", "majority of train refers to MAX(count(id))"]}} {"set": {"query": "Among the cars on a train that runs in the east direction, how many of them have a flat roof and a circle load shape?", "pos": ["flat roof refers to roof = 'flat'; load_shape = 'circle'"], "neg": ["head cars refers to position = 1;", "east is a direction", "short refers to len = 'short'; ellipse cars refers to shape = 'ellipse'", "east is a direction; at least 4 cars refers to carsNum > = 4", "at least one empty-loaded car run refers to load_num = 0", "eastbound refers to direction = 'east'; head cars refers to position = 1", "fully loaded refers to load_num = 3; head cars refers to position = 1", "majority of train refers to MAX(count(id))", "running west refers to direction = 'west'; open roof refers to roof = 'none'", "short refers to len = 'short'; 4 cars run refers to position = 4"]}} {"set": {"query": "For the university id 268, show its number of students in 2013.", "pos": ["number of students refers to num_students; in 2013 refers to year = 2013"], "neg": ["Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students", "in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name", "names of the criteria refers to criteria_name; under Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "in 2011 refers to year 2011; the most students refers to MAX(num_students); which university refers to university_name;", "number of international students refers to DIVIDE(MULTIPLY(pct_international_students, num_students), 100); in 2013 refers to year = 2013", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "ranking system called Center for World University Ranking refers to system_name = 'Center for World University Rankings';", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id"]}} {"set": {"query": "How many universities had above 30% of international students in 2013?", "pos": ["had above 30% of international students refers to pct_international_students > 30; in 2013 refers to year = 2013"], "neg": ["average number of criterias refers to DIVIDE(SUM(id), 3); \"Times Higher Education World University Ranking\", \"Shanghai Ranking\" and \"Center for World University Rankings\" refers to system_name IN ('Times Higher Education World University Ranking', 'Shanghai Ranking', 'Center for World University Rankings');", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014", "Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score)", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "number of students refers to num_students; in 2013 refers to year = 2013", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "have no less than 50,000 students refers to num_students > 50000; name of university refers to university_name;", "Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name"]}} {"set": {"query": "In Argentina, how many universities are there?", "pos": ["In Argentina refers to country_name = 'Argentina';"], "neg": ["Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012", "female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); in United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(SUM(DIVIDE(MULTIPLY(num_students, pct_female_students), 100)), SUM(num_students))", "have at least 80,000 students refers to num_students > 8000; year = 2011", "have the most students refers to MAX(num_students)", "student population refers to num_students; in 2013 refers to year = 2013", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on \"Influence Rank\" refers to criteria_name = 'Influence Rank';"]}} {"set": {"query": "What is the name of the university that had the highest number of international students for 6 consecutive years?", "pos": ["had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;"], "neg": ["institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "had the highest reputation refers to MAX(score), in 2012 refers to year = 2012; which university refers to university_name;", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "average score refers to avg(score); between year 2013 to 2015 refers to year BETWEEN 2013 AND 2015"]}} {"set": {"query": "Give the name of the country that has the most universities.", "pos": ["has the most universities refers to MAX(COUNT(id)); name of the country refers to country_name"], "neg": ["the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013", "Brown University refers to university_name = 'Brown University'; in 2014 refers to year = 2014", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'"]}} {"set": {"query": "Name the most famous university in Argentina.", "pos": ["in Argentina refers to country_name = 'Argentina';\u00a0 most famous refers to MAX(SUM(score))"], "neg": ["most students refers to MAX(num_students), in 2011 refers to year = 2011", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "ranking system called Center for World University Ranking refers to system_name = 'Center for World University Rankings';", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;", "had above 30% of international students refers to pct_international_students > 30; in 2013 refers to year = 2013", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id"]}} {"set": {"query": "Show the name of the university with the lowest number of students in 2015.", "pos": ["lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;"], "neg": ["in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on \"Influence Rank\" refers to criteria_name = 'Influence Rank';", "female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); in United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(SUM(DIVIDE(MULTIPLY(num_students, pct_female_students), 100)), SUM(num_students))", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "in 2011 refers to year 2011; female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); Stanford University refers to university_name = 'Stanford University';", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "highest student staff ratio refers to max(student_staff_ratio)"]}} {"set": {"query": "How many universities have no less than 20,000 female students in 2016? Identify how many of the said universities are located in the United States of America.", "pos": ["have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'"], "neg": ["lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013", "University of Southampton refers to university_name = 'University of Southampton'; in 2015 refers to year = 2015; score the best refers to MAX(score); which criteria refers to criteria_name", "in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "had the lowest number of students refers to MIN(num_students)", "Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students"]}} {"set": {"query": "What is the student staff ratio of the university with the highest student staff ratio of all time?", "pos": ["highest student staff ratio refers to max(student_staff_ratio)"], "neg": ["the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "have no less than 50,000 students refers to num_students > 50000; name of university refers to university_name;", "Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012", "Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "has the most universities refers to MAX(COUNT(id)); name of the country refers to country_name", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "has the lowest number of students refers to min(num_students); name of the university refers to university_name"]}} {"set": {"query": "Calculate the total number of students in universities located in Sweden.", "pos": ["located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students"], "neg": ["Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "highest student staff ratio refers to max(student_staff_ratio)", "number of international students refers to DIVIDE(MULTIPLY(pct_international_students, num_students), 100); in 2013 refers to year = 2013", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name", "under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';"]}} {"set": {"query": "How many percent of universities got a score above 80 under International criteria in 2016? Among them, name the university which got the highest score.", "pos": ["got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)"], "neg": ["scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on \"Influence Rank\" refers to criteria_name = 'Influence Rank';", "ranking system called Center for World University Ranking refers to system_name = 'Center for World University Rankings';", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'"]}} {"set": {"query": "What are the names of the universities that got 98 in teaching in 2011?", "pos": ["in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name"], "neg": ["criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "greatest student staff ratio of all time refers to max(student_staff_ratio)", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "location refers to country_name", "highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id"]}} {"set": {"query": "How many universities scored 40 in teaching criteria?", "pos": ["scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'"], "neg": ["in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;", "have at least 80,000 students refers to num_students > 8000; year = 2011", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "highest student staff ratio refers to max(student_staff_ratio)", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;"]}} {"set": {"query": "Give the names of universities with number of students ranges from 400 to 1000.", "pos": ["number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name"], "neg": ["have no less than 50,000 students refers to num_students > 50000; name of university refers to university_name;", "most international students refers to MAX(SUM(DIVIDE(MULTIPLE(pct_international_students, num_students), 100))); name of university refers to university_name;", "greatest student staff ratio of all time refers to max(student_staff_ratio)", "University of Tokyo refers to university_name = 'University of Tokyo';", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "Cyprus refers to country_name = 'Cyprus';", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;"]}} {"set": {"query": "Calculate the average score of Emory University from 2011 to 2016.", "pos": ["average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;"], "neg": ["of Harvard University refers to university_name = 'Harvard University';", "Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on \"Influence Rank\" refers to criteria_name = 'Influence Rank';", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "most international students refers to MAX(SUM(DIVIDE(MULTIPLE(pct_international_students, num_students), 100))); name of university refers to university_name;", "in 2011 refers to year 2011; more than 100,000 students refers to num_students > 100000; which university refers to university_name;", "most students refers to MAX(num_students), in 2011 refers to year = 2011", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "In Argentina refers to country_name = 'Argentina';"]}} {"set": {"query": "Among the universities in United States of America, what is the percentage of female students in year 2016?", "pos": ["female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); in United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(SUM(DIVIDE(MULTIPLY(num_students, pct_female_students), 100)), SUM(num_students))"], "neg": ["had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "have no less than 50,000 students refers to num_students > 50000; name of university refers to university_name;", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "Harvard University refers to university_name = 'Harvard University'; nation refers to country_name", "number of students refers to num_students; in 2013 refers to year = 2013", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "in 2011 refers to year 2011; less than 50 scores refers to score < 50;"]}} {"set": {"query": "What are the names of the top 5 universities with the highest number of international students?", "pos": ["highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;"], "neg": ["under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "scored 70 and below refers to score < 70; in 2016 refers to year = 2016", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100"]}} {"set": {"query": "In what year does the Brown University score the highest?", "pos": ["Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score)"], "neg": ["had the lowest number of students refers to MIN(num_students)", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014", "located in Japan refers to country_name = 'Japan';", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "have at least 80,000 students refers to num_students > 8000; year = 2011"]}} {"set": {"query": "Which universities have more than 100,000 students in 2011?", "pos": ["in 2011 refers to year 2011; more than 100,000 students refers to num_students > 100000; which university refers to university_name;"], "neg": ["had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "has the most universities refers to MAX(COUNT(id)); name of the country refers to country_name", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "average number of criterias refers to DIVIDE(SUM(id), 3); \"Times Higher Education World University Ranking\", \"Shanghai Ranking\" and \"Center for World University Rankings\" refers to system_name IN ('Times Higher Education World University Ranking', 'Shanghai Ranking', 'Center for World University Rankings');", "institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id"]}} {"set": {"query": "In which year did university ID 1 have the most students?", "pos": ["have the most students refers to MAX(num_students)"], "neg": ["have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012", "Brown University refers to university_name = 'Brown University'; in 2014 refers to year = 2014", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "University of Tokyo refers to university_name = 'University of Tokyo';", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "number of international students refers to DIVIDE(MULTIPLY(pct_international_students, num_students), 100); in 2013 refers to year = 2013"]}} {"set": {"query": "What are the top three universities with the most international students?", "pos": ["most international students refers to MAX(SUM(DIVIDE(MULTIPLE(pct_international_students, num_students), 100))); name of university refers to university_name;"], "neg": ["highest student staff ratio refers to max(student_staff_ratio)", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "Cyprus refers to country_name = 'Cyprus';", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "have at least 80,000 students refers to num_students > 8000; year = 2011", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "greatest student staff ratio of all time refers to max(student_staff_ratio)"]}} {"set": {"query": "Please list the names of all the universities that scored under 60 in teaching in 2011 and are in the United States of America.", "pos": ["scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';"], "neg": ["in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "in 2011 refers to year 2011; less than 50 scores refers to score < 50;", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "in 2011 refers to year 2011; had over 30000 students refers to num_students > 30000;", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "In Argentina refers to country_name = 'Argentina';"]}} {"set": {"query": "Which ranking system is criteria \"Total Shanghai\" in?", "pos": ["criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name"], "neg": ["scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "in Argentina refers to country_name = 'Argentina';\u00a0 most famous refers to MAX(SUM(score))", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "had the highest reputation refers to MAX(score), in 2012 refers to year = 2012; which university refers to university_name;", "have no less than 50,000 students refers to num_students > 50000; name of university refers to university_name;", "criteria named Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'; ranking system refers to system_name;", "most international students refers to MAX(SUM(DIVIDE(MULTIPLE(pct_international_students, num_students), 100))); name of university refers to university_name;", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';"]}} {"set": {"query": "What is the country ID of the University of Tokyo?", "pos": ["University of Tokyo refers to university_name = 'University of Tokyo';"], "neg": ["\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "number of students refers to num_students; in 2013 refers to year = 2013", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "of Harvard University refers to university_name = 'Harvard University';", "has the lowest number of students refers to min(num_students); name of the university refers to university_name"]}} {"set": {"query": "Give the location of the university ID 112.", "pos": ["location refers to country_name"], "neg": ["under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "criteria named Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'; ranking system refers to system_name;", "In Argentina refers to country_name = 'Argentina';", "in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "student population refers to num_students; in 2013 refers to year = 2013", "largest percentage of international students refers to MAX(pct_international_students); ID of university refers to university_id", "have at least 80,000 students refers to num_students > 8000; year = 2011"]}} {"set": {"query": "Calculate the difference between the total number of students and the number of international international students in Univeristy of Tokyo from 2011 to 2014.", "pos": ["international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014"], "neg": ["international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "have at least 80,000 students refers to num_students > 8000; year = 2011", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "location refers to country_name", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'"]}} {"set": {"query": "Name the university and country which had the highest number of international students in 2015.", "pos": ["highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;"], "neg": ["criteria named Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'; ranking system refers to system_name;", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014", "criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "in Argentina refers to country_name = 'Argentina';\u00a0 most famous refers to MAX(SUM(score))", "names of the criteria refers to criteria_name; under Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013"]}} {"set": {"query": "What is the name of the university with the most international students in 2011?", "pos": ["in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id"], "neg": ["most international students refers to MAX(SUM(DIVIDE(MULTIPLE(pct_international_students, num_students), 100))); name of university refers to university_name;", "Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score)", "have no less than 50,000 students refers to num_students > 50000; name of university refers to university_name;", "in Australia refers to country_name = 'Australia'; name of university refers to university_name", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "University of Tokyo refers to university_name = 'University of Tokyo';"]}} {"set": {"query": "Which university had the highest reputation in 2012?", "pos": ["had the highest reputation refers to MAX(score), in 2012 refers to year = 2012; which university refers to university_name;"], "neg": ["in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012", "of Harvard University refers to university_name = 'Harvard University';", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;", "In Argentina refers to country_name = 'Argentina';", "have the most students refers to MAX(num_students)", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';"]}} {"set": {"query": "Provide the number of staff at the University of Auckland in 2015.", "pos": ["University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)"], "neg": ["in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "located in Japan refers to country_name = 'Japan';", "criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "number of students refers to num_students; in 2013 refers to year = 2013", "highest student staff ratio refers to max(student_staff_ratio)", "in 2011 refers to year 2011; less than 50 scores refers to score < 50;", "average score refers to avg(score); between year 2013 to 2015 refers to year BETWEEN 2013 AND 2015", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012"]}} {"set": {"query": "Name the university that had the most students in 2011.", "pos": ["in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;"], "neg": ["highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "scored 70 and below refers to score < 70; in 2016 refers to year = 2016", "criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100", "in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "greatest student staff ratio of all time refers to max(student_staff_ratio)"]}} {"set": {"query": "In 2014, what is the name of the university which was considered a leader in the publications rank?", "pos": ["In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;"], "neg": ["average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "In Argentina refers to country_name = 'Argentina';", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name", "in 2011 refers to year 2011; had over 30000 students refers to num_students > 30000;", "greatest student staff ratio of all time refers to max(student_staff_ratio)", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students"]}} {"set": {"query": "Give the name of the university with the most number of students in 2015.", "pos": ["most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;"], "neg": ["international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "has the most universities refers to MAX(COUNT(id)); name of the country refers to country_name", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "of Harvard University refers to university_name = 'Harvard University';", "Harvard University refers to university_name = 'Harvard University'; nation refers to country_name", "institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;"]}} {"set": {"query": "How many universities got less than 50 scores under ranking criteria ID 6 in 2011?", "pos": ["in 2011 refers to year 2011; less than 50 scores refers to score < 50;"], "neg": ["most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "have the most students refers to MAX(num_students)", "Harvard University refers to university_name = 'Harvard University'; nation refers to country_name", "largest percentage of international students refers to MAX(pct_international_students); ID of university refers to university_id", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "Cyprus refers to country_name = 'Cyprus';", "with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;"]}} {"set": {"query": "List the criteria names under the ranking system called Center for World University Ranking.", "pos": ["ranking system called Center for World University Ranking refers to system_name = 'Center for World University Rankings';"], "neg": ["in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name", "in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;", "In Argentina refers to country_name = 'Argentina';", "Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "has the most universities refers to MAX(COUNT(id)); name of the country refers to country_name", "highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'"]}} {"set": {"query": "Among the universities with a score in teaching of over 90 in 2011, how many of them are in the United States of America?", "pos": ["in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';"], "neg": ["in 2011 refers to year 2011; female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); Stanford University refers to university_name = 'Stanford University';", "scored 70 and below refers to score < 70; in 2016 refers to year = 2016", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score)", "of Harvard University refers to university_name = 'Harvard University';", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); in United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(SUM(DIVIDE(MULTIPLY(num_students, pct_female_students), 100)), SUM(num_students))", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "ranking system called Center for World University Ranking refers to system_name = 'Center for World University Rankings';"]}} {"set": {"query": "Provide the country ID of Cyprus.", "pos": ["Cyprus refers to country_name = 'Cyprus';"], "neg": ["number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "scored 70 and below refers to score < 70; in 2016 refers to year = 2016", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "location refers to country_name", "located in Japan refers to country_name = 'Japan';", "in 2011 refers to year 2011; more than 100,000 students refers to num_students > 100000; which university refers to university_name;", "criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "criteria named Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'; ranking system refers to system_name;"]}} {"set": {"query": "Please list the names of all the ranking criteria of Harvard University in 2011.", "pos": ["in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name"], "neg": ["in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;", "criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;", "largest percentage of international students refers to MAX(pct_international_students); ID of university refers to university_id", "female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); in United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(SUM(DIVIDE(MULTIPLY(num_students, pct_female_students), 100)), SUM(num_students))", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "Cyprus refers to country_name = 'Cyprus';"]}} {"set": {"query": "What is the university ID of Harvard University?", "pos": ["of Harvard University refers to university_name = 'Harvard University';"], "neg": ["most international students refers to MAX(SUM(DIVIDE(MULTIPLE(pct_international_students, num_students), 100))); name of university refers to university_name;", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "in Argentina refers to country_name = 'Argentina';\u00a0 most famous refers to MAX(SUM(score))", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';", "criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "Brown University refers to university_name = 'Brown University'; in 2014 refers to year = 2014"]}} {"set": {"query": "Calculate the average score of university ID 79 between year 2013 to 2015.", "pos": ["average score refers to avg(score); between year 2013 to 2015 refers to year BETWEEN 2013 AND 2015"], "neg": ["had the highest reputation refers to MAX(score), in 2012 refers to year = 2012; which university refers to university_name;", "Cyprus refers to country_name = 'Cyprus';", "largest percentage of international students refers to MAX(pct_international_students); ID of university refers to university_id", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students", "have no less than 50,000 students refers to num_students > 50000; name of university refers to university_name;", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "in Australia refers to country_name = 'Australia'; name of university refers to university_name", "under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))"]}} {"set": {"query": "Provide the number of international students and number of students in 2013 in university ID 20.", "pos": ["number of international students refers to DIVIDE(MULTIPLY(pct_international_students, num_students), 100); in 2013 refers to year = 2013"], "neg": ["Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on \"Influence Rank\" refers to criteria_name = 'Influence Rank';", "Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score)", "most students refers to MAX(num_students), in 2011 refers to year = 2011", "in 2011 refers to year 2011; more than 100,000 students refers to num_students > 100000; which university refers to university_name;", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;", "located in Japan refers to country_name = 'Japan';"]}} {"set": {"query": "List the names of all the universities that have no less than 50,000 students in the year 2012.", "pos": ["have no less than 50,000 students refers to num_students > 50000; name of university refers to university_name;"], "neg": ["largest percentage of international students refers to MAX(pct_international_students); ID of university refers to university_id", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "average number of criterias refers to DIVIDE(SUM(id), 3); \"Times Higher Education World University Ranking\", \"Shanghai Ranking\" and \"Center for World University Rankings\" refers to system_name IN ('Times Higher Education World University Ranking', 'Shanghai Ranking', 'Center for World University Rankings');", "number of students refers to num_students; in 2013 refers to year = 2013", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "student population refers to num_students; in 2013 refers to year = 2013", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013"]}} {"set": {"query": "Please list the names of all the universities in Australia.", "pos": ["in Australia refers to country_name = 'Australia'; name of university refers to university_name"], "neg": ["in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "had above 30% of international students refers to pct_international_students > 30; in 2013 refers to year = 2013", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;", "most international students refers to MAX(SUM(DIVIDE(MULTIPLE(pct_international_students, num_students), 100))); name of university refers to university_name;"]}} {"set": {"query": "For the University of Southampton in 2015, on which criteria did it score the best?", "pos": ["University of Southampton refers to university_name = 'University of Southampton'; in 2015 refers to year = 2015; score the best refers to MAX(score); which criteria refers to criteria_name"], "neg": ["under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014", "in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;", "located in Japan refers to country_name = 'Japan';", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;"]}} {"set": {"query": "What is the id of the criteria \"Citations Rank\"?", "pos": ["criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';"], "neg": ["in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;", "Cyprus refers to country_name = 'Cyprus';", "number of students refers to num_students; in 2013 refers to year = 2013", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id", "with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "had the lowest number of students refers to MIN(num_students)", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "has the most universities refers to MAX(COUNT(id)); name of the country refers to country_name"]}} {"set": {"query": "In which country does Johns Hopkins University located?", "pos": ["Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name"], "neg": ["most international students refers to MAX(SUM(DIVIDE(MULTIPLE(pct_international_students, num_students), 100))); name of university refers to university_name;", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "ranking system called Center for World University Ranking refers to system_name = 'Center for World University Rankings';", "largest percentage of international students refers to MAX(pct_international_students); ID of university refers to university_id", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "location refers to country_name", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'"]}} {"set": {"query": "How many universities had over 30000 students in 2011?", "pos": ["in 2011 refers to year 2011; had over 30000 students refers to num_students > 30000;"], "neg": ["under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "University of Southampton refers to university_name = 'University of Southampton'; in 2015 refers to year = 2015; score the best refers to MAX(score); which criteria refers to criteria_name", "most students refers to MAX(num_students), in 2011 refers to year = 2011", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "University of Tokyo refers to university_name = 'University of Tokyo';"]}} {"set": {"query": "How many universities are located in Japan?", "pos": ["located in Japan refers to country_name = 'Japan';"], "neg": ["In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "has the most universities refers to MAX(COUNT(id)); name of the country refers to country_name", "had the lowest number of students refers to MIN(num_students)", "female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); in United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(SUM(DIVIDE(MULTIPLY(num_students, pct_female_students), 100)), SUM(num_students))", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "number of international students refers to DIVIDE(MULTIPLY(pct_international_students, num_students), 100); in 2013 refers to year = 2013", "criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;"]}} {"set": {"query": "Indicate the university's name with the highest ranking score in Teaching.", "pos": ["university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'"], "neg": ["located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "had the lowest number of students refers to MIN(num_students)", "institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;", "in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "University of Southampton refers to university_name = 'University of Southampton'; in 2015 refers to year = 2015; score the best refers to MAX(score); which criteria refers to criteria_name"]}} {"set": {"query": "What is the ranking criteria ID of Brown University in 2014?", "pos": ["Brown University refers to university_name = 'Brown University'; in 2014 refers to year = 2014"], "neg": ["\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "in Australia refers to country_name = 'Australia'; name of university refers to university_name", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'", "have at least 80,000 students refers to num_students > 8000; year = 2011", "names of the criteria refers to criteria_name; under Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;", "in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;", "student population refers to num_students; in 2013 refers to year = 2013"]}} {"set": {"query": "List the countries of universities that scored 70 and below in 2016.", "pos": ["scored 70 and below refers to score < 70; in 2016 refers to year = 2016"], "neg": ["University of Tokyo refers to university_name = 'University of Tokyo';", "in 2011 refers to year 2011; more than 100,000 students refers to num_students > 100000; which university refers to university_name;", "Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "of Harvard University refers to university_name = 'Harvard University';", "have the most students refers to MAX(num_students)", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name", "names of the criteria refers to criteria_name; under Center for World University Rankings refers to system_name = 'Center for World University Rankings';"]}} {"set": {"query": "Compute the average score of the university located in Brazil.", "pos": ["average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';"], "neg": ["international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "Harvard University refers to university_name = 'Harvard University'; nation refers to country_name", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "in 2011 refers to year 2011; the most students refers to MAX(num_students); which university refers to university_name;", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id", "had the lowest number of students refers to MIN(num_students)", "with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;"]}} {"set": {"query": "Please list the IDs of the universities with a student staff ratio of over 15 in 2011.", "pos": ["in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id"], "neg": ["criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "most students refers to MAX(num_students), in 2011 refers to year = 2011", "Brown University refers to university_name = 'Brown University'; in 2014 refers to year = 2014", "highest student staff ratio refers to max(student_staff_ratio)", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name"]}} {"set": {"query": "What is the difference in overall student enrollment and international student enrollment at the Harvard university from 2011 to 2012?", "pos": ["Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012"], "neg": ["of Harvard University refers to university_name = 'Harvard University';", "most students refers to MAX(num_students), in 2011 refers to year = 2011", "scored 70 and below refers to score < 70; in 2016 refers to year = 2016", "have at least 80,000 students refers to num_students > 8000; year = 2011", "have the most students refers to MAX(num_students)", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';", "average number of criterias refers to DIVIDE(SUM(id), 3); \"Times Higher Education World University Ranking\", \"Shanghai Ranking\" and \"Center for World University Rankings\" refers to system_name IN ('Times Higher Education World University Ranking', 'Shanghai Ranking', 'Center for World University Rankings');", "in 2011 refers to year 2011; more than 100,000 students refers to num_students > 100000; which university refers to university_name;"]}} {"set": {"query": "How many female students did Stanford University have in 2011?", "pos": ["in 2011 refers to year 2011; female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); Stanford University refers to university_name = 'Stanford University';"], "neg": ["criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "Cyprus refers to country_name = 'Cyprus';", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "Brown University refers to university_name = 'Brown University'; in 2014 refers to year = 2014", "had the highest reputation refers to MAX(score), in 2012 refers to year = 2012; which university refers to university_name;", "in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';", "have at least 80,000 students refers to num_students > 8000; year = 2011", "had the lowest number of students refers to MIN(num_students)"]}} {"set": {"query": "How many times did the Yale University achieve a score of no less than 10 in the Quality of Education Rank?", "pos": ["Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'"], "neg": ["have at least 80,000 students refers to num_students > 8000; year = 2011", "greatest student staff ratio of all time refers to max(student_staff_ratio)", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'"]}} {"set": {"query": "Calculate the number of international students of University of Wisconsin-Madison in 2013.", "pos": ["international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013"], "neg": ["University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "ranking system called Center for World University Ranking refers to system_name = 'Center for World University Rankings';", "University of Tokyo refers to university_name = 'University of Tokyo';", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name", "Harvard University refers to university_name = 'Harvard University'; nation refers to country_name", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "have no less than 50,000 students refers to num_students > 50000; name of university refers to university_name;"]}} {"set": {"query": "In years 2011 to 2013, what is the total number of female students in university ID 40?", "pos": ["total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013"], "neg": ["university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'", "number of international students refers to DIVIDE(MULTIPLY(pct_international_students, num_students), 100); in 2013 refers to year = 2013", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "Cyprus refers to country_name = 'Cyprus';", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "in Australia refers to country_name = 'Australia'; name of university refers to university_name", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100"]}} {"set": {"query": "For Chosun University, what was its score on \"Influence Rank\" in 2015?", "pos": ["Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on \"Influence Rank\" refers to criteria_name = 'Influence Rank';"], "neg": ["average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "in 2011 refers to year 2011; had over 30000 students refers to num_students > 30000;", "Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "had the lowest number of students refers to MIN(num_students)", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "names of the criteria refers to criteria_name; under Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';"]}} {"set": {"query": "What is the percentage of Harvard university's international students in 2011?", "pos": ["Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students"], "neg": ["highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on \"Influence Rank\" refers to criteria_name = 'Influence Rank';", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "student population refers to num_students; in 2013 refers to year = 2013", "scored 70 and below refers to score < 70; in 2016 refers to year = 2016"]}} {"set": {"query": "What is the student staff ratio at the university with the greatest student staff ratio of all time?", "pos": ["greatest student staff ratio of all time refers to max(student_staff_ratio)"], "neg": ["have the most students refers to MAX(num_students)", "Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;", "Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012"]}} {"set": {"query": "How many universities have at least 80,000 students in the year 2011?", "pos": ["have at least 80,000 students refers to num_students > 8000; year = 2011"], "neg": ["Harvard University refers to university_name = 'Harvard University'; nation refers to country_name", "University of Southampton refers to university_name = 'University of Southampton'; in 2015 refers to year = 2015; score the best refers to MAX(score); which criteria refers to criteria_name", "with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "average number of criterias refers to DIVIDE(SUM(id), 3); \"Times Higher Education World University Ranking\", \"Shanghai Ranking\" and \"Center for World University Rankings\" refers to system_name IN ('Times Higher Education World University Ranking', 'Shanghai Ranking', 'Center for World University Rankings');", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "number of international students refers to DIVIDE(MULTIPLY(pct_international_students, num_students), 100); in 2013 refers to year = 2013", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name"]}} {"set": {"query": "How many students did Harvard University have in 2011?", "pos": ["in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';"], "neg": ["in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "had the lowest number of students refers to MIN(num_students)", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "in 2011 refers to year 2011; the most students refers to MAX(num_students); which university refers to university_name;", "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013", "most students refers to MAX(num_students), in 2011 refers to year = 2011", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id"]}} {"set": {"query": "Among the universities in Australia, how many of them have more than 15000 students in 2011?", "pos": ["in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';"], "neg": ["located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "in 2011 refers to year 2011; more than 100,000 students refers to num_students > 100000; which university refers to university_name;", "had the highest reputation refers to MAX(score), in 2012 refers to year = 2012; which university refers to university_name;", "in 2011 refers to year 2011; had over 30000 students refers to num_students > 30000;", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "ranking system called Center for World University Ranking refers to system_name = 'Center for World University Rankings';", "In Argentina refers to country_name = 'Argentina';", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name"]}} {"set": {"query": "Among the universities with over 20000 students in 2011, how many of them have an international students percentage of over 25% in the same year?", "pos": ["in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;"], "neg": ["greatest student staff ratio of all time refers to max(student_staff_ratio)", "in 2011 refers to year 2011; less than 50 scores refers to score < 50;", "highest student staff ratio refers to max(student_staff_ratio)", "University of Southampton refers to university_name = 'University of Southampton'; in 2015 refers to year = 2015; score the best refers to MAX(score); which criteria refers to criteria_name", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "location refers to country_name"]}} {"set": {"query": "What is the ID of university with the largest percentage of international students?", "pos": ["largest percentage of international students refers to MAX(pct_international_students); ID of university refers to university_id"], "neg": ["Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "in 2011 refers to year 2011; less than 50 scores refers to score < 50;", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id", "highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name"]}} {"set": {"query": "What is the name of the university with the highest score in teaching in the year 2011?", "pos": ["with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;"], "neg": ["in 2011 refers to year 2011; had over 30000 students refers to num_students > 30000;", "Cyprus refers to country_name = 'Cyprus';", "has the most universities refers to MAX(COUNT(id)); name of the country refers to country_name", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;", "University of Tokyo refers to university_name = 'University of Tokyo';", "University of Southampton refers to university_name = 'University of Southampton'; in 2015 refers to year = 2015; score the best refers to MAX(score); which criteria refers to criteria_name", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students", "student population refers to num_students; in 2013 refers to year = 2013", "average score refers to avg(score); between year 2013 to 2015 refers to year BETWEEN 2013 AND 2015"]}} {"set": {"query": "Calculate the average score per university under Alumni criteria in 2008.", "pos": ["under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))"], "neg": ["average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "greatest student staff ratio of all time refers to max(student_staff_ratio)", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "in 2011 refers to year 2011; the most students refers to MAX(num_students); which university refers to university_name;", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';"]}} {"set": {"query": "What is the student staff ratio of Harvard University in 2012?", "pos": ["Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012"], "neg": ["Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score)", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name", "student population refers to num_students; in 2013 refers to year = 2013", "location refers to country_name", "Johns Hopkins University refers to university_name = 'Johns Hopkins University'; which country refers to country_name", "criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name"]}} {"set": {"query": "List the ranking criteria under the Shanghai Ranking system.", "pos": ["Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name"], "neg": ["in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "had above 30% of international students refers to pct_international_students > 30; in 2013 refers to year = 2013", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "ranking system called Center for World University Ranking refers to system_name = 'Center for World University Rankings';", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013"]}} {"set": {"query": "Calculate the average number of criterias among \"Times Higher Education World University Ranking\",\"Shanghai Ranking\" and \"Center for World University Rankings\".", "pos": ["average number of criterias refers to DIVIDE(SUM(id), 3); \"Times Higher Education World University Ranking\", \"Shanghai Ranking\" and \"Center for World University Rankings\" refers to system_name IN ('Times Higher Education World University Ranking', 'Shanghai Ranking', 'Center for World University Rankings');"], "neg": ["University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "number of students refers to num_students; in 2013 refers to year = 2013", "location refers to country_name", "criteria named Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'; ranking system refers to system_name;", "Harvard University refers to university_name = 'Harvard University'; nation refers to country_name", "had the lowest number of students refers to MIN(num_students)", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'", "located in Japan refers to country_name = 'Japan';", "in 2011 refers to year = 2011; had the most students refers to MAX(num_students); name of university refers to university_name;", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;"]}} {"set": {"query": "Give the year where a university had the lowest number of students.", "pos": ["had the lowest number of students refers to MIN(num_students)"], "neg": ["\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "location refers to country_name", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'", "Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;"]}} {"set": {"query": "What are the names of the criteria under Center for World University Rankings?", "pos": ["names of the criteria refers to criteria_name; under Center for World University Rankings refers to system_name = 'Center for World University Rankings';"], "neg": ["in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "had above 30% of international students refers to pct_international_students > 30; in 2013 refers to year = 2013", "Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on \"Influence Rank\" refers to criteria_name = 'Influence Rank';", "criteria \"Citations Rank\" refers to criteria_name = 'Citations Rank';", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "in 2011 refers to year 2011; had over 30000 students refers to num_students > 30000;"]}} {"set": {"query": "Provide the name of the university with the highest number of male students.", "pos": ["highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name"], "neg": ["highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "student population refers to num_students; in 2013 refers to year = 2013", "location refers to country_name", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014", "scored 70 and below refers to score < 70; in 2016 refers to year = 2016", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';"]}} {"set": {"query": "Give the id of \"Center for World University Rankings\".", "pos": ["\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';"], "neg": ["scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';", "University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "Chosun University refers to university_name = 'Chosun University'; in 2015 refers to year = 2015; on \"Influence Rank\" refers to criteria_name = 'Influence Rank';", "under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "in 2011 refers to year 2011; student staff ratio of over 15 refers to student_staff_ratio > 15; ID of the university refers to university_id", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)"]}} {"set": {"query": "What is the student population of the university that scored 98 in 2013?", "pos": ["student population refers to num_students; in 2013 refers to year = 2013"], "neg": ["located in Japan refers to country_name = 'Japan';", "highest student staff ratio refers to max(student_staff_ratio)", "Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); name of university refers to university_name;", "have the most students refers to MAX(num_students)", "average score refers to avg(score); between year 2013 to 2015 refers to year BETWEEN 2013 AND 2015", "Cyprus refers to country_name = 'Cyprus';", "in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "greatest student staff ratio of all time refers to max(student_staff_ratio)"]}} {"set": {"query": "What is the name of the university that has the lowest number of students of all time?", "pos": ["has the lowest number of students refers to min(num_students); name of the university refers to university_name"], "neg": ["highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name", "have at least 80,000 students refers to num_students > 8000; year = 2011", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "had above 30% of international students refers to pct_international_students > 30; in 2013 refers to year = 2013", "scored 70 and below refers to score < 70; in 2016 refers to year = 2016", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "University of Tokyo refers to university_name = 'University of Tokyo';", "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013"]}} {"set": {"query": "How many institutions with over 50,000 students in 2011 had a percentage of oversea students of more than 10%?", "pos": ["institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;"], "neg": ["had the highest reputation refers to MAX(score), in 2012 refers to year = 2012; which university refers to university_name;", "under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name", "have at least 80,000 students refers to num_students > 8000; year = 2011", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); difference refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(num_students, pct_international_students), 100))); in University of Tokyo refers to university_name = 'University of Tokyo'; from 2011 to 2014 refers to year BETWEEN 2011 AND 2014", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "has the lowest number of students refers to min(num_students); name of the university refers to university_name", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "average score refers to avg(score); located in Brazil refers to country_name = 'Brazil';", "located in Japan refers to country_name = 'Japan';"]}} {"set": {"query": "What is the university ID with the most students in 2011?", "pos": ["most students refers to MAX(num_students), in 2011 refers to year = 2011"], "neg": ["scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "student population refers to num_students; in 2013 refers to year = 2013", "University of Auckland refers to university_name = 'University of Auckland'; in 2015 refers to year = 2015; number of staff refers to DIVIDE(num_students, student_staff_ratio)", "Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score)", "in 2011 refers to year 2011; the most students refers to MAX(num_students); which university refers to university_name;", "located in Japan refers to country_name = 'Japan';", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name", "highest number of female students refers to MAX(SUBTRACT(num_students, DIVIDE(MULTIPLY(num_students, pct_female_students), 100))); name of university refers to university_name", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;"]}} {"set": {"query": "Which country is University of Veterinary Medicine Vienna located in? Give its country id.", "pos": ["University of Veterinary Medicine Vienna refers to university_name = 'University of Veterinary Medicine Vienna';"], "neg": ["had the lowest number of students refers to MIN(num_students)", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "the Center for World University Rankings refers to system_name = 'Center for World University Rankings';", "female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); in United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(SUM(DIVIDE(MULTIPLY(num_students, pct_female_students), 100)), SUM(num_students))", "in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name", "criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name", "located in Sweden refers to country_name = 'Sweden'; number of students refers to num_students", "in 2011 refers to year 2011; less than 50 scores refers to score < 50;", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "has the lowest number of students refers to min(num_students); name of the university refers to university_name"]}} {"set": {"query": "Give the criteria name where Harvard University scored 100.", "pos": ["Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100"], "neg": ["highest student staff ratio refers to max(student_staff_ratio)", "had above 30% of international students refers to pct_international_students > 30; in 2013 refers to year = 2013", "under Alumni criteria refers to criteria_name = 'Alumni'; in 2008 refers to year = 2008; average score refers to DIVIDE(SUM(score), COUNT(university_id))", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students", "number of students refers to num_students; in 2013 refers to year = 2013", "in Argentina refers to country_name = 'Argentina';\u00a0 most famous refers to MAX(SUM(score))", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "in 2011 refers to year 2011; female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100); Stanford University refers to university_name = 'Stanford University';", "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'"]}} {"set": {"query": "In which nation is Harvard University located?", "pos": ["Harvard University refers to university_name = 'Harvard University'; nation refers to country_name"], "neg": ["in 2011 refers to year 2011; less than 50 scores refers to score < 50;", "\"Center for World University Rankings\" refers to system_name = 'Center for World University Rankings';", "in Argentina refers to country_name = 'Argentina';\u00a0 most famous refers to MAX(SUM(score))", "average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "location refers to country_name", "scored 70 and below refers to score < 70; in 2016 refers to year = 2016", "female students refers to DIVIDE(MULTIPLY(num_students, pct_female_students), 100); in United States of America refers to country_name = 'United States of America'; percentage refers to DIVIDE(SUM(DIVIDE(MULTIPLY(num_students, pct_female_students), 100)), SUM(num_students))", "institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;", "criteria \"Total Shanghai\" refers to criteria_name = 'Total Shanghai'; which ranking system refers to system_name"]}} {"set": {"query": "Provide the ranking system ID of the Center for World University Rankings.", "pos": ["the Center for World University Rankings refers to system_name = 'Center for World University Rankings';"], "neg": ["number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "greatest student staff ratio of all time refers to max(student_staff_ratio)", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "lowest number of students refers to MIN(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "with the highest score refers to MAX(score); in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name;", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "in 2011 refers to year 2011; in teaching refers to\u00a0 criteria_name = 'Teaching'; score in teaching of over 90 refers to score > 90; in the United States of America refers to country_name = 'United States of America';", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students"]}} {"set": {"query": "Provide the ranking system of the ranking criteria named Quality of Education Rank.", "pos": ["criteria named Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'; ranking system refers to system_name;"], "neg": ["average score refers to avg(score); Emory University refers to university_name = 'Emory University'; from 2011 to 2016 refers to year BETWEEN 2011 AND 2016;", "most international students refers to MAX(SUM(DIVIDE(MULTIPLE(pct_international_students, num_students), 100))); name of university refers to university_name;", "largest percentage of international students refers to MAX(pct_international_students); ID of university refers to university_id", "in 2011 refers to year 2011; more than 100,000 students refers to num_students > 100000; which university refers to university_name;", "greatest student staff ratio of all time refers to max(student_staff_ratio)", "Harvard university's refers to university_name = 'Harvard University'; in 2011 refers to year = 2011; percentage of Harvard university's international students refers to pct_international_students", "highest number of international students refers to MAX(DIVIDE(MULTIPLY(num_students, pct_international_students), 100)); in 2015 refers to year = 2015; name of university refers to university_name;", "institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;", "in Argentina refers to country_name = 'Argentina';\u00a0 most famous refers to MAX(SUM(score))", "average number of criterias refers to DIVIDE(SUM(id), 3); \"Times Higher Education World University Ranking\", \"Shanghai Ranking\" and \"Center for World University Rankings\" refers to system_name IN ('Times Higher Education World University Ranking', 'Shanghai Ranking', 'Center for World University Rankings');"]}} {"set": {"query": "Provide the country name of universities with the number of students greater than 98% of the average student population of all universities in 2013.", "pos": ["number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013"], "neg": ["average score refers to avg(score); between year 2013 to 2015 refers to year BETWEEN 2013 AND 2015", "have no less than 20,000 female students refers to DIVIDE(MULTIPLY(pct_female_students, num_students), 100) > 20000; in 2016 refers to year = 2016; located in the United States of America refers to country_name = 'United States of America'", "in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';", "had the lowest number of students refers to MIN(num_students)", "Harvard University refers to university_name = 'Harvard University'; scored 100 refers to score = 100", "Shanghai Ranking system refers to system_name = 'Shanghai Ranking'; ranking criteria refers to criteria_name", "international students refers to DIVIDE(MULTIPLY(num_students, pct_international_students), 100); University of Wisconsin-Madison refers to university_name = 'University of Wisconsin-Madison'; in 2013 refers to year = 2013", "greatest student staff ratio of all time refers to max(student_staff_ratio)", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University'; names of all the ranking criteria refers to criteria_name", "of Harvard University refers to university_name = 'Harvard University';"]}} {"set": {"query": "How many students were there in University of Michigan in 2011?", "pos": ["in 2011 refers to year 2011; in University of Michigan refers to university_name = 'University of Michigan';"], "neg": ["in Australia refers to country_name = 'Australia'; name of university refers to university_name", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "in 2011 refers to year 2011; with over 20000 students refers to num_students > 20000; international students percentage of over 25% refers to pct_international_students > 25;", "Harvard University refers to university_name = 'Harvard University'; in 2012 refers to year = 2012", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "location refers to country_name", "Harvard University refers to university_name = 'Harvard University'; difference in overall student enrollment and international student refers to SUBTRACT(SUM(num_students), SUM(DIVIDE(MULTIPLY(pct_international_students, num_students), 100))); from 2011 to 2012 refers to year BETWEEN 2011 AND 2012", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "In 2014 refers to year = 2014; leader refers to MAX(score); in the publications rank refers to criteria_name = 'Publications Rank'; name of university refers to university_name;", "scored under 60 refers to score < 60; in 2011 refers to year 2011; in teaching refers to criteria_name = 'Teaching'; in the United States of America refers to country_name = 'United States of America';"]}} {"set": {"query": "List the names of universities with a score less than 28% of the average score of all universities in 2015.", "pos": ["in 2015 refers to year = 2015; score less than 28% refers to score < MULTIPLY(avg(score), 0.28) where year = 2015; names of universities refers to university_name"], "neg": ["institutions with over 50,000 students refers to num_students > 50000; in 2011 refers to year = 2011; percentage of oversea students of more than 10% refers to pct_international_students > 10;", "Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score)", "scored 40 refers to score = 40; in teaching refers to criteria_name = 'Teaching'", "Yale University refers to university_name = 'Yale University'; a score of no less than 10 refers to score > = 10; in the Quality of Education Rank refers to criteria_name = 'Quality of Education Rank'", "most number of students refers to MAX(num_students); in 2015 refers to year = 2015; name of university refers to university_name;", "number of students greater than 98% of the average student population of all universities refers to num_students >\u00a0 MULTPLY(num_students, 0.98); in 2013 refers to year = 2013", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "had the highest number of international students refers to max(pct_international_students); for 6 consecutive years refers to count(SUBTRACT(year, rm)) > = 6; name of university refers to university_name;", "in 2011 refers to year 2011; have more than 15000 students refers to num_students > 15000; in Australia refers to country_name = 'Australia';", "average score refers to avg(score); between year 2013 to 2015 refers to year BETWEEN 2013 AND 2015"]}} {"set": {"query": "Which university had the most students in 2011? Show its name.", "pos": ["in 2011 refers to year 2011; the most students refers to MAX(num_students); which university refers to university_name;"], "neg": ["in 2011 refers to year 2011; that got 98 refers to score = 98; in teaching refers to criteria_name = 'Teaching'; name of university refers to university_name", "in 2011 refers to year 2011; the most international students refers to MAX(DIVIDE(MULTIPLY(num_students,\u00a0 pct_international_students), 100)); name of university refers to university_id", "got a score above 80 refers to score > 80; under International criteria refers to criteria_name = 'International'; in 2016 refers to year = 2016; highest score refers to MAX(score)", "number of students ranges from 400 to 1000 refers to num_students BETWEEN 400 AND 1000; name of university refers to university_name", "Brown University refers to university_name = 'Brown University'; score the highest refers to MAX(score)", "has the most universities refers to MAX(COUNT(id)); name of the country refers to country_name", "total number of female students refers to SUM(DIVIDE(MULTIPLY(pct_female_students, num_students), 100)); In years 2011 to 2013 refers to year BETWEEN 2011 AND 2013", "in 2011 refers to year 2011; Harvard University refers to university_name = 'Harvard University';", "located in Japan refers to country_name = 'Japan';", "university's name refers to university_name; highest ranking score refers to MAX(score); in Teaching refers to criteria_name = 'Teaching'"]}} {"set": {"query": "How many games were released in the year 2001?", "pos": ["released in the year 2001 refers to release_year = 2001;"], "neg": ["number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "number of sales refers to multiply(num_sales, 100000)", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "reached 300000 sales and above refers to num_sales > 3", "platform refers to platform_name;"]}} {"set": {"query": "List the games from the publisher \"Activision\".", "pos": ["games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';"], "neg": ["difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "genre refers to genre_name; \"Grand Theft Auto V\" refers to game_name = 'Grand Theft Auto V';", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "game refers to game_name; the longest name refers to max(length(game_name))", "name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';", "average number = divide(count(game_id), count(publisher_id))", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'"]}} {"set": {"query": "List all the platform games.", "pos": ["platform game refers to genre_name = 'Platform'; game refers to game_name"], "neg": ["name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", "sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';"]}} {"set": {"query": "Give the game publisher ID of records with platform ID 15.", "pos": ["platform ID 15 refers to platform_id = 15"], "neg": ["platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "on the Wii platform refers to platform_name = 'Wii'"]}} {"set": {"query": "How many role-playing games are there?", "pos": ["role-playing game refers to genre_name = 'Role-Playing'"], "neg": ["publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;", "Activision refers to publisher_name = 'Activision';", "the first year refers to min(release_year)", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';", "year the first game was released refers to MIN(release_year);", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'", "game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "not of the genres 'Role-Playing', 'Shooter' and 'Simulation' refers to genre_name NOT IN ('Role-Playing', 'Shooter', 'Simulation');"]}} {"set": {"query": "Calculate the total sales in all regions with game platform ID 66.", "pos": ["total sales in all regions = MULTIPLY(SUM(num_sales), 100000);"], "neg": ["the genre of sports refers to genre_name = 'Sports'", "how much are the sales = SUM(num_sales);", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "percentage = MULTIPLY(DIVIDE(SUM(genre_name = 'sport'), COUNT(game_name)), 100.0); sports refers to genre_name = 'sport';", "released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle'", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "platform of the game refers to platform_name; \"Final Fantasy XIII-2\" refers to game_name = 'Final Fantasy XIII-2';", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "in Japan refers to region_name = 'Japan'; on X360 refers to platform_name = 'X360'; in 2011 refers to release_year = 2011"]}} {"set": {"query": "What is the average number of games published by a publisher?", "pos": ["average number = divide(count(game_id), count(publisher_id))"], "neg": ["genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "year the first game was released refers to MIN(release_year);", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "the genre of sports refers to genre_name = 'Sports'", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014"]}} {"set": {"query": "What percentage of games are sports?", "pos": ["percentage = MULTIPLY(DIVIDE(SUM(genre_name = 'sport'), COUNT(game_name)), 100.0); sports refers to genre_name = 'sport';"], "neg": ["names of games refers to game_name; released in 2015 refers to release_year = 2015;", "games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "number of games refers to count(game_id)", "Abylight refers to publisher_name = 'Abylight';", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))"]}} {"set": {"query": "Please list the names of the publishers of all the puzzle games.", "pos": ["name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'"], "neg": ["on the Wii platform refers to platform_name = 'Wii'", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "platform game refers to genre_name = 'Platform'; game refers to game_name", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "total number of games sold = MULTIPLY(SUM(num_sales), 100000);", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'"]}} {"set": {"query": "In what platform does the game ID 178 available?", "pos": ["platform refers to platform_name;"], "neg": ["record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));", "name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'", "total number of games sold = MULTIPLY(SUM(num_sales), 100000);", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');", "published by Ascaron Entertainment GmbH refers to publisher_name = 'Ascaron Entertainment GmbH'", "name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';", "platform game refers to genre_name = 'Platform'; game refers to game_name", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004"]}} {"set": {"query": "Calculate how many percent of sales in North America is higher than the average sale per region for platform ID 9577.", "pos": ["in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%"], "neg": ["platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "year refers to release_year; \"WiiU\" refers to platform_name = 'WiiU'", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "on the Wii platform refers to platform_name = 'Wii'", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "genre refers to genre_name; \"Grand Theft Auto V\" refers to game_name = 'Grand Theft Auto V';", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';"]}} {"set": {"query": "What year were the first game released?", "pos": ["year the first game was released refers to MIN(release_year);"], "neg": ["name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'", "released in 2007 refers to release_year = 2007;", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "released in the year 2001 refers to release_year = 2001;", "Activision refers to publisher_name = 'Activision';", "published by Ascaron Entertainment GmbH refers to publisher_name = 'Ascaron Entertainment GmbH'", "do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'"]}} {"set": {"query": "Which game platform is the most popular in Europe?", "pos": ["game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'"], "neg": ["on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "region id refers to region.id; Japan refers to region_name = 'Japan'", "Pro Evolution Soccer 2012 refers to game_name = 'Pro Evolution Soccer 2012'", "record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';", "genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';", "name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';", "year that has the most number of video game releases refers to MAX(COUNT(release_year));"]}} {"set": {"query": "Provide the ID of the most popular platform in Europe.", "pos": ["ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'"], "neg": ["when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "reached 300000 sales and above refers to num_sales > 3", "name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "FIFA games refers to game_name LIKE '%FIFA%';", "game refers to game_name; the longest name refers to max(length(game_name))", "year the first game was released refers to MIN(release_year);", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;"]}} {"set": {"query": "For all the games which were published by Namco Bandai Games, what percentage of them were adventure games?", "pos": ["published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'"], "neg": ["game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "region id refers to region.id; Japan refers to region_name = 'Japan'", "average number = divide(count(game_id), count(publisher_id))", "year refers to release_year; \"WiiU\" refers to platform_name = 'WiiU'", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "platform of the game refers to platform_name; \"Final Fantasy XIII-2\" refers to game_name = 'Final Fantasy XIII-2';", "name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;"]}} {"set": {"query": "What are the sales made by the games in Japan region?", "pos": ["sales = SUM(num_sales); Japan region refers to region_name = 'Japan';"], "neg": ["role-playing game refers to genre_name = 'Role-Playing'; Microsoft Game Studios refers to publisher_name = 'Microsoft Game Studios'", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "the earliest refers to min(release_year); name of platform refers to platform_name", "which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'", "game ID refers to game.id; released in 2017 refers to release_year = 2017", "released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "percentage = MULTIPLY(DIVIDE(SUM(genre_name = 'sport'), COUNT(game_name)), 100.0); sports refers to genre_name = 'sport';", "platform ID 15 refers to platform_id = 15"]}} {"set": {"query": "What genre is the game 2010 FIFA World Cup South Africa?", "pos": ["genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';"], "neg": ["on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'", "game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "Pro Evolution Soccer 2012 refers to game_name = 'Pro Evolution Soccer 2012'", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;"]}} {"set": {"query": "In which year was Panzer Tactics released on DS?", "pos": ["year refers to release_year; Panzer Tactics refers to game_name = 'Panzer Tactics'; on DS refers to platform_name = 'DS'"], "neg": ["published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle'", "FIFA games refers to game_name LIKE '%FIFA%';", "BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;", "genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';"]}} {"set": {"query": "What is the genre of the game \"Grand Theft Auto V\"?", "pos": ["genre refers to genre_name; \"Grand Theft Auto V\" refers to game_name = 'Grand Theft Auto V';"], "neg": ["how much are the sales = SUM(num_sales);", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "number of games refers to count(game_id)", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "game ID refers to game.id; released in 2017 refers to release_year = 2017", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';", "when the game was released refers to release_year;"]}} {"set": {"query": "What is the total number of games sold in region ID 1?", "pos": ["total number of games sold = MULTIPLY(SUM(num_sales), 100000);"], "neg": ["number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "the earliest refers to min(release_year); name of platform refers to platform_name", "released in 2007 refers to release_year = 2007;", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "released in the year 2001 refers to release_year = 2001;", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;"]}} {"set": {"query": "What is the genre of 3D Lemmings?", "pos": ["genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'"], "neg": ["sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "percentage = MULTIPLY(DIVIDE(SUM(genre_name = 'sport'), COUNT(game_name)), 100.0); sports refers to genre_name = 'sport';", "genre refers to genre_name; \"Grand Theft Auto V\" refers to game_name = 'Grand Theft Auto V';", "name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';", "game ID refers to game.id; released in 2017 refers to release_year = 2017", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "in Japan refers to region_name = 'Japan'; on X360 refers to platform_name = 'X360'; in 2011 refers to release_year = 2011", "platform of the game refers to platform_name; \"Final Fantasy XIII-2\" refers to game_name = 'Final Fantasy XIII-2';"]}} {"set": {"query": "Show the name of the earliest platform in the database.", "pos": ["the earliest refers to min(release_year); name of platform refers to platform_name"], "neg": ["difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';", "on the Wii platform refers to platform_name = 'Wii'", "which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';", "do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "platform game refers to genre_name = 'Platform'; game refers to game_name", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;"]}} {"set": {"query": "When was the \"Adventure Island\" game released?", "pos": ["when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'"], "neg": ["in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'", "genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';", "role-playing game refers to genre_name = 'Role-Playing'", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;"]}} {"set": {"query": "Which publisher has published the most games in the 'Puzzle' genre?", "pos": ["which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';"], "neg": ["released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "reached 300000 sales and above refers to num_sales > 3", "year the first game was released refers to MIN(release_year);", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "Europe refers to region_name = 'Europe'; sales lesser than 30% of the average number of sales refers to SUM(num_sales) < MULTIPLY(AVG(num_sales), 0.3);", "name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;"]}} {"set": {"query": "How many games were sold on the DS platform on average in the 4 different regions?", "pos": ["on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'"], "neg": ["game refers to game_name; the longest name refers to max(length(game_name))", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "FIFA games refers to game_name LIKE '%FIFA%';", "the genre of sports refers to genre_name = 'Sports'", "released in the year 2001 refers to release_year = 2001;", "platform of the game refers to platform_name; \"Final Fantasy XIII-2\" refers to game_name = 'Final Fantasy XIII-2';", "Europe refers to region_name = 'Europe'; sales lesser than 30% of the average number of sales refers to SUM(num_sales) < MULTIPLY(AVG(num_sales), 0.3);", "record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;", "region id refers to region.id; Japan refers to region_name = 'Japan'"]}} {"set": {"query": "Among the games released in 2004, what is the percentage of games on PSP?", "pos": ["in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004"], "neg": ["difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))", "Pro Evolution Soccer 2012 refers to game_name = 'Pro Evolution Soccer 2012'", "how much are the sales = SUM(num_sales);", "the earliest refers to min(release_year); name of platform refers to platform_name", "games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';", "average number = divide(count(game_id), count(publisher_id))", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "year refers to release_year; Panzer Tactics refers to game_name = 'Panzer Tactics'; on DS refers to platform_name = 'DS'", "platform refers to platform_name;"]}} {"set": {"query": "Calculate the number of games in the fighting genre.", "pos": ["fighting genre refers to genre_name = 'Fighting';"], "neg": ["genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';", "average = AVG(MULTIPLY(num_sales, 100000));", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "genre ID 3 refers to genre.id = 3", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';", "what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';"]}} {"set": {"query": "What is the release year of the game that gained 350000 sales in North America?", "pos": ["gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'"], "neg": ["platform ID 15 refers to platform_id = 15", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "genre ID 3 refers to genre.id = 3", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "Activision refers to publisher_name = 'Activision';", "number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "released in the year 2001 refers to release_year = 2001;", "role-playing game refers to genre_name = 'Role-Playing'; Microsoft Game Studios refers to publisher_name = 'Microsoft Game Studios'"]}} {"set": {"query": "How many games can be played on the Wii platform?", "pos": ["on the Wii platform refers to platform_name = 'Wii'"], "neg": ["role-playing game refers to genre_name = 'Role-Playing'", "average = AVG(MULTIPLY(num_sales, 100000));", "platform game refers to genre_name = 'Platform'; game refers to game_name", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3", "the genre of sports refers to genre_name = 'Sports'", "the earliest refers to min(release_year); name of platform refers to platform_name", "year refers to release_year; Panzer Tactics refers to game_name = 'Panzer Tactics'; on DS refers to platform_name = 'DS'", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", "Activision refers to publisher_name = 'Activision';"]}} {"set": {"query": "When was the game ID 156 released?", "pos": ["when the game was released refers to release_year;"], "neg": ["total number of games sold = MULTIPLY(SUM(num_sales), 100000);", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "Activision refers to publisher_name = 'Activision';", "role-playing game refers to genre_name = 'Role-Playing'; Microsoft Game Studios refers to publisher_name = 'Microsoft Game Studios'", "year that has the most number of video game releases refers to MAX(COUNT(release_year));", "name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';", "number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "on the Wii platform refers to platform_name = 'Wii'"]}} {"set": {"query": "How many publishers published the Minecraft game?", "pos": ["Minecraft refers to game_name = 'Minecraft';"], "neg": ["games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';", "game refers to game_name; released in 2011 refers to release_year = 2011", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "year the first game was released refers to MIN(release_year);", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';", "sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'", "FIFA games refers to game_name LIKE '%FIFA%';"]}} {"set": {"query": "State the publisher name of the game \"ModNation Racers\".", "pos": ["game \"ModNation Racers\" refers to game_name = 'ModNation Racers'"], "neg": ["published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle'", "game refers to game_name; the longest name refers to max(length(game_name))", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "released in the year 2001 refers to release_year = 2001;", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';", "on the Wii platform refers to platform_name = 'Wii'", "adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'"]}} {"set": {"query": "Which region has the highest number of games sold on all platforms?", "pos": ["which region refers to region_name; highest number of games sold on all platforms refers to MAX(SUM(num_sales));"], "neg": ["average = AVG(MULTIPLY(num_sales, 100000));", "number of games refers to count(game_id)", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "percentage = MULTIPLY(DIVIDE(SUM(genre_name = 'sport'), COUNT(game_name)), 100.0); sports refers to genre_name = 'sport';", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "released in 2001 refers to release_year = 2001", "what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "number of sales refers to multiply(num_sales, 100000)", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;"]}} {"set": {"query": "What is the number of sales in region ID 2 with game platform ID 9615?", "pos": ["number of sales refers to multiply(num_sales, 100000)"], "neg": ["total number of games sold = MULTIPLY(SUM(num_sales), 100000);", "Minecraft refers to game_name = 'Minecraft';", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004", "which region refers to region_name; highest number of games sold on all platforms refers to MAX(SUM(num_sales));", "how much are the sales = SUM(num_sales);", "when the game was released refers to release_year;", "X360 refers to platform_name = 'X360';", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'"]}} {"set": {"query": "In which region where a game had the lowest number of sales?", "pos": ["which region refers to region_name; lowest number of sales refers to MIN(num_sales);"], "neg": ["published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle'", "name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';", "publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3", "FIFA games refers to game_name LIKE '%FIFA%';", "name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'", "publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'", "game refers to game_name; released in 2011 refers to release_year = 2011", "games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';"]}} {"set": {"query": "What is the genre of the game ID 119?", "pos": ["genre of the game refers to genre_name; game ID 119 refers to game.id = 119;"], "neg": ["released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "year that has the most number of video game releases refers to MAX(COUNT(release_year));", "average number = divide(count(game_id), count(publisher_id))", "do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "platform refers to platform_name;"]}} {"set": {"query": "Name the game released in 2011.", "pos": ["game refers to game_name; released in 2011 refers to release_year = 2011"], "neg": ["game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "released in 2007 refers to release_year = 2007;", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "publisher refers to publisher_name; publisher who has published the most games of all time refers to MAX(COUNT(publisher_name));", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "number of sales refers to multiply(num_sales, 100000)", "adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'"]}} {"set": {"query": "What are the three largest numbers of games sold?", "pos": ["3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;"], "neg": ["platform refers to platform_name;", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "genre refers to genre_name; \"Grand Theft Auto V\" refers to game_name = 'Grand Theft Auto V';", "how much are the sales = SUM(num_sales);", "name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'", "do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;", "name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';"]}} {"set": {"query": "List the game IDs that were released in 2017.", "pos": ["game ID refers to game.id; released in 2017 refers to release_year = 2017"], "neg": ["do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;", "the earliest refers to min(release_year); name of platform refers to platform_name", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004", "when the game was released refers to release_year;", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75"]}} {"set": {"query": "What is the number of games sold in Europe for game platform ID 26?", "pos": ["total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';"], "neg": ["Europe refers to region_name = 'Europe'; sales lesser than 30% of the average number of sales refers to SUM(num_sales) < MULTIPLY(AVG(num_sales), 0.3);", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "the earliest refers to min(release_year); name of platform refers to platform_name", "number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));", "difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));"]}} {"set": {"query": "How many games were sold on PS3 platform in Japan?", "pos": ["how many games = MULTIPLY(SUM(num_sales), 100000); PS3 refers to platform_name = 'PS3'; Japan refers to region_name = 'Japan';"], "neg": ["role-playing game refers to genre_name = 'Role-Playing'", "number of games refers to count(game_id)", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'"]}} {"set": {"query": "Which publisher published the most games?", "pos": ["publisher refers to publisher_name; the most games refers to max(count(publisher_id))"], "neg": ["publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'", "name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "platform ID 15 refers to platform_id = 15", "year refers to release_year; Panzer Tactics refers to game_name = 'Panzer Tactics'; on DS refers to platform_name = 'DS'", "number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "the first year refers to min(release_year)", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'", "Minecraft refers to game_name = 'Minecraft';", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'"]}} {"set": {"query": "How many times did other regions make positive sales in DS platform?", "pos": ["other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';"], "neg": ["number of games refers to count(game_id)", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "role-playing game refers to genre_name = 'Role-Playing'", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'", "what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';", "genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'", "average = AVG(MULTIPLY(num_sales, 100000));"]}} {"set": {"query": "What is the average number of sales in Japan?", "pos": ["in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'"], "neg": ["name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';", "in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%", "Abylight refers to publisher_name = 'Abylight';", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';", "name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3"]}} {"set": {"query": "Which publisher has published the most number of Action games?", "pos": ["which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';"], "neg": ["sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "year the first game was released refers to MIN(release_year);", "year refers to release_year; Panzer Tactics refers to game_name = 'Panzer Tactics'; on DS refers to platform_name = 'DS'", "published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle'", "released in the year 2001 refers to release_year = 2001;", "average = AVG(MULTIPLY(num_sales, 100000));", "Minecraft refers to game_name = 'Minecraft';", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'"]}} {"set": {"query": "How much are the sales of the games in region ID 4?", "pos": ["how much are the sales = SUM(num_sales);"], "neg": ["difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "platform ID 15 refers to platform_id = 15"]}} {"set": {"query": "How many games were published by Acclaim Entertainment?", "pos": ["published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'"], "neg": ["id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'", "platform game refers to genre_name = 'Platform'; game refers to game_name", "not of the genres 'Role-Playing', 'Shooter' and 'Simulation' refers to genre_name NOT IN ('Role-Playing', 'Shooter', 'Simulation');", "Activision refers to publisher_name = 'Activision';", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "FIFA games refers to game_name LIKE '%FIFA%';", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';"]}} {"set": {"query": "What is the first year a game is released?", "pos": ["the first year refers to min(release_year)"], "neg": ["publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';", "Minecraft refers to game_name = 'Minecraft';", "average number = divide(count(game_id), count(publisher_id))", "Europe refers to region_name = 'Europe'; sales lesser than 30% of the average number of sales refers to SUM(num_sales) < MULTIPLY(AVG(num_sales), 0.3);", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';", "publisher refers to publisher_name; publisher who has published the most games of all time refers to MAX(COUNT(publisher_name));", "record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'", "X360 refers to platform_name = 'X360';", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';"]}} {"set": {"query": "How many games available on PSP were released in 2004?", "pos": ["PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;"], "neg": ["name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "platform ID 15 refers to platform_id = 15", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "Abylight refers to publisher_name = 'Abylight';", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))", "genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "X360 refers to platform_name = 'X360';", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'", "published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'"]}} {"set": {"query": "List down the name of games published by 3DO.", "pos": ["name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'"], "neg": ["name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';", "on the Wii platform refers to platform_name = 'Wii'", "average number = divide(count(game_id), count(publisher_id))", "Activision refers to publisher_name = 'Activision';", "game refers to game_name; released in 2011 refers to release_year = 2011", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "which regions refers to region_name; 'Pengo' refers to game_name = 'Pengo';", "which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';"]}} {"set": {"query": "List by name all the games released in the year 2010.", "pos": ["name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;"], "neg": ["ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';", "record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "game refers to game_name; the longest name refers to max(length(game_name))", "number of games refers to count(game_id)", "published by Ascaron Entertainment GmbH refers to publisher_name = 'Ascaron Entertainment GmbH'", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';"]}} {"set": {"query": "Among the games published by 10TACLE Studios, how many of them are puzzles?", "pos": ["published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle'"], "neg": ["in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "X360 refers to platform_name = 'X360';", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "game refers to game_name; the longest name refers to max(length(game_name))", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3", "role-playing game refers to genre_name = 'Role-Playing'", "game refers to game_name; released in 2011 refers to release_year = 2011"]}} {"set": {"query": "Give the name of the publisher of the game ID 75.", "pos": ["name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75"], "neg": ["game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;", "difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';"]}} {"set": {"query": "List down the platform IDs of the games released in 2007.", "pos": ["released in 2007 refers to release_year = 2007;"], "neg": ["number of games refers to count(game_id)", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "how much are the sales = SUM(num_sales);", "not of the genres 'Role-Playing', 'Shooter' and 'Simulation' refers to genre_name NOT IN ('Role-Playing', 'Shooter', 'Simulation');", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "names of games refers to game_name; released in 2015 refers to release_year = 2015;", "role-playing game refers to genre_name = 'Role-Playing'; Microsoft Game Studios refers to publisher_name = 'Microsoft Game Studios'", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "percentage = MULTIPLY(DIVIDE(SUM(genre_name = 'sport'), COUNT(game_name)), 100.0); sports refers to genre_name = 'sport';", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';"]}} {"set": {"query": "What is the name of the publisher that released the most video games in 2007?", "pos": ["name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;"], "neg": ["ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "platform game refers to genre_name = 'Platform'; game refers to game_name", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';"]}} {"set": {"query": "Provide the game publisher's name of the game with sales greater than 90% of the average sales in Japan.", "pos": ["game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'"], "neg": ["Minecraft refers to game_name = 'Minecraft';", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';", "genre ID 3 refers to genre.id = 3", "not of the genres 'Role-Playing', 'Shooter' and 'Simulation' refers to genre_name NOT IN ('Role-Playing', 'Shooter', 'Simulation');", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';", "released in the year 2001 refers to release_year = 2001;", "platform refers to platform_name;"]}} {"set": {"query": "Provide the genre name of the genre ID 3.", "pos": ["genre ID 3 refers to genre.id = 3"], "neg": ["Minecraft refers to game_name = 'Minecraft';", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "platform refers to platform_name;", "released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "year the first game was released refers to MIN(release_year);", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))"]}} {"set": {"query": "How many role-playing games did Microsoft Game Studios publish?", "pos": ["role-playing game refers to genre_name = 'Role-Playing'; Microsoft Game Studios refers to publisher_name = 'Microsoft Game Studios'"], "neg": ["game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "platform game refers to genre_name = 'Platform'; game refers to game_name", "the genre of sports refers to genre_name = 'Sports'", "genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');", "game ID refers to game.id; released in 2017 refers to release_year = 2017", "reached 300000 sales and above refers to num_sales > 3", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))", "which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';"]}} {"set": {"query": "Please list the names of all the games published by 10TACLE Studios.", "pos": ["name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'"], "neg": ["when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "year the first game was released refers to MIN(release_year);", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "region id refers to region.id; Japan refers to region_name = 'Japan'", "in Japan refers to region_name = 'Japan'; on X360 refers to platform_name = 'X360'; in 2011 refers to release_year = 2011", "how much are the sales = SUM(num_sales);", "the genre of sports refers to genre_name = 'Sports'", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "year that has the most number of video game releases refers to MAX(COUNT(release_year));"]}} {"set": {"query": "How many games were released on PS4 in 2014?", "pos": ["on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014"], "neg": ["name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "Minecraft refers to game_name = 'Minecraft';", "reached 300000 sales and above refers to num_sales > 3", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "X360 refers to platform_name = 'X360';", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;", "which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';"]}} {"set": {"query": "In which regions has the game 'Pengo' been sold?", "pos": ["which regions refers to region_name; 'Pengo' refers to game_name = 'Pengo';"], "neg": ["year that has the most number of video game releases refers to MAX(COUNT(release_year));", "which region refers to region_name; highest number of games sold on all platforms refers to MAX(SUM(num_sales));", "FIFA games refers to game_name LIKE '%FIFA%';", "Minecraft refers to game_name = 'Minecraft';", "platform game refers to genre_name = 'Platform'; game refers to game_name", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004", "how many games = MULTIPLY(SUM(num_sales), 100000); PS3 refers to platform_name = 'PS3'; Japan refers to region_name = 'Japan';", "genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');", "region id refers to region.id; Japan refers to region_name = 'Japan'"]}} {"set": {"query": "How many games did BMG Interactive Entertainment release in 2012?", "pos": ["BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;"], "neg": ["FIFA games refers to game_name LIKE '%FIFA%';", "platform ID 15 refers to platform_id = 15", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "year refers to release_year; Panzer Tactics refers to game_name = 'Panzer Tactics'; on DS refers to platform_name = 'DS'", "Activision refers to publisher_name = 'Activision';", "the earliest refers to min(release_year); name of platform refers to platform_name", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';"]}} {"set": {"query": "Calculate the difference between sales of games from region ID 2 and region ID 3.", "pos": ["difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));"], "neg": ["name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "Activision refers to publisher_name = 'Activision';", "platform refers to platform_name;", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';", "genre refers to genre_name; \"Grand Theft Auto V\" refers to game_name = 'Grand Theft Auto V';", "genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';"]}} {"set": {"query": "Indicate the name of all the games published for the 'SCD' platform.", "pos": ["name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';"], "neg": ["which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", "Abylight refers to publisher_name = 'Abylight';", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "region id refers to region.id; Japan refers to region_name = 'Japan'", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "total number of games sold = MULTIPLY(SUM(num_sales), 100000);", "year that has the most number of video game releases refers to MAX(COUNT(release_year));", "the earliest refers to min(release_year); name of platform refers to platform_name"]}} {"set": {"query": "List down at least five publishers of the games with number of sales less than 10000.", "pos": ["publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;"], "neg": ["names of games refers to game_name; released in 2015 refers to release_year = 2015;", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';", "difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));", "in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%", "game ID refers to game.id; released in 2017 refers to release_year = 2017", "name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "the genre of sports refers to genre_name = 'Sports'"]}} {"set": {"query": "How many video game publishers have Interactive in their names?", "pos": ["publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';"], "neg": ["in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "the genre of sports refers to genre_name = 'Sports'", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'", "publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;", "platform ID 15 refers to platform_id = 15", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';"]}} {"set": {"query": "How many games were published by Activision?", "pos": ["Activision refers to publisher_name = 'Activision';"], "neg": ["in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "year that has the most number of video game releases refers to MAX(COUNT(release_year));", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "genre ID 3 refers to genre.id = 3", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'"]}} {"set": {"query": "What platform is the game 3Xtreme available on?", "pos": ["what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';"], "neg": ["platform ID 15 refers to platform_id = 15", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "released in 2007 refers to release_year = 2007;", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'", "platform game refers to genre_name = 'Platform'; game refers to game_name", "publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "number of sales refers to multiply(num_sales, 100000)"]}} {"set": {"query": "Which publisher published the most games?", "pos": ["publisher refers to publisher_name; the most games refers to max(count(game_id))"], "neg": ["name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "number of sales refers to multiply(num_sales, 100000)", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "game ID refers to game.id; released in 2017 refers to release_year = 2017", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "released in the year 2001 refers to release_year = 2001;", "genre refers to genre_name; \"Grand Theft Auto V\" refers to game_name = 'Grand Theft Auto V';", "Europe refers to region_name = 'Europe'; sales lesser than 30% of the average number of sales refers to SUM(num_sales) < MULTIPLY(AVG(num_sales), 0.3);", "published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'"]}} {"set": {"query": "What is the ratio of game sales between North America and Japan?", "pos": ["ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';"], "neg": ["other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "released in 2007 refers to release_year = 2007;", "platform game refers to genre_name = 'Platform'; game refers to game_name", "Activision refers to publisher_name = 'Activision';", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "platform refers to platform_name;", "the genre of sports refers to genre_name = 'Sports'", "FIFA games refers to game_name LIKE '%FIFA%';", "difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));"]}} {"set": {"query": "How many publishers have published more than 3 puzzle games?", "pos": ["puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3"], "neg": ["game ID refers to game.id; released in 2017 refers to release_year = 2017", "adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "platform of the game refers to platform_name; \"Final Fantasy XIII-2\" refers to game_name = 'Final Fantasy XIII-2';", "released in 2007 refers to release_year = 2007;", "genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';", "role-playing game refers to genre_name = 'Role-Playing'; Microsoft Game Studios refers to publisher_name = 'Microsoft Game Studios'", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';", "platform ID 15 refers to platform_id = 15", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';"]}} {"set": {"query": "Calculate the difference in sales between the games released in 1990 and 2000.", "pos": ["difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));"], "neg": ["name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "number of sales refers to multiply(num_sales, 100000)", "in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "Activision refers to publisher_name = 'Activision';", "publisher refers to publisher_name; the most games refers to max(count(game_id))"]}} {"set": {"query": "How many games do not have any sales in Europe?", "pos": ["do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'"], "neg": ["game refers to game_name; the longest name refers to max(length(game_name))", "game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "average = AVG(MULTIPLY(num_sales, 100000));", "publisher refers to publisher_name; publisher who has published the most games of all time refers to MAX(COUNT(publisher_name));", "how many games = MULTIPLY(SUM(num_sales), 100000); PS3 refers to platform_name = 'PS3'; Japan refers to region_name = 'Japan';", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';", "sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))"]}} {"set": {"query": "Tell the number of games whose publisher id is 352.", "pos": ["number of games refers to count(game_id)"], "neg": ["name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "platform ID 15 refers to platform_id = 15", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';", "which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';", "released in 2007 refers to release_year = 2007;", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "Abylight refers to publisher_name = 'Abylight';", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'"]}} {"set": {"query": "How many more sports games than simulation games?", "pos": ["sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))"], "neg": ["genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "Abylight refers to publisher_name = 'Abylight';", "game refers to game_name; the longest name refers to max(length(game_name))", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%", "on the Wii platform refers to platform_name = 'Wii'", "name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'", "role-playing game refers to genre_name = 'Role-Playing'", "FIFA games refers to game_name LIKE '%FIFA%';"]}} {"set": {"query": "List the name of all games published by 'Pioneer LDC'.", "pos": ["name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';"], "neg": ["publisher refers to publisher_name; the most games refers to max(count(publisher_id))", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%", "fighting genre refers to genre_name = 'Fighting';", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle'"]}} {"set": {"query": "What is the total number of adventure games released in 2005?", "pos": ["adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;"], "neg": ["name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';", "difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "game refers to game_name; the longest name refers to max(length(game_name))"]}} {"set": {"query": "Find out the difference between the number of publishers who released the games on the PS3 and X360.", "pos": ["difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';"], "neg": ["gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "number of games refers to count(game_id)", "genre ID 3 refers to genre.id = 3", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "the earliest refers to min(release_year); name of platform refers to platform_name", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'"]}} {"set": {"query": "List the region name where games reached 300000 sales and above.", "pos": ["reached 300000 sales and above refers to num_sales > 3"], "neg": ["sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';", "do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "year the first game was released refers to MIN(release_year);", "game ID refers to game.id; released in 2017 refers to release_year = 2017", "in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%"]}} {"set": {"query": "What is the name of the company that produced the game titled Adventure Time: Explore the Dungeon Because I Don't Know!?", "pos": ["name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';"], "neg": ["publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';", "the genre of sports refers to genre_name = 'Sports'", "released in 2007 refers to release_year = 2007;", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'"]}} {"set": {"query": "How many games are not of the genres 'Role-Playing', 'Shooter' and 'Simulation'?", "pos": ["not of the genres 'Role-Playing', 'Shooter' and 'Simulation' refers to genre_name NOT IN ('Role-Playing', 'Shooter', 'Simulation');"], "neg": ["Minecraft refers to game_name = 'Minecraft';", "region id refers to region.id; Japan refers to region_name = 'Japan'", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle'", "number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "FIFA games refers to game_name LIKE '%FIFA%';", "which region refers to region_name; highest number of games sold on all platforms refers to MAX(SUM(num_sales));", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3", "X360 refers to platform_name = 'X360';"]}} {"set": {"query": "State the region id of Japan.", "pos": ["region id refers to region.id; Japan refers to region_name = 'Japan'"], "neg": ["name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "the first year refers to min(release_year)", "on the Wii platform refers to platform_name = 'Wii'", "which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';", "average number = divide(count(game_id), count(publisher_id))", "percentage = MULTIPLY(DIVIDE(SUM(genre_name = 'sport'), COUNT(game_name)), 100.0); sports refers to genre_name = 'sport';", "number of games refers to count(game_id)"]}} {"set": {"query": "Among games sold in Europe, list the platform ID of games with sales lesser than 30% of the average number of sales.", "pos": ["Europe refers to region_name = 'Europe'; sales lesser than 30% of the average number of sales refers to SUM(num_sales) < MULTIPLY(AVG(num_sales), 0.3);"], "neg": ["platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "when the game was released refers to release_year;", "FIFA games refers to game_name LIKE '%FIFA%';", "on the Wii platform refers to platform_name = 'Wii'", "name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "reached 300000 sales and above refers to num_sales > 3", "genre refers to genre_name; \"Grand Theft Auto V\" refers to game_name = 'Grand Theft Auto V';"]}} {"set": {"query": "Indicate the name of all adventure games.", "pos": ["name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';"], "neg": ["genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'", "record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "which region refers to region_name; highest number of games sold on all platforms refers to MAX(SUM(num_sales));", "sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "released in the year 2001 refers to release_year = 2001;", "Pro Evolution Soccer 2012 refers to game_name = 'Pro Evolution Soccer 2012'", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", "game refers to game_name; released in 2011 refers to release_year = 2011"]}} {"set": {"query": "List the genre id of the game Pro Evolution Soccer 2012.", "pos": ["Pro Evolution Soccer 2012 refers to game_name = 'Pro Evolution Soccer 2012'"], "neg": ["the genre of sports refers to genre_name = 'Sports'", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');", "number of games refers to count(game_id)", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "X360 refers to platform_name = 'X360';", "year refers to release_year; Panzer Tactics refers to game_name = 'Panzer Tactics'; on DS refers to platform_name = 'DS'"]}} {"set": {"query": "How many game publisher IDs have published games on the X360 platform?", "pos": ["X360 refers to platform_name = 'X360';"], "neg": ["what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';", "published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'", "which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "year the first game was released refers to MIN(release_year);", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';"]}} {"set": {"query": "Name the publisher of the Chronicles of the Sword game.", "pos": ["publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword'"], "neg": ["genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'", "the first year refers to min(release_year)", "platform ID 15 refers to platform_id = 15", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;", "number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');", "name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'"]}} {"set": {"query": "Indicate the release year of the game with more than 200000 sales in Japan.", "pos": ["more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';"], "neg": ["BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));", "game refers to game_name; released in 2011 refers to release_year = 2011", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "on the Wii platform refers to platform_name = 'Wii'", "in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%"]}} {"set": {"query": "What is the genre of the game titled '999: Nine Hours, Nine Persons, Nine Doors' ?", "pos": ["genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';"], "neg": ["published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "reached 300000 sales and above refers to num_sales > 3", "year that has the most number of video game releases refers to MAX(COUNT(release_year));", "game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'"]}} {"set": {"query": "What are the years that \"WiiU\" got a new game?", "pos": ["year refers to release_year; \"WiiU\" refers to platform_name = 'WiiU'"], "neg": ["PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'", "difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));", "do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "Abylight refers to publisher_name = 'Abylight';", "difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));", "game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "the earliest refers to min(release_year); name of platform refers to platform_name"]}} {"set": {"query": "Compute the average number of sales in region ID 3.", "pos": ["average = AVG(MULTIPLY(num_sales, 100000));"], "neg": ["game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "the genre of sports refers to genre_name = 'Sports'", "Abylight refers to publisher_name = 'Abylight';", "names of games refers to game_name; released in 2015 refers to release_year = 2015;", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';", "name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';"]}} {"set": {"query": "How many publishers in Japan released a game on X360 in 2011?", "pos": ["in Japan refers to region_name = 'Japan'; on X360 refers to platform_name = 'X360'; in 2011 refers to release_year = 2011"], "neg": ["which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';", "percentage = MULTIPLY(DIVIDE(SUM(genre_name = 'sport'), COUNT(game_name)), 100.0); sports refers to genre_name = 'sport';", "number of games refers to count(game_id)", "sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "released in 2007 refers to release_year = 2007;", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;"]}} {"set": {"query": "Which publisher published Overwatch?", "pos": ["which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';"], "neg": ["genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'", "BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;", "which regions refers to region_name; 'Pengo' refers to game_name = 'Pengo';", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "Minecraft refers to game_name = 'Minecraft';", "genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'", "released in 2007 refers to release_year = 2007;", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75"]}} {"set": {"query": "How many games were released in 2001?", "pos": ["released in 2001 refers to release_year = 2001"], "neg": ["difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;", "difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "role-playing game refers to genre_name = 'Role-Playing'", "in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))"]}} {"set": {"query": "What is the id of the game \"Resident Evil Archives: Resident Evil\"?", "pos": ["id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'"], "neg": ["genre refers to genre_name; \"Grand Theft Auto V\" refers to game_name = 'Grand Theft Auto V';", "games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';", "the first year refers to min(release_year)", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';", "year refers to release_year; Panzer Tactics refers to game_name = 'Panzer Tactics'; on DS refers to platform_name = 'DS'", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;", "name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "genre ID 3 refers to genre.id = 3", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'"]}} {"set": {"query": "Find out the platform of the game \"Final Fantasy XIII-2\".", "pos": ["platform of the game refers to platform_name; \"Final Fantasy XIII-2\" refers to game_name = 'Final Fantasy XIII-2';"], "neg": ["published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';", "sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "game refers to game_name; released in 2011 refers to release_year = 2011", "region id refers to region.id; Japan refers to region_name = 'Japan'", "publisher refers to publisher_name; the most games refers to max(count(game_id))", "average = AVG(MULTIPLY(num_sales, 100000));"]}} {"set": {"query": "Provide the games that can be played on the SCD platform.", "pos": ["game refers to game_name; on the SCD platform refers to platform_name = 'SCD'"], "neg": ["sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "average number = divide(count(game_id), count(publisher_id))", "sales = SUM(num_sales); Japan region refers to region_name = 'Japan';", "genre ID 3 refers to genre.id = 3", "BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;", "record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "how many games = MULTIPLY(SUM(num_sales), 100000); PS3 refers to platform_name = 'PS3'; Japan refers to region_name = 'Japan';", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;"]}} {"set": {"query": "Which platform is the most popular in Europe?", "pos": ["platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;"], "neg": ["difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "fighting genre refers to genre_name = 'Fighting';", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "when the game was released refers to release_year;", "the genre of sports refers to genre_name = 'Sports'", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))", "Abylight refers to publisher_name = 'Abylight';", "games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';"]}} {"set": {"query": "Give the genre of the following game titled 'Airlock' , 'Airline Tycoon' , and 'Airblade', respectively.", "pos": ["genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');"], "neg": ["game ID refers to game.id; genre ID 2 refers to genre_id = 2", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))", "genre ID 3 refers to genre.id = 3", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75", "which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';", "name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004", "number of sales refers to multiply(num_sales, 100000)", "name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';"]}} {"set": {"query": "Which game has the longest name?", "pos": ["game refers to game_name; the longest name refers to max(length(game_name))"], "neg": ["total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America'", "games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%", "year the first game was released refers to MIN(release_year);", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';"]}} {"set": {"query": "Which year has the most number of video game releases?", "pos": ["year that has the most number of video game releases refers to MAX(COUNT(release_year));"], "neg": ["name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;", "ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';", "average = AVG(MULTIPLY(num_sales, 100000));", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';"]}} {"set": {"query": "How many games in the database belong to the genre of sports?", "pos": ["the genre of sports refers to genre_name = 'Sports'"], "neg": ["which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';", "Minecraft refers to game_name = 'Minecraft';", "name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;", "name of game refers to game_name; published by 3DO refers to publisher_name = '3DO'", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';", "do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe'", "on the Wii platform refers to platform_name = 'Wii'", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))"]}} {"set": {"query": "How many FIFA games are there across all platforms?", "pos": ["FIFA games refers to game_name LIKE '%FIFA%';"], "neg": ["Activision refers to publisher_name = 'Activision';", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';", "adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "role-playing game refers to genre_name = 'Role-Playing'"]}} {"set": {"query": "List the game IDs of the games produced by Abylight.", "pos": ["Abylight refers to publisher_name = 'Abylight';"], "neg": ["number of sales refers to multiply(num_sales, 100000)", "released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;", "publisher refers to publisher_name; the most games refers to max(count(publisher_id))", "on the Wii platform refers to platform_name = 'Wii'", "adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "id of game refers to game.id; \"Resident Evil Archives: Resident Evil\" refers to game_name = 'Resident Evil Archives: Resident Evil'", "Activision refers to publisher_name = 'Activision';", "name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';"]}} {"set": {"query": "List down the names of the games in the racing genre.", "pos": ["name of games refers to game_name; racing genre refers to genre_name = 'Racing';"], "neg": ["genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';", "when refers to release_year; the \"Adventure Island\" game refers to game_name = 'Adventure Island'", "released in 2007 refers to release_year = 2007;", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "average number = divide(count(game_id), count(publisher_id))", "names of games refers to game_name; released in 2015 refers to release_year = 2015;", "the earliest refers to min(release_year); name of platform refers to platform_name", "publisher refers to publisher_name; publisher who has published the most games of all time refers to MAX(COUNT(publisher_name));", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "published by Ascaron Entertainment GmbH refers to publisher_name = 'Ascaron Entertainment GmbH'"]}} {"set": {"query": "Provide the name of game produced by 505 Games in 2006.", "pos": ["name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;"], "neg": ["fighting genre refers to genre_name = 'Fighting';", "X360 refers to platform_name = 'X360';", "platform refers to platform_name;", "the first year refers to min(release_year)", "difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));", "total number of games sold = MULTIPLY(SUM(num_sales), 100000);", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014", "FIFA games refers to game_name LIKE '%FIFA%';"]}} {"set": {"query": "Indicate the publisher who has published the most games of all time.", "pos": ["publisher refers to publisher_name; publisher who has published the most games of all time refers to MAX(COUNT(publisher_name));"], "neg": ["on the Wii platform refers to platform_name = 'Wii'", "X360 refers to platform_name = 'X360';", "id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'", "3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "games refers to game_name; \"Activision\" refers to publisher_name = 'Activision';", "released in the year 2001 refers to release_year = 2001;", "which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';", "when the game was released refers to release_year;", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';"]}} {"set": {"query": "List down the name of strategy games.", "pos": ["strategy games refers to game_name WHERE genre_name = 'Strategy';"], "neg": ["total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "the earliest refers to min(release_year); name of platform refers to platform_name", "average = AVG(MULTIPLY(num_sales, 100000));", "game refers to game_name; on the SCD platform refers to platform_name = 'SCD'", "record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';", "genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';", "which region refers to region_name; lowest number of sales refers to MIN(num_sales);", "role-playing game refers to genre_name = 'Role-Playing'; Microsoft Game Studios refers to publisher_name = 'Microsoft Game Studios'"]}} {"set": {"query": "List down the game ID of games with genre ID 2.", "pos": ["game ID refers to game.id; genre ID 2 refers to genre_id = 2"], "neg": ["publisher refers to publisher_name; publisher who has published the most games of all time refers to MAX(COUNT(publisher_name));", "Activision refers to publisher_name = 'Activision';", "how many games = MULTIPLY(SUM(num_sales), 100000); PS3 refers to platform_name = 'PS3'; Japan refers to region_name = 'Japan';", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "which region refers to region_name; highest number of games sold on all platforms refers to MAX(SUM(num_sales));", "on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'", "on the Wii platform refers to platform_name = 'Wii'", "FIFA games refers to game_name LIKE '%FIFA%';", "platform of the game refers to platform_name; \"Final Fantasy XIII-2\" refers to game_name = 'Final Fantasy XIII-2';", "game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'"]}} {"set": {"query": "What are the platform IDs of records released in 2006?", "pos": ["released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;"], "neg": ["released in 2001 refers to release_year = 2001", "difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';", "sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))", "genre of the game refers to genre_name; game ID 119 refers to game.id = 119;", "name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';", "total sales in all regions = MULTIPLY(SUM(num_sales), 100000);", "when the game was released refers to release_year;", "game ID refers to game.id; released in 2017 refers to release_year = 2017", "platform game refers to genre_name = 'Platform'; game refers to game_name", "region id refers to region.id; Japan refers to region_name = 'Japan'"]}} {"set": {"query": "When was the game titled 3DS Classic Collection released?", "pos": ["when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'"], "neg": ["PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;", "game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'", "names of games refers to game_name; released in 2015 refers to release_year = 2015;", "ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';", "more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "the earliest refers to min(release_year); name of platform refers to platform_name", "role-playing game refers to genre_name = 'Role-Playing'", "number of games refers to count(game_id)"]}} {"set": {"query": "Which publisher has published the game 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3'?", "pos": ["which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';"], "neg": ["name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;", "platform ID 15 refers to platform_id = 15", "difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));", "game \"ModNation Racers\" refers to game_name = 'ModNation Racers'", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "platform refers to platform_name;", "published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'", "reached 300000 sales and above refers to num_sales > 3", "names of games refers to game_name; released in 2015 refers to release_year = 2015;"]}} {"set": {"query": "Show the id of game platform which makes the most sales in Japan.", "pos": ["id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan'"], "neg": ["genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');", "total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';", "the first year refers to min(release_year)", "year refers to release_year; \"WiiU\" refers to platform_name = 'WiiU'", "Pro Evolution Soccer 2012 refers to game_name = 'Pro Evolution Soccer 2012'", "genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings'", "platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;"]}} {"set": {"query": "List down the record ID of records released between 2000 to 2003.", "pos": ["record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003"], "neg": ["name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection'", "region id refers to region.id; Japan refers to region_name = 'Japan'", "average number = divide(count(game_id), count(publisher_id))", "published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'", "genre ID 3 refers to genre.id = 3", "strategy games refers to game_name WHERE genre_name = 'Strategy';", "total number of games sold = MULTIPLY(SUM(num_sales), 100000);", "genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';"]}} {"set": {"query": "How many sales does game platform id 3871 make in Europe?", "pos": ["number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'"], "neg": ["name of games refers to game_name;\u00a0 'SCD' platform refers to platform_name = 'SCD';", "which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "released in 2001 refers to release_year = 2001", "X360 refers to platform_name = 'X360';", "platform game refers to genre_name = 'Platform'; game refers to game_name", "platform ID 15 refers to platform_id = 15", "number of sales refers to multiply(num_sales, 100000)", "platform of the game refers to platform_name; \"Final Fantasy XIII-2\" refers to game_name = 'Final Fantasy XIII-2';", "name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75"]}} {"set": {"query": "Provide the name of games released in 2015.", "pos": ["names of games refers to game_name; released in 2015 refers to release_year = 2015;"], "neg": ["how many games = MULTIPLY(SUM(num_sales), 100000); PS3 refers to platform_name = 'PS3'; Japan refers to region_name = 'Japan';", "publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';", "in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'", "publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;", "genre ID 3 refers to genre.id = 3", "X360 refers to platform_name = 'X360';", "platform ID 15 refers to platform_id = 15", "game ID refers to game.id; genre ID 2 refers to genre_id = 2", "puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3", "game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'"]}} {"set": {"query": "What is the genre of the game \"Mario vs. Donkey Kong\"?", "pos": ["genre refers to genre_name; game \"Mario vs. Donkey Kong\" refers to game_name = 'Mario vs. Donkey Kong'"], "neg": ["year refers to release_year; \"WiiU\" refers to platform_name = 'WiiU'", "which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';", "year that has the most number of video game releases refers to MAX(COUNT(release_year));", "adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;", "record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003", "name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';", "name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;", "in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004", "year the first game was released refers to MIN(release_year);", "name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';"]}} {"set": {"query": "Give the number of games which were published by Ascaron Entertainment GmbH.", "pos": ["published by Ascaron Entertainment GmbH refers to publisher_name = 'Ascaron Entertainment GmbH'"], "neg": ["adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;", "which regions refers to region_name; 'Pengo' refers to game_name = 'Pengo';", "name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'", "published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment'", "published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'", "game refers to game_name; the longest name refers to max(length(game_name))", "name of games refers to game_name; racing genre refers to genre_name = 'Racing';", "game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe'", "difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));", "how much are the sales = SUM(num_sales);"]}} {"set": {"query": "Jill ranked which medium-quality class product as the highest, and how long will it take the company to manufacture such a product?", "pos": ["second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;"], "neg": ["Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);", "thumbnail photo file refers to ThumbnailPhotoFileName;", "Road Frames is a name of product subcategory", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);", "customers' name refers to ReviewerName; best possible ratings means the highest rating = 5", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "Canada is name of sales territory"]}} {"set": {"query": "List all the scraped work orders for handling damage reason.", "pos": ["handling damage is descrription of manufacturing failure which refers to ScrapReason.Name"], "neg": ["Profit on net = SUBTRACT(LastReceiptCost, StandardPrice); full location = AddressLine1+AddressLine2+City+PostalCode;", "full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;", "Profit = SUBTRACT(StandardPrice, LastRecipeCost)\n", "Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'", "vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "mountain product line refers to ProductLine = 'M'", "assembly lines that are not finished refers to EndDate = null", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';"]}} {"set": {"query": "What profit will the company gain if they sell 10 items of the product that has the lightest weight?", "pos": ["Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;"], "neg": ["net profit = Subtract(LastReceiptCost, StandardPrice);", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100", "percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;", "married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);", "France territory refers to SalesTerritory.Name = 'France';", "assembly lines that are not finished refers to EndDate = null"]}} {"set": {"query": "Please list the products that are under the Clothing category that are manufactured in-house and salable.", "pos": ["product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;"], "neg": ["price refers to ListPrice; highest price refers to MAX(ListPrice);", "net profit = Subtract(LastReceiptCost, StandardPrice);", "unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title", "cost refers to StandardCost;", "Down Tube is a name of a product;", "Pre assembly quantity refers to PerAssemblyQty", "person number 18 refers to BusinessEntityID = 18; forename refers to FirstName", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';", "price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%"]}} {"set": {"query": "How many products with the highest unit price were ordered?", "pos": ["number of products refers to OrderQty"], "neg": ["highest yearly sales quota refers to Max(SalesQuota);", "shelves refer to shelf; down tube is a product", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "cost refers to StandardCost;", "seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "fewest online orders refer to MIN(Quantity);", "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "Rejected refers rejected product in which to RejectedQty = 1", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1"]}} {"set": {"query": "Where are the shelves where the down tube product was stored?", "pos": ["shelves refer to shelf; down tube is a product"], "neg": ["Minipump is name of a product", "began work in 2009 or later refers to StartDate> = 2009;", "The Road line refers to the product line, therefore ProductLine = 'R'", "Do not have any work order ID means WorkOrderID is null", "Night shift refers to Name = 'Night';", "work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;", "average age = AVG(subtract(year(now), year(HireDate)))", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "shipment by truck refers to Name = 'XRQ - TRUCK GROUND';", "StartDate BETWEEN '2009-01-01' AND '2009-12-31';"]}} {"set": {"query": "What are the company that Adventure Works deal with that have poor credit rating? Please provide their business number.", "pos": ["poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID"], "neg": ["business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = \u2018cell\u2019", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "order refers to SalesOrderID", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "began work in 2009 or later refers to StartDate> = 2009;", "Salespeople refers to PersonType = 'SP'", "Next-Door Bike Store is name of a store", "Mauritius Rupee is name of currency", "cost refers to StandardCost;"]}} {"set": {"query": "What is the highest amount of difference between the ordered quantity and actual quantity received in a single purchase order and to which vendor was the purchase order made?", "pos": ["highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));"], "neg": ["High quality refers to the product's quality class, therefore Class = 'H'", "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;", "year(EndDate)>2009 and year(StartDate)<2009;", "France territory refers to SalesTerritory.Name = 'France';", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "highest rating refers to MAX(Rating)", "married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n", "hashed password refers to PasswordHash;", "Next-Door Bike Store is name of a store", "fewest online orders refer to MIN(Quantity);"]}} {"set": {"query": "Please list the reviewers who have given the highest rating for a medium class, women's product.", "pos": ["highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'"], "neg": ["work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;", "cost refers to StandardCost;", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa", "If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province", "Pre assembly quantity refers to PerAssemblyQty", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;"]}} {"set": {"query": "Among the products that get over at least 1 review, how many of them are from the mountain product line?", "pos": ["mountain product line refers to ProductLine = 'M'"], "neg": ["Pre assembly quantity refers to PerAssemblyQty", "poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID", "pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;", "business id refers to BusinessEntityID", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));", "discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "Saved in English refers to product description written in English where Culture.name = 'English'", "Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "High quality refers to the product's quality class, therefore Class = 'H'"]}} {"set": {"query": "Is there a work order where the planned cost is different from the actual cost?", "pos": ["planned cost is different from actual cost refers to ActualCost ! = PlannedCost;"], "neg": ["resellers refers to Category = 'Reseller';", "married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2", "Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "Down Tube is a name of a product;", "mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))", "Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;", "began work in 2009 or later refers to StartDate> = 2009;"]}} {"set": {"query": "Name all products that started selling in 2013. State its respective vendor's name.", "pos": ["Started selling in 2013 refers to year(SellStartDate) = 2013;"], "neg": ["employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "highest rating refers to MAX(Rating)", "active employee refers to CurrentFlag = 1; Rate< = 30;", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;", "Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n", "business id refers to BusinessEntityID;"]}} {"set": {"query": "What is the credit rating of the company whose average lead time is 16 days for a standard price of 18.9900 and whose last receipt date is August 27, 2011?", "pos": ["last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';"], "neg": ["percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "least amount of workers refers to MIN(count(DepartmentID));", "low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "documents pending approval refers to Status = 1", "price refers to ListPrice;", "cost refers to StandardCost;", "Started selling in 2013 refers to year(SellStartDate) = 2013;", "Stocked quantity refers to StockedQty", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)"]}} {"set": {"query": "How many customers gave a product the best possible rating? Please list their names.", "pos": ["customers' name refers to ReviewerName; best possible ratings means the highest rating = 5"], "neg": ["highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));", "full name = FirstName+MiddleName+LastName;", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "not recommended refers to PreferredVendorStatus = 0;", "profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';", "Pre assembly quantity refers to PerAssemblyQty", "year of credit card expiration refers to ExpYear;", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;"]}} {"set": {"query": "How many of the non-sales employees are married?", "pos": ["Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'"], "neg": ["price refers to ListPrice;", "Oldest employee refers to Max ( Subtract((now())-BirthDate));", "hired in 2009 refers to year(HireDate) = 2009", "where the person live refers addresstype.Name = 'Home'", "Debur and Polish is name of manufacturing location", "BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;", "Product without any rejected quantity refers to RejectedQty = 0", "type of credit card refers to CardType; CardType = 'Vista';", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate"]}} {"set": {"query": "Give the Mauritius Rupee's currency code.", "pos": ["Mauritius Rupee is name of currency"], "neg": ["store contact refers to PersonType = 'SC';", "Started selling in 2013 refers to year(SellStartDate) = 2013;", "home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))", "Low quality refers to the product's quality class, therefore Class = 'L'", "Accountant is a job title; first hired = MIN(HireDate)", "Canada is name of sales territory", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "Saved in English refers to product description written in English where Culture.name = 'English'", "married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2"]}} {"set": {"query": "List all the work orders that is related to the Down Tube.", "pos": ["Down Tube is a name of a product;"], "neg": ["pay rate above 40 refers to Rate>40; male employee refers to Gender = M", "year(EndDate)>2009 and year(StartDate)<2009;", "business id refers to BusinessEntityID", "Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "price refers to ListPrice;", "Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100", "minimum order quantity refers to MinOrderQty;", "Department refers to Name where GroupName = 'Executive General and Administration'", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';"]}} {"set": {"query": "List all the sales people in the Northwest US.", "pos": ["Northwest is name of SalesTerritory; US is the CountryRegionCode;"], "neg": ["store contact refers to PersonType = 'SC';", "hashed password refers to PasswordHash;", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa", "minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;", "profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", "manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "lowest rating refers to Rating = 1;"]}} {"set": {"query": "What is the price for the product with the id \"912\"?", "pos": ["price refers to ListPrice;"], "neg": ["female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "Saved in English refers to product description written in English where Culture.name = 'English'", "average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "Pre assembly quantity refers to PerAssemblyQty", "credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "net profit = Subtract(LastReceiptCost, StandardPrice);", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);"]}} {"set": {"query": "What is the email address of the Facilities Manager?", "pos": ["Facilities Manager is a job title"], "neg": ["net profit = Subtract(LastReceiptCost, StandardPrice);", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;", "Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "Northwest is name of SalesTerritory; US is the CountryRegionCode;"]}} {"set": {"query": "What is the hashed password of David Bradley?", "pos": ["hashed password refers to PasswordHash;"], "neg": ["least amount of workers refers to MIN(count(DepartmentID));", "salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", "order refers to SalesOrderID", "employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "began work in 2009 or later refers to StartDate> = 2009;"]}} {"set": {"query": "What is the profit on net of the vendor with the highest standard price? If there are two vendors of the same amount, calculate only for one vendor.", "pos": ["profit on net = SUBTRACT(LastReceiptCost, StandardPrice);"], "neg": ["price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;", "discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);", "Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;", "vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)"]}} {"set": {"query": "List all product names that are high in quality. Please also state its selling price.", "pos": ["High quality refers to the product's quality class, therefore Class = 'H'"], "neg": ["Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "Salespeople refers to PersonType = 'SP'", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "highest yearly sales quota refers to Max(SalesQuota);", "Road Frames is a name of product subcategory", "United States refers to CountryRegionCode = 'US';", "Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;"]}} {"set": {"query": "How many departments did Sheela Ward work in between 1/1/2011 to 12/31/2012", "pos": ["number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;"], "neg": ["began work in 2009 or later refers to StartDate> = 2009;", "hired in 2009 refers to year(HireDate) = 2009", "Department refers to Name where GroupName = 'Executive General and Administration'", "Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'", "active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;", "salesperson that haven't met the quota refers to Bonus = 0;", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;", "product with large photo refers to LargePhoto NOT null;", "Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;"]}} {"set": {"query": "What is the weight in pounds of the style that is produced the most by the company? If there are multiple products sharing the same weight, indicate the name of each one of them and their corresponding weights.", "pos": ["weight in pounds refers to WeightUnitMeasureCode = 'LB';"], "neg": ["Sales and Marketing is group name of a department", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "located in the Subassembly category refers to Name = 'Subassembly'", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';", "year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;"]}} {"set": {"query": "What is the average standard cost of product number CA-1098?", "pos": ["Average cost = AVG(StandardCost)"], "neg": ["percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;", "Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "thumbnail photo file refers to ThumbnailPhotoFileName;", "vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)", "mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "highest pay rate refers to MAX(Rate);", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))"]}} {"set": {"query": "How many assembly items for bicycles aren't finished?", "pos": ["assembly lines that are not finished refers to EndDate = null"], "neg": ["least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "most reviews refers to MAX(count(ProductID))\n\n", "employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "not recommended refers to PreferredVendorStatus = 0;", "Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", "Do not have any work order ID means WorkOrderID is null", "cost refers to StandardCost;", "amount to be paid refers to TotalDue;", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';"]}} {"set": {"query": "Please list the names of all the store contact employees whose credit cards expired in 2007.", "pos": ["year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';"], "neg": ["Stocked quantity refers to StockedQty", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';", "The Road line refers to the product line, therefore ProductLine = 'R'", "United States refers to CountryRegionCode = 'US';", "married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;", "cost refers to StandardCost;", "288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));", "Northwest is name of SalesTerritory; US is the CountryRegionCode;", "married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2", "ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';"]}} {"set": {"query": "Name all salaried employee who are hired in 2007 and later.", "pos": ["salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007"], "neg": ["lowest rating refers to Rating = 1;", "least amount of workers refers to MIN(count(DepartmentID));", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';", "Located refers to the total address of the entity that comprises city, addressline1, addressline2", "full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;", "person number 18 refers to BusinessEntityID = 18; forename refers to FirstName", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;", "Order Reference Number refers to ReferenceOrderID", "least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';"]}} {"set": {"query": "Add the number of businesses that indicate their home address as their address and those whose address corresponds to the shipping address.", "pos": ["their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5"], "neg": ["take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "Department refers to Name where GroupName = 'Executive General and Administration'", "business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);", "salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007", "Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'", "Information Service is a name of department;", "cost refers to StandardCost;", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;"]}} {"set": {"query": "Calculate the profit of each products. List all products with more than $100 in profit.", "pos": ["Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100"], "neg": ["number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'", "percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "year of credit card expiration refers to ExpYear;", "year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;", "tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';", "Canada is name of sales territory", "Night shift refers to Name = 'Night';", "Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);"]}} {"set": {"query": "What is the location id for Debur and Polish?", "pos": ["Debur and Polish is name of manufacturing location"], "neg": ["take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "planned cost is different from actual cost refers to ActualCost ! = PlannedCost;", "low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);", "minimum order quantity refers to MinOrderQty;", "order refers to SalesOrderID", "married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;", "Hex Nut 5 is name of a product", "unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title", "SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';"]}} {"set": {"query": "What is the current status of the order with the highest shipping cost?", "pos": ["shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);"], "neg": ["Vendor's selling price of a single product refers to UnitPrice;", "located in the Subassembly category refers to Name = 'Subassembly'", "Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'", "product number = productID", "High quality refers to the product's quality class, therefore Class = 'H'", "began work in 2009 or later refers to StartDate> = 2009;", "BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;", "LL Road Frame Sale is a description of special offer", "average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));", "product maintenance documents are private refers to DocumentSummary = null"]}} {"set": {"query": "Where can I find the Valley Bicycle Specialists store?", "pos": ["Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;"], "neg": ["Headset Ball Bearings is name of a product", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product", "credit card number refers to CardNumber;", "salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "card that expires in 2007 refers to ExpYear = 2007;", "PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'", "Night shift refers to Name = 'Night';", "Hex Nut 5 is name of a product", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;"]}} {"set": {"query": "List all staff in the Shipping and Receiving department who are hired in 2009.", "pos": ["hired in 2009 refers to year(HireDate) = 2009"], "neg": ["The Road line refers to the product line, therefore ProductLine = 'R'", "Debur and Polish is name of manufacturing location", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "Next-Door Bike Store is name of a store", "Department refers to Name where GroupName = 'Executive General and Administration'", "product with large photo refers to LargePhoto NOT null;", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa", "Mauritius Rupee is name of currency", "low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);", "percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;"]}} {"set": {"query": "What is the number of the sub categories for bikes?", "pos": ["Bike refers to the name of the product category, therefore ProductCategoryID = 1"], "neg": ["Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "Mauritius Rupee is name of currency", "Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "Socks is a name of product subcategory", "Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'", "miinimum order quantity refers to MinOrderQty = 100", "store contact refers to PersonType = 'SC';", "number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'", "website purchasing link refers to PurchasingWebServiceURL", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1"]}} {"set": {"query": "Please list the names of the products that get over 10 reviews and a salable.", "pos": ["salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10"], "neg": ["salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007", "average age = AVG(subtract(year(now), year(HireDate)))", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;", "work order transaction refers to TransactionType = 'W';", "Northwest is name of SalesTerritory; US is the CountryRegionCode;", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;", "most reviews refers to MAX(count(ProductID))\n\n", "person number 18 refers to BusinessEntityID = 18; forename refers to FirstName", "Mauritius Rupee is name of currency"]}} {"set": {"query": "What is the highest pay rate of the employees who are exempt from collective bargaining?", "pos": ["employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)"], "neg": ["second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;", "increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = \u2018cell\u2019", "active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;", "Document Control Assistant refers\u00a0 to the\u00a0 JobTitle = 'Document Control Assistant'; hired on 2009/1/22 means the person's hiring date is HireDate = '2009-01-22'; private documents indicate that DocumentSummary is null; DIVIDE(COUNT(DocumentSummary is null), COUNT(DocumentSummary))*100", "married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n", "active status of employees refers to CurrentFlag = 1;", "amount to be paid refers to TotalDue;", "type of employee refers to PersonType;", "year of credit card expiration refers to ExpYear;"]}} {"set": {"query": "How many shipments by truck were made?", "pos": ["shipment by truck refers to Name = 'XRQ - TRUCK GROUND';"], "neg": ["business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);", "increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'", "sales order for 32 units refers to OrderQty = 32", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "vendor's selling price refers to StandardPrice", "male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;", "cost refers to StandardCost;", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate"]}} {"set": {"query": "Among the employees who wish to receive e-mail promotion from AdventureWorks, how many percent of them are female?", "pos": ["female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;"], "neg": ["married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n", "profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))", "Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;", "Low quality refers to the product's quality class, therefore Class = 'L'", "store contact refers to PersonType = 'SC';", "cost refers to StandardCost;", "LL Road Frame Sale is a description of special offer", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product", "most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'"]}} {"set": {"query": "Among the products from the mountain product line, how many of them are sold by over 2 vendors?", "pos": ["mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5"], "neg": ["purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);", "Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';", "profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;", "least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "Next-Door Bike Store is name of a store", "full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;"]}} {"set": {"query": "What proportion of sales orders are made from the United Kingdom?", "pos": ["proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;"], "neg": ["second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "card that expires in 2007 refers to ExpYear = 2007;", "shelves refer to shelf; down tube is a product", "number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;", "Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable", "Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n", "Document Control Assistant refers\u00a0 to the\u00a0 JobTitle = 'Document Control Assistant'; hired on 2009/1/22 means the person's hiring date is HireDate = '2009-01-22'; private documents indicate that DocumentSummary is null; DIVIDE(COUNT(DocumentSummary is null), COUNT(DocumentSummary))*100", "highest pay rate refers to MAX(Rate);"]}} {"set": {"query": "Please list the departments that are part of the Executive General and Administration group.", "pos": ["Department refers to Name where GroupName = 'Executive General and Administration'"], "neg": ["percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "type of credit card refers to CardType; CardType = 'Vista';", "MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;", "sales order for 32 units refers to OrderQty = 32", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;", "website purchasing link refers to PurchasingWebServiceURL", "least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "vendor's selling price refers to StandardPrice", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "lowest rating refers to Rating = 1"]}} {"set": {"query": "What is the percentage of employees who work the night shift?", "pos": ["percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;"], "neg": ["mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "Stocked quantity refers to StockedQty", "average age = AVG(subtract(year(now), year(HireDate)))", "average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));", "shelves refer to shelf; down tube is a product", "SP is an abbreviation for Sales Person; PersonType = 'SP';", "hired in 2009 refers to year(HireDate) = 2009", "Socks is a name of product subcategory", "poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime"]}} {"set": {"query": "How many vacation hours do the male employees have on average?", "pos": ["employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));"], "neg": ["business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "type of credit card refers to CardType; CardType = 'Vista';", "Oldest employee refers to Max ( Subtract((now())-BirthDate));", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "Minipump is name of a product"]}} {"set": {"query": "How much is the amount to be paid by the company for the purchase order with the third highest freight amount?", "pos": ["amount to be paid refers to TotalDue;"], "neg": ["Facilities Manager is a job title", "Located refers to the total address of the entity that comprises city, addressline1, addressline2", "hashed password refers to PasswordHash;", "employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "vendor's selling price refers to StandardPrice", "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;", "second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;", "business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = \u2018cell\u2019", "Road Frames is a name of product subcategory", "Bike refers to the name of the product category, therefore ProductCategoryID = 1"]}} {"set": {"query": "Which sales person achieved the highest sales YTD? What is the projected yearly sales quota in 2011 for this person?", "pos": ["Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota"], "neg": ["Highest year to date sales refers to Max(SalesYTD);", "sales order for 32 units refers to OrderQty = 32", "shipping address = AddressLine1+AddressLine2+City;", "work order transaction refers to TransactionType = 'W';", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;", "active status of employees refers to CurrentFlag = 1;", "person number 18 refers to BusinessEntityID = 18; forename refers to FirstName", "cost refers to StandardCost;", "card that expires in 2007 refers to ExpYear = 2007;", "Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n"]}} {"set": {"query": "How many employees who began working in 2009 or later had night shifts?", "pos": ["began work in 2009 or later refers to StartDate> = 2009;"], "neg": ["Hex Nut 5 is name of a product", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);", "Oldest employee refers to Max ( Subtract((now())-BirthDate));", "shelves refer to shelf; down tube is a product", "Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "customers' name refers to ReviewerName; best possible ratings means the highest rating = 5", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "profit = SUBTRACT(ListPrice, StandardCost);", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;"]}} {"set": {"query": "Among the employees who have a pay rate of above 40, how many of them are male?", "pos": ["pay rate above 40 refers to Rate>40; male employee refers to Gender = M"], "neg": ["employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title", "sales order for 32 units refers to OrderQty = 32", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "Down Tube is a name of a product;", "Order Reference Number refers to ReferenceOrderID", "minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;"]}} {"set": {"query": "What is the cost for the product \"847\"?", "pos": ["cost refers to StandardCost;"], "neg": ["married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;", "Started selling in 2013 refers to year(SellStartDate) = 2013;", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;", "SP is an abbreviation for Sales Person; PersonType = 'SP';", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;"]}} {"set": {"query": "List the first and last name of all unmarried male Production Supervisors.", "pos": ["unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title"], "neg": ["year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;", "average selling price = divide(sum(StandardPrice), count(BusinessEntityID))", "SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'", "full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "lowest pay refers to min(Rate);", "mountain product line refers to ProductLine = 'M'", "sales order for 32 units refers to OrderQty = 32", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)"]}} {"set": {"query": "Where is Business Entity ID No.4 located at? Give the address down to street.", "pos": ["Located refers to the total address of the entity that comprises city, addressline1, addressline2"], "neg": ["employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "Socks is a name of product subcategory", "Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "Debur and Polish is name of manufacturing location", "Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice", "year(EndDate)>2009 and year(StartDate)<2009;", "shipment by truck refers to Name = 'XRQ - TRUCK GROUND';"]}} {"set": {"query": "How many people reviewed for product named HL Mountain Pedal? What is the average rating?", "pos": ["AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))"], "neg": ["business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);", "lowest pay refers to min(Rate);", "most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'", "Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;", "Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "actual resource hours of 2 refers to ActualResourceHrs = 2", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "credit card number refers to CardNumber;"]}} {"set": {"query": "What is the job title of the oldest employee in the company? In which department is he in?", "pos": ["oldest employee refers to min(BirthDate)"], "neg": ["low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))", "profit = SUBTRACT(ListPrice, StandardCost);", "discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;", "Accountant is a job title; first hired = MIN(HireDate)", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota"]}} {"set": {"query": "What is the average lead time of product ID 843? Calculate for its profit on net and indicate the full location to which the vendor is located.", "pos": ["Profit on net = SUBTRACT(LastReceiptCost, StandardPrice); full location = AddressLine1+AddressLine2+City+PostalCode;"], "neg": ["unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title", "highest rating refers to MAX(Rating)", "profit = SUBTRACT(ListPrice, StandardCost);", "Down Tube is a name of a product;", "highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "where the person live refers addresstype.Name = 'Home'", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "over 3 price changes refers to count(ListPrice)>3", "active employee refers to CurrentFlag = 1; Rate< = 30;"]}} {"set": {"query": "Please list the credit card numbers of all the employees who have left the Finance Department.", "pos": ["credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;"], "neg": ["The Road line refers to the product line, therefore ProductLine = 'R'", "profit = SUBTRACT(ListPrice, StandardCost);", "full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "product with large photo refers to LargePhoto NOT null;", "cost refers to StandardCost;", "website purchasing link refers to PurchasingWebServiceURL", "vendor's selling price refers to StandardPrice", "profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));", "year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;"]}} {"set": {"query": "Among the products that are both manufactured in house and salable, how many of them get over 10 reviews?", "pos": ["manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10"], "neg": ["product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "shipment by truck refers to Name = 'XRQ - TRUCK GROUND';", "highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "cost refers to StandardCost;", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "profit = SUBTRACT(ListPrice, StandardCost);", "fewest online orders refer to MIN(Quantity);"]}} {"set": {"query": "Please list the phone numbers of all the store contacts.", "pos": ["store contact refers to PersonType = 'SC';"], "neg": ["Order Reference Number refers to ReferenceOrderID", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa", "United States refers to CountryRegionCode = 'US';", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "cost refers to StandardCost;", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "Product without any rejected quantity refers to RejectedQty = 0", "most reviews refers to MAX(count(ProductID))\n\n", "highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';"]}} {"set": {"query": "Which vendor's selling price for Hex Nut 5 is the lowest, please give the vendor's name.", "pos": ["vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)"], "neg": ["job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';", "male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "began work in 2009 or later refers to StartDate> = 2009;", "Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;", "Down Tube is a name of a product;", "profit = SUBTRACT(ListPrice, StandardCost);"]}} {"set": {"query": "What is the total amount due of all the purchases made by the company to the vendor that has the lowest selling price amount of a single product? Indicate the name of the vendor to which the purchases was made.", "pos": ["Vendor's selling price of a single product refers to UnitPrice;"], "neg": ["profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;", "average age = AVG(subtract(year(now), year(HireDate)))", "lowest rating refers to Rating = 1", "highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));", "average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "goods refers to products", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota", "Minipump is name of a product"]}} {"set": {"query": "For all the purchase order transactions, name all the products with low quality.", "pos": ["Low quality refers to the product's quality class, therefore Class = 'L'"], "neg": ["salesperson that haven't met the quota refers to Bonus = 0;", "shipping address = AddressLine1+AddressLine2+City;", "Northwest is name of SalesTerritory; US is the CountryRegionCode;", "business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);", "lowest rating refers to Rating = 1;", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;", "actual resource hours of 2 refers to ActualResourceHrs = 2", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'"]}} {"set": {"query": "In 2007, which job position was hired the most?", "pos": ["Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';"], "neg": ["Bike refers to the name of the product category, therefore ProductCategoryID = 1", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "salesperson that haven't met the quota refers to Bonus = 0;", "Accountant is a job title; first hired = MIN(HireDate)", "Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota", "credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate"]}} {"set": {"query": "How many people were there in the Engineering Department in the year 2009?", "pos": ["year(EndDate)>2009 and year(StartDate)<2009;"], "neg": ["Road Frames is a name of product subcategory", "France territory refers to SalesTerritory.Name = 'France';", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)", "vendor's selling price refers to StandardPrice", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "shipment by truck refers to Name = 'XRQ - TRUCK GROUND';", "highest rating refers to MAX(Rating)"]}} {"set": {"query": "What are the products with a large photo?", "pos": ["product with large photo refers to LargePhoto NOT null;"], "neg": ["The Road line refers to the product line, therefore ProductLine = 'R'", "most reviews refers to MAX(count(ProductID))\n\n", "Road Frames is a name of product subcategory", "Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "salesperson that haven't met the quota refers to Bonus = 0;", "full name = FirstName+MiddleName+LastName;", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "net profit = Subtract(LastReceiptCost, StandardPrice);", "quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';"]}} {"set": {"query": "Which vendor gives the best profit on net for product ID 342?", "pos": ["profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))"], "neg": ["Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "SP is an abbreviation for Sales Person; PersonType = 'SP';", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "Canada is name of a sales territory", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "lowest rating refers to Rating = 1"]}} {"set": {"query": "Did Rachel Valdez complete her sales task?", "pos": ["Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa"], "neg": ["Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "profit = SUBTRACT(ListPrice, StandardCost);", "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "France territory refers to SalesTerritory.Name = 'France';", "resellers refers to Category = 'Reseller';", "Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);"]}} {"set": {"query": "How many Minipumps have been sold?", "pos": ["Minipump is name of a product"], "neg": ["High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "hashed password refers to PasswordHash;", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;", "fewest online orders refer to MIN(Quantity);", "Australia Bike Retailer is name of vendor", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "highest pay rate refers to MAX(Rate);", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;"]}} {"set": {"query": "How many Vista cards expired before the year 2007?", "pos": ["Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n"], "neg": ["Facilities Manager is a job title", "Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa", "Stocked quantity refers to StockedQty", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "Located refers to the total address of the entity that comprises city, addressline1, addressline2", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "LL Road Frame Sale is a description of special offer", "credit card number refers to CardNumber;"]}} {"set": {"query": "What is the profit of the product with the highest list price and of the product with the lowest list price other than 0? Indicates the depth the component is from its parent.", "pos": ["profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;"], "neg": ["shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);", "number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;", "Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice", "highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "active employee refers to CurrentFlag = 1; Rate< = 30;", "increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;"]}} {"set": {"query": "Which seasonal discount had the highest discount percentage?", "pos": ["seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);"], "neg": ["shipping address = AddressLine1+AddressLine2+City;", "second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;", "manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "amount to be paid refers to TotalDue;", "goods refers to products", "tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';", "288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));", "card that expires in 2007 refers to ExpYear = 2007;", "Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000"]}} {"set": {"query": "How many types of credit cards are there and how many are vista?", "pos": ["type of credit card refers to CardType; CardType = 'Vista';"], "neg": ["purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "The Road line refers to the product line, therefore ProductLine = 'R'", "hired in 2009 refers to year(HireDate) = 2009", "product number = productID", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);", "employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0", "Next-Door Bike Store is name of a store", "manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10"]}} {"set": {"query": "For the document Control Assistant who was hired on 2009/1/22, what is the percentage of private documents did he/she have?", "pos": ["Document Control Assistant refers\u00a0 to the\u00a0 JobTitle = 'Document Control Assistant'; hired on 2009/1/22 means the person's hiring date is HireDate = '2009-01-22'; private documents indicate that DocumentSummary is null; DIVIDE(COUNT(DocumentSummary is null), COUNT(DocumentSummary))*100"], "neg": ["Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n", "tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';", "ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';", "vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)", "Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0", "non-sales employee refers to PersonType = 'EM'", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "planned cost is different from actual cost refers to ActualCost ! = PlannedCost;", "Socks is a name of product subcategory"]}} {"set": {"query": "Lists all companies by BusinessEntityID that increased their current year sales by more than 60% over last year's sales and have a bonus greater than 3,000.", "pos": ["increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6"], "neg": ["minimum order quantity refers to MinOrderQty;", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2", "over 3 price changes refers to count(ListPrice)>3", "profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));", "shipping address = AddressLine1+AddressLine2+City;", "year of credit card expiration refers to ExpYear;", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n"]}} {"set": {"query": "What categories of offers qualify for group discounts for resellers?", "pos": ["resellers refers to Category = 'Reseller';"], "neg": ["not recommended refers to PreferredVendorStatus = 0;", "Document Control Assistant refers\u00a0to the\u00a0JobTitle = 'Document Control Assistant'; born on 1975/12/25 refers to BirthDate = '1975-12-25'; private documents indicate that DocumentSummary is null", "Low quality refers to the product's quality class, therefore Class = 'L'", "SP is an abbreviation for Sales Person; PersonType = 'SP';", "unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title", "Salespeople refers to PersonType = 'SP'", "over 3 price changes refers to count(ListPrice)>3", "Socks is a name of product subcategory", "store contact refers to PersonType = 'SC';", "average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));"]}} {"set": {"query": "Among all the production technicians, how many have a below average pay rate for a production technician?", "pos": ["production technician is a job title; below average rate refers to Rate2007 and year(StartDate)<2007;", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "type of credit card refers to CardType; CardType = 'Vista';", "credit card number refers to CardNumber;", "employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "store contact refers to PersonType = 'SC';", "miinimum order quantity refers to MinOrderQty = 100", "product number = productID", "Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n"]}} {"set": {"query": "How many products were on the LL Road Frame Sale?", "pos": ["LL Road Frame Sale is a description of special offer"], "neg": ["United States refers to CountryRegionCode = 'US';", "Saved in English refers to product description written in English where Culture.name = 'English'", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "Salespeople refers to PersonType = 'SP'", "Minipump is name of a product", "active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;", "highest selling price refers to MAX(ListPrice);", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;"]}} {"set": {"query": "Among the employees who are store contacts, how many of them have a title of \"Mr.\"?", "pos": ["store contact refers to PersonType = 'SC';"], "neg": ["Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));", "actual resource hours of 2 refers to ActualResourceHrs = 2", "Profit = SUBTRACT(StandardPrice, LastRecipeCost)\n", "Hex Nut 5 is name of a product", "product maintenance documents are private refers to DocumentSummary = null", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "highest pay rate refers to MAX(Rate);", "Debur and Polish is name of manufacturing location"]}} {"set": {"query": "What is the average pay rate of the employees who worked in the Engineering Departmentin 2007?", "pos": ["average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;"], "neg": ["geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "Mauritius Rupee is name of currency", "Saved in English refers to product description written in English where Culture.name = 'English'", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;", "documents pending approval refers to Status = 1", "poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID"]}} {"set": {"query": "What are the differences between the 288th salesperson's predicted annual sales and his or her actual sales thus far?", "pos": ["288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));"], "neg": ["married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2", "miinimum order quantity refers to MinOrderQty = 100", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';", "year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;", "business id refers to BusinessEntityID", "Product without any rejected quantity refers to RejectedQty = 0", "France territory refers to SalesTerritory.Name = 'France';", "product number = productID", "average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));"]}} {"set": {"query": "What type of employee is David Bradley?", "pos": ["type of employee refers to PersonType;"], "neg": ["highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';", "SP is an abbreviation for Sales Person; PersonType = 'SP';", "business id refers to BusinessEntityID", "weight in pounds refers to WeightUnitMeasureCode = 'LB';", "percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'", "highest selling price refers to MAX(ListPrice);", "hired in 2009 refers to year(HireDate) = 2009"]}} {"set": {"query": "Please list 3 businesses along with their IDs that use cellphones.", "pos": ["business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = \u2018cell\u2019"], "neg": ["Order Reference Number refers to ReferenceOrderID", "business id refers to BusinessEntityID", "average age = AVG(subtract(year(now), year(HireDate)))", "highest selling price refers to MAX(ListPrice);", "assembly lines that are not finished refers to EndDate = null", "over 3 price changes refers to count(ListPrice)>3", "Down Tube is a name of a product;", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));", "type of credit card refers to CardType; CardType = 'Vista';"]}} {"set": {"query": "Please list the product names of all the products on the LL Road Frame Sale.", "pos": ["LL Road Frame Sale is a description of special offer"], "neg": ["Profit = SUBTRACT(StandardPrice, LastRecipeCost)\n", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);", "assembly lines that are not finished refers to EndDate = null", "product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;", "miinimum order quantity refers to MinOrderQty = 100", "type of credit card refers to CardType; CardType = 'Vista';", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));"]}} {"set": {"query": "How many types of tax did the sales happen in Quebec have?", "pos": ["If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province"], "neg": ["Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "LL Road Frame Sale is a description of special offer", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;", "work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;", "actual resource hours of 2 refers to ActualResourceHrs = 2", "fewest online orders refer to MIN(Quantity);", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;", "percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;"]}} {"set": {"query": "How many of the workers who started working in 2009 are from the Production Department?", "pos": ["StartDate BETWEEN '2009-01-01' AND '2009-12-31';"], "neg": ["increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;", "Headset Ball Bearings is name of a product", "type of credit card refers to CardType; CardType = 'Vista';", "business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = \u2018cell\u2019", "lowest rating refers to Rating = 1", "highest selling price refers to MAX(ListPrice);", "employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "thumbnail photo file refers to ThumbnailPhotoFileName;", "cost refers to StandardCost;"]}} {"set": {"query": "Please list all the vendors' usual selling prices of the product Hex Nut 5.", "pos": ["vendor's selling price refers to StandardPrice"], "neg": ["do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2", "mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))", "credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "SP is an abbreviation for Sales Person; PersonType = 'SP';", "store contact refers to PersonType = 'SC';", "cost refers to StandardCost;", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);", "production technician is a job title; below average rate refers to Rate3"], "neg": ["If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province", "PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'", "active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;", "type of employee refers to PersonType;", "mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))", "documents pending approval refers to Status = 1", "price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;", "geographic area to which the city belong refers to Group;", "product number = productID"]}} {"set": {"query": "What are the total per assembly quantity for unit measure code EA, IN and OZ respectively? What are the name of these 3 code?", "pos": ["Pre assembly quantity refers to PerAssemblyQty"], "neg": ["Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "business id refers to BusinessEntityID", "documents pending approval refers to Status = 1", "288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));", "Bike refers to the name of the product category, therefore ProductCategoryID = 1", "fewest online orders refer to MIN(Quantity);", "customers' name refers to ReviewerName; best possible ratings means the highest rating = 5", "employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)", "Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)"]}} {"set": {"query": "Which reviewer gives the biggest number of the highest rating?", "pos": ["highest rating refers to MAX(Rating)"], "neg": ["assembly lines that are not finished refers to EndDate = null", "Document Control Assistant refers\u00a0 to the\u00a0 JobTitle = 'Document Control Assistant'; hired on 2009/1/22 means the person's hiring date is HireDate = '2009-01-22'; private documents indicate that DocumentSummary is null; DIVIDE(COUNT(DocumentSummary is null), COUNT(DocumentSummary))*100", "employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle", "price refers to ListPrice;", "work order transaction refers to TransactionType = 'W';", "profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "Salespeople refers to PersonType = 'SP'", "Headset Ball Bearings is name of a product", "Night shift refers to Name = 'Night';"]}} {"set": {"query": "Please give all the list prices of the product LL Fork.", "pos": ["Hex Nut 5 is name of a product"], "neg": ["price refers to ListPrice;", "work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;", "Document Control Assistant refers\u00a0to the\u00a0JobTitle = 'Document Control Assistant'; born on 1975/12/25 refers to BirthDate = '1975-12-25'; private documents indicate that DocumentSummary is null", "average selling price = divide(sum(StandardPrice), count(BusinessEntityID))", "BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "LL Road Frame Sale is a description of special offer", "employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle", "weight in pounds refers to WeightUnitMeasureCode = 'LB';"]}} {"set": {"query": "Which work order transaction number has the highest product quantity?", "pos": ["work order transaction refers to TransactionType = 'W';"], "neg": ["Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "Debur and Polish is name of manufacturing location", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';", "shipping address = AddressLine1+AddressLine2+City;", "MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;", "pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;", "highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);", "High quality refers to the product's quality class, therefore Class = 'H'", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;", "France territory refers to SalesTerritory.Name = 'France';"]}} {"set": {"query": "What is the product with the most profit?", "pos": ["profit = SUBTRACT(ListPrice, StandardCost);"], "neg": ["Bike refers to the name of the product category, therefore ProductCategoryID = 1", "geographic area to which the city belong refers to Group;", "vendor's selling price refers to StandardPrice", "not recommended refers to PreferredVendorStatus = 0;", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "assembly lines that are not finished refers to EndDate = null", "Low quality refers to the product's quality class, therefore Class = 'L'", "over 3 price changes refers to count(ListPrice)>3", "approved refers to Status = 2; confidential document refers to DocumentSummary is null;", "began work in 2009 or later refers to StartDate> = 2009;"]}} {"set": {"query": "List the name of married employees with less than 20 vacation hours.", "pos": ["married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20"], "neg": ["Stocked quantity refers to StockedQty", "actual resource hours of 2 refers to ActualResourceHrs = 2", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "shipping address = AddressLine1+AddressLine2+City;", "most reviews refers to MAX(count(ProductID))\n\n", "store contact refers to PersonType = 'SC';", "United States refers to CountryRegionCode = 'US';", "Night shift refers to Name = 'Night';", "planned cost is different from actual cost refers to ActualCost ! = PlannedCost;", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);"]}} {"set": {"query": "What percentage of AdventureWorks employees are men?", "pos": ["male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;"], "neg": ["average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "oldest employee refers to min(BirthDate)", "Oldest employee refers to Max ( Subtract((now())-BirthDate));", "shelves refer to shelf; down tube is a product", "highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);", "profit = SUBTRACT(ListPrice, StandardCost);", "LL Road Frame Sale is a description of special offer", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "year of credit card expiration refers to ExpYear;"]}} {"set": {"query": "Which product ID do not have any work order ID?", "pos": ["Do not have any work order ID means WorkOrderID is null"], "neg": ["profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))", "Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'", "employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;", "employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "average age = AVG(subtract(year(now), year(HireDate)))", "thumbnail photo file refers to ThumbnailPhotoFileName;", "highest selling price refers to MAX(ListPrice);", "year of credit card expiration refers to ExpYear;", "active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;"]}} {"set": {"query": "List the full name of all the 'Production Technician - WC50'", "pos": ["full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;"], "neg": ["purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "not recommended refers to PreferredVendorStatus = 0;", "product with large photo refers to LargePhoto NOT null;", "actual resource hours of 2 refers to ActualResourceHrs = 2", "non-sales employee refers to PersonType = 'EM'", "cost refers to StandardCost;"]}} {"set": {"query": "How many days did it take to end the work order \"425\"?", "pos": ["days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);"], "neg": ["compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "Document Control Assistant refers\u00a0 to the\u00a0 JobTitle = 'Document Control Assistant'; hired on 2009/1/22 means the person's hiring date is HireDate = '2009-01-22'; private documents indicate that DocumentSummary is null; DIVIDE(COUNT(DocumentSummary is null), COUNT(DocumentSummary))*100", "lowest rating refers to Rating = 1", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "Down Tube is a name of a product;", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "pay rate above 40 refers to Rate>40; male employee refers to Gender = M", "manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10"]}} {"set": {"query": "Among the active male employees, how many of them are paid with the highest frequency?", "pos": ["active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;"], "neg": ["Night shift refers to Name = 'Night';", "Accountant is a job title; first hired = MIN(HireDate)", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "actual resource hours of 2 refers to ActualResourceHrs = 2", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product", "Highest year to date sales refers to Max(SalesYTD);", "price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;", "non-sales employee refers to PersonType = 'EM'"]}} {"set": {"query": "How many married male employees were born before the year 1960?", "pos": ["married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';"], "neg": ["business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "lowest pay refers to min(Rate);", "pay rate above 40 refers to Rate>40; male employee refers to Gender = M", "lowest rating refers to Rating = 1", "product number = productID", "Vendor's selling price of a single product refers to UnitPrice;", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'"]}} {"set": {"query": "How frequently do the employee with the least number of sick leave hours get paid?", "pos": ["least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';"], "neg": ["year of credit card expiration refers to ExpYear;", "Accountant is a job title; first hired = MIN(HireDate)", "fewest online orders refer to MIN(Quantity);", "average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "Sales and Marketing is group name of a department", "thumbnail photo file refers to ThumbnailPhotoFileName;", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "Australia Bike Retailer is name of vendor", "cost refers to StandardCost;"]}} {"set": {"query": "What product has the fewest online orders from one customer? List the product's class, line of business, and list price.", "pos": ["fewest online orders refer to MIN(Quantity);"], "neg": ["married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';", "Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;", "low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);", "product with large photo refers to LargePhoto NOT null;", "credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product", "minimum order quantity refers to MinOrderQty;", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "Profit = SUBTRACT(StandardPrice, LastRecipeCost)\n", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'"]}} {"set": {"query": "What is the cost for the sports?", "pos": ["cost refers to StandardCost;"], "neg": ["thumbnail photo file refers to ThumbnailPhotoFileName;", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);", "lowest pay refers to min(Rate);", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "The Road line refers to the product line, therefore ProductLine = 'R'", "percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product", "vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)"]}} {"set": {"query": "For the document Control Assistant who was born on 1975/12/25, how many private documents did he/she have?", "pos": ["Document Control Assistant refers\u00a0to the\u00a0JobTitle = 'Document Control Assistant'; born on 1975/12/25 refers to BirthDate = '1975-12-25'; private documents indicate that DocumentSummary is null"], "neg": ["profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "assembly lines that are not finished refers to EndDate = null", "card that expires in 2007 refers to ExpYear = 2007;", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;", "price refers to ListPrice;", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);", "married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n", "employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)", "Road Frames is a name of product subcategory", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime"]}} {"set": {"query": "Who are the employees that submitted resume to Human Resource Department and got hired? State the last name.", "pos": ["employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;"], "neg": ["thumbnail photo file refers to ThumbnailPhotoFileName;", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "Night shift refers to Name = 'Night';", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;", "type of employee refers to PersonType;", "Department refers to Name where GroupName = 'Executive General and Administration'", "vendor's selling price refers to StandardPrice", "BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;"]}} {"set": {"query": "Who is the sales person in charge of the territory with the id \"9\"? Provide their full name.", "pos": ["full name = FirstName+MiddleName+LastName;"], "neg": ["highest rating refers to MAX(Rating)", "store contact refers to PersonType = 'SC';", "full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;", "If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "Saved in English refers to product description written in English where Culture.name = 'English'", "resellers refers to Category = 'Reseller';", "hashed password refers to PasswordHash;"]}} {"set": {"query": "How many product maintenance documents are private?", "pos": ["product maintenance documents are private refers to DocumentSummary = null"], "neg": ["employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;", "Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", "amount to be paid refers to TotalDue;", "business id refers to BusinessEntityID;", "actual resource hours of 2 refers to ActualResourceHrs = 2", "employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "fewest online orders refer to MIN(Quantity);"]}} {"set": {"query": "List down the product name, reviewer name, rating and comments for product under the road line.", "pos": ["The Road line refers to the product line, therefore ProductLine = 'R'"], "neg": ["mountain product line refers to ProductLine = 'M'", "do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2", "non-sales employee refers to PersonType = 'EM'", "SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'", "Oldest employee refers to Max ( Subtract((now())-BirthDate));", "highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "highest yearly sales quota refers to Max(SalesQuota);", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;", "Product without any rejected quantity refers to RejectedQty = 0"]}} {"set": {"query": "How many people with the name Alex are single and occupying organization level of 1?", "pos": ["Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'"], "neg": ["Information Service is a name of department;", "do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2", "active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);", "male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;", "Canada is name of sales territory", "store contact refers to PersonType = 'SC';", "Stocked quantity refers to StockedQty", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;"]}} {"set": {"query": "Please list the products that are out of stock and purchased in house.", "pos": ["take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1"], "neg": ["projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "lowest pay refers to min(Rate);", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "cost refers to StandardCost;", "Canada is name of a sales territory", "Next-Door Bike Store is name of a store", "profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;", "Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;", "full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;"]}} {"set": {"query": "How many employees in the Information Service department work the evening shift?", "pos": ["Information Service is a name of department;"], "neg": ["Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);", "documents pending approval refers to Status = 1", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;", "amount to be paid refers to TotalDue;", "Night shift refers to Name = 'Night';", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);"]}} {"set": {"query": "What is the profit of a single product that received the highest rating from John Smith? List the product/s' names.", "pos": ["highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);"], "neg": ["employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);", "Down Tube is a name of a product;", "do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2", "lowest pay refers to min(Rate);", "Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100", "second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = \u2018cell\u2019", "active status of employees refers to CurrentFlag = 1;"]}} {"set": {"query": "What is the PreferredVendorStatus for the company which has the rowguid of \"684F328D-C185-43B9-AF9A-37ACC680D2AF\"?", "pos": ["PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'"], "neg": ["began work in 2009 or later refers to StartDate> = 2009;", "quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%", "Located refers to the total address of the entity that comprises city, addressline1, addressline2", "Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5", "price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "highest rating refers to Rating = 5; profit = SUBTRACT(ListPrice, StandardCost);", "least amount of workers refers to MIN(count(DepartmentID));"]}} {"set": {"query": "If we discount the products that do not have any type of offer, how many different products have been sold in an amount greater than 2 units per order?", "pos": ["do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2"], "neg": ["net profit = Subtract(LastReceiptCost, StandardPrice);", "order refers to SalesOrderID", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "goods refers to products", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "LL Road Frame Sale is a description of special offer", "located in the Subassembly category refers to Name = 'Subassembly'", "pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;", "Socks is a name of product subcategory", "Minipump is name of a product"]}} {"set": {"query": "What are the sales reasons for order 43718?", "pos": ["order refers to SalesOrderID"], "neg": ["Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "Canada is name of a sales territory", "unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title", "lowest rating refers to Rating = 1;", "Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "Down Tube is a name of a product;", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "highest pay rate refers to MAX(Rate);", "lowest pay refers to min(Rate);", "number of products refers to OrderQty"]}} {"set": {"query": "What kind of transaction type for the \"HL Road Frame - Black, 48\" order happened in 2012/12/13?", "pos": ["Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate"], "neg": ["highest pay rate refers to MAX(Rate);", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "active employee refers to CurrentFlag = 1; Rate< = 30;", "tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);", "Saved in English refers to product description written in English where Culture.name = 'English'", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;", "where the person live refers addresstype.Name = 'Home'"]}} {"set": {"query": "List all product name from Australia Bike Retailer order by product ID.", "pos": ["Australia Bike Retailer is name of vendor"], "neg": ["employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "store contact refers to PersonType = 'SC';", "year(EndDate)>2009 and year(StartDate)<2009;", "average age = AVG(subtract(year(now), year(HireDate)))", "lowest rating refers to Rating = 1;", "Low quality refers to the product's quality class, therefore Class = 'L'", "percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "High quality refers to the product's quality class, therefore Class = 'H'", "vendor's selling price refers to StandardPrice", "approved refers to Status = 2; confidential document refers to DocumentSummary is null;"]}} {"set": {"query": "Among the Production Technicians who are single, how many of them are vendor contact?", "pos": ["Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'"], "neg": ["year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);", "Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);", "product with large photo refers to LargePhoto NOT null;", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "LL Road Frame Sale is a description of special offer", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product"]}} {"set": {"query": "Which Production Technician has the highest pay rate?", "pos": ["highest pay rate refers to MAX(Rate);"], "neg": ["documents pending approval refers to Status = 1", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "active status of employees refers to CurrentFlag = 1;", "Accountant is a job title; first hired = MIN(HireDate)", "credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa", "Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'", "type of employee refers to PersonType;", "hashed password refers to PasswordHash;", "type of credit card refers to CardType; CardType = 'Vista';"]}} {"set": {"query": "What was the first job position that the company needed, and who was hired? Indicate his/her full name.", "pos": ["job position and job title are synonyms; full name = FirstName+MiddleName+LastName;"], "neg": ["tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;", "Hex Nut 5 is name of a product", "High quality refers to the product's quality class, therefore Class = 'H'", "business id refers to BusinessEntityID", "Mauritius Rupee is name of currency", "lowest rating refers to Rating = 1", "business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = \u2018cell\u2019", "cost refers to StandardCost;"]}} {"set": {"query": "What is the product that has the highest average rating from the mountain product line?", "pos": ["mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))"], "neg": ["Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "mountain product line refers to ProductLine = 'M'", "StartDate BETWEEN '2009-01-01' AND '2009-12-31';", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "product with large photo refers to LargePhoto NOT null;", "shelves refer to shelf; down tube is a product", "Vendor's selling price of a single product refers to UnitPrice;", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "year of credit card expiration refers to ExpYear;", "store contact refers to PersonType = 'SC';"]}} {"set": {"query": "What is the business ID of the person who has made the most sales total year to date?", "pos": ["business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);"], "neg": ["began work in 2009 or later refers to StartDate> = 2009;", "product with large photo refers to LargePhoto NOT null;", "Down Tube is a name of a product;", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "cost refers to StandardCost;", "percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%", "Average cost = AVG(StandardCost)", "Located refers to the total address of the entity that comprises city, addressline1, addressline2", "product number = productID"]}} {"set": {"query": "List, by ProductID, all products whose profit, relative to the standard price, is negative.", "pos": ["Profit = SUBTRACT(StandardPrice, LastRecipeCost)\n"], "neg": ["shipping address = AddressLine1+AddressLine2+City;", "low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);", "Facilities Manager is a job title", "BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;", "Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'", "amount to be paid refers to TotalDue;", "LL Road Frame Sale is a description of special offer", "ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';", "cost refers to StandardCost;", "Salespeople refers to PersonType = 'SP'"]}} {"set": {"query": "List the product name with more than 5 quantity in the shopping cart.", "pos": ["Product with more than 5 quantity refers to Quantity>5"], "neg": ["Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "product number = productID", "type of employee refers to PersonType;", "highest selling price refers to MAX(ListPrice);", "full name = FirstName+MiddleName+LastName;", "business id refers to BusinessEntityID", "customers' name refers to ReviewerName; best possible ratings means the highest rating = 5", "unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title", "lowest rating refers to Rating = 1", "employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3"]}} {"set": {"query": "Please list any 3 vendors that are not recommended by Adventure Works.", "pos": ["not recommended refers to PreferredVendorStatus = 0;"], "neg": ["Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice", "salesperson that haven't met the quota refers to Bonus = 0;", "do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "profit = SUBTRACT(ListPrice, StandardCost);", "percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "average age = AVG(subtract(year(now), year(HireDate)))", "assembly lines that are not finished refers to EndDate = null"]}} {"set": {"query": "What are the names of the top 6 products that has the biggest size in centimeter and what are its reorder point?", "pos": ["in centimeter refers to SizeUnitMeasureCode = 'CM';"], "neg": ["SP is an abbreviation for Sales Person; PersonType = 'SP';", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "hired in 2009 refers to year(HireDate) = 2009", "assembly lines that are not finished refers to EndDate = null", "actual resource hours of 2 refers to ActualResourceHrs = 2", "number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;", "mountain product line refers to ProductLine = 'M'", "active status of employees refers to CurrentFlag = 1;", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;"]}} {"set": {"query": "How many of the approved documents are confidential?", "pos": ["approved refers to Status = 2; confidential document refers to DocumentSummary is null;"], "neg": ["take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "where the person live refers addresstype.Name = 'Home'", "Saved in English refers to product description written in English where Culture.name = 'English'", "total due before freight = SUBTRACT(TotalDue, Freight); age at the time an employee was hired = SUBTRACT(HireDate, year(BirthDate);", "minimum order quantity refers to MinOrderQty;", "Canada is name of sales territory", "highest pay rate refers to MAX(Rate);", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;"]}} {"set": {"query": "What is the full address of business number 24?", "pos": ["Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'"], "neg": ["current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "over 3 price changes refers to count(ListPrice)>3", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;", "Canada is name of a sales territory", "married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n", "ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "vendor's selling price refers to StandardPrice"]}} {"set": {"query": "For all the employees that have left the Engineering Department, what is the average time of their stay?", "pos": ["employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));"], "neg": ["goods refers to products", "Bike refers to the name of the product category, therefore ProductCategoryID = 1", "percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "Salespeople refers to PersonType = 'SP'", "Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "High quality refers to the product's quality class, therefore Class = 'H'", "weight in pounds refers to WeightUnitMeasureCode = 'LB';"]}} {"set": {"query": "Among all the employees who don't wish to receive promotion e-mails, how many of them belong to or once belonged to the Engineering Department?", "pos": ["Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;"], "neg": ["profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "order refers to SalesOrderID", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "Vendor's selling price of a single product refers to UnitPrice;", "product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "amount to be paid refers to TotalDue;", "lowest pay refers to min(Rate);", "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;"]}} {"set": {"query": "How many customers are there in Canada?", "pos": ["Canada is name of sales territory"], "neg": ["projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "Socks is a name of product subcategory", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';", "Canada is name of a sales territory", "average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));", "female refers to Gender = 'F'; single refers to MaritalStatus = 'S';", "Minipump is name of a product", "customers' name refers to ReviewerName; best possible ratings means the highest rating = 5", "Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable"]}} {"set": {"query": "What is the Crankarm product's net profit?", "pos": ["net profit = Subtract(LastReceiptCost, StandardPrice);"], "neg": ["full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;", "United States refers to CountryRegionCode = 'US';", "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "mountain product line refers to ProductLine = 'M'", "actual resource hours of 2 refers to ActualResourceHrs = 2", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "price refers to ListPrice;", "still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;", "MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;", "salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007"]}} {"set": {"query": "Which type of transaction was it for the \"LL Road Handlebars\" order happened in 2012/11/3?", "pos": ["Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate"], "neg": ["production technician is a job title; below average rate refers to Rate5", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "miinimum order quantity refers to MinOrderQty = 100", "Highest year to date sales refers to Max(SalesYTD);", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;"]}} {"set": {"query": "How many products from the Clothing category were on the LL Road Frame Sale?", "pos": ["LL Road Frame Sale is a description of special offer"], "neg": ["customers' name refers to ReviewerName; best possible ratings means the highest rating = 5", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "shelves refer to shelf; down tube is a product", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';", "lowest pay refers to min(Rate);", "active employee refers to CurrentFlag = 1; Rate< = 30;", "Do not have any work order ID means WorkOrderID is null", "Saved in English refers to product description written in English where Culture.name = 'English'", "Bike refers to the name of the product category, therefore ProductCategoryID = 1", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);"]}} {"set": {"query": "What is the total sick leave hours of employees who do not wish to receive any e-mail promotion?", "pos": ["Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0"], "neg": ["Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;", "average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;", "cost refers to StandardCost;", "Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'", "hashed password refers to PasswordHash;", "Do not have any work order ID means WorkOrderID is null", "Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "Accountant is a job title; first hired = MIN(HireDate)"]}} {"set": {"query": "List all the pay rates of all employees that were hired at 20 years of age.", "pos": ["pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;"], "neg": ["price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "Northwest is name of SalesTerritory; US is the CountryRegionCode;", "Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;", "Pre assembly quantity refers to PerAssemblyQty"]}} {"set": {"query": "What is the order reference number for the \"Mountain End Caps\" product?", "pos": ["Order Reference Number refers to ReferenceOrderID"], "neg": ["product number = productID", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "non-sales employee refers to PersonType = 'EM'", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100", "MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;", "Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "Product with more than 5 quantity refers to Quantity>5", "average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;"]}} {"set": {"query": "To which group does the department with the least amount of workers belong to? Indicate the name of the department as well.", "pos": ["least amount of workers refers to MIN(count(DepartmentID));"], "neg": ["company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa", "began work in 2009 or later refers to StartDate> = 2009;", "average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;", "Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product", "male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;", "Product with more than 5 quantity refers to Quantity>5"]}} {"set": {"query": "Calculate the total quantity of purchased product that has been prepared by employee number 257 and is in pending shipment status.", "pos": ["employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3"], "neg": ["number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'", "business id refers to BusinessEntityID", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'", "lowest rating refers to Rating = 1", "High quality refers to the product's quality class, therefore Class = 'H'", "year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;"]}} {"set": {"query": "Among the employees in the Manufacturing group in 2007, how many of them are store contacts?", "pos": ["store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;"], "neg": ["Sales and Marketing is group name of a department", "began work in 2009 or later refers to StartDate> = 2009;", "still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "product maintenance documents are private refers to DocumentSummary = null", "Low quality refers to the product's quality class, therefore Class = 'L'", "shipment by truck refers to Name = 'XRQ - TRUCK GROUND';", "Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';"]}} {"set": {"query": "What is the bussiness id for Mr. Hung-Fu Ting?", "pos": ["business id refers to BusinessEntityID;"], "neg": ["over 3 price changes refers to count(ListPrice)>3", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0", "Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'", "employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)", "lowest pay refers to min(Rate);", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "type of employee refers to PersonType;", "Order Reference Number refers to ReferenceOrderID", "Headset Ball Bearings is name of a product"]}} {"set": {"query": "What is the average age of employee in Adventure Works?", "pos": ["average age = AVG(subtract(year(now), year(HireDate)))"], "neg": ["Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "female refers to Gender = 'F'; single refers to MaritalStatus = 'S';", "began work in 2009 or later refers to StartDate> = 2009;", "salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007", "resellers refers to Category = 'Reseller';", "most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "Document Control Assistant refers\u00a0 to the\u00a0 JobTitle = 'Document Control Assistant'; hired on 2009/1/22 means the person's hiring date is HireDate = '2009-01-22'; private documents indicate that DocumentSummary is null; DIVIDE(COUNT(DocumentSummary is null), COUNT(DocumentSummary))*100", "average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));"]}} {"set": {"query": "What is the total profit gained by the company from the product that has the highest amount of quantity ordered from online customers? Indicate the name of the product.", "pos": ["profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));"], "neg": ["tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);", "male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;", "not recommended refers to PreferredVendorStatus = 0;", "minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "active status of employees refers to CurrentFlag = 1;", "manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "customers' name refers to ReviewerName; best possible ratings means the highest rating = 5", "located in the Subassembly category refers to Name = 'Subassembly'", "in centimeter refers to SizeUnitMeasureCode = 'CM';"]}} {"set": {"query": "What percentage of the AdventureWorks data is in Thai?", "pos": ["percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%"], "neg": ["credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "shelves refer to shelf; down tube is a product", "Pre assembly quantity refers to PerAssemblyQty", "order refers to SalesOrderID", "began work in 2009 or later refers to StartDate> = 2009;", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "production technician is a job title; below average rate refers to Rate3", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;", "where the person live refers addresstype.Name = 'Home'", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;"]}} {"set": {"query": "What is the stocked quantity of products manufactured from location ID 40?", "pos": ["Stocked quantity refers to StockedQty"], "neg": ["ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';", "approved refers to Status = 2; confidential document refers to DocumentSummary is null;", "increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "The Road line refers to the product line, therefore ProductLine = 'R'", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "pay rate above 40 refers to Rate>40; male employee refers to Gender = M", "mountain product line refers to ProductLine = 'M'", "Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0", "BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;"]}} {"set": {"query": "What is the average profit of all the low class universal road frames? Indicate how many variety of sizes are there and the available colors.", "pos": ["low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);"], "neg": ["full name = FirstName+MiddleName+LastName;", "Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;", "pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "net profit = Subtract(LastReceiptCost, StandardPrice);", "highest selling price refers to MAX(ListPrice);", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "Bike refers to the name of the product category, therefore ProductCategoryID = 1"]}} {"set": {"query": "What is the number of State Province of France that doesn't have a State Province Code?", "pos": ["Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable"], "neg": ["projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "Average cost = AVG(StandardCost)", "female refers to Gender = 'F'; single refers to MaritalStatus = 'S';", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "business id refers to BusinessEntityID", "still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;", "net profit = Subtract(LastReceiptCost, StandardPrice);", "SP is an abbreviation for Sales Person; PersonType = 'SP';"]}} {"set": {"query": "Which territory has the most customers as of 9/12/2014?", "pos": ["ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';"], "neg": ["cost refers to StandardCost;", "price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "cost refers to StandardCost;", "minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);", "Sales and Marketing is group name of a department", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;"]}} {"set": {"query": "List all product names and its product line for all purchase order with order quantity of 5000 or more.", "pos": ["Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000"], "neg": ["Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", "salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product", "resellers refers to Category = 'Reseller';", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "profit = SUBTRACT(ListPrice, StandardCost);", "Road Frames is a name of product subcategory", "order refers to SalesOrderID", "tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';"]}} {"set": {"query": "What are the names of the vendor with the second lowest minimum order quantity?", "pos": ["minimum order quantity refers to MinOrderQty;"], "neg": ["Night shift refers to Name = 'Night';", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "Hex Nut 5 is name of a product", "business ID refers to BusinessEntityID; sales total year to date refers to SalesYTD; most sales total year to date refers to MAX(SalesYTD);", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "Pre assembly quantity refers to PerAssemblyQty", "tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "assembly lines that are not finished refers to EndDate = null"]}} {"set": {"query": "What are the salespeople's email addresses?", "pos": ["Salespeople refers to PersonType = 'SP'"], "neg": ["Socks is a name of product subcategory", "miinimum order quantity refers to MinOrderQty = 100", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;", "active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;", "do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2", "most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime"]}} {"set": {"query": "What are the Department ids under the Sales and Marketing Group?", "pos": ["Sales and Marketing is group name of a department"], "neg": ["card that expires in 2007 refers to ExpYear = 2007;", "still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;", "Pre assembly quantity refers to PerAssemblyQty", "goods refers to products", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "lowest rating refers to Rating = 1;", "product with large photo refers to LargePhoto NOT null;", "shipment by truck refers to Name = 'XRQ - TRUCK GROUND';"]}} {"set": {"query": "Among the products that are purchased, how many of them have never received the highest rating?", "pos": ["product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n"], "neg": ["female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "year of credit card expiration refers to ExpYear;", "Do not have any work order ID means WorkOrderID is null", "Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'", "amount to be paid refers to TotalDue;", "Started selling in 2013 refers to year(SellStartDate) = 2013;", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);", "number of products refers to OrderQty", "not recommended refers to PreferredVendorStatus = 0;"]}} {"set": {"query": "What rating did Jill give for HL Mountain Pedal?", "pos": ["Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product"], "neg": ["in centimeter refers to SizeUnitMeasureCode = 'CM';", "home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))", "type of employee refers to PersonType;", "profit = SUBTRACT(ListPrice, StandardCost);", "year(EndDate)>2009 and year(StartDate)<2009;", "increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "located in the Subassembly category refers to Name = 'Subassembly'", "Vendor's selling price of a single product refers to UnitPrice;", "LL Road Frame Sale is a description of special offer", "Next-Door Bike Store is name of a store"]}} {"set": {"query": "Which store sales person was reently hired? Indicate his/her full name and gender.", "pos": ["SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;"], "neg": ["shelves refer to shelf; down tube is a product", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "vendor's selling price refers to StandardPrice", "fewest online orders refer to MIN(Quantity);", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "Mauritius Rupee is name of currency", "employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle", "store contact refers to PersonType = 'SC';", "began work in 2009 or later refers to StartDate> = 2009;", "Department refers to Name where GroupName = 'Executive General and Administration'"]}} {"set": {"query": "List all of the credit cards that had expired by 2007.", "pos": ["card that expires in 2007 refers to ExpYear = 2007;"], "neg": ["Road Frames is a name of product subcategory", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "business id refers to BusinessEntityID", "Sales and Marketing is group name of a department", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "profit = SUBTRACT(ListPrice, StandardCost);", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "SP is an abbreviation for Sales Person; PersonType = 'SP';"]}} {"set": {"query": "Among the active employees with over 10 hours of sick leave, what is the percentage of the employees with over 20 vacation hours?", "pos": ["CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;"], "neg": ["work order transaction refers to TransactionType = 'W';", "business id refers to BusinessEntityID", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "Mauritius Rupee is name of currency", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "not recommended refers to PreferredVendorStatus = 0;", "Road Frames is a name of product subcategory", "projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "Average cost = AVG(StandardCost)", "fewest online orders refer to MIN(Quantity);"]}} {"set": {"query": "How many letters are there in Catherine Ward's e-mail account passwords?", "pos": ["Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)"], "neg": ["shipping address = AddressLine1+AddressLine2+City;", "product number = productID", "goods refers to products", "poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "second-lowest rating refers to Rating = 2; high-quality class product refers to Class = 'H'; length of time it takes the company to manufacture a product refers to DaysToManufacture;", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);", "price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;"]}} {"set": {"query": "Please list the e-mail addresses of all the employees who wish to receive e-mail promotions from Adventureworks and selected partners.", "pos": ["employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;"], "neg": ["female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "LL Road Frame Sale is a description of special offer", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';", "fewest online orders refer to MIN(Quantity);", "The Road line refers to the product line, therefore ProductLine = 'R'", "female refers to Gender = 'F'; single refers to MaritalStatus = 'S';", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "shipment by truck refers to Name = 'XRQ - TRUCK GROUND';", "Vendor's selling price of a single product refers to UnitPrice;"]}} {"set": {"query": "What goods were sold to customers in accordance with sales order number 43660?", "pos": ["goods refers to products"], "neg": ["Rejected refers rejected product in which to RejectedQty = 1", "Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "over 3 price changes refers to count(ListPrice)>3", "SP is an abbreviation for Sales Person; PersonType = 'SP';", "Mauritius Rupee is name of currency"]}} {"set": {"query": "How much is the tax amount of the purchase order with the biggest tax amount? Indicate the purchase order ID.", "pos": ["tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);"], "neg": ["highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;", "If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province", "ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;", "average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;", "sales order for 32 units refers to OrderQty = 32", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1"]}} {"set": {"query": "How many salespersons haven't met quota?", "pos": ["salesperson that haven't met the quota refers to Bonus = 0;"], "neg": ["their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "poor credit rating means bad credit; CreditRating = 5; Business number refers to BusinessEntityID", "Order Reference Number refers to ReferenceOrderID", "Accountant is a job title; first hired = MIN(HireDate)", "projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "weight in pounds refers to WeightUnitMeasureCode = 'LB';", "highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));", "product number = productID", "profit = SUBTRACT(ListPrice, StandardCost);"]}} {"set": {"query": "List down the email address of female single employees.", "pos": ["female refers to Gender = 'F'; single refers to MaritalStatus = 'S';"], "neg": ["production technician is a job title; below average rate refers to Rate2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';", "Highest year to date sales refers to Max(SalesYTD);", "Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice", "Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;"]}} {"set": {"query": "List all the non-sales employees in ascending order of its business entitty ID.", "pos": ["non-sales employee refers to PersonType = 'EM'"], "neg": ["amount to be paid refers to TotalDue;", "employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle", "Salespeople refers to PersonType = 'SP'", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%", "employees that submitted resume to Human Resource Department and got hired refers to BusinessEntittyID NOT null;", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable", "net profit = Subtract(LastReceiptCost, StandardPrice);", "product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n"]}} {"set": {"query": "What is the price for the AWC Logo Cap?", "pos": ["price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;"], "neg": ["not recommended refers to PreferredVendorStatus = 0;", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "Saved in English refers to product description written in English where Culture.name = 'English'", "married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2", "Document Control Assistant refers\u00a0to the\u00a0JobTitle = 'Document Control Assistant'; born on 1975/12/25 refers to BirthDate = '1975-12-25'; private documents indicate that DocumentSummary is null", "288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));", "store contact refers to PersonType = 'SC';", "card that expires in 2007 refers to ExpYear = 2007;", "hired in 2009 refers to year(HireDate) = 2009", "average selling price = divide(sum(StandardPrice), count(BusinessEntityID))"]}} {"set": {"query": "How many products using \"roadster_black_small.gif\" as the thumbnail photo?", "pos": ["products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';"], "neg": ["Sales and Marketing is group name of a department", "married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "product with large photo refers to LargePhoto NOT null;", "Vendor's selling price of a single product refers to UnitPrice;", "profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))", "where the person live refers addresstype.Name = 'Home'", "highest selling price refers to MAX(ListPrice);"]}} {"set": {"query": "How many employees working in the Engineering Department in 2007 would have their credit cards expired in the same year?", "pos": ["year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;"], "neg": ["Highest year to date sales refers to Max(SalesYTD);", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "order refers to SalesOrderID", "weight in pounds refers to WeightUnitMeasureCode = 'LB';", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "Night shift refers to Name = 'Night';", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0", "vendor's selling price refers to StandardPrice", "resellers refers to Category = 'Reseller';"]}} {"set": {"query": "Which is a high quality product but with the lowest transacted quantity?", "pos": ["High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1"], "neg": ["profit = SUBTRACT(ListPrice, StandardCost);", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "Vendor's selling price of a single product refers to UnitPrice;", "where the person live refers addresstype.Name = 'Home'", "cost refers to StandardCost;", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "cost refers to StandardCost;", "thumbnail photo file refers to ThumbnailPhotoFileName;", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa"]}} {"set": {"query": "What is the sales revenue for item number 740?", "pos": ["business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)"], "neg": ["number of products refers to OrderQty", "LL Road Frame Sale is a description of special offer", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "shelves refer to shelf; down tube is a product", "product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "female refers to Gender = 'F'; single refers to MaritalStatus = 'S';", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "highest rating refers to MAX(Rating)", "product with large photo refers to LargePhoto NOT null;", "France territory refers to SalesTerritory.Name = 'France';"]}} {"set": {"query": "Please list the e-mails of the reviewers who have reviewed high class.", "pos": ["high class refers to Class = 'H'; men's product refers to Style = 'M'"], "neg": ["employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "Do not have any work order ID means WorkOrderID is null", "product that are purchased refers to MakeFlag = 0; never received highest rating refers to Rating! = 5\n\n", "miinimum order quantity refers to MinOrderQty = 100", "Canada is name of sales territory", "shelves refer to shelf; down tube is a product", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))", "weight in pounds refers to WeightUnitMeasureCode = 'LB';", "highest pay rate refers to MAX(Rate);"]}} {"set": {"query": "What is the total shipment by \"cargo transport 5\" cost of all purchase orders created on 12/14/2011?", "pos": ["Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);"], "neg": ["Next-Door Bike Store is name of a store", "customers' name refers to ReviewerName; best possible ratings means the highest rating = 5", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "work order transaction refers to TransactionType = 'W';", "Order Reference Number refers to ReferenceOrderID", "production technician is a job title; below average rate refers to Rate3", "most reviews refers to MAX(count(ProductID))\n\n", "still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;", "married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2", "approved refers to Status = 2; confidential document refers to DocumentSummary is null;", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "Stocked quantity refers to StockedQty"]}} {"set": {"query": "Which sales areas are expected to have the highest yearly sales quota?", "pos": ["highest yearly sales quota refers to Max(SalesQuota);"], "neg": ["fewest online orders refer to MIN(Quantity);", "Product with more than 5 quantity refers to Quantity>5", "most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'", "type of employee refers to PersonType;", "Low quality refers to the product's quality class, therefore Class = 'L'", "Oldest employee refers to Max ( Subtract((now())-BirthDate));", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "number of products refers to OrderQty", "If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province"]}} {"set": {"query": "What is the person's business ID with a vista credit card number \"11113366963373\"?", "pos": ["business id refers to BusinessEntityID"], "neg": ["percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "average age = AVG(subtract(year(now), year(HireDate)))", "business id refers to BusinessEntityID", "price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;", "Oldest employee refers to Max ( Subtract((now())-BirthDate));", "discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "full name = FirstName+MiddleName+LastName;", "Down Tube is a name of a product;", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "Product without any rejected quantity refers to RejectedQty = 0"]}} {"set": {"query": "What is the job position of the oldest employee?", "pos": ["Oldest employee refers to Max ( Subtract((now())-BirthDate));"], "neg": ["Night shift refers to Name = 'Night';", "profit = SUBTRACT(ListPrice, StandardCost);", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);", "price refers to ListPrice;", "highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));", "salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "goods refers to products", "order refers to SalesOrderID", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'"]}} {"set": {"query": "Provide all the transactions whereby the quantiy is more than 10,000 pieces. State the product name and the selling price.", "pos": ["Quantity more than 10,000 pieces refers to Quantity>10000; selling price refers to ListPrice"], "neg": ["least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "profit = SUBTRACT(ListPrice, StandardCost);", "married refers to MaritalStatus = M; highest pay frequency refers to PayFrequency = 2", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "profit = SUBTRACT(ListPrice, StandardCost);", "order refers to SalesOrderID", "over 3 price changes refers to count(ListPrice)>3", "active status of employees refers to CurrentFlag = 1; Male refers to Gender = 'M'; highest frequency refers to PayFrequency = 2;", "percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%"]}} {"set": {"query": "How many location IDs have actual resource hours of 2?", "pos": ["actual resource hours of 2 refers to ActualResourceHrs = 2"], "neg": ["Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))", "number of products refers to OrderQty", "products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "High quality refers to the product's quality class, therefore Class = 'H'", "LL Road Frame Sale is a description of special offer", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'", "shelves refer to shelf; down tube is a product", "mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))"]}} {"set": {"query": "Where is the address 15873 located, in what city and state? Does that city belong to a province where the code exists?", "pos": ["Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;"], "neg": ["Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'", "thumbnail photo file refers to ThumbnailPhotoFileName;", "mountain product line refers to ProductLine = 'M'", "assembly lines that are not finished refers to EndDate = null", "highest selling price refers to MAX(ListPrice);", "projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "PreferredVendorStatus = 1 means 'Do not use if another vendor is available'; CreditRating = 2 means 'Preferred over other vendors supplying the same product'", "cost refers to StandardCost;", "Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'"]}} {"set": {"query": "Please list the top 3 house-manufactured products with the highest average rating.", "pos": ["home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))"], "neg": ["documents pending approval refers to Status = 1", "Department refers to Name where GroupName = 'Executive General and Administration'", "year of credit card expiration refers to ExpYear;", "assembly lines that are not finished refers to EndDate = null", "BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'", "Saved in English refers to product description written in English where Culture.name = 'English'", "began work in 2009 or later refers to StartDate> = 2009;", "Pre assembly quantity refers to PerAssemblyQty"]}} {"set": {"query": "What is the average selling price of different vendors of the product Hex Nut 5?", "pos": ["average selling price = divide(sum(StandardPrice), count(BusinessEntityID))"], "neg": ["Rejected refers rejected product in which to RejectedQty = 1", "sales order for 32 units refers to OrderQty = 32", "Canada is name of a sales territory", "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = \u2018cell\u2019", "most reviews refers to MAX(count(ProductID))\n\n", "profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))", "Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "last receipt date is August 17, 2011 refers to LastReceiptDate> = '2011-08-17 00:00:00' and LastReceiptDate < '2011-08-18 00:00:00';", "goods refers to products"]}} {"set": {"query": "Among the salable products from the mountain product line, how many of them have the most reviews?", "pos": ["salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'"], "neg": ["Oldest employee refers to Max ( Subtract((now())-BirthDate));", "cost refers to StandardCost;", "assembly lines that are not finished refers to EndDate = null", "Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;", "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "order refers to SalesOrderID", "Sales and Marketing is group name of a department", "business id refers to BusinessEntityID;"]}} {"set": {"query": "What is the product description of Headset Ball Bearings?", "pos": ["Headset Ball Bearings is name of a product"], "neg": ["ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';", "product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "Started selling in 2013 refers to year(SellStartDate) = 2013;", "number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'", "percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%", "seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "type of employee refers to PersonType;", "Information Service is a name of department;"]}} {"set": {"query": "State the product name, product line, rating and the selling price of product with the lowest rating.", "pos": ["Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1"], "neg": ["price refers to ListPrice;", "average age = AVG(subtract(year(now), year(HireDate)))", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle", "employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)", "France territory refers to SalesTerritory.Name = 'France';", "shelves refer to shelf; down tube is a product", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;", "shipping address = AddressLine1+AddressLine2+City;", "production technician is a job title; below average rate refers to Rate10; pay rate over 35 refers to Rate>35;", "married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n", "least amount of workers refers to MIN(count(DepartmentID));", "Down Tube is a name of a product;", "Rejected refers rejected product in which to RejectedQty = 1", "Saved in English refers to product description written in English where Culture.name = 'English'", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%"]}} {"set": {"query": "Which product gets the most reviews?", "pos": ["most reviews refers to MAX(count(ProductID))\n\n"], "neg": ["geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "Canada is name of a sales territory", "discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "miinimum order quantity refers to MinOrderQty = 100", "Profit on net = SUBTRACT(LastReceiptCost, StandardPrice); full location = AddressLine1+AddressLine2+City+PostalCode;", "Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product", "product number = productID", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';"]}} {"set": {"query": "Please list the website purchasing links of the vendors from whom the product Hex Nut 5 can be purchased.", "pos": ["website purchasing link refers to PurchasingWebServiceURL"], "neg": ["Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "High quality refers to the product's quality class, therefore Class = 'H'; the lowest transacted quantity refers to Quantity = 1", "highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));", "Vendor's selling price of a single product refers to UnitPrice;", "mountain product line refers to ProductLine = 'M'", "product number = productID", "Department refers to Name where GroupName = 'Executive General and Administration'", "not recommended refers to PreferredVendorStatus = 0;", "price refers to ListPrice;", "Night shift refers to Name = 'Night';"]}} {"set": {"query": "What is the name of the territory assigned to the sales person with business id \"277\"?", "pos": ["business id refers to BusinessEntityID"], "neg": ["type of employee refers to PersonType;", "Profit = SUBTRACT(StandardPrice, LastRecipeCost)\n", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota", "weight in pounds refers to WeightUnitMeasureCode = 'LB';", "mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "United States refers to CountryRegionCode = 'US';", "highest selling price refers to MAX(ListPrice);", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20"]}} {"set": {"query": "What is the current payrate of Rob Walters? Calculate the percentage increment from his previous payrate.", "pos": ["current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%"], "neg": ["Salespeople refers to PersonType = 'SP'", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "Northwest is name of SalesTerritory; US is the CountryRegionCode;", "Pre assembly quantity refers to PerAssemblyQty", "Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;", "website purchasing link refers to PurchasingWebServiceURL", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "documents pending approval refers to Status = 1"]}} {"set": {"query": "What is the employee of company number 1's full name?", "pos": ["company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName"], "neg": ["hired in 2009 refers to year(HireDate) = 2009", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "Stocked quantity refers to StockedQty", "highest selling price refers to MAX(ListPrice);", "mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))", "Product without any rejected quantity refers to RejectedQty = 0", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "customers' name refers to ReviewerName; best possible ratings means the highest rating = 5"]}} {"set": {"query": "Among the employees who are married and wish to receive e-mail promotions, how much higher is their highest pay rate from the average pay rate?", "pos": ["married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;"], "neg": ["salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "Canada is name of a sales territory", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n", "full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;", "minimum order quantity refers to MinOrderQty;", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "Night shift refers to Name = 'Night';", "number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'"]}} {"set": {"query": "Who made the purchase order with the greatest total due before freight? Indicate her employee ID and calculate for his/her age when he/she was hired.", "pos": ["total due before freight = SUBTRACT(TotalDue, Freight); age at the time an employee was hired = SUBTRACT(HireDate, year(BirthDate);"], "neg": ["highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "Document Control Assistant refers\u00a0to the\u00a0JobTitle = 'Document Control Assistant'; born on 1975/12/25 refers to BirthDate = '1975-12-25'; private documents indicate that DocumentSummary is null", "full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;", "card that expires in 2007 refers to ExpYear = 2007;", "mountain product line refers to ProductLine = 'M'", "Started selling in 2013 refers to year(SellStartDate) = 2013;", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "mountain product line refers to ProductLine = 'M'; sold by over 5 vendors refers to count(Name)>5", "Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable", "actual resource hours of 2 refers to ActualResourceHrs = 2"]}} {"set": {"query": "Please list the top 3 discounts with the highest discount percentage and fall under the reseller category.", "pos": ["discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);"], "neg": ["married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n", "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;", "married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;", "product number = productID", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product", "tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);", "store contact refers to PersonType = 'SC';", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "hired in 2009 refers to year(HireDate) = 2009", "highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));"]}} {"set": {"query": "Please list the top three employees with the most unused sick leave along with their position titles.", "pos": ["employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle"], "neg": ["CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;", "their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "Product with more than 5 quantity refers to Quantity>5", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "approved refers to Status = 2; confidential document refers to DocumentSummary is null;", "highest pay rate refers to MAX(Rate);", "production technician is a job title; below average rate refers to Rate10", "home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))", "product number = productID", "full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;", "Australia Bike Retailer is name of vendor", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "Hex Nut 5 is name of a product", "StartDate BETWEEN '2009-01-01' AND '2009-12-31';", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "amount to be paid refers to TotalDue;"]}} {"set": {"query": "When did the company hired its first Accountant?", "pos": ["Accountant is a job title; first hired = MIN(HireDate)"], "neg": ["active status of employees refers to CurrentFlag = 1;", "profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));", "male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "hired in 2009 refers to year(HireDate) = 2009", "lowest pay refers to min(Rate);", "their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "began work in 2009 or later refers to StartDate> = 2009;"]}} {"set": {"query": "Please list the email adresses of the reviewers who have given the lowest rating to the product HL Mountain Pedal.", "pos": ["lowest rating refers to Rating = 1"], "neg": ["increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "full name = FirstName+MiddleName+LastName;", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "highest rating refers to MAX(Rating)", "tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);", "Low quality refers to the product's quality class, therefore Class = 'L'", "Canada is name of a sales territory", "Started selling in 2013 refers to year(SellStartDate) = 2013;", "average age = AVG(subtract(year(now), year(HireDate)))"]}} {"set": {"query": "What is the shipping address for the sales order \"43873\"?", "pos": ["shipping address = AddressLine1+AddressLine2+City;"], "neg": ["Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "most reviews refers to MAX(count(ProductID))\n\n", "active status of employees refers to CurrentFlag = 1;", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "credit card number refers to CardNumber;", "cost refers to StandardCost;", "most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'"]}} {"set": {"query": "Among the sales people who achieved projected sales quota 2013, is there any person from territory ID 1? If yes, state the business entity ID.", "pos": ["projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;"], "neg": ["production technician is a job title; below average rate refers to Rate5", "website purchasing link refers to PurchasingWebServiceURL", "business id refers to BusinessEntityID", "average age = AVG(subtract(year(now), year(HireDate)))", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'"]}} {"set": {"query": "Compare the average pay rate of male and female employees.", "pos": ["male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;"], "neg": ["Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);", "employee refers to PersonType = 'EM'; Male refers to Gender = 'M'; Average = Divide( SUM(VacationHours(PersonType = 'EM'& Gender = 'M')),Count(BusinessEntityID(PersonType = 'EM' & Gender = 'M')));", "mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))", "fewest online orders refer to MIN(Quantity);", "projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;", "non-sales employee refers to PersonType = 'EM'", "credit card number refers to CardNumber;", "minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;", "compartment refers to Shelf; container refers to Bin; Lock Ring is a name of product"]}} {"set": {"query": "Between Northwest and Southeast of the United States, which territory one recorded the highest amount of sales last year?", "pos": ["United States refers to CountryRegionCode = 'US';"], "neg": ["store contact refers to PersonType = 'SC';", "Canada is name of a sales territory", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "Located refers to the total address of the entity that comprises city, addressline1, addressline2", "minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;", "least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "thumbnail photo file refers to ThumbnailPhotoFileName;", "goods refers to products", "Sales and Marketing is group name of a department"]}} {"set": {"query": "Please list the total number of companies with a commission percentage of 0.018 or above, along with each company's assigned geographical location.", "pos": ["geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;"], "neg": ["288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));", "vendor's selling price refers to StandardPrice", "business id refers to BusinessEntityID", "projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';", "Bike refers to the name of the product category, therefore ProductCategoryID = 1", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "profit = subtract(ListPrice, StandardCost); the depth the component from its parent refers to BOMLevel;", "highest pay rate refers to MAX(Rate);", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime"]}} {"set": {"query": "What is the thumbnail photo file for the product with the id \"979\"?", "pos": ["thumbnail photo file refers to ThumbnailPhotoFileName;"], "neg": ["Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "Night shift refers to Name = 'Night';", "percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;", "most reviews refers to MAX(count(ProductID))\n\n", "ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "female refers to Gender = 'F'; employee who wish to receive email promotion refers to EmailPromotion = 1; percentage = DIVIDE(SUM(Gender = 'F')), (sum(Gender = 'F' or Gender = 'M'))) as percentage;", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "year of credit card expiration refers to ExpYear;"]}} {"set": {"query": "What is the forename and birthdate of person number 18?", "pos": ["person number 18 refers to BusinessEntityID = 18; forename refers to FirstName"], "neg": ["Accountant is a job title; first hired = MIN(HireDate)", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "product maintenance documents are private refers to DocumentSummary = null", "active employee refers to CurrentFlag = 1; Rate< = 30;", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "product is manufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';", "quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%"]}} {"set": {"query": "What category do Road Frames fall into?", "pos": ["Road Frames is a name of product subcategory"], "neg": ["Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'", "most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'", "mountain product line refers to ProductLine = 'M'", "thumbnail photo file refers to ThumbnailPhotoFileName;", "Mauritius Rupee is name of currency", "card that expires in 2007 refers to ExpYear = 2007;", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "Headset Ball Bearings is name of a product", "Night shift refers to Name = 'Night';"]}} {"set": {"query": "List all products with minimum order quantity of 100 and order them by product name in descending order.", "pos": ["miinimum order quantity refers to MinOrderQty = 100"], "neg": ["located in the Subassembly category refers to Name = 'Subassembly'", "days to end a work order = SUBTRACT(ActualEndDate, ActualStartDate);", "approved refers to Status = 2; confidential document refers to DocumentSummary is null;", "highest rating refers to MAX(Rating)", "credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "website purchasing link refers to PurchasingWebServiceURL", "France territory refers to SalesTerritory.Name = 'France';", "least amount of workers refers to MIN(count(DepartmentID));", "not recommended refers to PreferredVendorStatus = 0;", "product number = productID"]}} {"set": {"query": "How much is the total bonus received by sales person and what is the percentage of it against the projected yearly sales quota in 2013?", "pos": ["projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;"], "neg": ["store contact refers to PersonType = 'SC';", "highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "Employees who don't wish to receive e-mail promotions refers to EmailPromotion = 0;", "vendor's selling price refers to StandardPrice", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;", "actual resource hours of 2 refers to ActualResourceHrs = 2", "net profit = Subtract(LastReceiptCost, StandardPrice);", "shipping address = AddressLine1+AddressLine2+City;"]}} {"set": {"query": "What is the average profit of all the products from the Clothing category?", "pos": ["average profit = DIVIDE(SUM(SUBTRACT(ListPrice, StandardCost))), (COUNT(ProductSubcategoryID))));"], "neg": ["weight in pounds refers to WeightUnitMeasureCode = 'LB';", "If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "Next-Door Bike Store is name of a store", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';", "employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)", "Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100", "male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;"]}} {"set": {"query": "How many products are there if we add all those located in the Subassembly category?", "pos": ["located in the Subassembly category refers to Name = 'Subassembly'"], "neg": ["employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100", "type of employee refers to PersonType;", "minimum inventory quantity refers to SafetyStockLevel; chainring bolts is a name of product;", "Doesn't have a State Province Code refers to IsOnlyStateProvinceFlag = 1 where StateProvinceCode is unavailable", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "SP is an abbreviation for Sales Person; PersonType = 'SP';"]}} {"set": {"query": "What's the profit for the Freewheel?", "pos": ["SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'"], "neg": ["profit = SUBTRACT(ListPrice, StandardCost);", "quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%", "full name = FirstName+MiddleName+LastName; Production Technician - WC50 is a job title;", "LL Road Frame Sale is a description of special offer", "active status of employees refers to CurrentFlag = 1;", "business number refers to BusinessEntityID where BusinessEntityID = 1496; how long does it take refers to AverageLeadTime", "Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "Sales and Marketing is group name of a department", "year of credit card expiration refers to ExpYear;", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;"]}} {"set": {"query": "What is the percentage, by number of sales order units, for orders with quantities not greater than 3 and a discount of 0.2?", "pos": ["quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%"], "neg": ["Started selling in 2013 refers to year(SellStartDate) = 2013;", "average pay rate = AVG(Rate); work in 2007 refers to year(StartDate)<2007 AND year(EndDate)>2007;", "least amount of workers refers to MIN(count(DepartmentID));", "Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'", "LL Road Frame Sale is a description of special offer", "salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007", "High quality refers to the product's quality class, therefore Class = 'H'", "TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;", "work order transaction refers to TransactionType = 'W';", "Canada is name of a sales territory"]}} {"set": {"query": "What are the names of the product that has the lowest rating?", "pos": ["lowest rating refers to Rating = 1;"], "neg": ["Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "over 3 price changes refers to count(ListPrice)>3", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "vendor's selling price refers to StandardPrice; lowest selling price = MIN(StandardPrice)", "pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;", "production technician is a job title; below average rate refers to Rate10; pay rate over 35 refers to Rate>35;"], "neg": ["in centimeter refers to SizeUnitMeasureCode = 'CM';", "percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;", "Vista Card refers to CardType = 'Vista'; expire before the year 2007 refers to ExpYear< = 2006;\n\n", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "shipping cost and Freight are synonyms; highest shipping cost refers to MAX(Freight);", "product with large photo refers to LargePhoto NOT null;", "production technician is a job title; below average rate refers to Rate 48;", "where the person live refers addresstype.Name = 'Home'", "cost refers to StandardCost;", "more than 10 sick leave hours refers to SickLeaveHours>10; pay rate over 35 refers to Rate>35;", "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;"]}} {"set": {"query": "Among the sales with a tax applied to retail transaction, how many of them are charged by multiple types of taxes?", "pos": ["tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';"], "neg": ["non-sales employee refers to PersonType = 'EM'", "shipment by truck refers to Name = 'XRQ - TRUCK GROUND';", "least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'", "vendor's selling price refers to StandardPrice", "hired in 2009 refers to year(HireDate) = 2009", "male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "salesperson that haven't met the quota refers to Bonus = 0;"]}} {"set": {"query": "Among the employees born before 1980 , how many of them are single?", "pos": ["BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;"], "neg": ["CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;", "Facilities Manager is a job title", "Vendor's selling price of a single product refers to UnitPrice;", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;", "goods refers to products", "handling damage is descrription of manufacturing failure which refers to ScrapReason.Name", "Started selling in 2013 refers to year(SellStartDate) = 2013;", "number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'", "card that expires in 2007 refers to ExpYear = 2007;", "low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);"]}} {"set": {"query": "How many products with the id \"989\" were sold in August 2013?", "pos": ["TransactionDate BETWEEN '2013-08-01' AND '2013-08-30'; sold in refers to TransactionType = 'S' which means SalesOrder;"], "neg": ["United States refers to CountryRegionCode = 'US';", "employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "Sales and Marketing is group name of a department", "288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));", "cost refers to StandardCost;", "Employees who do not wish to receive any e-mail promotions are marked as EmailPromotion = 0", "Down Tube is a name of a product;", "assembly lines that are not finished refers to EndDate = null", "projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "Hex Nut 5 is name of a product"]}} {"set": {"query": "How many products that take more than 2 days to make are out of stock?", "pos": ["take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null"], "neg": ["percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota", "Canada is name of sales territory", "active status of employees refers to CurrentFlag = 1;", "salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "full name = FirstName+MiddleName+LastName;", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null; manufactured in house refers to MakeFlag = 1", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';"]}} {"set": {"query": "Among all the products that are manufactured in-house, how many of them are salable?", "pos": ["product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;"], "neg": ["approved refers to Status = 2; confidential document refers to DocumentSummary is null;", "full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;", "percentage = DIVIDE(Culture.Name = 'Thai', count(ALL Culture.Name))*100%", "Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "year of credit card expiration refers to ExpYear;", "Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota", "salesperson that haven't met the quota refers to Bonus = 0;", "least amount of workers refers to MIN(count(DepartmentID));", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;"]}} {"set": {"query": "List the purchase order whereby all received quantity were rejected? Name those product.", "pos": ["Rejected refers rejected product in which to RejectedQty = 1"], "neg": ["vendor's selling price refers to StandardPrice", "type of employee refers to PersonType;", "StartDate BETWEEN '2009-01-01' AND '2009-12-31';", "product with large photo refers to LargePhoto NOT null;", "number of products refers to OrderQty", "cost refers to StandardCost;", "employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "The Road line refers to the product line, therefore ProductLine = 'R'", "credit card number refers to CardNumber; employees who left the department refers to EndDate NOT null; Engineering Department is a name of department;", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;"]}} {"set": {"query": "Who is the oldest married male? State his job title.", "pos": ["Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);"], "neg": ["salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "Debur and Polish is name of manufacturing location", "geographic area to which the city belong refers to Group;", "website purchasing link refers to PurchasingWebServiceURL", "manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "Oldest employee refers to Max ( Subtract((now())-BirthDate));", "least number of sick leave refers to min(SickLeaveHours); PayFrequency = 1 means \u2018Salary received monthly\u2019; PayFrequency = 2 means \u2018Salary received biweekly';", "Department refers to Name where GroupName = 'Executive General and Administration'", "profit on net = subtract(LastReceiptCost, StandardPrice); best profit on net refers to max(subtract(LastReceiptCost, StandardPrice))"]}} {"set": {"query": "Please list the titles of the documents that are pending approval.", "pos": ["documents pending approval refers to Status = 1"], "neg": ["Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5", "male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;", "still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;", "manufactured in house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1; over 10 reviews refers to count(comments)>10", "profit = SUBTRACT(ListPrice, StandardCost);", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "SUBTRACT(LastReceiptCost, StandardPrice) for ProductID where name = 'Freewheel'", "percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "CurrentFlag = 1 refers to the active status of employees; Percentage = Divide (Count (BusinessEntityID (CurrentFlag = 1 & VacationHours >20 & SickLeaveHours > 10)), Count (BusinessEntityID (CurrentFlag = 1 & SickLeaveHours>10))) * 100;"]}} {"set": {"query": "Sum the total number of products rejected for having a trim length that is too long.", "pos": ["number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'"], "neg": ["Bike refers to the name of the product category, therefore ProductCategoryID = 1", "Northwest is name of SalesTerritory; US is the CountryRegionCode;", "located in the Subassembly category refers to Name = 'Subassembly'", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "assembly lines that are not finished refers to EndDate = null", "seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "began work in 2009 or later refers to StartDate> = 2009;", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "year(EndDate)>2009 and year(StartDate)<2009;", "Lightest product refers to Min(Weight); profit if they sell 10 items refers to Subtract (ListPrice , StandardCost) *10;"]}} {"set": {"query": "What is the the percentage of profit for the product \"858\"?", "pos": ["percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;"], "neg": ["geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "Canada is name of a sales territory", "resellers refers to Category = 'Reseller';", "Socks is a name of product subcategory", "year of credit card expiration refers to ExpYear;", "cost refers to StandardCost;", "non-sales employee refers to PersonType = 'EM'", "their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5", "average age = AVG(subtract(year(now), year(HireDate)))", "shipment by truck refers to Name = 'XRQ - TRUCK GROUND';"]}} {"set": {"query": "Who is the \"Next-Door Bike Store\" point of contact?", "pos": ["Next-Door Bike Store is name of a store"], "neg": ["resellers refers to Category = 'Reseller';", "High quality refers to the product's quality class, therefore Class = 'H'", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota", "where the person live refers addresstype.Name = 'Home'", "Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'", "Purchase order with order quantity of 5000 or more refers to OrderQty> = 5000", "salable product refers to FinishedGoodsFlag = 1; mountain product line refers to ProductLine = 'M'", "person number 18 refers to BusinessEntityID = 18; forename refers to FirstName", "Job position and job title are synonyms; job position that was hired the most refers to MAX(COUNT(JobTitle); HireDate BETWEEN '2007-1-1' AND '2007-12-31';"]}} {"set": {"query": "What is the class of the product with the most reviews?", "pos": ["most review refers to MAX(count(comments)); high class refers to Class = 'H'; medium class refers to Class = 'M'; low class refers to Class = 'L'"], "neg": ["Department refers to Name where GroupName = 'Executive General and Administration'", "employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%", "Married refers to MaritalStatus = 'M';\u00a0 non-sales employees refer to PersonType = 'EM'", "Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "Product with more than 5 quantity refers to Quantity>5", "least amount of workers refers to MIN(count(DepartmentID));", "employees refers to BusinessEntityID; most unused sick leave refers to MAX(SickLeaveHours); position title refers to JobTitle", "Australia Bike Retailer is name of vendor", "store contact refers to PersonType = 'SC';"]}} {"set": {"query": "In which year will the David Bradley's credit card expire?", "pos": ["year of credit card expiration refers to ExpYear;"], "neg": ["geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "fewest online orders refer to MIN(Quantity);", "Document Control Assistant refers\u00a0 to the\u00a0 JobTitle = 'Document Control Assistant'; hired on 2009/1/22 means the person's hiring date is HireDate = '2009-01-22'; private documents indicate that DocumentSummary is null; DIVIDE(COUNT(DocumentSummary is null), COUNT(DocumentSummary))*100", "Road Frames is a name of product subcategory", "Stocked quantity refers to StockedQty", "card that expires in 2007 refers to ExpYear = 2007;", "married refers to MaritalStatus = 'M'; western name style refers to NameStyle = 0; store contact refers to PersonType = 'SC'; probability = Divide (Count (BusinessEntityID( PersonType = 'SC' & MaritalStatus = 'M')), Count (BusinessEntityID ( PersonType) & MariatlStatus = 'M'))\n", "resellers refers to Category = 'Reseller';", "company number 1 refers to BusinessEntityId = 1; employee refers to PersonType = 'EM'; full name refers to FirstName + MiddleName + LastName", "cost refers to StandardCost;"]}} {"set": {"query": "What is the profit for the product \"792\"?", "pos": ["profit = SUBTRACT(ListPrice, StandardCost);"], "neg": ["projected yearly sales quota refers to SalesQuota; projected yearly sales quota in 2013 refers to year(QuotaDate) = 2013; percentage = (MULTIPLY(DIVIDE(SUM(Bonus)), (SUM(SalesQuota))) as percentage;", "LL Road Frame Sale is a description of special offer", "year(EndDate)>2009 and year(StartDate)<2009;", "married refers to MaritalStatus = 'M'; male refers to Gender = 'M'; BirthDate < = '1959-12-31';", "Profit = AVG(SUBTRACT(ListPrice, StandardCost)>100", "seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "cost refers to StandardCost;", "Full address refers to AddressLine1+AddressLine2; business number 24 refers to BusinessEntityID = '24'", "store contact refers to PersonType = 'SC';"]}} {"set": {"query": "List the name and calculate its profit for product with the highest rating in review.", "pos": ["Profit = SUBTRACT(ListPrice, StandardCost); the highest rating in review refers to Rating = 5"], "neg": ["Stocked quantity refers to StockedQty", "business id refers to BusinessEntityID;", "unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title", "Next-Door Bike Store is name of a store", "fewest online orders refer to MIN(Quantity);", "Bike refers to the name of the product category, therefore ProductCategoryID = 1", "approved refers to Status = 2; confidential document refers to DocumentSummary is null;", "vendor's selling price refers to StandardPrice", "low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);", "year(StartDate) 2007; year of credit card expiration refers to ExpYear; ExpYear = 2007;"]}} {"set": {"query": "Among the vendors with maximum orders betweeen 500 to 750, which vendor has the 10th highest profit on net?", "pos": ["maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);"], "neg": ["salaried employee refers to SalariedFlag = 1; hired in 2007 and later refers to year(HireDate)> = 2007", "card that expires in 2007 refers to ExpYear = 2007;", "weight in pounds refers to WeightUnitMeasureCode = 'LB';", "Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "store contact refers to PersonType = 'SC';", "pay rate above 40 refers to Rate>40; male employee refers to Gender = M", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "Production Technicians refer to the\u00a0 JobTitle = 'Production Technician%'; single refers to MaritalStatus = 'S'; Vendor contact refers to PersonType = 'VC'", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);"]}} {"set": {"query": "What is the highest amount of bonus earned by the sales person in Canada?", "pos": ["Canada is name of a sales territory"], "neg": ["Bike refers to the name of the product category, therefore ProductCategoryID = 1", "Valley Bicycle Specialists is a name of store; full address = AddressLine1+AddressLine2;", "proportion = DIVIDE(SUM(Name = 'UK')), (COUNT(SalesOrderID))) as count;", "Average = Divide(Sum(Substract(year(@today),year(BirthDate))),Count(BusinessEntityID) by each Department ID; youngest employee refers to Min(BirthDate);", "If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province", "tax applied to retail transaction refers to Taxtype = 1; sales that are charged with multiple types of tax refers to NAME LIKE '%+%';", "Product with the lowest rating refers to the rating\ngiven by the\nreviewer where Rating = 1", "type of credit card refers to CardType; CardType = 'Vista';", "minimum order quantity refers to MinOrderQty;", "planned cost is different from actual cost refers to ActualCost ! = PlannedCost;"]}} {"set": {"query": "What are the top 5 types of products with the highest selling price? ?", "pos": ["highest selling price refers to MAX(ListPrice);"], "neg": ["products using roadster_black_small.gif as the thumbnail photo refers to ThumbnailPhotoFileName = 'roadster_black_small.gif';", "Catgo Transport 5 is a name of shipping method; OrderDate = '2011-12-14'; total shipment cost = SUM(Freight);", "lowest pay refers to min(Rate);", "do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2", "shelves refer to shelf; down tube is a product", "active employee refers to CurrentFlag = 1; Rate< = 30;", "Located refers to the total address of the entity that comprises city, addressline1, addressline2", "United States refers to CountryRegionCode = 'US';", "LL Road Frame Sale is a description of special offer", "salesperson that haven't met the quota refers to Bonus = 0;"]}} {"set": {"query": "Please list the businesses along with their numbers that have their accounts located in Duvall.", "pos": ["Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'"], "neg": ["Socks is a name of product subcategory", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "weight in pounds refers to WeightUnitMeasureCode = 'LB';", "married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "Debur and Polish is name of manufacturing location", "male refers to Gender = 'M'; female refers to Gender = 'F'; difference in average rate = DIVIDE(AVG(Rate where Gender = 'F')), (AVG(Rate where Gender = 'M'))) as diff;", "Stocked quantity refers to StockedQty", "increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "Located refers to the total address of the entity that comprises city, addressline1, addressline2"]}} {"set": {"query": "List all the socks products.", "pos": ["Socks is a name of product subcategory"], "neg": ["lowest pay refers to min(Rate);", "Canada is name of sales territory", "type of credit card refers to CardType; CardType = 'Vista';", "employee number 257 refers to EmployeeID = 257; pending shipment status refers to Status = 3", "hired in 2009 refers to year(HireDate) = 2009", "average selling price = divide(sum(StandardPrice), count(BusinessEntityID))", "Sales people refer to PersonType = 'SP'; projected yearly sales refers to SalesQuota", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "Facilities Manager is a job title", "number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;"]}} {"set": {"query": "Name all stores and its sales representative in France territory.", "pos": ["France territory refers to SalesTerritory.Name = 'France';"], "neg": ["male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;", "sales order for 32 units refers to OrderQty = 32", "United States refers to CountryRegionCode = 'US';", "Located refers to the total address of the entity that comprises city, addressline1, addressline2", "Bike refers to the name of the product category, therefore ProductCategoryID = 1", "cost refers to StandardCost;", "Profit as 82.41 = SUTRACT(ListPrice, StandardCost); May of 2012 refers to StartDate = '2012-05'", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "profit = MULTIPLY(SUBTRACT(ListPrice, Standardcost)), (Quantity)));", "Socks is a name of product subcategory"]}} {"set": {"query": "What is the cost and the product number of product with the id \"888\"?", "pos": ["cost refers to StandardCost;"], "neg": ["Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "Night shift refers to Name = 'Night';", "resellers refers to Category = 'Reseller';", "number of product rejected refers to ScrapedQty; trim length that is too long refers to scrap reason where Name = 'Trim length too long'", "business id refers to BusinessEntityID", "unmarried refers to MaritalStatus = 'S', male refers to Gender = 'M', Production Supervisors is a job title", "highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "non-sales employee refers to PersonType = 'EM'", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "shelves refer to shelf; down tube is a product"]}} {"set": {"query": "What is the surname suffix of the employee who works as a store contact and has the longest sick leave hours?", "pos": ["store contact refers to PersonType = 'SC';"], "neg": ["seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "card that expires in 2007 refers to ExpYear = 2007;", "do not have any type of offer refers to Description = 'No Discount'; sold in an amount greater than 2 refers to OrderQty>2", "active status of employees refers to CurrentFlag = 1;", "shelves refer to shelf; down tube is a product", "profit = SUBTRACT(ListPrice, StandardCost);", "Male refers to Gender = 'M'; married refers to MaritalStatus = 'M'; oldest refers to Min(BirthDate);", "product is mnanufactured in-house refers to MakeFlag = 1; salable product refers to FinishedGoodsFlag = 1;", "purchase orders refers to TransactionType = 'P'; first six months of 2012 refers to TransactionDate bewteen '2012-01-01'and '2012-06-30'; average = DIVIDE(ActualCost where TransactionType = 'P', count(TransactionID))\n", "projected sales quota refers to SalesQuota; projected sales quota in 2013 refers to year(QuotaDate) = 2013;"]}} {"set": {"query": "Who is the Vice President of Engineering and when did he join the company? Indicate his/her full name.", "pos": ["full name = FirstName+MiddleName+LastName; HiredDate refers to the date the person joins the company;"], "neg": ["Low quality refers to the product's quality class, therefore Class = 'L'", "business id refers to BusinessEntityID", "business along with their IDs = BusinessEntityID; Cellphones refers to PhoneNumberType.name = \u2018cell\u2019", "BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;", "low class refers to Class = 'L'; universal refers to Style = 'U'; road frame is a name of product subcategory; average profit = AVG(SUBTRACT(ListPrice, StandardCost);", "male refers to Gender = 'M'; employee refers to PersonType = 'EM'; percentage = DIVIDE(COUNT(Gender = 'M'), COUNT(PersonType = 'MY'))*100%;", "high class refers to Class = 'H'; men's product refers to Style = 'M'", "LL Road Frame Sale is a description of special offer", "Profit on net = SUBTRACT(LastReceiptCost, StandardPrice); full location = AddressLine1+AddressLine2+City+PostalCode;", "mountain product line refers to ProductLine = 'M'"]}} {"set": {"query": "What time does the company's night shift begin? Indicate the answer in regular form.", "pos": ["Night shift refers to Name = 'Night';"], "neg": ["percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%", "Order Reference Number refers to ReferenceOrderID", "located in the Subassembly category refers to Name = 'Subassembly'", "maximum orders refers to MaxOrderQty; MaxOrderQty BETWEEN '500' AND '750'; profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "Oldest employee refers to Max ( Subtract((now())-BirthDate));", "employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "home manufactured refers to MakeFlag = 1; average rating = divide(sum(Rating), count(ProductReview))", "mountain product line refers to ProductLine = 'M'", "work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;", "Low quality refers to the product's quality class, therefore Class = 'L'"]}} {"set": {"query": "Please list any 3 product numbers with the lowest standard cost.", "pos": ["product number = productID"], "neg": ["percentage of profit = DIVIDE(SUBTRACT(ListPrice, StandardCost), (StandardCost)) as percentage;", "quantities not greater than 3 refers to OrderQty<3; discount of 0.2 refers to UnitPriceDiscount = 0.2; percentage = DIVIDE(count(SalesOrderID(OrderQty<3 & UnitPriceDiscount = 0.2)), count(SalesOrderID))*100%", "Rejected refers rejected product in which to RejectedQty = 1", "percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%", "business id refers to BusinessEntityID", "located in the Subassembly category refers to Name = 'Subassembly'", "Information Service is a name of department;", "Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'", "Jill refers to the name of reviewer; HL Mountain Pedal refers to the name of the product", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;"]}} {"set": {"query": "How many materials still need to be assembled and have a depth of 2 between each component and their parent product?", "pos": ["still need to be assembled means the assembly doesn't finish or still going on which refers to EndDate IS NULL; a depth of 2 refers to BOMLevel = 2;"], "neg": ["lowest rating refers to Rating = 1", "geographic area to which the city belong refers to Group;", "SC is an abbreviation for Store Contact; store contact person refers to PersonType = 'SC'; recently hired refers to latest StartDate;", "oldest employee refers to min(BirthDate)", "If Name = \"+\" in the value from SalesTaxRate, it means this sales are charged by multiple types of tax; Quebec refers to the name of State Province", "Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'", "minimum order quantity refers to MinOrderQty;", "store contact refers to PersonType = 'SC';", "geographical location refers to group from SalesPerson; ComissionPct refers to commission percentage where ComissionPct > = 0.018;", "MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;"]}} {"set": {"query": "List all product only MOQ of 1,000 and with standard cost more than 17.", "pos": ["MOQ refers to minimum order quantity; MOQ of 1 refers to MinOrderQty = 1; standard cost more than 48 refers to StandardCost > 48;"], "neg": ["highest amount of difference between the ordered quantity and actual quantity received in a single purchase order refers to MAX(SUBTRACT(OrderQty, ReceivedQty));", "Catherine Ward refers to the name of BusinessEntityID; how many letters in password for the e-mail account refers to LENGTH(PasswordHash)", "increased their current year sales by more than 60% refers to\nDIVIDE(SUBTRACT(SalesYTD, SalesLastYear),SalesLastYear)>0.6", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "began work in 2009 or later refers to StartDate> = 2009;", "ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';", "website purchasing link refers to PurchasingWebServiceURL", "over 3 price changes refers to count(ListPrice)>3", "pay rate refers to Rate; 20 years old at the time of being hired refers to SUBTRACT(year(HireDate)), (year(BirthDate))) = 20;", "number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;"]}} {"set": {"query": "Names the Sales Representative with the highest year to date sales.", "pos": ["Highest year to date sales refers to Max(SalesYTD);"], "neg": ["ModifiedDate between'2014-09-12 00:00:00' and '2014-09-12 23:59:59';", "Transactiontype = 'w' means 'WorkOrder'; transactiontype = 's' means 'SalesOrder'; transactiontype = 'P' means 'PurchaseOrder'; happened in refers to TransactionDate", "current payrate refers to max(Rate); percentage increment = divide(subtract(max(Rate), min(Rate)), min(Rate))*100%", "job position and job title are synonyms; full name = FirstName+MiddleName+LastName;", "store contact refers to PersonType = 'SC';", "non-sales employee refers to PersonType = 'EM'", "fewest online orders refer to MIN(Quantity);", "where the person live refers addresstype.Name = 'Home'", "number of departments an employee works for between 2011 and 2012 refers to year(StartDate) BETWEEN 2011 AND 2012 and year(EndDate) BETWEEN 2011 and 2012;", "married refers to MaritalStatus = 'M'; Contact does wish to receive e-mail promotions from Adventure Works refers to EmailPromotion = 1; Average = Divide (Sum(Rate (MaritalStatus = 'M' & EmailPromotion = 1))), Count (BusinessEntityID (MaritalStatus = 'M' & EmailPromotion = 1)); MAX(Rate (MaritalStatus = 'M' & EmailPromotion = 1) - Average;"]}} {"set": {"query": "How many work orders with quantities ranging from 100 to 250 have a reorder point of no more than 375?", "pos": ["work order refers to TransactionType = 'W'; Quantity BETWEEN 100 AND 250; ReorderPoint< = 375;"], "neg": ["employees who left a department refers to EndDate NOT null; average stay = AVG(SUBTRACT(year(EndDate)), (year(T1.StartDate)));", "mountain product line refers to ProductLine = 'M'; highest average rating = max(divide(sum(Rating), count(ProductReview)))", "their home address as their address refers to AddressTypeID = 2; address corresponds to the shipping address refers to AddressTypeID = 5", "married employee refers to MaritalStatus = 'M'; less than 20 vacation hours refers to VacationHours<20", "highest rating refers to Rating = 5; high class refers to Class = 'H'; men's product refers to Style = 'M'", "seasonal discount is a type of special offer; discount percentage refers to DiscountPct; highest discount percentage refers to MAX(DiscountPct);", "year of credit card expiration refers to ExpYear; ExpYear = 2007; store contact refers to PersonType = 'SC';", "product with large photo refers to LargePhoto NOT null;", "Accountant is a job title; first hired = MIN(HireDate)", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;"]}} {"set": {"query": "How many active employees whose payrate is equal or below 30 per hour.", "pos": ["active employee refers to CurrentFlag = 1; Rate< = 30;"], "neg": ["288th sales person refers to BusinessEntityID = 288; predited annual sales refers to SalesQuota; actual sales refers to SalesYTD; difference = Substract(SalesQuota(BusinessEntityID(288))), (SalesYTD(BusinessEntityID(288)));", "tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);", "LL Road Frame Sale is a description of special offer", "began work in 2009 or later refers to StartDate> = 2009;", "AVG(Rating) = DIVIDE(SUM(rating), COUNT(ReviewerName))", "employee exempt from collective bargaining refers to SalariedFlag = 1; highest pay rate refers to max(Rate)", "percentage = DIVIDE(SUM(Name = 'Night')), (COUNT(ShiftID)) as percentage;", "Product with more than 5 quantity refers to Quantity>5", "Rejected refers rejected product in which to RejectedQty = 1", "cost refers to StandardCost;"]}} {"set": {"query": "Among the employees in Adventure Works, calculate the percentage of them working as sales representatives.", "pos": ["percentage of sales representatives = divide(count(JobTitle = 'Sales Representative'), count(JobTitle))*100%"], "neg": ["Alex refers to FirstName = 'Alex'; single refers to MaritalStatus = 'S'", "Complete sales task refers to meeting sales quota; if Bonus = 0, it means this salesperson doesn't meet quota and vice versa", "Socks is a name of product subcategory", "Sales and Marketing is group name of a department", "type of employee refers to PersonType;", "Address number 15873 refers to AddressID = '15873'; IsOnlyStateProvinceCode = '0' refers to StateProvinceCode exists; IsOnlyStateProvinceCode = '1' refers to StateProvinceCode unavailable;", "Business along with their numbers refers to the BusinessEntityID; located in Duvall refers to City = 'Duvall'", "tax amount refers to TaxAmt; biggest tax amount refers to MAX(TaxAmt);", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "store contact refers to PersonType = 'SC'; year(EndDate)>2007 and year(StartDate)<2007;"]}} {"set": {"query": "How many sales orders did the salesperson David R. Campbell create?", "pos": ["SP is an abbreviation for Sales Person; PersonType = 'SP';"], "neg": ["miinimum order quantity refers to MinOrderQty = 100", "in centimeter refers to SizeUnitMeasureCode = 'CM';", "resellers refers to Category = 'Reseller';", "take more than 2 days to make refers to DaysToManufacture>2; out of stock refers to OnOrderQty = 0 or OnOrderQty is null", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "highest selling price refers to MAX(ListPrice);", "profit on net = SUBTRACT(LastReceiptCost, StandardPrice);", "Rejected refers rejected product in which to RejectedQty = 1", "Located refers to the total address of the entity that comprises city, addressline1, addressline2", "BirthDate<'1980-01-01'; single refers to MaritalStatus = 'S' or null;"]}} {"set": {"query": "Among all products without any rejected quantity, which product has the highest line total? State the product name and unit price.", "pos": ["Product without any rejected quantity refers to RejectedQty = 0"], "neg": ["price refers to ListPrice; price of 3 products = MULTIPLY(ListPrice, 3); Lock Washer 6 is a name of a product;", "over 3 price changes refers to count(ListPrice)>3", "work order transaction refers to TransactionType = 'W';", "price refers to ListPrice; highest price refers to MAX(ListPrice);", "Employees refer to PersonType = 'EM'; Single refers to MaritalStatus = 's'", "lowest rating refers to Rating = 1", "not recommended refers to PreferredVendorStatus = 0;", "business number 1580 refers to BusinessEntityID = 1580; Net profit = SUBTRACT(LastReceiptCost,StandardPrice)", "employees who wish to receive e-mail promotions from AdventureWorks and selected partners refers to EmailPromotion = 2;", "type of credit card refers to CardType; CardType = 'Vista';"]}} {"set": {"query": "What is the average life expentancy of countries that speak Arabic?", "pos": ["average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';"], "neg": ["Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "highest population refers to MAX(Population);", "most crowded city refers to MAX(Population);", "smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);", "Europe refers to Continent = 'Europe';", "Belize is a name of country;", "official language refers to IsOfficial = 'T'; Greece is a name of country;"]}} {"set": {"query": "Who is the head of the state where the most crowded city belongs?", "pos": ["head of the state refers to HeadOfState; most crowded city refers to MAX(Population);"], "neg": ["most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));", "average population = AVG(Population);", "largest population refers to MAX(Population);", "Malaysia is a name of country;", "smallest population refers to MIN(Population);", "Zaanstad is a name of city;", "Europe refers to Continent = 'Europe';", "average surface area = AVG(SurfaceArea);", "smallest surface area refers to MIN(smallest surface area);", "England refers to District = 'England';"]}} {"set": {"query": "List down languages used in Malaysia.", "pos": ["Malaysia is a name of country;"], "neg": ["largest population refers to MAX(Population);", "official language refers to IsOfficial = 'T'; China is a name of country;", "England refers to District = 'England';", "headed by Adolf Ogi refers to HeadOfState = 'Adolf Ogi';", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "highest population refers to MAX(Population);", "English refers to Language = 'English'; Australia is a name of country;", "declared independence in 1994 refers to IndepYear = 1994;", "Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);", "no GNP refers to GNP = 0;"]}} {"set": {"query": "How many countries have no GNP?", "pos": ["no GNP refers to GNP = 0;"], "neg": ["official language refers to IsOfficial = 'T'; Greece is a name of country;", "average population = AVG(Population);", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);", "largest population refers to MAX(Population);", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);", "high life expectancy at birth refers to MAX(LifeExpectancy);", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));", "Zaanstad is a name of city;"]}} {"set": {"query": "List all the languages used in Europe.", "pos": ["Europe refers to Continent = 'Europe';"], "neg": ["average surface area = AVG(SurfaceArea);", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);", "high life expectancy at birth refers to MAX(LifeExpectancy);", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "capital city refers to Capital; San Marino is a name of country;", "largest population refers to MAX(Population);", "Portuguese refers to `Language` = 'Portuguese';", "most crowded city refers to MAX(Population);", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));"]}} {"set": {"query": "What is the capital city and population of San Marino?", "pos": ["capital city refers to Capital; San Marino is a name of country;"], "neg": ["GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);", "declared independence in 1994 refers to IndepYear = 1994;", "English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);", "smallest surface area refers to MIN(smallest surface area);", "average surface area = AVG(SurfaceArea);", "Belize is a name of country;", "smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);"]}} {"set": {"query": "Which country has the most crowded city in the world?", "pos": ["most crowded city refers to MAX(Population);"], "neg": ["English is the official language refers to Language = 'English' AND IsOfficial = 'T';", "ruled by Kostis Stefanopoulos refers to HeadOfState = 'Kostis Stefanopoulos';", "independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;", "headed by Adolf Ogi refers to HeadOfState = 'Adolf Ogi';", "declared independence in 1994 refers to IndepYear = 1994;", "high life expectancy at birth refers to MAX(LifeExpectancy);", "Belize is a name of country;", "no GNP refers to GNP = 0;", "smallest surface area refers to MIN(smallest surface area);", "average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';"]}} {"set": {"query": "List down the cities belongs to the country that has surface area greater than 7000000.", "pos": ["surface area greater than 7000000 refers to SurfaceArea > 7000000;"], "neg": ["English is the official language refers to Language = 'English' AND IsOfficial = 'T';", "English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "no GNP refers to GNP = 0;", "smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);", "uses Japanese as their language refers to `Language` = 'Japanese';", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';", "capital city refers to Capital; San Marino is a name of country;", "smallest surface area refers to MIN(smallest surface area);", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "smallest surface area refers to MIN(smallest surface area);"]}} {"set": {"query": "Which country has the smallest surface area?", "pos": ["smallest surface area refers to MIN(smallest surface area);"], "neg": ["unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "Portuguese refers to `Language` = 'Portuguese';", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "official language refers to IsOfficial = 'T'; China is a name of country;", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "England refers to District = 'England';", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';", "English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));", "average population = AVG(Population);", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);"]}} {"set": {"query": "How many countries use Portuguese?", "pos": ["Portuguese refers to `Language` = 'Portuguese';"], "neg": ["GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "smallest surface area refers to MIN(smallest surface area);", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "average surface area = AVG(SurfaceArea);", "Europe refers to Continent = 'Europe';", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "English refers to Language = 'English'; Australia is a name of country;", "GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';"]}} {"set": {"query": "Provide the language used in the country ruled by Pierre Buyoya.", "pos": ["ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';"], "neg": ["unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "English is the official language refers to Language = 'English' AND IsOfficial = 'T';", "England refers to District = 'England';", "declared independence in 1994 refers to IndepYear = 1994;", "GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));", "average population = AVG(Population);", "Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);"]}} {"set": {"query": "What are the official languages used in Greece?", "pos": ["official language refers to IsOfficial = 'T'; Greece is a name of country;"], "neg": ["unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "smallest population refers to MIN(Population);", "independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "Belize is a name of country;", "smallest surface area refers to MIN(smallest surface area);", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));"]}} {"set": {"query": "Provide the country, population, capital city, and official language of the country with the smallest surface area.", "pos": ["capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);"], "neg": ["declared independence in 1994 refers to IndepYear = 1994;", "GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;", "headed by Adolf Ogi refers to HeadOfState = 'Adolf Ogi';", "Zaanstad is a name of city;", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "form of government refers to GovernmentForm;", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;", "GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';"]}} {"set": {"query": "What is the district of Zaanstad?", "pos": ["Zaanstad is a name of city;"], "neg": ["average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';", "Europe refers to Continent = 'Europe';", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)", "English refers to Language = 'English'; Australia is a name of country;", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "shortest life expectancy refers to MIN(LifeExpectancy);", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "ruled by Kostis Stefanopoulos refers to HeadOfState = 'Kostis Stefanopoulos';"]}} {"set": {"query": "Among the languages used in Baltic Countries, provide the languages which are used by over 80%.\n\n", "pos": ["Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;"], "neg": ["form of government refers to GovernmentForm;", "largest population refers to MAX(Population);", "Zaanstad is a name of city;", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "England refers to District = 'England';", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);", "GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;", "Portuguese refers to `Language` = 'Portuguese';"]}} {"set": {"query": "In which continent does the country with the smallest surface area belongs?", "pos": ["smallest surface area refers to MIN(smallest surface area);"], "neg": ["independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "average surface area = AVG(SurfaceArea);", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)", "form of government refers to GovernmentForm;", "GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';", "smallest population refers to MIN(Population);", "uses Japanese as their language refers to `Language` = 'Japanese';", "shortest life expectancy refers to MIN(LifeExpectancy);", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';"]}} {"set": {"query": "List all the countries in the continent of Asia that use English as their unofficial language.", "pos": ["use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';"], "neg": ["English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "official language refers to IsOfficial = 'T'; Greece is a name of country;", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;", "no GNP refers to GNP = 0;", "shortest life expectancy refers to MIN(LifeExpectancy);", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)", "most crowded city refers to MAX(Population);", "Malaysia is a name of country;"]}} {"set": {"query": "What is the life expectancy of residents in the most crowded city?", "pos": ["most crowded city refers to MAX(Population);"], "neg": ["form of government refers to GovernmentForm;", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "average surface area = AVG(SurfaceArea);", "smallest population refers to MIN(Population);", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';", "smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);", "Portuguese refers to `Language` = 'Portuguese';", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);", "most crowded city refers to MAX(Population);", "largest population refers to MAX(Population);"]}} {"set": {"query": "What is the percentage of English used in Australia?", "pos": ["English refers to Language = 'English'; Australia is a name of country;"], "neg": ["official language refers to IsOfficial = 'T'; Greece is a name of country;", "Malaysia is a name of country;", "unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "English is the official language refers to Language = 'English' AND IsOfficial = 'T';", "no GNP refers to GNP = 0;", "Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;", "uses Japanese as their language refers to `Language` = 'Japanese';", "capital city refers to Capital; San Marino is a name of country;", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "most crowded city refers to MAX(Population);"]}} {"set": {"query": "Provide the name, capital city and its official language of the country with the highest life expectancy.", "pos": ["capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);"], "neg": ["unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "headed by Adolf Ogi refers to HeadOfState = 'Adolf Ogi';", "Zaanstad is a name of city;", "form of government refers to GovernmentForm;", "average surface area = AVG(SurfaceArea);", "Malaysia is a name of country;", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "shortest life expectancy refers to MIN(LifeExpectancy);", "Portuguese refers to `Language` = 'Portuguese';", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)"]}} {"set": {"query": "What country in Asia has the largest gross national product(GNP)?", "pos": ["Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);"], "neg": ["largest population refers to MAX(Population);", "shortest life expectancy refers to MIN(LifeExpectancy);", "Belize is a name of country;", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);", "average population = AVG(Population);", "GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;", "English refers to Language = 'English'; Australia is a name of country;", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';", "average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';"]}} {"set": {"query": "Which country has the shortest life expectancy?", "pos": ["shortest life expectancy refers to MIN(LifeExpectancy);"], "neg": ["Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;", "smallest surface area refers to MIN(smallest surface area);", "average surface area = AVG(SurfaceArea);", "average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';", "English refers to Language = 'English'; Australia is a name of country;", "form of government refers to GovernmentForm;", "smallest surface area refers to MIN(smallest surface area);", "most crowded city refers to MAX(Population);", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';"]}} {"set": {"query": "What is the life expectancy of the countries that uses Japanese as their language?", "pos": ["uses Japanese as their language refers to `Language` = 'Japanese';"], "neg": ["capital city refers to Capital; San Marino is a name of country;", "unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "Zaanstad is a name of city;", "official language refers to IsOfficial = 'T'; China is a name of country;", "Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "Portuguese refers to `Language` = 'Portuguese';", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "largest population refers to MAX(Population);"]}} {"set": {"query": "List any five countries which use English as an official language.", "pos": ["English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';"], "neg": ["most crowded city refers to MAX(Population);", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "ruled by Kostis Stefanopoulos refers to HeadOfState = 'Kostis Stefanopoulos';", "GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;", "smallest population refers to MIN(Population);", "declared independence in 1994 refers to IndepYear = 1994;", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "English is the official language refers to Language = 'English' AND IsOfficial = 'T';", "Belize is a name of country;"]}} {"set": {"query": "How many countries have Socialistic Republic form of government?", "pos": ["Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';"], "neg": ["Zaanstad is a name of city;", "uses Japanese as their language refers to `Language` = 'Japanese';", "official language refers to IsOfficial = 'T'; China is a name of country;", "English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "smallest surface area refers to MIN(smallest surface area);", "most crowded city refers to MAX(Population);", "average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';", "England refers to District = 'England';", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';"]}} {"set": {"query": "List all the cities in the country where there is high life expectancy at birth.", "pos": ["high life expectancy at birth refers to MAX(LifeExpectancy);"], "neg": ["Zaanstad is a name of city;", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "smallest population refers to MIN(Population);", "GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';", "no GNP refers to GNP = 0;", "highest population refers to MAX(Population);", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);", "capital city refers to Capital; San Marino is a name of country;", "Belize is a name of country;", "Europe refers to Continent = 'Europe';"]}} {"set": {"query": "Calculate the average population per city in Karnataka district.", "pos": ["average population = AVG(Population);"], "neg": ["English is the official language refers to Language = 'English' AND IsOfficial = 'T';", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "highest population refers to MAX(Population);", "official language refers to IsOfficial = 'T'; China is a name of country;", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "average surface area = AVG(SurfaceArea);", "Zaanstad is a name of city;", "England refers to District = 'England';", "capital city refers to Capital; San Marino is a name of country;", "no GNP refers to GNP = 0;"]}} {"set": {"query": "List the district name of the city with the smallest population.", "pos": ["smallest population refers to MIN(Population);"], "neg": ["ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "smallest surface area refers to MIN(smallest surface area);", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "capital city refers to Capital; San Marino is a name of country;", "Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;"]}} {"set": {"query": "In English speaking countries, provide the difference between the number of countries with republic and constitutional monarchy as its government form.", "pos": ["English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));"], "neg": ["capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "largest population refers to MAX(Population);", "Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)", "most crowded city refers to MAX(Population);", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "smallest surface area refers to MIN(smallest surface area);", "no GNP refers to GNP = 0;"]}} {"set": {"query": "In countries with constitutional monarchy, what is the percentage of cities located in the district of England?", "pos": ["constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)"], "neg": ["Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);", "unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "largest population refers to MAX(Population);", "smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);", "average population = AVG(Population);", "GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';", "capital city refers to Capital; San Marino is a name of country;", "smallest surface area refers to MIN(smallest surface area);", "highest population refers to MAX(Population);"]}} {"set": {"query": "What country declared its independence in 1994?", "pos": ["declared independence in 1994 refers to IndepYear = 1994;"], "neg": ["largest population refers to MAX(Population);", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "headed by Adolf Ogi refers to HeadOfState = 'Adolf Ogi';", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "no GNP refers to GNP = 0;", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "high life expectancy at birth refers to MAX(LifeExpectancy);", "most crowded city refers to MAX(Population);"]}} {"set": {"query": "What is the official language of China?", "pos": ["official language refers to IsOfficial = 'T'; China is a name of country;"], "neg": ["ruled by Kostis Stefanopoulos refers to HeadOfState = 'Kostis Stefanopoulos';", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "Malaysia is a name of country;", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "smallest surface area refers to MIN(smallest surface area);", "GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "most crowded city refers to MAX(Population);", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));"]}} {"set": {"query": "What is the GNP growth rate by the country of Shanghai?", "pos": ["GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;"], "neg": ["Malaysia is a name of country;", "English is the official language refers to Language = 'English' AND IsOfficial = 'T';", "smallest population refers to MIN(Population);", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "no GNP refers to GNP = 0;", "largest population refers to MAX(Population);", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "official language refers to IsOfficial = 'T'; China is a name of country;", "independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;"]}} {"set": {"query": "Among the countries that have GNP greater than 1500, what is the percentage of the countries have English as its language?", "pos": ["GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';"], "neg": ["English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "Zaanstad is a name of city;", "most crowded city refers to MAX(Population);", "average population = AVG(Population);", "uses Japanese as their language refers to `Language` = 'Japanese';", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "form of government refers to GovernmentForm;", "Baltic Countries refers to Region = 'Baltic Countries'; languages which are used by over 80% refers to Percentage > 80;", "Europe refers to Continent = 'Europe';", "most crowded city refers to MAX(Population);"]}} {"set": {"query": "List the countries and their official languages in Antarctica.", "pos": ["official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';"], "neg": ["most crowded city refers to MAX(Population);", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "high life expectancy at birth refers to MAX(LifeExpectancy);", "official language refers to IsOfficial = 'T'; Greece is a name of country;", "ruled by Kostis Stefanopoulos refers to HeadOfState = 'Kostis Stefanopoulos';", "Zaanstad is a name of city;", "declared independence in 1994 refers to IndepYear = 1994;", "most crowded city refers to MAX(Population);", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';"]}} {"set": {"query": "Write down the name of the largest population country.", "pos": ["largest population refers to MAX(Population);"], "neg": ["Europe refers to Continent = 'Europe';", "Zaanstad is a name of city;", "most crowded city refers to MAX(Population);", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "form of government refers to GovernmentForm;", "Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);", "no GNP refers to GNP = 0;", "smallest population refers to MIN(Population);", "declared independence in 1994 refers to IndepYear = 1994;", "England refers to District = 'England';"]}} {"set": {"query": "Which country has the smallest surface area and the most crowded city?", "pos": ["smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);"], "neg": ["official language refers to IsOfficial = 'T'; Greece is a name of country;", "Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "largest population refers to MAX(Population);", "smallest population refers to MIN(Population);", "Portuguese refers to `Language` = 'Portuguese';", "average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';", "Belize is a name of country;", "GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';", "English is the official language refers to Language = 'English' AND IsOfficial = 'T';"]}} {"set": {"query": "What is the form of government that the city of Manila has?", "pos": ["form of government refers to GovernmentForm;"], "neg": ["average population = AVG(Population);", "shortest life expectancy refers to MIN(LifeExpectancy);", "most crowded city refers to MAX(Population);", "capital city refers to Capital; San Marino is a name of country;", "Asia refers to Continent = 'Asia'; largest gross national product refers to MAX(GNP);", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));", "smallest surface area refers to MIN(smallest surface area);", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "Europe refers to Continent = 'Europe';", "official language refers to IsOfficial = 'T'; China is a name of country;"]}} {"set": {"query": "What city has the highest population?", "pos": ["highest population refers to MAX(Population);"], "neg": ["Malaysia is a name of country;", "most crowded city refers to MAX(Population);", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "uses Japanese as their language refers to `Language` = 'Japanese';", "GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';", "unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "English refers to Language = 'English'; Australia is a name of country;", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));", "largest population refers to MAX(Population);", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);"]}} {"set": {"query": "List down the country names of countries that have a GNP lower than 1000 and have Dutch as their language.", "pos": ["GNP lower than 1000 refers to GNP < 1000; Dutch as their language refers to `Language` = 'Dutch';"], "neg": ["shortest life expectancy refers to MIN(LifeExpectancy);", "English refers to Language = 'English'; Australia is a name of country;", "Belize is a name of country;", "Europe refers to Continent = 'Europe';", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));", "unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));", "smallest population refers to MIN(Population);"]}} {"set": {"query": "List down the languages of countries with an independence year between 1980 to 1995.", "pos": ["independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;"], "neg": ["official language refers to IsOfficial = 'T'; China is a name of country;", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);", "English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "official language refers to IsOfficial = 'T'; Greece is a name of country;", "surface area greater than 7000000 refers to SurfaceArea > 7000000;", "uses Japanese as their language refers to `Language` = 'Japanese';", "capital city refers to Capital; San Marino is a name of country;", "most crowded city refers to MAX(Population);", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';"]}} {"set": {"query": "Among the countries that officially use the English language, what country has the highest capital?", "pos": ["officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);"], "neg": ["largest population refers to MAX(Population);", "GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;", "uses Japanese as their language refers to `Language` = 'Japanese';", "English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));", "official language refers to IsOfficial = 'T'; China is a name of country;", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';", "average population = AVG(Population);", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "English refers to Language = 'English'; Australia is a name of country;"]}} {"set": {"query": "What is the average surface area of all countries?", "pos": ["average surface area = AVG(SurfaceArea);"], "neg": ["most crowded city refers to MAX(Population);", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "Belize is a name of country;", "independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)", "capital city refers to Capital; San Marino is a name of country;", "shortest life expectancy refers to MIN(LifeExpectancy);", "official language refers to IsOfficial = 'T'; China is a name of country;", "Portuguese refers to `Language` = 'Portuguese';"]}} {"set": {"query": "Within the 5 most crowded cities in the world, which country has the most languages used?", "pos": ["most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));"], "neg": ["smallest population refers to MIN(Population);", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';", "Belize is a name of country;", "GNP greater than 1500 refers to GNP > 1500 ; percentage = MULTIPLY(DIVIDE(SUM(Code WHERE GNP > 1500 AND Language = 'English'), COUNT(Code WHERE GNP > 1500)) 1.0); English as its language refers to Language = 'English';", "independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)", "shortest life expectancy refers to MIN(LifeExpectancy);", "highest population refers to MAX(Population);"]}} {"set": {"query": "How many unofficial languages are used in Italy?", "pos": ["unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;"], "neg": ["form of government refers to GovernmentForm;", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';", "English is the official language refers to Language = 'English' AND IsOfficial = 'T';", "smallest surface area refers to MIN(smallest surface area);", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "high life expectancy at birth refers to MAX(LifeExpectancy);", "Zaanstad is a name of city;", "ruled by Kostis Stefanopoulos refers to HeadOfState = 'Kostis Stefanopoulos';", "English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));", "no GNP refers to GNP = 0;"]}} {"set": {"query": "List down the name of countries whereby English is their official language.", "pos": ["English is the official language refers to Language = 'English' AND IsOfficial = 'T';"], "neg": ["Portuguese refers to `Language` = 'Portuguese';", "smallest surface area refers to MIN(smallest surface area);", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);", "ruled by Kostis Stefanopoulos refers to HeadOfState = 'Kostis Stefanopoulos';", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)", "independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;", "average population = AVG(Population);", "average life expectancy = AVG(LifeExpectancy); speak Arabic refers to `Language` = 'Arabic';", "GNP growth rate = DIVIDE(SUBTRACT(GNP, GNPOld), GNPOld); Shanghai is a name of city;", "no GNP refers to GNP = 0;"]}} {"set": {"query": "How many cities are there in the country ruled by Kostis Stefanopoulos?", "pos": ["ruled by Kostis Stefanopoulos refers to HeadOfState = 'Kostis Stefanopoulos';"], "neg": ["average population = AVG(Population);", "unofficial languages refers to IsOfficial = 'F'; Italy is a name of country;", "constitutional monarchy refers to GovernmentForm = 'Constitutional Monarchy'; percentage = MULTIPLY(DIVIDE(SUM(GovernmentForm = 'Constitutional Monarchy' WHERE District = 'England'), COUNT(GovernmentForm = 'Constitutional Monarchy')), 100)", "English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "Malaysia is a name of country;", "most crowded city refers to MAX(Population);", "English is the official language refers to Language = 'English' AND IsOfficial = 'T';", "official language refers to IsOfficial = 'T'; China is a name of country;", "largest population refers to MAX(Population);", "English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));"]}} {"set": {"query": "How many cities are there in England?", "pos": ["England refers to District = 'England';"], "neg": ["English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));", "smallest surface area refers to MIN(smallest surface area); most crowded city refers to MAX(Population);", "smallest surface area refers to MIN(smallest surface area);", "declared independence in 1994 refers to IndepYear = 1994;", "largest population refers to MAX(Population);", "Zaanstad is a name of city;", "Portuguese refers to `Language` = 'Portuguese';", "shortest life expectancy refers to MIN(LifeExpectancy);", "no GNP refers to GNP = 0;", "Europe refers to Continent = 'Europe';"]}} {"set": {"query": "List any five countries which use English as an official language.", "pos": ["English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';"], "neg": ["largest population refers to MAX(Population);", "English speaking refers to Language = 'English' ; difference = SUBTRACT(COUNT(Language = 'English' WHERE GovernmentForm = 'Republic'), COUNT(Language = 'English' WHERE GovernmentForm = 'ConstitutionalMonarchy'));", "England refers to District = 'England';", "official language refers to IsOfficial = 'T'; Antarctica refers to Continent = 'Antarctica';", "smallest surface area refers to MIN(smallest surface area);", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);", "high life expectancy at birth refers to MAX(LifeExpectancy);", "form of government refers to GovernmentForm;", "Socialistic Republic form of government refers to GovernmentForm = 'Socialistic Republic';", "average population = AVG(Population);"]}} {"set": {"query": "List down the districts belong to the country headed by Adolf Ogi.", "pos": ["headed by Adolf Ogi refers to HeadOfState = 'Adolf Ogi';"], "neg": ["English as an official language refers to `Language` = 'English' AND IsOfficial = 'T';", "use English as unofficial language refers to Language = 'English' WHERE IsOfficial = 'F';", "Belize is a name of country;", "smallest surface area refers to MIN(smallest surface area);", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));", "English refers to Language = 'English'; Australia is a name of country;", "head of the state refers to HeadOfState; most crowded city refers to MAX(Population);", "declared independence in 1994 refers to IndepYear = 1994;", "England refers to District = 'England';", "officially use the English language refers to `Language` = 'English' AND IsOfficial = 'T'; highest capital refers to MAX(Capital);"]}} {"set": {"query": "Provide the language used by the people of Belize.", "pos": ["Belize is a name of country;"], "neg": ["official language refers to IsOfficial = 'T'; Greece is a name of country;", "Zaanstad is a name of city;", "high life expectancy at birth refers to MAX(LifeExpectancy);", "capital city refers to Capital; official language refers to IsOfficial = 'T'; smallest surface area refers to MIN(SurfaceArea);", "most crowded cities refers to MAX(Population); has the most languages used refers to MAX(COUNT(Language));", "English refers to Language = 'English'; Australia is a name of country;", "independence year between 1980 to 1995 refers to IndepYear BETWEEN 1980 AND 1995;", "ruled by Pierre Buyoya refers to HeadOfState = 'Pierre Buyoya';", "headed by Adolf Ogi refers to HeadOfState = 'Adolf Ogi';", "capital city refers to Capital; official language refers to IsOfficial = 'T'; highest life expectancy refers to MAX(LifeExpectancy);"]}} {"set": {"query": "From 1968 to 1970, what are indicator names whose license type is open and values are less than 100?", "pos": ["From 1968 to 1970 refers to Year between '1968' and '1970'; values are less than 100 imply Value<100;"], "neg": ["Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "indicator Stocks traded, turnover ratio of domestic shares refers to IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'", "the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'", "Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "agricultural land area in sq. km refers value where indicatorname = 'Agricultural land (sq. km)'; Italy refers to countryname = 'Italy'; in 1968 refers to year = '1968'", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')"]}} {"set": {"query": "In which years does the country whose Alpha2Code is 1A have a result of the indicator Adolescent fertility rate?", "pos": ["indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n"], "neg": ["countries refer to Countrycode; in the high income refers to incomegroup = 'High'; with notes refers to description IS NOT NULL; series code SP.DYN.AMRT.FE refers to Seriescode = 'SP.DYN.AMRT.FE'", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "Aruba is the name of country where ShortName = 'Aruba'", "Benin is the short name of the country; year 2005 refers to Year = 'YR2005';", "the average adolescent fertility rate is DIVIDE(SUM(value), SUM(IndicatorName like 'adolescent fertility rate%')); MAX(average adolescent fertility rate)", "fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "Mobile Cellular Subscriptions refers to indicatorname = 'Mobile cellular subscriptions'; Brazil refers to CountryName = 'Brazil'", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980"]}} {"set": {"query": "List the long name of countries with indicator name in 1980.", "pos": ["with any indicator name implies IndicatorName is not NULL; Year = '1980';"], "neg": ["IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;", "CurrencyUnit = 'Euro';", "completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500", "year 1980 refers to Year = 'YR1980';", "IncomeGroup = 'Upper middle income'; IndicatorName = 'CO2 emissions (kt); the lowest value refers to MIN(Value);", "Benin is the short name of the country; year 2005 refers to Year = 'YR2005';", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "middle income group refers to IncomeGroup = 'Low middle income';"]}} {"set": {"query": "Please list the descriptions of the series code SM.POP.TOTL for all the countries that are under the lending category of the International Development Associations.", "pos": ["Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'"], "neg": ["the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500", "the smallest land area in square kilometers refers to min(value where IndicatorName like 'Land area (sq. km)'); for 19 consecutive years starting from year 1961 refers to Year between 1961 and 1979", "from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "full name refers to longname"]}} {"set": {"query": "Please provide the subject of series of Austria.", "pos": ["subject refers to topic; Austria refers to shortname = 'Austria'"], "neg": ["IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;", "full name refers to longname", "country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "low-income countries are where the incomegroup = Low income", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;", "which country refers to countryname; the highest CO2 emissions refers to max(value where indicatorname = 'CO2 emissions (metric tons per capita)'); in 1960 refers to year = '1970'", "any 3 countries refers to count(shortname)>3", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'"]}} {"set": {"query": "How many countries have notes on the indicator Stocks traded, turnover ratio of domestic shares?", "pos": ["indicator Stocks traded, turnover ratio of domestic shares refers to IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'"], "neg": ["IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "country refers to CountryName;", "From 1968 to 1970 refers to Year between '1968' and '1970'; values are less than 100 imply Value<100;", "country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')"]}} {"set": {"query": "Name the countries' long name with national accounts base year prior to 1980.", "pos": ["national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;"], "neg": ["IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "From 1968 to 1970 refers to Year between '1968' and '1970'; values are less than 100 imply Value<100;", "CurrencyUnit = 'Euro';", "year 1980 refers to Year = 'YR1980';", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "with any indicator name implies IndicatorName is not NULL; Year = '1980';", "proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')"]}} {"set": {"query": "What is the indicator code for Mobile Cellular Subscriptions of Brazil?", "pos": ["Mobile Cellular Subscriptions refers to indicatorname = 'Mobile cellular subscriptions'; Brazil refers to CountryName = 'Brazil'"], "neg": ["IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "in 1960 refers to year = '1960'", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "note refers to Description; for Australia refers to ShortName = 'Australia'; indicator SP.ADO.TFRT refers to Seriescode = 'SP.ADO.TFRT'", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "full name refers to longname", "note refers to Description; for Aruba refers to ShortName = 'Aruba'", "Finland is the short name of the country; year 2000 refers to Year = 'YR2000';"]}} {"set": {"query": "How many footnotes did Aruba got on different series code in the year 2002?", "pos": ["Aruba is the name of country where ShortName = 'Aruba'"], "neg": ["uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'", "the smallest land area in square kilometers refers to min(value where IndicatorName like 'Land area (sq. km)'); for 19 consecutive years starting from year 1961 refers to Year between 1961 and 1979", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'", "in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "middle income group refers to IncomeGroup = 'Low middle income';", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;"]}} {"set": {"query": "Which country's indicator for Adolescent fertility rate is the highest in 1960, please give its special notes.", "pos": ["indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'"], "neg": ["IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "high income: non-OECD' refer to IncomeGroup;", "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "IncomeGroup = 'Upper middle income'; IndicatorName = 'CO2 emissions (kt); the lowest value refers to MIN(Value);", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')", "any 3 countries refers to count(shortname)>3", "Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000"]}} {"set": {"query": "How many countries are having their country's footnotes described as \"unspecified\"? Please provide the full names of any three of those countries.", "pos": ["described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName"], "neg": ["with any indicator name implies IndicatorName is not NULL; Year = '1980';", "middle income group refers to IncomeGroup = 'Low middle income';", "Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965", "Aruba is the name of country where ShortName = 'Aruba'", "Albania is the name of country where Country = 'Albania'", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "Benin is the short name of the country; year 2005 refers to Year = 'YR2005';", "Finland is the short name of the country; year 2000 refers to Year = 'YR2000';", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear"]}} {"set": {"query": "What country have its data estimated based on regression?", "pos": ["what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'"], "neg": ["South Asia is the name of the region; IncomeGroup = 'Low income';", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "Finland is the short name of the country; year 2000 refers to Year = 'YR2000';", "Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;", "the latest trade data after 2010 implies LatestTradeData > 2010;", "countries refer to Countrycode; in the high income refers to incomegroup = 'High'; with notes refers to description IS NOT NULL; series code SP.DYN.AMRT.FE refers to Seriescode = 'SP.DYN.AMRT.FE'", "from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "the average adolescent fertility rate is DIVIDE(SUM(value), SUM(IndicatorName like 'adolescent fertility rate%')); MAX(average adolescent fertility rate)", "IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;"]}} {"set": {"query": "Which European countries had the highest private expenditure on health in 2005? List the top ten countries in descending order and find the source of the data.", "pos": ["Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;"], "neg": ["ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "South Asia is the name of the region; IncomeGroup = 'Low income';", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'", "any 3 countries refers to count(shortname)>3", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "Benin is the short name of the country; year 2005 refers to Year = 'YR2005';"]}} {"set": {"query": "Please list the indicator names belonging to Education: Inputs topic in 2000.", "pos": ["Year = 'YR2000';"], "neg": ["CurrencyUnit = 'Euro';", "subject refers to topic; Austria refers to shortname = 'Austria'", "Mobile Cellular Subscriptions refers to indicatorname = 'Mobile cellular subscriptions'; Brazil refers to CountryName = 'Brazil'", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'", "high income: non-OECD' refer to IncomeGroup;", "Aruba is the name of country where ShortName = 'Aruba'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965"]}} {"set": {"query": "What are the special notes for the country whose average adolescent fertility rate is the highest?", "pos": ["the average adolescent fertility rate is DIVIDE(SUM(value), SUM(IndicatorName like 'adolescent fertility rate%')); MAX(average adolescent fertility rate)"], "neg": ["subject refers to topic; Austria refers to shortname = 'Austria'", "completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500", "average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName", "Year contains '2005'; series codes contain 'International Monetary Fund'", "countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'", "full name refers to longname", "countries are the Countrycode; footnote refers to Description = 'Data are classified as official aid'", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')"]}} {"set": {"query": "What percentage of countries in South Asia have the Life expectancy at birth, female (years) greater than 50?", "pos": ["South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;"], "neg": ["full name refers to longname", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "indicator Stocks traded, turnover ratio of domestic shares refers to IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'"]}} {"set": {"query": "From 1960 to 1965, which country has the lowest value of indicator belongs to Health: Population: Structure?", "pos": ["From 1960 to 1965 refers to Year between '1960' and '1965'; the lowest value implies MIN(Value); country refers to CountryName;"], "neg": ["IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "country refers to CountryName;", "the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "indicator Inflation, consumer prices refers to IndicatorName = 'Inflation, consumer prices (annual %)'", "Finland is the short name of the country; year 2000 refers to Year = 'YR2000';"]}} {"set": {"query": "Which countries use Euro as their currency? List down the table name.", "pos": ["CurrencyUnit = 'Euro';"], "neg": ["countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "middle income group refers to IncomeGroup = 'Low middle income';", "Aruba is the name of country where ShortName = 'Aruba'", "from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "the highest proportion of CO2 emissions from transport refers to max(value where indicatorname = 'CO2 emissions from transport (% of total fuel combustion)')", "year 1980 refers to Year = 'YR1980';", "Year = 'YR2000';"]}} {"set": {"query": "Among the low income countries, which country has the lowest fertility rate?", "pos": ["fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';"], "neg": ["South Asia is the name of the region; IncomeGroup = 'Low income';", "Albania is the name of country where Country = 'Albania'", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName", "the highest proportion of CO2 emissions from transport refers to max(value where indicatorname = 'CO2 emissions from transport (% of total fuel combustion)')", "the average adolescent fertility rate is DIVIDE(SUM(value), SUM(IndicatorName like 'adolescent fertility rate%')); MAX(average adolescent fertility rate)", "the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "long name refers to CountryName; got 3000000 on the indicator Arms exports refers to value where IndicatorName = 'Arms exports (SIPRI trend indicator values)' = 3000000; in 1960 refers to Year = 1960", "Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'"]}} {"set": {"query": "Enumerate the footnote narratives of The Bahamas under the series code SH.DTH.IMRT in the year 1984.", "pos": ["narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'"], "neg": ["the average adolescent fertility rate is DIVIDE(SUM(value), SUM(IndicatorName like 'adolescent fertility rate%')); MAX(average adolescent fertility rate)", "proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'", "full name refers to longname", "Albania is the name of country where Country = 'Albania'", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "the latest trade data after 2010 implies LatestTradeData > 2010;", "the smallest land area in square kilometers refers to min(value where IndicatorName like 'Land area (sq. km)'); for 19 consecutive years starting from year 1961 refers to Year between 1961 and 1979"]}} {"set": {"query": "Which country have the highest CO2 emissions in 1960?", "pos": ["which country refers to countryname; the highest CO2 emissions refers to max(value where indicatorname = 'CO2 emissions (metric tons per capita)'); in 1960 refers to year = '1970'"], "neg": ["ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "IncomeGroup = 'Upper middle income'; IndicatorName = 'CO2 emissions (kt); the lowest value refers to MIN(Value);", "any 3 countries refers to count(shortname)>3", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "From 1968 to 1970 refers to Year between '1968' and '1970'; values are less than 100 imply Value<100;", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "From 1960 to 1965 refers to Year between '1960' and '1965'; the lowest value implies MIN(Value); country refers to CountryName;", "in 1960 refers to year = '1960'", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'"]}} {"set": {"query": "How many countries uses the 1968 System of National Accounts methodology?", "pos": ["uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'"], "neg": ["Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965", "subject refers to topic; Austria refers to shortname = 'Austria'", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "the smallest land area in square kilometers refers to min(value where IndicatorName like 'Land area (sq. km)'); for 19 consecutive years starting from year 1961 refers to Year between 1961 and 1979", "year 1980 refers to Year = 'YR1980';", "average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980", "Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000", "full name refers to longname"]}} {"set": {"query": "Please list the countries that got the footnote \"Data are classified as official aid.\" on the series code DC.DAC.AUSL.CD in 2002.", "pos": ["countries are the Countrycode; footnote refers to Description = 'Data are classified as official aid'"], "neg": ["From 1968 to 1970 refers to Year between '1968' and '1970'; values are less than 100 imply Value<100;", "country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "agricultural land area in sq. km refers value where indicatorname = 'Agricultural land (sq. km)'; Italy refers to countryname = 'Italy'; in 1968 refers to year = '1968'", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "Year = 'YR2000';", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500"]}} {"set": {"query": "Among the countries who uses the 1968 System of National Accounts methodology, how many are in the Middle East & North Africa? Name the country with the highest CO2 emissions from solid fuel consumption in kiloton.", "pos": ["uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')"], "neg": ["Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965", "high income: non-OECD' refer to IncomeGroup;", "CurrencyUnit = 'Euro';", "countries are the Countrycode; footnote refers to Description = 'Data are classified as official aid'", "Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "with any indicator name implies IndicatorName is not NULL; Year = '1980';", "the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')"]}} {"set": {"query": "Which country has the lowest percentage of arable land?", "pos": ["which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')"], "neg": ["CurrencyUnit = 'Euro';", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "South Asia is the name of the region; IncomeGroup = 'Low income';", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "Aruba is the name of country where ShortName = 'Aruba'", "South Asia is the name of the region; IncomeGroup = 'Low income';", "countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "Aruba is the name of country where ShortName = 'Aruba'", "Year contains '2005'; series codes contain 'International Monetary Fund'", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'"]}} {"set": {"query": "What's the value of the indicator whose long definition is \"Adolescent fertility rate is the number of births per 1,000 women ages 15-19.\" for the Arab World in 1960?", "pos": ["in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'"], "neg": ["Aruba is the name of country where ShortName = 'Aruba'", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "subject refers to topic; Austria refers to shortname = 'Austria'", "Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "full name refers to longname", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'", "average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "IncomeGroup = 'Upper middle income'; IndicatorName = 'CO2 emissions (kt); the lowest value refers to MIN(Value);"]}} {"set": {"query": "Find the countries in south Asia which are in the low-income group. What is the source of their recent income and expenditure data? List it alongside the table name of the countries.", "pos": ["South Asia is the name of the region; IncomeGroup = 'Low income';"], "neg": ["indicator Inflation, consumer prices refers to IndicatorName = 'Inflation, consumer prices (annual %)'", "fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "indicator Stocks traded, turnover ratio of domestic shares refers to IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'", "Aruba is the name of country where ShortName = 'Aruba'", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'", "the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'", "the latest trade data after 2010 implies LatestTradeData > 2010;", "From 1960 to 1965 refers to Year between '1960' and '1965'; the lowest value implies MIN(Value); country refers to CountryName;"]}} {"set": {"query": "How many low-income countries under the lending category of the International Development Associations have a note on the series code SM.POP.TOTL?", "pos": ["low-income countries are where the incomegroup = Low income"], "neg": ["Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "From 1968 to 1970 refers to Year between '1968' and '1970'; values are less than 100 imply Value<100;", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'", "year 1980 refers to Year = 'YR1980';", "Mobile Cellular Subscriptions refers to indicatorname = 'Mobile cellular subscriptions'; Brazil refers to CountryName = 'Brazil'", "high income: non-OECD' refer to IncomeGroup;", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "any 3 countries refers to count(shortname)>3"]}} {"set": {"query": "How much is the total urban population of middle income countries in 1960?", "pos": ["IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;"], "neg": ["uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'", "IncomeGroup = 'Upper middle income'; IndicatorName = 'CO2 emissions (kt); the lowest value refers to MIN(Value);", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "Year contains '2005'; series codes contain 'International Monetary Fund'", "CurrencyUnit = 'Euro';", "Aruba is the name of country where ShortName = 'Aruba'", "country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'", "Mobile Cellular Subscriptions refers to indicatorname = 'Mobile cellular subscriptions'; Brazil refers to CountryName = 'Brazil'", "long name refers to CountryName; got 3000000 on the indicator Arms exports refers to value where IndicatorName = 'Arms exports (SIPRI trend indicator values)' = 3000000; in 1960 refers to Year = 1960", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName"]}} {"set": {"query": "Please list the notes for Aruba on the indicators under the topic of Environment: Energy production & use.", "pos": ["note refers to Description; for Aruba refers to ShortName = 'Aruba'"], "neg": ["uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "South Asia is the name of the region; IncomeGroup = 'Low income';", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "Aruba is the name of country where ShortName = 'Aruba'", "Finland is the short name of the country; year 2000 refers to Year = 'YR2000';", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "South Asia is the name of the region; IncomeGroup = 'Low income';", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;"]}} {"set": {"query": "For the country that has notes on the indicator Inflation, consumer prices, in which region is it in?", "pos": ["indicator Inflation, consumer prices refers to IndicatorName = 'Inflation, consumer prices (annual %)'"], "neg": ["Albania is the name of country where Country = 'Albania'", "countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;", "Aruba is the name of country where ShortName = 'Aruba'", "the latest trade data after 2010 implies LatestTradeData > 2010;", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "South Asia is the name of the region; IncomeGroup = 'Low income';", "long name refers to CountryName; got 3000000 on the indicator Arms exports refers to value where IndicatorName = 'Arms exports (SIPRI trend indicator values)' = 3000000; in 1960 refers to Year = 1960", "CurrencyUnit = 'Euro';", "subject refers to topic; Austria refers to shortname = 'Austria'"]}} {"set": {"query": "Which country has the smallest land area in square kilometers for 19 consecutive years starting from year 1961? Indicate how much is its land area in square kilometers in those years and the income group of the country.", "pos": ["the smallest land area in square kilometers refers to min(value where IndicatorName like 'Land area (sq. km)'); for 19 consecutive years starting from year 1961 refers to Year between 1961 and 1979"], "neg": ["completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500", "have completed vital registration refers to VitalRegistrationComplete = Yes; country name refers to ShortName", "Countries refer to the ShortName; Latin America & Caribbean is the name of the region", "any 3 countries refers to count(shortname)>3", "From 1968 to 1970 refers to Year between '1968' and '1970'; values are less than 100 imply Value<100;", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "the latest trade data after 2010 implies LatestTradeData > 2010;"]}} {"set": {"query": "Which nation completed its external debt reporting in 1980 and had a Land under cereal production value of 3018500?", "pos": ["completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500"], "neg": ["IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "high income: non-OECD' refer to IncomeGroup;", "Aruba is the name of country where ShortName = 'Aruba'", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName", "the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')", "the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "South Asia is the name of the region; IncomeGroup = 'Low income';"]}} {"set": {"query": "For how many consecutive years did Aruba get a footnote on the series code BX.KLT.DINV.CD.WD?", "pos": ["Aruba is the name of country where ShortName = 'Aruba'"], "neg": ["completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;", "CurrencyUnit = 'Euro';", "Year = 'YR2000';", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "the latest trade data after 2010 implies LatestTradeData > 2010;", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear"]}} {"set": {"query": "Among the countries in the High income: OECD group whose currency unit is Euro, how many of them have a note on the series code SP.DYN.AMRT.FE?", "pos": ["countries refer to Countrycode; in the high income refers to incomegroup = 'High'; with notes refers to description IS NOT NULL; series code SP.DYN.AMRT.FE refers to Seriescode = 'SP.DYN.AMRT.FE'"], "neg": ["the highest proportion of CO2 emissions from transport refers to max(value where indicatorname = 'CO2 emissions from transport (% of total fuel combustion)')", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'", "subject refers to topic; Austria refers to shortname = 'Austria'", "middle income group refers to IncomeGroup = 'Low middle income';", "low-income countries are where the incomegroup = Low income", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';"]}} {"set": {"query": "In 2005, which series codes use the International Monetary Fund, Balance of Payments Statistics Yearbook and data files source?", "pos": ["Year contains '2005'; series codes contain 'International Monetary Fund'"], "neg": ["indicator Stocks traded, turnover ratio of domestic shares refers to IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "South Asia is the name of the region; IncomeGroup = 'Low income';", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "any 3 countries refers to count(shortname)>3", "fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "Aruba is the name of country where ShortName = 'Aruba'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "which country refers to countryname; the highest CO2 emissions refers to max(value where indicatorname = 'CO2 emissions (metric tons per capita)'); in 1960 refers to year = '1970'", "countries are the Countrycode; footnote refers to Description = 'Data are classified as official aid'"]}} {"set": {"query": "From 1975 to 1980, how much is the total amount CO2 emmission in kiloton of the the world? Indicate which year the world recorded its highest CO2 emmissions.", "pos": ["from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')"], "neg": ["number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'", "Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965", "any 3 countries refers to count(shortname)>3", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "South Asia is the name of the region; IncomeGroup = 'Low income';", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "From 1960 to 1965 refers to Year between '1960' and '1965'; the lowest value implies MIN(Value); country refers to CountryName;", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "subject refers to topic; Austria refers to shortname = 'Austria'"]}} {"set": {"query": "How many footnotes have been made in year 1980 and what are the table names of these countries that made the footnotes?", "pos": ["year 1980 refers to Year = 'YR1980';"], "neg": ["number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'", "high income: non-OECD' refer to IncomeGroup;", "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "in 1960 refers to year = '1960'", "Benin is the short name of the country; year 2005 refers to Year = 'YR2005';", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "Aruba is the name of country where ShortName = 'Aruba'", "the highest proportion of CO2 emissions from transport refers to max(value where indicatorname = 'CO2 emissions from transport (% of total fuel combustion)')", "Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965"]}} {"set": {"query": "Please list out all annual indicator names of Sudan in 1961?", "pos": ["Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'"], "neg": ["note refers to Description; for Aruba refers to ShortName = 'Aruba'", "country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'", "IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;", "country refers to CountryName;", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "CurrencyUnit = 'Euro';", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "From 1968 to 1970 refers to Year between '1968' and '1970'; values are less than 100 imply Value<100;", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "high income: non-OECD' refer to IncomeGroup;"]}} {"set": {"query": "What proportion of Sub-Saharan Africa's countries have lower middle incomes?", "pos": ["proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'"], "neg": ["AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "CurrencyUnit = 'Euro';", "in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "Albania is the name of country where Country = 'Albania'", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "long name refers to CountryName; got 3000000 on the indicator Arms exports refers to value where IndicatorName = 'Arms exports (SIPRI trend indicator values)' = 3000000; in 1960 refers to Year = 1960", "full name refers to longname", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "South Asia is the name of the region; IncomeGroup = 'Low income';"]}} {"set": {"query": "Which indicator name uses the Weighted average method and has the lowest value?", "pos": ["AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);"], "neg": ["which country refers to countryname; the highest CO2 emissions refers to max(value where indicatorname = 'CO2 emissions (metric tons per capita)'); in 1960 refers to year = '1970'", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "South Asia is the name of the region; IncomeGroup = 'Low income';", "the smallest land area in square kilometers refers to min(value where IndicatorName like 'Land area (sq. km)'); for 19 consecutive years starting from year 1961 refers to Year between 1961 and 1979", "Year contains '2005'; series codes contain 'International Monetary Fund'", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "Mobile Cellular Subscriptions refers to indicatorname = 'Mobile cellular subscriptions'; Brazil refers to CountryName = 'Brazil'"]}} {"set": {"query": "Which country had the highest value of indicator belongs to Private Sector & Trade: Exports topic? Please list the country name and indicator name.", "pos": ["country refers to CountryName;"], "neg": ["Aruba is the name of country where ShortName = 'Aruba'", "any 3 countries refers to count(shortname)>3", "the latest trade data after 2010 implies LatestTradeData > 2010;", "South Asia is the name of the region; IncomeGroup = 'Low income';", "Aruba is the name of country where ShortName = 'Aruba'", "agricultural land area in sq. km refers value where indicatorname = 'Agricultural land (sq. km)'; Italy refers to countryname = 'Italy'; in 1968 refers to year = '1968'", "number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'", "the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')", "year 1980 refers to Year = 'YR1980';", "countries are the Countrycode; footnote refers to Description = 'Data are classified as official aid'"]}} {"set": {"query": "List out the name and indicator code of high income: nonOECD countries", "pos": ["high income: non-OECD' refer to IncomeGroup;"], "neg": ["with any indicator name implies IndicatorName is not NULL; Year = '1980';", "which country refers to countryname; the highest CO2 emissions refers to max(value where indicatorname = 'CO2 emissions (metric tons per capita)'); in 1960 refers to year = '1970'", "middle income group refers to IncomeGroup = 'Low middle income';", "countries refer to Countrycode; in the high income refers to incomegroup = 'High'; with notes refers to description IS NOT NULL; series code SP.DYN.AMRT.FE refers to Seriescode = 'SP.DYN.AMRT.FE'", "countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'", "from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')", "Aruba is the name of country where ShortName = 'Aruba'", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';"]}} {"set": {"query": "Please list the full names of any three countries that have their series code with a description of UN Energy Statistics (2014).", "pos": ["full name refers to longname"], "neg": ["from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "subject refers to topic; Austria refers to shortname = 'Austria'", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'", "the latest trade data after 2010 implies LatestTradeData > 2010;", "have completed vital registration refers to VitalRegistrationComplete = Yes; country name refers to ShortName", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'"]}} {"set": {"query": "What is the short name of the country in which the \"Net bilateral aid flows from DAC donors, Sweden (current US$)\" indicator hit the 570,000 value in 1970?", "pos": ["Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000"], "neg": ["full name refers to longname", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "Year contains '2005'; series codes contain 'International Monetary Fund'", "Albania is the name of country where Country = 'Albania'", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "the highest proportion of CO2 emissions from transport refers to max(value where indicatorname = 'CO2 emissions from transport (% of total fuel combustion)')", "Aruba is the name of country where ShortName = 'Aruba'", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'"]}} {"set": {"query": "What are the full names of the countries in South Asia that belongs to the low income group?", "pos": ["full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'"], "neg": ["South Asia is the name of the region; IncomeGroup = 'Low income';", "Year = 'YR2000';", "agricultural land area in sq. km refers value where indicatorname = 'Agricultural land (sq. km)'; Italy refers to countryname = 'Italy'; in 1968 refers to year = '1968'", "from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')", "low-income countries are where the incomegroup = Low income", "Aruba is the name of country where ShortName = 'Aruba'", "the latest trade data after 2010 implies LatestTradeData > 2010;", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "the highest proportion of CO2 emissions from transport refers to max(value where indicatorname = 'CO2 emissions from transport (% of total fuel combustion)')", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'"]}} {"set": {"query": "How many countries are using the same type of currency? Please list the short names of any 3 countries.", "pos": ["any 3 countries refers to count(shortname)>3"], "neg": ["Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980", "Year = 'YR2000';", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'"]}} {"set": {"query": "What is the minimum of International migrant stock, total of heavily indebted poor countries?", "pos": ["IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);"], "neg": ["middle income group refers to IncomeGroup = 'Low middle income';", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "Year contains '2005'; series codes contain 'International Monetary Fund'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "agricultural land area in sq. km refers value where indicatorname = 'Agricultural land (sq. km)'; Italy refers to countryname = 'Italy'; in 1968 refers to year = '1968'", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "year 1980 refers to Year = 'YR1980';", "proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'"]}} {"set": {"query": "List out the series code and country code of the poor countries that located in Latin American & Carribbean.", "pos": ["Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';"], "neg": ["ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "the latest trade data after 2010 implies LatestTradeData > 2010;", "full name refers to longname", "countries refer to Countrycode; in the high income refers to incomegroup = 'High'; with notes refers to description IS NOT NULL; series code SP.DYN.AMRT.FE refers to Seriescode = 'SP.DYN.AMRT.FE'", "fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "the smallest land area in square kilometers refers to min(value where IndicatorName like 'Land area (sq. km)'); for 19 consecutive years starting from year 1961 refers to Year between 1961 and 1979", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "South Asia is the name of the region; IncomeGroup = 'Low income';"]}} {"set": {"query": "Among the countries with note on the series code SM.POP.TOTL, how many of them are in the low-income group?", "pos": ["countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'"], "neg": ["year 1980 refers to Year = 'YR1980';", "the smallest land area in square kilometers refers to min(value where IndicatorName like 'Land area (sq. km)'); for 19 consecutive years starting from year 1961 refers to Year between 1961 and 1979", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "Albania is the name of country where Country = 'Albania'", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "Year contains '2005'; series codes contain 'International Monetary Fund'", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;"]}} {"set": {"query": "Mention the series code of countries using Australian dollar as their currency unit. Which country belongs to middle income group among them.", "pos": ["middle income group refers to IncomeGroup = 'Low middle income';"], "neg": ["full name refers to longname", "countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')", "Aruba is the name of country where ShortName = 'Aruba'", "long name refers to CountryName; got 3000000 on the indicator Arms exports refers to value where IndicatorName = 'Arms exports (SIPRI trend indicator values)' = 3000000; in 1960 refers to Year = 1960", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "Finland is the short name of the country; year 2000 refers to Year = 'YR2000';", "Countries refer to the ShortName; Latin America & Caribbean is the name of the region", "IncomeGroup = 'Upper middle income'; IndicatorName = 'CO2 emissions (kt); the lowest value refers to MIN(Value);", "note refers to Description; for Aruba refers to ShortName = 'Aruba'"]}} {"set": {"query": "Which upper middle income country has the lowest value of CO2 emissions (kt)?", "pos": ["IncomeGroup = 'Upper middle income'; IndicatorName = 'CO2 emissions (kt); the lowest value refers to MIN(Value);"], "neg": ["in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "Finland is the short name of the country; year 2000 refers to Year = 'YR2000';", "IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "countries are the Countrycode; footnote refers to Description = 'Data are classified as official aid'", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'", "South Asia is the name of the region; IncomeGroup = 'Low income';"]}} {"set": {"query": "What is the agricultural land area in sq. km of Italy in 1968?", "pos": ["agricultural land area in sq. km refers value where indicatorname = 'Agricultural land (sq. km)'; Italy refers to countryname = 'Italy'; in 1968 refers to year = '1968'"], "neg": ["in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "the smallest land area in square kilometers refers to min(value where IndicatorName like 'Land area (sq. km)'); for 19 consecutive years starting from year 1961 refers to Year between 1961 and 1979", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'", "IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);"]}} {"set": {"query": "What's the long name of the country that got 3000000 on the indicator Arms exports in 1960?", "pos": ["long name refers to CountryName; got 3000000 on the indicator Arms exports refers to value where IndicatorName = 'Arms exports (SIPRI trend indicator values)' = 3000000; in 1960 refers to Year = 1960"], "neg": ["in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "Year contains '2005'; series codes contain 'International Monetary Fund'", "countries are the Countrycode; footnote refers to Description = 'Data are classified as official aid'", "IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;", "Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "indicator Inflation, consumer prices refers to IndicatorName = 'Inflation, consumer prices (annual %)'"]}} {"set": {"query": "What country has the latest trade data with a series code of \"SP.DYN.CDRT.IN\n\"? List the table name of the country.", "pos": ["the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'"], "neg": ["national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "Countries refer to the ShortName; Latin America & Caribbean is the name of the region", "South Asia is the name of the region; IncomeGroup = 'Low income';", "high income: non-OECD' refer to IncomeGroup;", "South Asia is the name of the region; IncomeGroup = 'Low income';", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "with any indicator name implies IndicatorName is not NULL; Year = '1980';", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')"]}} {"set": {"query": "Please list the Alpha2Codes of all the countries that have an indicator on Rural population in 1960.", "pos": ["in 1960 refers to year = '1960'"], "neg": ["have completed vital registration refers to VitalRegistrationComplete = Yes; country name refers to ShortName", "CurrencyUnit = 'Euro';", "year 1980 refers to Year = 'YR1980';", "fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980", "Aruba is the name of country where ShortName = 'Aruba'", "Aruba is the name of country where ShortName = 'Aruba'", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "From 1960 to 1965 refers to Year between '1960' and '1965'; the lowest value implies MIN(Value); country refers to CountryName;", "the average adolescent fertility rate is DIVIDE(SUM(value), SUM(IndicatorName like 'adolescent fertility rate%')); MAX(average adolescent fertility rate)"]}} {"set": {"query": "Which country have completed vital registration? List all the countries.", "pos": ["have completed vital registration refers to VitalRegistrationComplete = Yes; country name refers to ShortName"], "neg": ["indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'", "Year contains '2005'; series codes contain 'International Monetary Fund'", "note refers to Description; for Aruba refers to ShortName = 'Aruba'", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "Aruba is the name of country where ShortName = 'Aruba'", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;"]}} {"set": {"query": "What is the series code for number of infant deaths in year 1965 for the country whose full name is Islamic State of Afghanistan?", "pos": ["number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'"], "neg": ["From 1968 to 1970 refers to Year between '1968' and '1970'; values are less than 100 imply Value<100;", "middle income group refers to IncomeGroup = 'Low middle income';", "Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965", "the average adolescent fertility rate is DIVIDE(SUM(value), SUM(IndicatorName like 'adolescent fertility rate%')); MAX(average adolescent fertility rate)", "the latest trade data after 2010 implies LatestTradeData > 2010;", "Year = 'YR2000';", "Albania is the name of country where Country = 'Albania'", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "note refers to Description; for Aruba refers to ShortName = 'Aruba'", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);"]}} {"set": {"query": "From 1960 to 1965, which country had the highest Death rate, crude (per 1,000 people)?", "pos": ["IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;"], "neg": ["note refers to Description; for Aruba refers to ShortName = 'Aruba'", "Year = 'YR2000';", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "Aruba is the name of country where ShortName = 'Aruba'", "the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "Year contains '2005'; series codes contain 'International Monetary Fund'", "Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000"]}} {"set": {"query": "Please list the short name of countries which have the latest trade data after 2010.", "pos": ["the latest trade data after 2010 implies LatestTradeData > 2010;"], "neg": ["fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "Mobile Cellular Subscriptions refers to indicatorname = 'Mobile cellular subscriptions'; Brazil refers to CountryName = 'Brazil'", "AggregationMethod = 'Weighted average'; the lowest value implies MIN(Value);", "countries refer to Countrycode; in the high income refers to incomegroup = 'High'; with notes refers to description IS NOT NULL; series code SP.DYN.AMRT.FE refers to Seriescode = 'SP.DYN.AMRT.FE'", "full name refers to longname", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;", "Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'"]}} {"set": {"query": "Which country has had the highest proportion of CO2 emissions from transport?", "pos": ["the highest proportion of CO2 emissions from transport refers to max(value where indicatorname = 'CO2 emissions from transport (% of total fuel combustion)')"], "neg": ["in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "South Asia is the name of the region; IncomeGroup = 'Low income';", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;", "low-income countries are where the incomegroup = Low income", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "CurrencyUnit = 'Euro';", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "Albania is the name of country where Country = 'Albania'"]}} {"set": {"query": "How many countries in Europe & Central Asia uses Danish krone as its currency? List the full names of those coutnries.", "pos": ["countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname"], "neg": ["national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "middle income group refers to IncomeGroup = 'Low middle income';", "completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'", "Finland is the short name of the country; year 2000 refers to Year = 'YR2000';", "low-income countries are where the incomegroup = Low income", "agricultural land area in sq. km refers value where indicatorname = 'Agricultural land (sq. km)'; Italy refers to countryname = 'Italy'; in 1968 refers to year = '1968'"]}} {"set": {"query": "In Sub-Saharan Africa, how many female out-of-school children of primary school age are there in the country with the higest number of female out-of-school children of primary school age? Indicate the year of when it was recorded.", "pos": ["in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')"], "neg": ["proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'", "note refers to Description; for Australia refers to ShortName = 'Australia'; indicator SP.ADO.TFRT refers to Seriescode = 'SP.ADO.TFRT'", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "CurrencyUnit = 'Euro';", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName", "which country refers to countryname; the highest CO2 emissions refers to max(value where indicatorname = 'CO2 emissions (metric tons per capita)'); in 1960 refers to year = '1970'", "the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'", "with any indicator name implies IndicatorName is not NULL; Year = '1980';", "in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'"]}} {"set": {"query": "What is the ratio between country with the highest number of infant deaths in 1971 and the lowest number of infant deaths in 1971? List the country with the highest number of infant deaths in 1971 and the lowest number of infant deaths in 1971.", "pos": ["ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')"], "neg": ["Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "in 1960 refers to year = '1960'", "the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000", "countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear"]}} {"set": {"query": "How many countries in the North America Region has completed the vital registration?", "pos": ["has completed the vital registration refers to VitalRegistrationComplete = 'Yes'"], "neg": ["ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "Finland is the short name of the country; year 2000 refers to Year = 'YR2000';", "any 3 countries refers to count(shortname)>3", "high income: non-OECD' refer to IncomeGroup;", "Year contains '2005'; series codes contain 'International Monetary Fund'", "number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "Benin is the short name of the country; year 2005 refers to Year = 'YR2005';", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "year 1980 refers to Year = 'YR1980';"]}} {"set": {"query": "On which years did Aruba got a footnote on the series code AG.LND.FRST.K2?", "pos": ["Aruba is the name of country where ShortName = 'Aruba'"], "neg": ["South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "in 1960 refers to year = '1960'", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;", "the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')"]}} {"set": {"query": "List the East Asia & Pacific countries which are under the High income: nonOECD group. Please include their alpha code.", "pos": ["the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'"], "neg": ["countries in Europe & Central Asia refer to region = 'Europe & Central Asia'; uses Danish krone refers to currencyunit = 'Danish krone'; full name refers to longname", "Year contains '2005'; series codes contain 'International Monetary Fund'", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'", "Aruba is the name of country where ShortName = 'Aruba'", "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "year 1980 refers to Year = 'YR1980';", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "From 1960 to 1965 refers to Year between '1960' and '1965'; the lowest value implies MIN(Value); country refers to CountryName;", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'"]}} {"set": {"query": "What's the lastest household survey in Angola and when did it take place?", "pos": ["in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear"], "neg": ["the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "countries refer to Countrycode; low-income group refers to incomegroup = 'Low income'; with notes refers to description IS NOT NULL; series code SM.POP.TOTL refers to Seriescode = 'SM.POP.TOTL'", "completed its external debt reporting refers to ExternalDebtReportingStatus = 'Actual'; in 1980 refers to year = 1980; Land under cereal production value of 3018500 refers to value = 3018500", "Albania is the name of country where Country = 'Albania'", "country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "IncomeGroup = 'Middle income'; Year = 1960; urban population refers to IndicatorName;", "Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;", "agricultural land area in sq. km refers value where indicatorname = 'Agricultural land (sq. km)'; Italy refers to countryname = 'Italy'; in 1968 refers to year = '1968'", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'"]}} {"set": {"query": "Please write down the footnote descriptions of Albania in 1981.", "pos": ["Albania is the name of country where Country = 'Albania'"], "neg": ["the latest trade data refers to LatestTradeData = '2013'; with a series code of \"SP.DYN.CDRT.IN\n\" refers to indicatorcode = 'SP.DYN.CDRT.IN'", "year 1980 refers to Year = 'YR1980';", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "Year = 'YR2000';", "high income: non-OECD' refer to IncomeGroup;", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "low-income countries are where the incomegroup = Low income", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';"]}} {"set": {"query": "List all the country in East Asia & Pacific region that have more than 2000000 urban population in 1970.", "pos": ["country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'"], "neg": ["in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "From 1960 to 1965 refers to Year between '1960' and '1965'; the lowest value implies MIN(Value); country refers to CountryName;", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "indicator Stocks traded, turnover ratio of domestic shares refers to IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'", "CurrencyUnit = 'Euro';", "Aruba is the name of country where ShortName = 'Aruba'", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "countries are the Countrycode; footnote refers to Description = 'Data are classified as official aid'", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'"]}} {"set": {"query": "How many countries using the 1993 System of National Accounts methodology?", "pos": ["use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'"], "neg": ["average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980", "agricultural land area in sq. km refers value where indicatorname = 'Agricultural land (sq. km)'; Italy refers to countryname = 'Italy'; in 1968 refers to year = '1968'", "fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "Benin is the short name of the country; year 2005 refers to Year = 'YR2005';", "South Asia is the name of the region; IncomeGroup = 'Low income';", "proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'", "middle income group refers to IncomeGroup = 'Low middle income';", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "Aruba is the name of country where ShortName = 'Aruba'", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'"]}} {"set": {"query": "Name the country with fastest growth in adjusted net national income in 1980 and state the currency used by this country.", "pos": ["fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;"], "neg": ["Albania is the name of country where Country = 'Albania'", "Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'", "high income: non-OECD' refer to IncomeGroup;", "country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'"]}} {"set": {"query": "How many nations in East Asia and the Pacific have completed their external debt reporting on time?", "pos": ["in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'"], "neg": ["in 1960 refers to year = '1960'", "ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName", "South Asia is the name of the region; IndicatorName = 'Life expectancy at birth, female (years)'; greater than 50 refers to Value>50; DIVIDE(COUNT(CountryCode where IndicatorName = 'Life expectancy at birth, female (years)'; Value>50; Region = 'South Asia'), COUNT(CountryCode where Region = 'South Asia')) as percentage;", "Aruba is the name of country where ShortName = 'Aruba'"]}} {"set": {"query": "List down the top 3 Latin American & Caribbean countries with the highest average value in \"CO2 emissions (kt)\" indicator since 1965. Give their highest value and in what year.", "pos": ["Latin American & Caribbean countries is the name of the region where Region in ('Latin America' , 'Caribbean'); CO2 emissions from gaseous fuel consumption (kt) is the name of indicator where IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)'; average value in CO2 emissions (kt) = DIVIDE(SUM(Value), SUM(IndicatorName = 'CO2 emissions from gaseous fuel consumption (kt)')); Year > 1965"], "neg": ["fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "the average adolescent fertility rate is DIVIDE(SUM(value), SUM(IndicatorName like 'adolescent fertility rate%')); MAX(average adolescent fertility rate)", "indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "middle income group refers to IncomeGroup = 'Low middle income';", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "Countries refer to the ShortName; Latin America & Caribbean is the name of the region", "IndicatorName = 'Death rate, crude (per 1,000 people)'; the highest refers to MAX(Value); from 1960 to 1965 refers to Year between '1960' and '1965'; country refers to CountryName;", "number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'"]}} {"set": {"query": "What is the note for Australia on the indicator SP.ADO.TFRT?", "pos": ["note refers to Description; for Australia refers to ShortName = 'Australia'; indicator SP.ADO.TFRT refers to Seriescode = 'SP.ADO.TFRT'"], "neg": ["proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'", "Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;", "with any indicator name implies IndicatorName is not NULL; Year = '1980';", "IndicatorName = 'International migrant stock, total'; heavily indebted poor countries referred to by its abbreviated 'HIPC' = OtherGroups; MIN(Value);", "Benin is the short name of the country; year 2005 refers to Year = 'YR2005';", "in 1960 refers to year = '1960'", "high income: non-OECD' refer to IncomeGroup;", "number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'"]}} {"set": {"query": "What are the footnote description of Finland in year 2000?", "pos": ["Finland is the short name of the country; year 2000 refers to Year = 'YR2000';"], "neg": ["year 1980 refers to Year = 'YR1980';", "which country refers to countryname; the highest CO2 emissions refers to max(value where indicatorname = 'CO2 emissions (metric tons per capita)'); in 1960 refers to year = '1970'", "long name refers to CountryName; got 3000000 on the indicator Arms exports refers to value where IndicatorName = 'Arms exports (SIPRI trend indicator values)' = 3000000; in 1960 refers to Year = 1960", "Year = 2005; private expenditure on health refers to IndicatorName = 'Out-of-pocket health expenditure (% of private expenditure on health)'; the highest refers to MAX(Value); source refers to Description;", "in 1960 refers to year = '1960'", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'; in the Middle East & North Africa refers to Region = 'Middle East & North Africa'; the highest CO2 emissions from solid fuel consumption in kiloton refers to max(value where IndicatorName = 'CO2 emissions from solid fuel consumption (kt)')", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "described as \"unspecified\" refers to Description = 'Not specified'; full names refers to LongName", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'"]}} {"set": {"query": "How many low income countries are there in South Asia?", "pos": ["South Asia is the name of the region; IncomeGroup = 'Low income';"], "neg": ["fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "South Asia is the name of the region; IncomeGroup = 'Low income';", "the average adolescent fertility rate is DIVIDE(SUM(value), SUM(IndicatorName like 'adolescent fertility rate%')); MAX(average adolescent fertility rate)", "country refers to CountryName;", "Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000", "From 1960 to 1965 refers to Year between '1960' and '1965'; the lowest value implies MIN(Value); country refers to CountryName;"]}} {"set": {"query": "Write down the description and series code of Benin in year 2005.", "pos": ["Benin is the short name of the country; year 2005 refers to Year = 'YR2005';"], "neg": ["indicator Adolescent fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'\n\n", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "fertility rate refers to IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'; lowest refers to MIN(Value); IncomeGroup = 'Low income';", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'", "any 3 countries refers to count(shortname)>3", "from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')", "note refers to Description; for Australia refers to ShortName = 'Australia'; indicator SP.ADO.TFRT refers to Seriescode = 'SP.ADO.TFRT'", "Aruba is the name of country where ShortName = 'Aruba'", "national accounts base year prior to 1980 means before 1980 and refers to NationalAccountsBaseYear<1980;", "subject refers to topic; Austria refers to shortname = 'Austria'"]}} {"set": {"query": "Please list the countries in Latin America & Caribbean with a note on the series code SM.POP.TOTL.", "pos": ["Countries refer to the ShortName; Latin America & Caribbean is the name of the region"], "neg": ["Albania is the name of country where Country = 'Albania'", "what country refers to LongName; have its data estimated based on regression refers to description = 'Estimates are based on regression.'", "has completed the vital registration refers to VitalRegistrationComplete = 'Yes'", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')", "middle income group refers to IncomeGroup = 'Low middle income';", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "from 1975 to 1980 refers to Year between 1975 and 1980; the total amount CO2 emmission in kiloton of the the world refers to sum(value where IndicatorName like 'CO2%'); the world recorded its highest CO2 emmissions refers to max(value where IndicatorName like 'CO2%')", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'"]}} {"set": {"query": "What's the agregation method for the indicator whose value is 133 in 1960 for the Arab World?", "pos": ["in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'"], "neg": ["Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "countries are the Countrycode; footnote refers to Description = 'Data are classified as official aid'", "From 1960 to 1965 refers to Year between '1960' and '1965'; the lowest value implies MIN(Value); country refers to CountryName;", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "middle income group refers to IncomeGroup = 'Low middle income';", "long name refers to CountryName; got 3000000 on the indicator Arms exports refers to value where IndicatorName = 'Arms exports (SIPRI trend indicator values)' = 3000000; in 1960 refers to Year = 1960", "indicator Stocks traded, turnover ratio of domestic shares refers to IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'", "Albania is the name of country where Country = 'Albania'", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'", "Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000"]}} {"set": {"query": "What is the name of the country with the highest percentage of rural population in the overall total population? Indicate the rural population percentage of total population.", "pos": ["the highest percentage of rural population in the overall total population refers to max(value where indicatorname = 'Rural population (% of total population)')"], "neg": ["the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "full name refers to longname; the countries in South Asia refer to region = 'South Asia'; belongs to the low income group refers to incomegroup = 'Low income'", "low-income countries are where the incomegroup = Low income", "average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980", "Countries refer to the ShortName; Latin America & Caribbean is the name of the region", "with any indicator name implies IndicatorName is not NULL; Year = '1980';", "Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "subject refers to topic; Austria refers to shortname = 'Austria'", "Sudan is the name of the country; Periodicity = 'Annual'; Year = '1961'"]}} {"set": {"query": "What is the average number of passengers carried via air transport per year by Bulgaria between 1970 to 1980? Indicate the country's system of trade.", "pos": ["average number refers to avg(value); passengers carried via air transport per year refers to value where IndicatorName = 'Air transport, passengers carried'; by Bulgaria refers to CountryName = 'Bulgaria'; between 1970 to 1980 refers to Year between 1970 and 1980"], "neg": ["indicator for Adolescent fertility rate is the highest refers to max(value where IndicatorName = 'Adolescent fertility rate (births per 1,000 women ages 15-19)'); in 1960 refers to year = '1960'", "fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "number of infant deaths refers to IndicatorName = 'Number of infant deaths'; in year 1965 refers to Year = '1965'; full name is Islamic State of Afghanistan refers to LongName = 'Islamic State of Afghanistan'", "use the 1993 System of National Accounts methodology refers to SystemOfNationalAccounts = '1993 System of National Accounts methodology.'", "indicator Stocks traded, turnover ratio of domestic shares refers to IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'", "which country refers to countryname; the highest CO2 emissions refers to max(value where indicatorname = 'CO2 emissions (metric tons per capita)'); in 1960 refers to year = '1970'", "Latin American & Carribbean is the name of the region; poor countries refers to IncomeGroup = 'Low income';", "in East Asia and the Pacific refers to region = 'East Asia & Pacific'; have completed their external debt reporting on time refers to ExternalDebtReportingStatus = 'Estimate'", "South Asia is the name of the region; IncomeGroup = 'Low income';", "Net bilateral aid flows from DAC donors, Sweden (current US$) is the name of indicator where IndicatorName = 'Net bilateral aid flows from DAC donors, Sweden (current US$)'; Year = 1970; Value > 570,000"]}} {"set": {"query": "Please list the countries under the lending category of the International Development Associations and have a external debt reporting finished by estimation.", "pos": ["countries refer to the ShortName; International Development Associations refers to lendingcategory = 'IDA'; have a external debt reporting finished by estimation refers to ExternalDebtReportingStatus = 'Estimate'"], "neg": ["indicator Stocks traded, turnover ratio of domestic shares refers to IndicatorName = 'Stocks traded, turnover ratio of domestic shares (%)'", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'", "Countries are the Countrycode; International Development Associations refers to lendingcategory = 'IDA'", "Mobile Cellular Subscriptions refers to indicatorname = 'Mobile cellular subscriptions'; Brazil refers to CountryName = 'Brazil'", "full name refers to longname", "in Angola refers to ShortName = 'Angola'; when refers to PppSurveyYear", "the East Asia & Pacific countries are where Region = 'East Asia & Pacific'; High income: nonOECD group is where IncomeGroup = 'High income: nonOECD'", "in Sub-Saharan Africa refers to Region = 'Sub-Saharan Africa'; the higest number of female out-of-school children of primary school age refers to max(value where IndicatorName = 'Out-of-school children of primary school age, female (number)')", "Benin is the short name of the country; year 2005 refers to Year = 'YR2005';", "long name refers to CountryName; got 3000000 on the indicator Arms exports refers to value where IndicatorName = 'Arms exports (SIPRI trend indicator values)' = 3000000; in 1960 refers to Year = 1960"]}} {"set": {"query": "What is the percentage of countries in the Middle East and North Africa that have finished reporting on their real external debt?", "pos": ["percentage = divide(count(countrycode where\u00a0 ExternalDebtReportingStatus = 'Actual' ), count(countrycode))*100%; in the Middle East and North Africa refers to region = 'Middle East & North Africa'; have finished reporting on their real external debt refers to ExternalDebtReportingStatus = 'Actual'"], "neg": ["ratio = divide(max(value where indicatorname = 'Number of infant deaths' and year = '1971'), min(value where indicatorname = 'Number of infant deaths' and year = '1971')); the highest number of infant deaths in 1971 refers to max(value where indicatorname = 'Number of infant deaths' and year = '1971'); the lowest number of infant deaths in 1971 refers to min(value where indicatorname = 'Number of infant deaths' and year = '1971')", "in 1960 refers to Year = 1960; for the Arab World refers to CountryName = 'Arab World'", "uses the 1968 System of National Accounts methodology refers to SystemOfNationalAccounts = '1968 System of National Accounts methodology'", "note refers to Description; for Australia refers to ShortName = 'Australia'; indicator SP.ADO.TFRT refers to Seriescode = 'SP.ADO.TFRT'", "Aruba is the name of country where ShortName = 'Aruba'", "narratives is Description; The Bahamas is the name of the country where Country = 'The Bahamas'", "proportion = divide(count(countrycode where incomegroup = 'Low income'), count(countrycode))*100%; Sub-Saharan Africa's countries refers to region = 'Sub-Saharan Africa'; have lower middle incomes refers to incomegroup = 'Low income'", "country refers to LongName; have more than 2000000 urban population refers to value where indicatorname = 'Urban population'>2000000; in 1970 refers to year = '1970'", "fastest growth refers to MAX(Value); IndicatorName = 'Adjusted net national income (annual % growth)'; Year = '1980'; currency refers to CurrencyUnit;", "which country refers to countryname; the lowest percentage of arable land refers to min(value where indicatorname = 'Arable land (% of land area)')"]}}