query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | 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)); |
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; | 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'; |
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; | lowest star rating refers to MIN(StarRating); "Too spicy!" review refers to Review = 'Too Spicy!'; |
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; | 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%'; |
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); |
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; | FALSE; |
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; | 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'; |
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; | precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express'; |
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; | full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate); |
For the root beer brand with the most 5 star ratings, what is the name of the brewery? | 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')); |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3; | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 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'; |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3; | percentage = 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'; |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3; | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 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'; |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3; | 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); |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3; | 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'; |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3; | visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0); |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3; | precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express'; |
Please list the dates on which a male customer has purchased more than 3 root beers. | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3; | in bottles refers to ContainerType = 'Bottle'; location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243; |
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? | 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'; | stars refers to StarRating; Frostie refers to BrandName = 'Frostie'; |
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? | 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; |
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? | 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'; | visa card refers to CreditCardType = 'Visa'; percentage = MULTIPLY(DIVIDE(SUM(CreditCardType = 'Visa'), COUNT(TransactionID)), 1.0); |
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? | 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'; | Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20'; |
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? | 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'; | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; |
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? | 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; |
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? | 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'; | AJ Stephans refers to BreweryName = 'AJ Stephans Beverages'; |
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? | 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'; | brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07'; |
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? | 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'; | Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08'; |
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? | 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'; | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; |
Between Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer? | 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)); | transaction no. refers to TransactionID; TransactionID = 103545; |
Between Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer? | 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; 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; |
Between Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer? | 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; |
Between Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer? | 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)); | California refers to State = 'CA'; |
Between Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer? | 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)); | 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 Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer? | 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)); | 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, which location sold the most Dog n Suds root beer? | 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)); | 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, which location sold the most Dog n Suds root beer? | 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; |
Between Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer? | 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)); | Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08'; |
Between Sac State Union and Sac State American River Courtyard, which location sold the most Dog n Suds root beer? | 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)); | 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'; |
List out the root beers bought by Tim Ocel and Dawn Childress. | 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'; |
List out the root beers bought by Tim Ocel and Dawn Childress. | FALSE; | FALSE; |
List out the root beers bought by Tim Ocel and Dawn Childress. | FALSE; | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; |
List out the root beers bought by Tim Ocel and Dawn Childress. | FALSE; | 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'; |
List out the root beers bought by Tim Ocel and Dawn Childress. | FALSE; | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); |
List out the root beers bought by Tim Ocel and Dawn Childress. | 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)); |
List out the root beers bought by Tim Ocel and Dawn Childress. | 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'; |
List out the root beers bought by Tim Ocel and Dawn Childress. | FALSE; | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; |
List out the root beers bought by Tim Ocel and Dawn Childress. | FALSE; | email address refers to Email; transaction 100016 refers to TransactionID = 100016; |
List out the root beers bought by Tim Ocel and Dawn Childress. | FALSE; | Sac State Union refers to LocationName = 'Sac State Union'; |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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'; | lowest star rating refers to MIN(StarRating); "Too spicy!" review refers to Review = 'Too Spicy!'; |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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'; |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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'; | Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08'; |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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'; |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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'; | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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'; | name of the customer = First, Last; 5-star review refers to StarRating = 5; |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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'; | 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'; |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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'; | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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'; | 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’t contain honey refers to Honey = 'FALSE' |
Among all the root beers sold in 2014, what is the percentage of the root beers produced by the brewery AJ Stephans Beverages? | 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 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | 5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%'; |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | 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'; |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | 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; |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | 3 star rating refers to StarRating = 3; Frostie refers to 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'; |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | 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'; |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear); |
What is the description of the root beer brand A&W? | A&W refers to BrandName = 'A&W'; | root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5)); |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; | 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)); |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; | 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'; |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; | 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'; |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; | 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); |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; | type of card refers to CreditCardType; |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; | brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5)); |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; | transaction no. refers to TransactionID; TransactionID = 103545; |
For the customer who leaves the review content of "Tastes like Australia.", when was his/her first purchase date? | 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)); |
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. | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); | 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'; |
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. | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); | in bottles refers to ContainerType = 'Bottle'; location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243; |
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. | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); | FALSE; |
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. | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; |
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. | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); | 3 star rating refers to StarRating = 3; Frostie refers to 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'; |
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. | 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; 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)); |
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. | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); | AJ Stephans refers to BreweryName = 'AJ Stephans Beverages'; |
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. | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); | root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID)); |
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. | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); | full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union'; |
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. | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); |
How many transactions have been made to purchase a root beer brand from California? | California refers to State = 'CA'; | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; |
How many transactions have been made to purchase a root beer brand from California? | California refers to State = 'CA'; | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; |
How many transactions have been made to purchase a root beer brand from California? | California refers to State = 'CA'; | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; |
How many transactions have been made to purchase a root beer brand from California? | California refers to State = 'CA'; | California refers to State = 'CA'; |
How many transactions have been made to purchase a root beer brand from California? | 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'; |
How many transactions have been made to purchase a root beer brand from California? | California refers to State = 'CA'; | 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); |
How many transactions have been made to purchase a root beer brand from California? | 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'; |
How many transactions have been made to purchase a root beer brand from California? | California refers to State = 'CA'; | 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'; |
How many transactions have been made to purchase a root beer brand from California? | California refers to State = 'CA'; | name of the customer = First, Last; 5-star review refers to StarRating = 5; |
How many transactions have been made to purchase a root beer brand from California? | California refers to State = 'CA'; | transaction no. refers to TransactionID; TransactionID = 103545; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.