query
stringlengths 24
325
| positive
stringlengths 1
580
| negative
stringlengths 1
580
|
---|---|---|
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20'; |
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; |
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); |
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | brands of the root beer refers to BrandName; purchased on 2014/7/7 refers to transactiondate = '2014-07-07'; |
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | 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'; |
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | 5-star rating refers to StarRating = 5; in 2013 refers to ReviewDate LIKE '2013%'; unit profit available to wholesalers = SUBTRACT(CurrentRetailPrice, WholesaleCost); |
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | name of the root beer brand refers to BrandName; advertised on facebook refers to FacebookPage IS not NULL; |
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | full name = First, Last; how long ago = SUBTRACT(ReviewDate, FirstPurchaseDate); |
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | California refers to State = 'CA'; |
Which customer has the most reviews? State the full name. | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; | FALSE; |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | 5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%'; |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | stars refers to StarRating; Frostie refers to BrandName = 'Frostie'; |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | 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'; |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | Sac State Union refers to LocationName = 'Sac State Union'; |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | 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)); |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | 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'; |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | California refers to State = 'CA'; |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | FALSE; |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; |
Which brand of root beer did Jayne Collins give the lowest rating? | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); | 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'; |
Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | 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'; | name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear); |
Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | 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'; | non-sweetened refers to honey = 'FALSE' AND artificialsweetener = 'FALSE'; |
Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | 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'; | type of card refers to CreditCardType; |
Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | 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'; | brand of root beer refers to BrandName; lowest rating refers to MIN(StarRating); |
Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | 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'; | root beer brand refers to BrandName; lowest purchase refers to MIN(COUNT(BrandID)); |
Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | 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'; | FALSE; |
Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | 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'; | 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 the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08'; | not subscribed to the mailing list refers to SubscribedToEmailList = 'FALSE'; percentage = MULTIPLY(DIVIDE(SUM(CustomerID WHERE StarRating > 3), COUNT(CustomerID) WHERE SubscribedToEmailList = 'FALSE'), 1.0); |
Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | 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'; | in 2014 refers to PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'; percentage = MULTIPLY(DIVIDE(SUM(ContainerType = 'Can'), COUNT(RootBeerID) WHERE PurchaseDate > = '2014-01-01' AND PurchaseDate < = '2014-12-31'), 1.0); in cans refers to ContainerType = 'Can'; |
Among the root beer brands that do not advertise on Twitter, how many of them have root beers sold in August, 2014? | do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08'; | email address refers to Email; transaction 100016 refers to TransactionID = 100016; |
What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | 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'; | 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 average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10'; | brand of beer refers to BrandName; worst rated most times refers to MAX(COUNT(StarRating = 1)); |
What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | 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'; | 5 stars refers to StarRating = 5; in November 2012 refers to ReviewDate LIKE '2012-11%'; |
What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | 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'; | dates of purchase refers to TransactionDate; male customer refers to Gender = 'M'; purchased more than 3 root beers refers to COUNT(CustomerID) > 3; |
What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | 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'; | 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'; |
What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | 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'; | FALSE; |
What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | 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'; | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; |
What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | average star rating = AVG(StarRating); female customers refers to Gender = 'F; from 1/25/2015 to 3/10/2015 refers to ReviewDate BETWEEN '2015-01-25' AND '2015-03-10'; | brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5)); |
What is the average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | 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'; | 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 average star rating given by female customers to brand ID 10018 from 1/25/2015 to 3/10/2015? | 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'; | AJ Stephans refers to BreweryName = 'AJ Stephans Beverages'; |
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? | 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'; | California refers to State = 'CA'; |
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? | 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'; | California refers to State = 'CA'; |
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? | 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'; | 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 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? | 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'; | full name = First Last; first top 10 customers refers to MIN(FirstPurchaseDate) LIMIT 10; |
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? | 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'; | A&W refers to BrandName = 'A&W'; |
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? | 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'; | 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)); |
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? | 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'; | 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 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? | 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'; | Bulldog refers to BrandName = 'Bulldog'; purchased in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08'; |
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? | 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'; | 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 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? | 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'; | 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'; |
What is the percentage difference of River City sale compare to Frostie? | 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'; | 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 percentage difference of River City sale compare to Frostie? | 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'; | available in cans refers to AvailableInCans = 'TRUE'; contain corn syrup refers to CornSyrup = 'TRUE'; contain artificial sweeteners refers to ArtificialSweetener = 'TRUE'; |
What is the percentage difference of River City sale compare to Frostie? | 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'; | Sac State Union refers to LocationName = 'Sac State Union'; |
What is the percentage difference of River City sale compare to Frostie? | percentage difference = (DIVIDE(MULTIPLY(SUBTRACT(SUM(PurchasePrice WHERE BrandName = 'River City'), SUM(PurchasePrice WHERE BrandName = 'Frostie')), 100), SUM(PurchasePrice WHERE BrandName = 'Frostie'))); River City refers to BrandName = 'River City'; Frostie refers to BrandName = 'Frostie'; | full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5; |
What is the percentage difference of River City sale compare to Frostie? | 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'; | 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 percentage difference of River City sale compare to Frostie? | 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'; | 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 percentage difference of River City sale compare to Frostie? | 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'; | California refers to State = 'CA'; |
What is the percentage difference of River City sale compare to Frostie? | 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'; | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; |
What is the percentage difference of River City sale compare to Frostie? | 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'; | brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5)); |
What is the percentage difference of River City sale compare to Frostie? | 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 bottles refers to ContainerType = 'Bottle'; location 38.559615, -121.42243 refers to latitude = 38.559615 AND longitude = -121.42243; |
How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26'; | most amount of profit per unit refers to MAX(SUBTRACT(CurrentRetailPrice, WholesaleCost)); least amount of profit per unit refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); |
How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26'; | Sac State Union refers to LocationName = 'Sac State Union'; |
How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | 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'; | 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'; |
How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | 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'; | name of the customer = First, Last; 5-star review refers to StarRating = 5; |
How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | 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'; | 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 brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26'; | female refers to Gender = 'F'; contains artificial sweetener refers to ArtificialSweetener = 'TRUE'; |
How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | 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'; | 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 brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | 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'; | precise location refers to Latitude, Longitude; American Express refers to CreditCardType = 'American Express'; |
How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | 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'; | star rating is more than 3 refers to StarRating > 3; |
How many brands of bottle root beer were purchased between 4/3/2015 and 10/26/2015? | bottle root beer refers to ContainerType = 'Bottle'; purchased between 4/3/2015 and 10/26/2015 refers to PurchaseDate BETWEEN '2015-04-23' AND '2015-10-26'; | full name = First, Last; male customers refers to Gender = 'M'; Fair Oaks refers to City = 'Fair Oaks'; subscribed to the email list refers to SubscribedToEmailList = 'TRUE'; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | brand of root beer refers to BrandName; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); ID of the customer refers to CustomerID; highest number of purchases refers to MAX(COUNT(CustomerID)); | do not advertise on Twitter refers to twitter IS NULL; in August, 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014' AND SUBSTR(TransactionDate, 6, 2) = '08'; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | 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)); | full name = First, Last; River City refers to BrandName = 'River City'; 5-star refers to StarRating = 5; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | 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)); | transaction no. refers to TransactionID; TransactionID = 103545; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | brand of root beer refers to BrandName; lowest unit profit available to wholesalers refers to MIN(SUBTRACT(CurrentRetailPrice, WholesaleCost)); ID of the customer refers to CustomerID; highest number of purchases refers to MAX(COUNT(CustomerID)); | sold in 2014 refers to SUBSTR(TransactionDate, 1, 4) = '2014'; percentage = DIVIDE(MULTIPLY(SUM(BreweryName = 'AJ Stephans Beverages'), 1.0), COUNT(RootBeerID)) WHERE SUBSTR(TransactionDate, 1, 4) = '2014'; AJ Stephans Beverages refers to BreweryName = 'AJ Stephans Beverages'; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | 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)); | MasterCard refers to CreditCardType = 'MasterCard'; in 2014 refers to TransactionDate > = '2014-01-01' AND TransactionDate < = '2014-12-31'; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | 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)); | FALSE; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | 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)); | 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%'; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | 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)); | FALSE; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | 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)); | customer that has the most reviews refers to MAX(COUNT(CustomerID)); full name = First, Last; |
Which brand of root beer has the lowest unit profit available to wholesalers? Indicate the ID of the customer that has the highest number of purchases of the said brand. | 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)); | most 5 star ratings refers to MAX(COUNT(StarRating = 5)); name of the brewery refers to BreweryName; |
What is the credit card type used by Kenneth Walton? | FALSE; | bottle of beer refers to ContainerType = 'Bottle'; American Express refers to CreditCardType = 'American Express'; |
What is the credit card type used by Kenneth Walton? | FALSE; | stars refers to StarRating; Frostie refers to BrandName = 'Frostie'; |
What is the credit card type used by Kenneth Walton? | FALSE; | 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' |
What is the credit card type used by Kenneth Walton? | FALSE; | FALSE; |
What is the credit card type used by Kenneth Walton? | FALSE; | brand of root beer refers to BrandName; highly rated refers to MAX(COUNT(StarRating = 5)); |
What is the credit card type used by Kenneth Walton? | 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'; |
What is the credit card type used by Kenneth Walton? | FALSE; | full name = First, Last; American Express cards refers to CreditCardType = 'American Express'; Sac State Union refers to LocationName = 'Sac State Union'; |
What is the credit card type used by Kenneth Walton? | FALSE; | review content of "Tastes like Australia." refers to Review = 'Tastes like Australia.'; |
What is the credit card type used by Kenneth Walton? | FALSE; | star rating is more than 3 refers to StarRating > 3; |
What is the credit card type used by Kenneth Walton? | FALSE; | Mastercard refers to CreditCardType = 'MasterCard'; between 12/25/2014 and 5/20/2016 refers to TransactionDate BETWEEN '2014-12-25' AND '2016-05-20'; |
In the reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | email address refers to Email; transaction 100016 refers to TransactionID = 100016; |
In the reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | between 2015 to 2016 refers to TransactionDate > = '2015-01-01' AND TransactionDate < '2016-12-31'; |
In the reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | 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 the reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | transaction no. refers to TransactionID; TransactionID = 103545; |
In the reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | brand of root beer refers to BrandName; 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 reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | star rating is more than 3 refers to StarRating > 3; |
In the reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | name of the customer = First, Last; 5-star review refers to StarRating = 5; |
In the reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | 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'; |
In the reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | name of the brand of the beer refers to BrandName; shortest brewed history refers to MAX(FirstBrewedYear); |
In the reviews of September 2014. Which brand of beers obtained the highest star ratings? | September 2014 refers to ReviewDate LIKE '2014-09%'; brand of beers refers to BrandName; highest star ratings refers to MAX(StarRating); | 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' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.