Chinastark/bird_dataset huggingface dataset:
Database: address
Note: East Setauket is the city;
Question: What are the bad aliases of the postal points from East Setauket?
SQL: SELECT avoid.bad_alias FROM avoid INNER JOIN zip_data ON avoid.zip_code = zip_data.zip_code WHERE zip_data.city = 'East Setauket'
Database: address
Note: population of Wilcox county in 2010 refers to SUM(population_2010) where county = 'WILCOX';
Question: What was the population of Wilcox County in 2010?
SQL: SELECT sum(zip_data.population_2010) FROM country INNER JOIN zip_data ON country.zip_code = zip_data.zip_code WHERE country.county = 'WILCOX'
Database: address
Note: the code of the area refers to area_code; area with the largest Asian population refers to MAX(asian_population);
Question: What is the code of the area with the largest Asian population?
SQL: SELECT area_code.zip_code FROM area_code INNER JOIN zip_data ON area_code.zip_code = zip_data.zip_code GROUP BY zip_data.asian_population ORDER BY zip_data.asian_population DESC LIMIT 1
Database: address
Note: micro cbsa refers to cbsa_type = 'Micro';
Question: List all the cities with micro CBSA.
SQL: SELECT zip_data.city FROM cbsa INNER JOIN zip_data ON cbsa.cbsa = zip_data.cbsa WHERE cbsa.cbsa_type = 'Micro'
Database: address
Note: the most counties refer to MAX(COUNT(county));
Question: What is the name of the state with the most counties?
SQL: SELECT state.name FROM state INNER JOIN country ON state.abbreviation = country.state GROUP BY country.state ORDER BY count(country.county) DESC LIMIT 1
Database: address
Question: What is the number of households in the "FL-10" district?
SQL: SELECT sum(CASE WHEN zip_congress.district = 'FL-10' THEN 1 ELSE 0 END) FROM zip_data INNER JOIN zip_congress ON zip_data.zip_code = zip_congress.zip_code
Database: address
Note: average household income refers to avg_income_per_household; city known as "Danzig" refers to bad_alias = 'Danzig';
Question: What is the average household income in the city known as "Danzig"?
SQL: SELECT zip_data.avg_income_per_household FROM avoid INNER JOIN zip_data ON avoid.zip_code = zip_data.zip_code WHERE avoid.bad_alias = 'Danzig'
Database: address
Note: above-average female population refers to female_population > DIVIDE(SUM(female_population), COUNT(state));
Question: What are the states with an above-average female population?
SQL: SELECT DISTINCT zip_data.state FROM state INNER JOIN zip_data ON state.abbreviation = zip_data.state WHERE zip_data.female_population > ( SELECT avg(female_population) FROM zip_data )
Database: address
Note: DIVIDE(SUM(households where county = 'CORYELL'), SUM(households)) as percentage;
Question: What percentage of households are in "Coroyell" out of its state?
SQL: SELECT cast(sum(CASE WHEN country.county = 'CORYELL' THEN zip_data.households ELSE 0 END) AS REAL) * 100 / sum(zip_data.households) FROM country INNER JOIN zip_data ON country.zip_code = zip_data.zip_code
Database: address
Note: name of the cbsa officer refers to cbsa_name; position of the cbsa officer refers to cbsa_type;
Question: What is the name and the position of the CBSA officer in the city of Cabo Rojo?
SQL: SELECT cbsa.cbsa_name, cbsa.cbsa_type FROM cbsa INNER JOIN zip_data ON cbsa.cbsa = zip_data.cbsa WHERE zip_data.city = 'Cabo Rojo' GROUP BY cbsa.cbsa_name, cbsa.cbsa_type
Database: address
Question: Indicate the country name of the city Las Marias.
SQL: SELECT country.county FROM country INNER JOIN zip_data ON country.zip_code = zip_data.zip_code WHERE zip_data.city = 'Las Marias'
Database: address
Question: How many cities does congressman Pierluisi Pedro represent?
SQL: SELECT count(DISTINCT zip_data.city) FROM zip_data INNER JOIN zip_congress ON zip_data.zip_code = zip_congress.zip_code INNER JOIN congress ON zip_congress.district = congress.cognress_rep_id WHERE congress.first_name = 'Pierluisi' AND congress.last_name = 'Pedro'
Database: address
Question: Provide the names of bad aliases in the city of Aguadilla.
SQL: SELECT avoid.bad_alias FROM avoid INNER JOIN zip_data ON avoid.zip_code = zip_data.zip_code WHERE zip_data.city = 'Aguadilla'
Database: address
Note: name of congressman implies full name which refers to first_name, last_name; Guanica is the city;
Question: Indicate the name of the congressman represent in Guanica.
SQL: SELECT congress.first_name, congress.last_name FROM zip_data INNER JOIN zip_congress ON zip_data.zip_code = zip_congress.zip_code INNER JOIN congress ON zip_congress.district = congress.cognress_rep_id WHERE zip_data.city = 'Guanica'
Database: address
Note: the most bad aliases refer to MAX(COUNT(bad_alias));
Question: Which state has the most bad aliases?
SQL: SELECT zip_data.state FROM avoid INNER JOIN zip_data ON avoid.zip_code = zip_data.zip_code GROUP BY zip_data.state ORDER BY count(avoid.bad_alias) DESC LIMIT 1
Database: address
Note: SUBTRACT(COUNT(bad_alias where city = 'Aguada'), COUNT(bad_alias where city = 'Aguadilla'));
Question: What is the difference in the number of bad alias between Aguada city and Aguadilla city?
SQL: SELECT count(CASE WHEN zip_data.city = 'Aguada' THEN avoid.bad_alias ELSE NULL END) - count(CASE WHEN zip_data.city = 'Aguadilla' THEN avoid.bad_alias ELSE NULL END) AS difference FROM avoid INNER JOIN zip_data ON avoid.zip_code = zip_data.zip_code
Database: address
Note: greater than 50 cbsa officers of metro type refers to COUNT(cbsa_type = 'Metro') > 50;
Question: Which state has greater than 50 CBSA officers of metro type?
SQL: SELECT zip_data.state FROM cbsa INNER JOIN zip_data ON cbsa.cbsa = zip_data.cbsa WHERE cbsa.cbsa_type = 'Metro' GROUP BY zip_data.state HAVING count(cbsa.cbsa_type) > 50
Database: address
Note: population of Arecibo in 2020 refers to SUM(population_2020) where county = 'ARECIBO';
Question: Provide the population of Arecibo in 2020.
SQL: SELECT sum(zip_data.population_2020) FROM country INNER JOIN zip_data ON country.zip_code = zip_data.zip_code WHERE country.county = 'ARECIBO'
Database: address
Note: population greater than 10000 in 2010 refers to population_2010 > 10000;
Question: Indicate the name of the country with a population greater than 10000 in 2010.
SQL: SELECT DISTINCT country.county FROM country INNER JOIN zip_data ON country.zip_code = zip_data.zip_code WHERE zip_data.population_2010 > 10000
Database: address
Note: the largest number of households refers to MAX(households);
Question: Name the country with the largest number of households in a residential area.
SQL: SELECT country.county FROM country INNER JOIN zip_data ON country.zip_code = zip_data.zip_code GROUP BY country.county ORDER BY zip_data.households DESC LIMIT 1
Database: address
Note: DIVIDE(SUM(households > 10000), SUM(households)) as percentage;
Question: Calculate the percentage of households in residential areas of countries over 10000.
SQL: SELECT cast(count(CASE WHEN zip_data.households > 10000 THEN country.zip_code ELSE NULL END) AS REAL) * 100 / count(country.zip_code) FROM country INNER JOIN zip_data ON country.zip_code = zip_data.zip_code
Database: address
Note: DIVIDE(COUNT(type = 'Post Office' ), COUNT(type)) as percentage where county = 'SAINT CROIX';
Question: Among the types of postal points in Saint Croix, what percentage of postal points is the post office?
SQL: SELECT cast(count(CASE WHEN zip_data.type = 'Post Office' THEN country.zip_code ELSE NULL END) AS REAL) * 100 / count(country.zip_code) FROM country INNER JOIN zip_data ON country.zip_code = zip_data.zip_code WHERE country.county = 'SAINT CROIX'
Database: address
Note: postal point type of unique postal office refers to type = 'Unique Post Office';
Question: Among the area code 787, list the country of the cities with a postal point type of unique postal office.
SQL: SELECT DISTINCT country.county FROM area_code INNER JOIN country ON area_code.zip_code = country.zip_code INNER JOIN zip_data ON area_code.zip_code = zip_data.zip_code WHERE area_code.area_code = '787' AND zip_data.type = 'Unique Post Office'
Database: address
Question: What is the elevation of the city with the alias East Longmeadow?
SQL: SELECT zip_data.elevation FROM ALIAS INNER JOIN zip_data ON ALIAS.zip_code = zip_data.zip_code WHERE ALIAS.alias = 'East Longmeadow'
Database: address
Note: do not implement daylight savings refers to daylight_savings = 'No';
Question: In cities that do not implement daylight savings, what is the total number of cities?
SQL: SELECT count(area_code.area_code) FROM area_code INNER JOIN zip_data ON area_code.zip_code = zip_data.zip_code WHERE zip_data.daylight_savings = 'No'
Database: address
Question: Give the country and area code of the city with zip code 1116.
SQL: SELECT country.county, area_code.area_code FROM area_code INNER JOIN country ON area_code.zip_code = country.zip_code WHERE area_code.zip_code = 1116
Database: address
Question: Among the cities with alias St Thomas, provide the type of postal point for each city.
SQL: SELECT DISTINCT zip_data.type FROM ALIAS INNER JOIN zip_data ON ALIAS.zip_code = zip_data.zip_code WHERE ALIAS.alias = 'St Thomas'
Database: address
Note: the county of Noble is located in the state of Oklahoma;
Question: List down the names of the cities belonging to Noble, Oklahoma.
SQL: SELECT zip_data.city FROM state INNER JOIN country ON state.abbreviation = country.state INNER JOIN zip_data ON country.zip_code = zip_data.zip_code WHERE state.name = 'Oklahoma' AND country.county = 'NOBLE'
Database: address
Note: the largest water area refers to MAX(water_area);
Question: Among the listed cities, provide the area code of the city with the largest water area.
SQL: SELECT area_code.area_code FROM area_code INNER JOIN zip_data ON area_code.zip_code = zip_data.zip_code WHERE zip_data.water_area = ( SELECT max(water_area) FROM zip_data )
Database: address
Note: the highest population in year 2020 refers to MAX(population_2020);
Question: Provide the alias of the city with the highest population in year 2020.
SQL: SELECT ALIAS.alias FROM ALIAS INNER JOIN zip_data ON ALIAS.zip_code = zip_data.zip_code WHERE zip_data.population_2020 = ( SELECT max(population_2020) FROM zip_data )
Database: address
Note: the county of Hampden is located in the state of Massachusetts.;
Question: What is the elevation of the city belonging to Hampden, Massachusetts?
SQL: SELECT zip_data.elevation FROM state INNER JOIN country ON state.abbreviation = country.state INNER JOIN zip_data ON country.zip_code = zip_data.zip_code WHERE state.name = 'Massachusetts' AND country.county = 'HAMPDEN' GROUP BY zip_data.elevation
Database: address
Note: the highest Hispanic population refers to MAX(hispanic_population);
Question: List the area code of the city with the highest Hispanic population.
SQL: SELECT area_code.area_code FROM area_code INNER JOIN zip_data ON area_code.zip_code = zip_data.zip_code WHERE zip_data.hispanic_population = ( SELECT max(hispanic_population) FROM zip_data )
Database: address
Note: Asian population of 7 refers to asian_population = 7;
Question: Give the alias of the cities with an Asian population of 7.
SQL: SELECT ALIAS.alias FROM ALIAS INNER JOIN zip_data ON ALIAS.zip_code = zip_data.zip_code WHERE zip_data.asian_population = 7
Database: address
Note: AVG(white_population) where area_code = 920;
Question: What is the average of the white population in the cities with area code 920?
SQL: SELECT avg(zip_data.white_population) FROM area_code INNER JOIN zip_data ON area_code.zip_code = zip_data.zip_code WHERE area_code.area_code = 920
Database: address
Note: DIVIDE(COUNT(county_fips < 20), COUNT(county_fips)) as percentage where alias = 'Ponce';
Question: Among the cities with alias Ponce, what is the percentage of cities with a country level FIPS code of less than 20?
SQL: SELECT cast(count(CASE WHEN zip_data.county_fips < 20 THEN zip_data.zip_code ELSE NULL END) AS REAL) * 100 / count(zip_data.zip_code) FROM ALIAS INNER JOIN zip_data ON ALIAS.zip_code = zip_data.zip_code WHERE ALIAS.alias = 'Ponce'
Database: address
Note: population_2020 > MULTIPLY(0.97, AVG(population_2020));
Question: List down the country of the cities with a population greater than 97% of the average population of all countries in 2020.
SQL: SELECT country.county FROM country INNER JOIN zip_data ON country.zip_code = zip_data.zip_code WHERE zip_data.population_2020 > 0.97 * ( SELECT avg(population_2020) FROM zip_data )
Database: address
Note: postal points refer to zip_code;
Question: Count the number of postal points in the district represented by Kirkpatrick Ann.
SQL: SELECT count(zip_congress.zip_code) FROM congress INNER JOIN zip_congress ON congress.cognress_rep_id = zip_congress.district WHERE congress.first_name = 'Kirkpatrick' AND congress.last_name = 'Ann'
Database: address
Note: coordinates refer to latitude and longitude; under Allentown-Bethlehem-Easton, PA-NJ refers to cbsa_name = 'Allentown-Bethlehem-Easton, PA-NJ';
Question: Provide the zip codes and coordinates of the postal points under Allentown-Bethlehem-Easton, PA-NJ.
SQL: SELECT zip_data.zip_code, zip_data.latitude, zip_data.longitude FROM cbsa INNER JOIN zip_data ON cbsa.cbsa = zip_data.cbsa WHERE cbsa.cbsa_name = 'Allentown-Bethlehem-Easton, PA-NJ'
Database: address
Note: latitude and longitude coordinates can be used to identify the location;
Question: Provide the zip codes, cities, and locations of the postal points that have Shared Reshipper as a bad alias.
SQL: SELECT avoid.zip_code, zip_data.city, zip_data.latitude, zip_data.longitude FROM avoid INNER JOIN zip_data ON avoid.zip_code = zip_data.zip_code WHERE avoid.bad_alias = 'Shared Reshipper'
Database: address
Note: Who are the congress representatives refer to first_name, last_name; Garfield is the city;
Question: Who are the congress representatives of the postal points in Garfield?
SQL: SELECT congress.first_name, congress.last_name FROM zip_data INNER JOIN zip_congress ON zip_data.zip_code = zip_congress.zip_code INNER JOIN congress ON zip_congress.district = congress.cognress_rep_id WHERE zip_data.city = 'Garfield'
Database: address
Note: 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';
Question: Count the number of postal points under New York-Newark-Jersey City, NY-NJ-PA.
SQL: SELECT count(zip_data.zip_code) FROM cbsa INNER JOIN zip_data ON cbsa.cbsa = zip_data.cbsa WHERE cbsa.cbsa_name = 'New York-Newark-Jersey City, NY-NJ-PA'
Database: address
Note: postal points refer to zip_code; Puerto Rico refers to state = 'Puerto Rico';
Question: How many postal points are there under the congress representative in Puerto Rico?
SQL: SELECT count(zip_congress.zip_code) FROM congress INNER JOIN zip_congress ON congress.cognress_rep_id = zip_congress.district WHERE congress.state = 'Puerto Rico'
Database: address
Note: postal points refer to zip_code; West Virginia is the name of the state, in which name = 'West Virginia';
Question: Describe the number of postal points and the countries in West Virginia.
SQL: SELECT count(DISTINCT country.zip_code), count(DISTINCT country.county) FROM state INNER JOIN country ON state.abbreviation = country.state WHERE state.name = 'West Virginia'
Database: address
Note: community post office type refers to type = 'Community Post Office'; elevation above 6000 refers to elevation > 6000;
Question: Provide the zip codes and area codes of the postal points with the community post office type at the elevation above 6000.
SQL: SELECT area_code.zip_code, area_code.area_code FROM area_code INNER JOIN zip_data ON area_code.zip_code = zip_data.zip_code WHERE zip_data.type = 'Community Post Office ' AND zip_data.elevation > 6000
Database: address
Note: postal points refer to zip_code; Mississippi is the name of the state, in which name = 'Mississippi';
Question: How many postal points are there under the congress representative from the House of Representatives in Mississippi?
SQL: SELECT count(zip_congress.zip_code) FROM congress INNER JOIN zip_congress ON congress.cognress_rep_id = zip_congress.district WHERE congress.state = 'Mississippi'
Database: address
Note: congress representatives' IDs refer to cid; East Springfield is the city;
Question: Provide the congress representatives' IDs of the postal points in East Springfield.
SQL: SELECT zip_congress.district FROM zip_data INNER JOIN zip_congress ON zip_data.zip_code = zip_congress.zip_code WHERE zip_data.city = 'East Springfield'
Database: address
Note: cbsa officer refers to cbsa_name; the highest number of employees refers to MAX(employees);
Question: Who is the CBSA officer of the post point in the area with the highest number of employees?
SQL: SELECT cbsa.cbsa_name FROM cbsa INNER JOIN zip_data ON cbsa.cbsa = zip_data.cbsa WHERE zip_data.employees = ( SELECT max(employees) FROM zip_data )
Database: address
Note: 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';
Question: How many postal points with unique post office types are there in Ohio?
SQL: SELECT count(zip_data.zip_code) FROM state INNER JOIN zip_data ON state.abbreviation = zip_data.state WHERE state.name = 'Ohio' AND zip_data.type = 'Unique Post Office'
Database: address
Note: DIVIDE(SUM(total_beneficiaries), COUNT(zip_code)) where name = 'Guam';
Question: Calculate the average number of beneficiaries per postal point in Guam.
SQL: SELECT cast(sum(zip_data.total_beneficiaries) AS REAL) / count(zip_data.zip_code) FROM state INNER JOIN zip_data ON state.abbreviation = zip_data.state WHERE state.name = 'Guam'
Database: address
Note: DIVIDE(COUNT(party = 'Democrat'), COUNT(congress_rep_id)) as percentage; postal points refer to zip_code; state = 'Hawaii';
Question: Calculate the percentage of congress representatives from the Democrat party. Among them, how many postal points are in the Hawaii state?
SQL: SELECT cast(sum(CASE WHEN congress.party = 'Democrat' THEN 1 ELSE 0 END) AS REAL) * 100 / count(*), sum(CASE WHEN congress.state = 'Hawaii' THEN 1 ELSE 0 END) FROM congress INNER JOIN zip_congress ON congress.cognress_rep_id = zip_congress.district
Database: beer_factory
Note: name of the root beer brand refers to brandname; longest history refers to MIN(firstbrewedyear);
Question: What is the name of the root beer brand that has the longest history?
SQL: SELECT brandname FROM rootbeerbrand WHERE firstbrewedyear = ( SELECT min(firstbrewedyear) FROM rootbeerbrand )
Database: beer_factory
Note: North America refers to country = 'United states'; North America is the name of continent where country = 'United states' is located;
Question: How many breweries are located in North America?
SQL: SELECT count(brandid) FROM rootbeerbrand WHERE country = 'United States'
Database: beer_factory
Note: name of the root beer brand refers to brandname; advertised on facebook refers to facebookpage IS not NULL;
Question: Please list the names of all the root beer brands that are advertised on facebook.
SQL: SELECT brandname FROM rootbeerbrand WHERE facebookpage IS NOT NULL
Database: beer_factory
Note: name of the root beer brand refers to brandname; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(currentretailprice, wholesalecost));
Question: What is the name of the root beer brand with the lowest unit profit available to wholesalers?
SQL: SELECT brandname FROM rootbeerbrand ORDER BY currentretailprice - wholesalecost LIMIT 1
Database: beer_factory
Note: A&W refers to brandname = 'A&W';
Question: What is the description of the root beer brand A&W?
SQL: SELECT description FROM rootbeerbrand WHERE brandname = 'A&W'
Database: beer_factory
Note: AJ Stephans refers to breweryname = 'AJ Stephans Beverages';
Question: In which city is the brewery AJ Stephans Beverages located?
SQL: SELECT city FROM rootbeerbrand WHERE breweryname = 'AJ Stephans Beverages'
Database: beer_factory
Note: in July, 2014 refers to SUBSTR(transactiondate, 1, 4) = '2014' AND SUBSTR(transactiondate, 6, 2) = '07';
Question: How many transactions had Frank-Paul Santangelo made in July, 2014?
SQL: SELECT count(customers.customerid) FROM customers INNER JOIN `transaction` ON customers.customerid = transaction.customerid WHERE customers.first = 'Frank-Paul' AND customers.last = 'Santangelo' AND strftime('%Y-%m', transaction.transactiondate) = '2014-07'
Database: beer_factory
Note: in July, 2014 refers to SUBSTR(transactiondate, 1, 4) = '2014' AND SUBSTR(transactiondate, 6, 2) = '07'; male customer refers to gender = 'M';
Question: Among the transactions made in July, 2014, how many of them were made by a male customer?
SQL: SELECT count(customers.customerid) FROM customers INNER JOIN `transaction` ON customers.customerid = transaction.customerid WHERE customers.gender = 'M' AND strftime('%Y-%m', transaction.transactiondate) = '2014-07'
Database: beer_factory
Note: 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';
Question: 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?
SQL: SELECT count(customers.customerid) FROM customers INNER JOIN `transaction` ON customers.customerid = transaction.customerid WHERE customers.subscribedtoemaillist = 'TRUE' AND transaction.creditcardtype = 'Visa' AND strftime('%Y-%m', transaction.transactiondate) = '2014-07'
Database: beer_factory
Note: full name = first, last; made the most transactions refers to MAX(COUNT(transactionid)); in August, 2014 refers to SUBSTR(transactiondate, 1, 4) = '2014' AND SUBSTR(transactiondate, 6, 2) = '08';
Question: What is the full name of the customer that had made the most transactions in August, 2014?
SQL: SELECT customers.first, customers.last FROM customers INNER JOIN `transaction` ON customers.customerid = transaction.customerid WHERE strftime('%Y-%m', transaction.transactiondate) = '2014-08' GROUP BY customers.customerid ORDER BY count(transaction.customerid) DESC LIMIT 1
Database: beer_factory
Note: brands of the root beer refers to brandname; purchased on 2014/7/7 refers to transactiondate = '2014-07-07';
Question: Please list the brands of all the root beer that Frank-Paul Santangelo had purchased on 2014/7/7.
SQL: SELECT DISTINCT rootbeerbrand.brandname FROM customers INNER JOIN `transaction` ON customers.customerid = transaction.customerid INNER JOIN rootbeer ON transaction.rootbeerid = rootbeer.rootbeerid INNER JOIN rootbeerbrand ON rootbeer.brandid = rootbeerbrand.brandid WHERE customers.first = 'Frank-Paul' AND customers.last = 'Santangelo' AND transaction.transactiondate = '2014-07-07'
Database: beer_factory
Note: on 2014/7/7 refers to transactiondate = '2014-07-07'; in cans refers to containertype = 'Can';
Question: Of the 4 root beers that Frank-Paul Santangelo purchased on 2014/7/7, how many of them were in cans?
SQL: SELECT count(customers.customerid) FROM customers INNER JOIN `transaction` ON customers.customerid = transaction.customerid INNER JOIN rootbeer ON transaction.rootbeerid = rootbeer.rootbeerid WHERE customers.first = 'Frank-Paul' AND customers.last = 'Santangelo' AND transaction.transactiondate = '2014-07-07' AND rootbeer.containertype = 'Can'
Database: beer_factory
Note: Bulldog refers to brandname = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(transactiondate, 1, 4) = '2014' AND SUBSTR(transactiondate, 6, 2) = '08';
Question: How many root beers of the Bulldog were purchased in August, 2014?
SQL: SELECT count(rootbeer.brandid) FROM rootbeer INNER JOIN `transaction` ON rootbeer.rootbeerid = transaction.rootbeerid INNER JOIN rootbeerbrand ON rootbeer.brandid = rootbeerbrand.brandid WHERE transaction.transactiondate LIKE '2014-08%' AND rootbeerbrand.brandname = 'Bulldog'