query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
How many root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; |
How many root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; | 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'; |
How many root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; | 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'; |
How many root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; |
How many root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; |
How many root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; | 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'; |
How many root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; | 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 root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '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'; |
How many root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; | 5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%'; |
How many root beers did Tom Hanks purchase between 2015 to 2016? | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; | Australia refers to Country = 'Australia'; |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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%'; | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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 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)); |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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'; |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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%'; | 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')); |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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%'; | root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID)); |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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%'; | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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%'; | 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' |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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 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'; |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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%'; | most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31'; |
Tally the email addresses and phone numbers of customers from Sacramento who gave a star rating of more than 3 in 2014. | 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%'; | precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express'; |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | 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)); |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; | California refers to State = 'CA'; |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; | FALSE; |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = '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%'; |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; | 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'; |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; | name of the customer = First, Last; 5-star review refers to StarRating = 5; |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; | most common refers to MAX(COUNT(StarRating)); containing corn syrup refers to CornSyrup = 'TRUE'; |
Among all the root beers purchased by Frank-Paul Santangelo, how many of them were non-sweetened? | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; | full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union'; |
Among the transactions made in July, 2014, how many of them were made by a male customer? | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; |
Among the transactions made in July, 2014, how many of them were made by a male customer? | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; | root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID)); |
Among the transactions made in July, 2014, how many of them were made by a male customer? | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; | full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union'; |
Among the transactions made in July, 2014, how many of them were made by a male customer? | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; | 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; |
Among the transactions made in July, 2014, how many of them were made by a male customer? | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; | stars refers to StarRating; Frostie refers to BrandName = 'Frostie'; |
Among the transactions made in July, 2014, how many of them were made by a male customer? | 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; |
Among the transactions made in July, 2014, how many of them were made by a male customer? | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; |
Among the transactions made in July, 2014, how many of them were made by a male customer? | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; | 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'; |
Among the transactions made in July, 2014, how many of them were made by a male customer? | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; | 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'; |
Among the transactions made in July, 2014, how many of them were made by a male customer? | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; | 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'; |
Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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'; |
Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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); | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); |
Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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); | brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5)); |
Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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); | email address refers to Email; transaction 100016 refers to TransactionID = 100016; |
Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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 = Latitude, Longitude; |
Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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 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 the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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); | lowest star rating refers to MIN(StarRating); "Too spicy!" review refers to Review = 'Too Spicy!'; |
Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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); | 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%'; |
Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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); | Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08'; |
Among the customers not subscribed to the mailing list, what percentage has given three or more stars in a review? | 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 bottles refers to ContainerType = 'Bottle'; location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243; |
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. | 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; lowest rating refers to MIN(StarRating); |
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. | 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; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate); |
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. | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; |
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. | 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 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'; |
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. | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); | 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'; |
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. | 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; |
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. | 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; |
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. | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); | email address refers to Email; transaction 100016 refers to TransactionID = 100016; |
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. | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); | most purchased root beer refers to MAX(COUNT(BrandID)); in 2016 refers to PurchaseDate > = '2016-01-01' AND PurchaseDate < = '2016-12-31'; |
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. | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); | 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'; |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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'; | brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1)); |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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'; | 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'; |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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'; | Sac State Union refers to LocationName = 'Sac State Union'; |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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'; | in bottles refers to ContainerType = 'Bottle'; location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243; |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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'; | AJ Stephans refers to BreweryName = 'AJ Stephans Beverages'; |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union'; |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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; customers who have purchased at least one root beer refers to CustomerID > = 1; produced by AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages'; |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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'; | Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20'; |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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); |
What is the amount difference between the bottles of root beer sold from Louisiana and Missouri? | 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'; | root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5)); |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | Sac State Union refers to LocationName = 'Sac State Union'; |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | in bottles refers to ContainerType = 'Bottle'; location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243; |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | 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'; |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | 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'; |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31'; |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate); |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | 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'; |
How many transactions were made to purchase a bottle of beer using American Express? | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; | 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'; |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; | 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'; |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; | 5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%'; |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = '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; |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; | 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'; |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = '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'; |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; | Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08'; |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; | root beer brands refers to BrandName; highest market evaluation and acceptance refers to MAX(COUNT(StarRating = 5)); |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; | full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10; |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); |
In the female customers, how many bought root beer that contains artificial sweetener? | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); |
What is the name of all the customers who have ever given a 5-star review? | name of the customer = First, Last; 5-star review 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%'; |
What is the name of all the customers who have ever given a 5-star review? | name of the customer = First, Last; 5-star review refers to StarRating = 5; | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; male customer refers to Gender = 'M'; |
What is the name of all the customers who have ever given a 5-star review? | 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); |
What is the name of all the customers who have ever given a 5-star review? | name of the customer = First, Last; 5-star review refers to StarRating = 5; | in July, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '07'; |
What is the name of all the customers who have ever given a 5-star review? | name of the customer = First, Last; 5-star review refers to StarRating = 5; | brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1)); |
What is the name of all the customers who have ever given a 5-star review? | name of the customer = First, Last; 5-star review refers to StarRating = 5; | 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'; |
What is the name of all the customers who have ever given a 5-star review? | name of the customer = First, Last; 5-star review refers to StarRating = 5; | Sac State Union refers to LocationName = 'Sac State Union'; |
What is the name of all the customers who have ever given a 5-star review? | name of the customer = First, Last; 5-star review refers to StarRating = 5; | lowest star rating refers to MIN(StarRating); "Too spicy!" review refers to Review = 'Too Spicy!'; |
What is the name of all the customers who have ever given a 5-star review? | name of the customer = First, Last; 5-star review refers to StarRating = 5; | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; |
What is the name of all the customers who have ever given a 5-star review? | name of the customer = First, Last; 5-star review refers to 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; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.