query
stringlengths 24
325
| positive
stringlengths 1
580
| negative_1
stringlengths 6
580
| negative_2
stringlengths 1
576
| negative_3
stringlengths 1
576
| negative_4
stringlengths 1
580
| negative_5
stringlengths 1
580
| negative_6
stringlengths 1
580
| negative_7
stringlengths 5
576
| negative_8
stringlengths 1
576
| negative_9
stringlengths 1
580
| negative_10
stringlengths 1
580
|
---|---|---|---|---|---|---|---|---|---|---|---|
Among sales teams in Midwest region, which sales team has an order quantity greater than 5? | order quantity greater than 5 refers to Order Quantity > 5 | delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names | highest unit price refers to Max(Unit Price) | Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115'; | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income); | unit cost greater than 4000USD refers to Unit Cost > 4000; | total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20'; | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5; | city has the largest population refers to City Name where MAX(Population); | George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2); | most populated refers to Max(Population); |
Name the products via wholesale channel of the store under Pacific/Honolulu time zone. | products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale' | order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name | "WARE-UHY1004" is the WarehouseCode | "Weimei Corp" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3) | Medsep Group is the name of the customer; orders refer to OrderNumber; | "California" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2' | COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP'); | total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18'; | sales order 'SO - 0005951' refers to OrderNumber = 'SO - 0005951'; product refers to Product Name | delivered in 2021 refer to DeliveryDate LIKE '%/21'; 'Sundial' is the Customer Names | "Arizona" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost)) |
What is the detailed coordinates of the store where the product with the 4th highest profit were purchased from? | detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost)) | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team; | WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode)) | ordered on 10/21/18 refers to OrderDate = '10/21/18'; delivered on 11/21/19 refers to DeliveryDate = '11/21/19'; name of product refers to Product Name | "Elorac, Corp" is the Customer Names | all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name; | ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost); | name containing the word 'Group' refers to Customer Names LIKE '%Group%'; | the lowest unit price refers to MIN(Unit Price); | in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type)) | floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21' |
How much is the discount applied to the order with the highest unit price? | highest unit price refers to Max(Unit Price) | unit cost greater than 4000USD refers to Unit Cost > 4000; | ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost); | products with the ID of 30 to 40 refer to Product Name WHERE ProductID BETWEEN 30 AND 40; | "Arizona" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost)) | name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8 | order quantity greater than 5 refers to Order Quantity > 5 | applied 10% discount refers to Discount Applied = 0.1; | "Apollo Ltd" is the Customer Names; most expensive unit price refers to max(Unit Price) | "California" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2' | orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5; |
What is the name of the product with the highest net profit? | highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name | total orders refer to COUNT(OrderNumber); 2020 refers to SUBSTR(OrderDate, -2) = '20'; | Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17'; | average land area = Divide (Sum(Land Area), Count(Land Area)) | unit cost greater than 4000USD refers to Unit Cost > 4000; | "Joshua Bennett" is the name of Sales Team | most populous country refers to Max(Population) | "Chandler" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20' | DIVIDE(SUM(Order Quantity where Product Name = 'Ornaments' and OrderDate LIKE '%/18'), 12); | sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100 | the lowest unit price refers to MIN(Unit Price); |
What is the customer names of orders which have unit cost greater than 4000USD? | unit cost greater than 4000USD refers to Unit Cost > 4000; | California is a state; CDP stores refer to StoreID where Type = 'CDP'; | Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115'; | "Brooklyn" is the CityName; population of less than 3 million refers to Population < 3000000 | the lowest unit price refers to MIN(Unit Price); | highest unit price refers to Max(Unit Price) | 40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber; | "Distributor" is the Sales Channel; minimum quantity refers to Min(Order Quantity) | Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17'; | COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP'); | orders refer to OrderNumber; |
State the delivery date of cookware. | Cookware is the name of the product; | shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber; | Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity); | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5; | the highest unit price refers to MAX(Unit Price); | the lowest unit price refers to MIN(Unit Price); | the most number of sales team refers to MAX(COUNT(Sales Team)); | orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5; | ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost); | total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100 | highest discount applied refers to Max(Discount Applied) |
Describe the customer names and product names which had over 3800 USD in net profit. | over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800; | cities refer to City Name; no water area refers to Water Area = 0; | order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name | "Distributor" is the Sales Channel; minimum quantity refers to Min(Order Quantity) | shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber; | the most number of sales team refers to MAX(COUNT(Sales Team)); | highest unit price refers to Max(Unit Price) | sale team ID of 18 refers to _SalesTeamID = 18; COUNT(OrderNumber where Sales Channel = 'In-Store') > COUNT(OrderNumber where Sales Channel = 'Online'); | "Michigan" is the State | ordered on 6th June 2018 refers to OrderDate = '6/5/18' | orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5; |
Please indicate total order quantity of product Candles and calculate the percentage of such product among all the orders. | total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100 | "Brooklyn" is the CityName; population of less than 3 million refers to Population < 3000000 | In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name; | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team; | "WARE-UHY1004" is the WarehouseCode | order quantity greater than 5 refers to Order Quantity > 5 | "Elorac, Corp" is the Customer Names | order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name | "California" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2' | Cookware is the name of the product; | ordered on 6th June 2018 refers to OrderDate = '6/5/18' |
What percentage of sell orders on 04/04/2020 were for the state of New York? | sales order on 04/04/2020 refers to OrderDate = '4/4/20'; 'New York' is the City Name; percentage = Divide (Sum(OrderNumber where City Name = 'New York'), Count (OrderNumber)) * 100 | unit cost greater than 4000USD refers to Unit Cost > 4000; | California is a state; CDP stores refer to StoreID where Type = 'CDP'; | "Elorac, Corp" is the Customer Names | total order quantity refers to Sum (Order Quantity); 'Candles' is the Products Name; percentage = Divide (Sum(Order Quantity where Product Name = 'Candles'), Sum(Order Quantity)) * 100 | orders online refer to Sales Channel = 'Online'; | orders refer to OrderNumber; more than 5 product quantities refer to Order Quantity > 5; | less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County | "Brooklyn" is the CityName; population of less than 3 million refers to Population < 3000000 | product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18'; | Medsep Group is the name of the customer; orders refer to OrderNumber; |
List out the name of products which have been applied 10% discount. | applied 10% discount refers to Discount Applied = 0.1; | shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber)) | city has the largest population refers to City Name where MAX(Population); | sales order 'SO - 0005951' refers to OrderNumber = 'SO - 0005951'; product refers to Product Name | Qualitest ordered the highest product quantity refers to Customer Names where MAX(Order Quantity); | "WARE-MKL1006" is the WarehouseCode; most shipment to region refers to Max(Count(Region)) | Rochester Ltd is the name of the customer; orders refer to OrderNumber; | "California" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2' | over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800; | Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage; | "WARE-UHY1004" is the WarehouseCode |
Name the sales team name who had orders with the greatest net profit in 2020. | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); the greatest net profit in 2020 refers to MAX(net profit) where OrderDate LIKE '%/20'; | cities refer to City Name; no water area refers to Water Area = 0; | "Elorac, Corp" is the Customer Names | In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name; | "Chandler" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20' | product refers to Product Name; ordered the most in 2018 refers to MAX(COUNT(OrderNumber)) where SUBSTR(OrderDate, -2) = '18'; | "Weimei Corp" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3) | "Midwest" is the Region | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); highest median income city refers to City Name where MAX(Median Income); | all the orders from WARE-NMK1003 refer to OrderNumber where WarehouseCode = 'WARE-NMK1003'; product refers to Product Name; | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware'; |
Find the average yearly order by customer Weimei Corp for 2018, 2019 and 2020. | "Weimei Corp" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3) | Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage; | products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale' | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor'; | Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115'; | "Distributor" is the Sales Channel; minimum quantity refers to Min(Order Quantity) | city has the largest population refers to City Name where MAX(Population); | unit cost greater than 4000USD refers to Unit Cost > 4000; | COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware'); | sale team ID of 18 refers to _SalesTeamID = 18; COUNT(OrderNumber where Sales Channel = 'In-Store') > COUNT(OrderNumber where Sales Channel = 'Online'); | name containing the word 'Group' refers to Customer Names LIKE '%Group%'; |
To which region does the sales team that has used the WARE-MKL1006 warehouse the most times for its shipments belong? | "WARE-MKL1006" is the WarehouseCode; most shipment to region refers to Max(Count(Region)) | sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19')); | COUNT(StoreID) < COUNT(StoreID where Type = 'Borough') < COUNT(StoreID where Type = 'CDP'); | Latitude and Longitude coordinates can be used to identify the detailed position of stores; id refers to StoreID; | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); Joshua Bennett is the name of Sales Team; | less need for products refers to Order Quantity = 1; purchased through a distributor refers to Sales Channel = 'Distributor'; 'Harri County' is the County | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Phones' and Sales Channel = 'Distributor'; | orders online refer to Sales Channel = 'Online'; | "California" is the name of State; in store refers to Sales Channel = 'In-Store'; 20% discount refers to Discount Applied = '0.2' | California is a state; CDP stores refer to StoreID where Type = 'CDP'; | in the South refers to Region = 'South'; type of store that is most popular refers to Max(Count(Type)) |
How many orders made by Rochester Ltd? | Rochester Ltd is the name of the customer; orders refer to OrderNumber; | "Joshua Bennett" is the name of Sales Team | detailed coordinates refers to Latitude, Longitude; highest net profit = Max(Subtract(Unit Price, Unit Cost)) | sale team names refer to Sales Team; the least orders in 2019 refer to MIN(COUNT(OrderNumber where SUBSTR(OrderDate, -2) = '19')); | floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21' | unit cost greater than 4000USD refers to Unit Cost > 4000; | Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL; | over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800; | name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8 | COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware'); | Cookware is the name of the product; |
What is the type of store located in the city with the highest amount of water area? | type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area) | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware'; | "Arizona" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost)) | total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18'; | sale team ID of 18 refers to _SalesTeamID = 18; COUNT(OrderNumber where Sales Channel = 'In-Store') > COUNT(OrderNumber where Sales Channel = 'Online'); | average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID)) | applied 10% discount refers to Discount Applied = 0.1; | products refers to Product Name; via wholesale channel refers to Sales Channel = 'Wholesale' | the lowest unit price refers to MIN(Unit Price); | unit cost greater than 4000USD refers to Unit Cost > 4000; | shipped refers to ShipDate; in 2019 refers to shipped in 2019 refers to SUBSTR(ShipDate, -2) = '19'; order in the said year refers to SUBSTR(OrderDate, -2) = '19'; highest number of order refers to Max(Count(OrderNumber)) |
Which sales channel was most preferred in commercializing products in January 2020 based on the number of orders placed? | order refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20'; January refers to Substr(OrderDate, 1, 1) = '1'; most preferred sales channel refers to Sales Channel where Max(Count(OrderNumber)) | unit cost greater than 4000USD refers to Unit Cost > 4000; | orders online refer to Sales Channel = 'Online'; | average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID)) | most populous country refers to Max(Population) | floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21' | "Weimei Corp" is the Customer Names; in 2018, 2019 and 2020 refers to SUBSTR (OrderDate, -2) IN ('18', '19', '20') : Average order = Divide (Count (OrderNumber), 3) | highest unit price refers to Max(Unit Price) | 40% discount refers to Discount Applied = 0.4; in-store channel refers to Sales Channel = 'In-Store'; orders refer to OrderNumber; | most populated refers to Max(Population); | "WARE-MKL1006" is the WarehouseCode; most shipment to region refers to Max(Count(Region)) |
Calculate the percentage of order via in-store channel of customer "Medline". | Medline is the name of the customer; DIVIDE(COUNT(OrderNumber where Sales Channel = 'In-Store' and Customer Names = 'Medline'), COUNT(OrderNumber where Customer Names = 'Medline')) as percentage; | type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area) | highest net profit = Max(Subtract (Unit Price, Unit Cost)); name of product refers to Product Name | Cookware is the name of the product; | floral product refers to Product Name = 'Floral'; total net profit = SUM(Subtract(Unit Price, Unit Cost)); delivered in 2021 refers to DeliveryDate LIKE '%/21' | AVG(Unit Price where Product Name = 'Cookware'); | most populous country refers to Max(Population) | "WARE-UHY1004" is the WarehouseCode | "Chandler" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20' | Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL; | the least sold product refers to Product Name where MIN(Order Quantity); |
List all the numbers ordered by 'Rochester Ltd' in 2018. | Rochester Ltd is the name of the customer; all the numbers ordered refer to OrderNumber; 2018 refers to SUBSTR(OrderDate, -2) = '18'; | cities refer to City Name; no water area refers to Water Area = 0; | ratio can be calculated as DIVIDE(MAX(Unit_Cost)), MIN(Unit Cost); | average household income = Divide (Sum(Household Income), Count(City Name)); highest number of store refers to Max(Count(StoreID)) | name of customer refers to Customer Names; from 2018 to 2020 refers to OrderDate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to Order Quantity = 8 | "Distributor" is the Sales Channel; minimum quantity refers to Min(Order Quantity) | Latitude and Longitude coordinates can be used to identify the detailed position of stores; store refers to StoreID WHERE OrderNumber = 'SO - 000115'; | COUNT(OrderNumber where Product Name = 'Platters') > COUNT(OrderNumber where Product Name = 'Serveware'); | highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name | WARE-PUJ1005 is the WarehouseCode; fewest times refers to Min (Count(WarehouseCode)) | Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL; |
How many sales orders were processed by the store located in Chandler in 2020? | "Chandler" is the City Name; orders refers to OrderDate; in 2020 refers to Substr(OrderDate, -2) = '20' | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bakeware'; | Ole Group is the name of the customer; discount levels applied refer to Discount Applied NOT NULL; | In-Store sales refer to Sales Channel = 'In-Store'; city refers to City Name; | shipped from Daly City refers to Store Locations where City Name = 'Daly City'; orders refer to OrderNumber; | ordered on 6th June 2018 refers to OrderDate = '6/5/18' | total orders of over 3 in 2018 refer to COUNT(OrderNumber) > 3 where SUBSTR(OrderDate, -2) = '18'; | type of store in City refers to Type = 'City'; highest amount of water area refers to Max(Water Area) | Medsep Group is the name of the customer; orders refer to OrderNumber; | George Lewis refers to Sales Team; the highest number of orders refers to MAX(COUNT(OrderNumber)); which year from 2018 to 2020 refers to SUBSTR(OrderDate, -2) IN ('18', '19', '20') GROUP BY SUBSTR(OrderDate, -2); | order quantity of no less than 5 refers to Order Quantity > 5; shipped in the month of May 2019 refers to ShipDate LIKE '5/%/19'; lowest net profit = Min(Subtract(Unit Price, Unit Cost)); name of product refers to Products Name |
Calculate the average net profit of bar tools which has ordered quantity exceed 5. | net profit can be computed as SUBTRACT(Unit Price, Unit Cost); AVG(net profit) where Product Name = 'Bar Tools' and Order Quantity > 5; | Product Name = 'Baseball'; December 2017 refers to OrderDate LIKE '12/%/17'; | "Arizona" is the name of State; most net profit = Max(Subtract( Unit Price, Unit Cost)) | applied 10% discount refers to Discount Applied = 0.1; | "Joshua Bennett" is the name of Sales Team | over 3800 USD in net profit refers to SUBTRACT(Unit Price, Unit Cost) where Net Profit > 3800; | order quantity greater than 5 refers to Order Quantity > 5 | the highest unit price refers to MAX(Unit Price); | the most number of sales team refers to MAX(COUNT(Sales Team)); | ordered on 6th June 2018 refers to OrderDate = '6/5/18' | highest net profit refers to Max(Subtract(Unit Price, Unit Cost)); name of product refers to Product Name |
How many restaurants in the city of Richmond serve Mediterranean food? | Mediterranean food refers to food_type = 'mediterranean' | Irving Street refers to street_name = 'irving' | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| Bay Area refers to region = 'bay area' | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | restaurant refers to label; European food refers to food_type = 'european' | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | more than 4 star review refers to review > 4 | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' |
In which counties are there A&W Root Beer Restaurants? | A&W Root Beer Restaurant refers to label = 'a & w root beer' | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | a street called Appian Way refers to street_name = 'appian way' | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | no African food restaurants refers to food_type <> 'african' | street refers to street_name; the most restaurants refers to max(count(street_name)) | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' |
Please list any five cities that have an unidentified county and region. | unidentified county and region refers to county = 'unknown' AND region = 'unknown' | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | not in the Bay Area region refers to region ! = 'bay area' | Mediterranean food refers to food_type = 'mediterranean' | Bay Area refers to region = 'bay area' | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | street E. El Camino Real refers to street_name = 'E. El Camino Real' | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' |
How many restaurants in Broadway, Oakland received a review of no more than 3? | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | no African food restaurants refers to food_type <> 'african' | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | Mediterranean food refers to food_type = 'mediterranean' | a street called Appian Way refers to street_name = 'appian way' | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | Northern California refers to region = 'northern california' | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) |
What is the region of 1149 El Camino Real? | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | unknown county refers to county = 'unknown' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | top-reviewed refers to review = 4; type of food refers to food_type
| no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop' | restaurant refers to label; European food refers to food_type = 'european' | type refers to food_type; most common refers to max(count(food_type)) | no pizza restaurants refers to food_type = 'pizza' | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | Bay Area refers to region = 'bay area' |
What are the most popular restaurants in San Francisco among diners? | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop' | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown' | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | Mediterranean food refers to food_type = 'mediterranean' | Greek restaurant refers to food_type = 'greek' | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | Northern California refers to region = 'northern california' | street refers to street_name; review of 1.7 refers to review = 1.7 |
Which region has the highest number of restaurants? | the highest number refers to max(count(id_restaurant)) | Italian food refers to food_type = 'Italian' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100% | Irving Street refers to street_name = 'irving' | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | not in the Bay Area region refers to region ! = 'bay area' | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | the top 4 most popular restaurant refers to top 4 max(review) | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | no African food restaurants refers to food_type <> 'african' |
Among all indian restaurants in Castro St., Mountainview, how many of them is about cookhouse in their label? | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | no African food restaurants refers to food_type <> 'african' | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | Italian food refers to food_type = 'Italian' | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| have not obtained a minimum of 3 in review refers to review < 3 | street refers to street_name; review of 1.7 refers to review = 1.7 | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) |
What percentage of streets named 11th Street are in Alameda County? | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco' | Mediterranean food refers to food_type = 'mediterranean' | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | A&W Root Beer Restaurant refers to label = 'a & w root beer' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | Bay Area refers to region = 'bay area' | have not obtained a minimum of 3 in review refers to review < 3 |
Give the street number of a bar in Oakland with a 2.7 review. | street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7 | no pizza restaurants refers to food_type = 'pizza' | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| the highest number refers to max(count(id_restaurant)) | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | street E. El Camino Real refers to street_name = 'E. El Camino Real' | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' |
How many restaurants have more than 4 star reviews? | more than 4 star review refers to review > 4 | no pizza restaurants refers to food_type = 'pizza' | unknown county refers to county = 'unknown' | American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel' | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 |
How many American food restaurants are unpopular in Carmel? | American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel' | Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county' | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | a street called Appian Way refers to street_name = 'appian way' | have not obtained a minimum of 3 in review refers to review < 3 | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | restaurant refers to label; Park St refers to street_name = 'park st' |
What cities are located in Northern California? | Northern California refers to region = 'northern california' | Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type
| kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | Greek restaurant refers to food_type = 'greek' | Mediterranean food refers to food_type = 'mediterranean' | not in the Bay Area region refers to region ! = 'bay area' | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | street refers to street_name; the most restaurants refers to max(count(street_name)) |
What percentage of restaurants in Monterey County have Mexican food? | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | the highest number refers to max(count(id_restaurant)) | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | Italian food refers to food_type = 'Italian' | street refers to street_name; the most restaurants refers to max(count(street_name)) | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | no African food restaurants refers to food_type <> 'african' |
In which regions are there no African food restaurants? | no African food restaurants refers to food_type <> 'african' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | more than 4 star review refers to review > 4 | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | Mediterranean food refers to food_type = 'mediterranean' | restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown' | Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type
| kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' |
At what numbers on 9th Avenue of San Francisco there are restaurants? | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | have not obtained a minimum of 3 in review refers to review < 3 | Northern California refers to region = 'northern california' | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | restaurant refers to label; European food refers to food_type = 'european' | street E. El Camino Real refers to street_name = 'E. El Camino Real' |
Please list all of the restaurants that serve European food. | restaurant refers to label; European food refers to food_type = 'european' | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | Italian food refers to food_type = 'Italian' | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | no African food restaurants refers to food_type <> 'african' | Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county' | the top 4 most popular restaurant refers to top 4 max(review) | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' |
Among the restaurants on street number below 1000, how many of them are in Railroad St.? | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop' | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz' | Northern California refers to region = 'northern california' | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' |
Among the listed winery, what is the street number of the winery named "Tulocay Winery"? | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | Italian food refers to food_type = 'Italian' | American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel' | Northern California refers to region = 'northern california' | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| El Cerrito refers to city = 'el cerrito' | more than 4 star review refers to review > 4 | A&W Root Beer Restaurant refers to label = 'a & w root beer' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' |
Among all asian restaurants in N. Milpitas Blvd., Milpitas, how many of them have restaurant ID greater than 385? | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | no pizza restaurants refers to food_type = 'pizza' | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | unknown county refers to county = 'unknown' | the top 4 most popular restaurant refers to top 4 max(review) | street refers to street_name; review of 1.7 refers to review = 1.7 | street E. El Camino Real refers to street_name = 'E. El Camino Real' |
On what street in Tuolumne County is Good Heavens restaurant located? | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | more than 4 star review refers to review > 4 | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type | restaurant refers to label; European food refers to food_type = 'european' | Mediterranean food refers to food_type = 'mediterranean' |
What type of food is there in the restaurants on Adeline Street in Berkeley city? | Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type
| street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type | no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop' | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | Bay Area refers to region = 'bay area' | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | type refers to food_type; most common refers to max(count(food_type)) | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' |
List all of the restaurants on Park St. | restaurant refers to label; Park St refers to street_name = 'park st' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | Irving Street refers to street_name = 'irving' | Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type
| Greek restaurant refers to food_type = 'greek' | Northern California refers to region = 'northern california' | Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area' | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | Italian food refers to food_type = 'Italian' | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% |
What types of food are served at the 4 top-reviewed restaurants? | top-reviewed refers to review = 4; type of food refers to food_type
| street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | street refers to street_name; review of 1.7 refers to review = 1.7 | street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7 | a street called Appian Way refers to street_name = 'appian way' | Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz' | A&W Root Beer Restaurant refers to label = 'a & w root beer' | unknown county refers to county = 'unknown' | kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type | Mediterranean food refers to food_type = 'mediterranean' |
In which region can you find the top 4 most popular restaurants? | the top 4 most popular restaurant refers to top 4 max(review) | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | Bay Area refers to region = 'bay area' | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | the highest number refers to max(count(id_restaurant)) | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7 | American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel' | type refers to food_type; most common refers to max(count(food_type)) | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county' |
What kind of restaurants can be found at "106 E 25th Ave"? | kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' | street refers to street_name; the most restaurants refers to max(count(street_name)) | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | Italian food refers to food_type = 'Italian' | more than 4 star review refers to review > 4 | unidentified county and region refers to county = 'unknown' AND region = 'unknown' | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz' | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown' | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type |
What are the restaurants that are located at "19th St. Oakland"? | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel' | more than 4 star review refers to review > 4 | restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown' | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type | street refers to street_name; the most restaurants refers to max(count(street_name)) | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | top-reviewed refers to review = 4; type of food refers to food_type
| street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7 |
What is the rating of each restaurant reviews on Atlantic Ave? | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | street refers to street_name; the most restaurants refers to max(count(street_name)) | A&W Root Beer Restaurant refers to label = 'a & w root beer' | El Cerrito refers to city = 'el cerrito' | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | street refers to street_name; review of 1.7 refers to review = 1.7 | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | no pizza restaurants refers to food_type = 'pizza' |
What percentage of restaurants are from the Bay Area? | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | type refers to food_type; most common refers to max(count(food_type)) | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| no pizza restaurants refers to food_type = 'pizza' | the top 4 most popular restaurant refers to top 4 max(review) | no African food restaurants refers to food_type <> 'african' | unknown county refers to county = 'unknown' | Bay Area refers to region = 'bay area' | Northern California refers to region = 'northern california' | restaurant refers to label; Park St refers to street_name = 'park st' |
How many restaurants have not obtained a minimum of 3 in their reviews? | have not obtained a minimum of 3 in review refers to review < 3 | Mediterranean food refers to food_type = 'mediterranean' | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | a street called Appian Way refers to street_name = 'appian way' | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | the highest number refers to max(count(id_restaurant)) | Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz' | unidentified county and region refers to county = 'unknown' AND region = 'unknown' | Northern California refers to region = 'northern california' | street E. El Camino Real refers to street_name = 'E. El Camino Real' | more than 4 star review refers to review > 4 |
List all the average reviews of Chinese restaurants for each county from highest to lowest. | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | more than 4 star review refers to review > 4 | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel' | restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco' | Irving Street refers to street_name = 'irving' | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | not in the Bay Area region refers to region ! = 'bay area' |
Which county and region does the street E. El Camino Real belong to? | street E. El Camino Real refers to street_name = 'E. El Camino Real' | Italian food refers to food_type = 'Italian' | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | not in the Bay Area region refers to region ! = 'bay area' | Greek restaurant refers to food_type = 'greek' | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco' | type refers to food_type; most common refers to max(count(food_type)) | more than 4 star review refers to review > 4 | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county' |
What are the regions with Greek restaurants? | Greek restaurant refers to food_type = 'greek' | more than 4 star review refers to review > 4 | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | no pizza restaurants refers to food_type = 'pizza' | street E. El Camino Real refers to street_name = 'E. El Camino Real' | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100% |
How many of the cities are in a Bay Area? | Bay Area refers to region = 'bay area' | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | Italian food refers to food_type = 'Italian' | unidentified county and region refers to county = 'unknown' AND region = 'unknown' | the highest number refers to max(count(id_restaurant)) | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | street E. El Camino Real refers to street_name = 'E. El Camino Real' | Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county' | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' |
List by its ID number all restaurants on 11th Street in Oakland. | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | type refers to food_type; most common refers to max(count(food_type)) | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | Irving Street refers to street_name = 'irving' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100% | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | unknown county refers to county = 'unknown' |
List all counties where there is no Bakers Square Restaurant & Pie Shop. | no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop' | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | Greek restaurant refers to food_type = 'greek' | Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area' | the highest number refers to max(count(id_restaurant)) | the top 4 most popular restaurant refers to top 4 max(review) | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | A&W Root Beer Restaurant refers to label = 'a & w root beer' | Bay Area refers to region = 'bay area' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' |
What is the city located in Bay Area of Santa Clara? | Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county' | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | no Bakers Square Restaurant & Pie Shop refers to label <> 'bakers square restaurant & pie shop' | Italian food refers to food_type = 'Italian' | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | no African food restaurants refers to food_type <> 'african' | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' |
How many Indian restaurants are there in the Los Angeles area? | Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area' | Mediterranean food refers to food_type = 'mediterranean' | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | Italian food refers to food_type = 'Italian' | street refers to street_name; review of 1.7 refers to review = 1.7 | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | Greek restaurant refers to food_type = 'greek' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | street E. El Camino Real refers to street_name = 'E. El Camino Real' |
How many restaurants are on Irving Street? | Irving Street refers to street_name = 'irving' | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | restaurant refers to label; European food refers to food_type = 'european' | Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county' | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | street refers to street_name; review of 1.7 refers to review = 1.7 | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | type refers to food_type; most common refers to max(count(food_type)) | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
|
What type of restaurant is most common in Monterey county? | type refers to food_type; most common refers to max(count(food_type)) | street refers to street_name; the most restaurants refers to max(count(street_name)) | kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' | a street called Appian Way refers to street_name = 'appian way' | Italian food refers to food_type = 'Italian' | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | restaurant refers to label; Park St refers to street_name = 'park st' | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | Greek restaurant refers to food_type = 'greek' |
In which regions are there no pizza restaurants? | no pizza restaurants refers to food_type = 'pizza' | top-reviewed refers to review = 4; type of food refers to food_type
| A&W Root Beer Restaurant refers to label = 'a & w root beer' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | have not obtained a minimum of 3 in review refers to review < 3 | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | street E. El Camino Real refers to street_name = 'E. El Camino Real' | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | street refers to street_name; the most restaurants refers to max(count(street_name)) |
Which county is El Cerrito from? | El Cerrito refers to city = 'el cerrito' | Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type
| top-reviewed refers to review = 4; type of food refers to food_type
| asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | the highest number refers to max(count(id_restaurant)) | not in the Bay Area region refers to region ! = 'bay area' | type refers to food_type; most common refers to max(count(food_type)) | kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' | street refers to street_name; review of 1.7 refers to review = 1.7 | Italian food refers to food_type = 'Italian' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' |
What is the full address of Albert's Café? | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | Irving Street refers to street_name = 'irving' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | more than 4 star review refers to review > 4 | restaurant refers to label; Park St refers to street_name = 'park st' | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review |
Which street has the most restaurants? | street refers to street_name; the most restaurants refers to max(count(street_name)) | street refers to street_name; review of 1.7 refers to review = 1.7 | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | A&W Root Beer Restaurant refers to label = 'a & w root beer' | unidentified county and region refers to county = 'unknown' AND region = 'unknown' | a street called Appian Way refers to street_name = 'appian way' | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | more than 4 star review refers to review > 4 | kind of restaurant refers to food_type; "106 E 25th Ave" refers to street_name = 'e 25th ave' | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) |
On which streets in the city of San Francisco are there restaurants with a review of 1.7? | street refers to street_name; review of 1.7 refers to review = 1.7 | name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco' | 11th Street refers to street_name = '11th street'; Oakland refers to city = 'oakland'; ID number of restaurant refers to id_restaurant
| asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | restaurant refers to label; Park St refers to street_name = 'park st' | more than 4 star review refers to review > 4 | top-reviewed refers to review = 4; type of food refers to food_type
| Greek restaurant refers to food_type = 'greek' | restaurant refers to label; European food refers to food_type = 'european' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% |
List all of the restaurant addresses from an unknown region. | restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown' | street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100% | name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco' | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | have not obtained a minimum of 3 in review refers to review < 3 | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | more than 4 star review refers to review > 4 | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | restaurant refers to label; European food refers to food_type = 'european' | unknown county refers to county = 'unknown' |
Give the review of the restaurant located in Ocean St., Santa Cruz. | Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz' | a street called Appian Way refers to street_name = 'appian way' | street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7 | street refers to street_name; the most restaurants refers to max(count(street_name)) | restaurant refers to label; European food refers to food_type = 'european' | no pizza restaurants refers to food_type = 'pizza' | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | Bay Area refers to region = 'bay area' | American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel' | street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100% | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' |
Which country has the most restaurants with Italian food? | Italian food refers to food_type = 'Italian' | restaurant refers to label; European food refers to food_type = 'european' | name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco' | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | top-reviewed refers to review = 4; type of food refers to food_type
| Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area' | street refers to street_name; the most restaurants refers to max(count(street_name)) | street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7 | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | the highest number refers to max(count(id_restaurant)) |
Among the restaurants located on the street number ranges from 1000 to 2000, what is the percentage of Afghani restaurants are there? | street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100% | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | American Food Restaurant refers to food_type = 'ameraican'; unpopular refers to min(review); Carmel refers to city = 'Carmel' | Italian food refers to food_type = 'Italian' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' |
List all the streets with more than 10 restaurants in Alameda county. | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | street named 11th Street refers to street_name = '11th st'; percentage = divide(count(street_name = '11th st' and County = 'alameda county'), count(street_name where County = 'alameda county')) * 100% | restaurant address refers to street_num, street_name; unknown region refers to region = 'unknown' | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | top-reviewed refers to review = 4; type of food refers to food_type
| Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz' | restaurant refers to label; Park St refers to street_name = 'park st' | Indian restaurant refers to food_type = 'indian'; the Los Angeles area refers to region = 'los angeles area' |
Which county in northern California has the highest number of cities? | northern California refers to region = 'northern california'; the highest number of cities refers to max(count(city)) | have not obtained a minimum of 3 in review refers to review < 3 | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | Northern California refers to region = 'northern california' | the top 4 most popular restaurant refers to top 4 max(review) | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | no African food restaurants refers to food_type <> 'african' | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' |
What counties are not in the Bay Area Region? | not in the Bay Area region refers to region ! = 'bay area' | street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100% | the highest number refers to max(count(id_restaurant)) | Chinese restaurant refers to food_type = 'chinese'; average review refers to divide(sum(review), count(review)) | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | A&W Root Beer Restaurant refers to label = 'a & w root beer' | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | El Cerrito refers to city = 'el cerrito' | a street called Appian Way refers to street_name = 'appian way' | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' |
In how many counties is there a street called Appian Way? | a street called Appian Way refers to street_name = 'appian way' | A&W Root Beer Restaurant refers to label = 'a & w root beer' | restaurant refers to label; Park St refers to street_name = 'park st' | street E. El Camino Real refers to street_name = 'E. El Camino Real' | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | no African food restaurants refers to food_type <> 'african' | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | the highest number refers to max(count(id_restaurant)) | Bay Area refers to region = 'bay area' | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7 |
What is the name of the most popular restaurant serving Asian foods in San Francisco? | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | Northern California refers to region = 'northern california' | have not obtained a minimum of 3 in review refers to review < 3 | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | street refers to street_name; review of 1.7 refers to review = 1.7 | more than 4 star review refers to review > 4 | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | the highest number refers to max(count(id_restaurant)) | street refers to street_name; the most restaurants refers to max(count(street_name)) | Atlantic Ave refers to street_name = 'atlantic ave'; rating refers to review |
What is the county and region of Plearn-Thai Cuisine restaurant? | Plearn-Thai Cuisine restaurant refers to label = 'plearn-thai cuisine' | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | Northern California refers to region = 'northern california' | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | top-reviewed refers to review = 4; type of food refers to food_type
| a street called Appian Way refers to street_name = 'appian way' | Greek restaurant refers to food_type = 'greek' | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type
| Bay Area refers to region = 'bay area' |
What type of food is served at the restaurant located at 3140, Alpine Road at San Mateo County? | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type | Greek restaurant refers to food_type = 'greek' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | street refers to street_name; the most restaurants refers to max(count(street_name)) | restaurant refers to label; European food refers to food_type = 'european' | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | street refers to street_name; review of 1.7 refers to review = 1.7 | no pizza restaurants refers to food_type = 'pizza' | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | unknown county refers to county = 'unknown' |
What is the name of the 24 hour diner at San Francisco? | name refers to label; 24 hour diner refers to food_type = '24 hour diner'; San Francisco refers to city = 'san francisco' | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | Irving Street refers to street_name = 'irving' | type refers to food_type; most common refers to max(count(food_type)) | indian restaurant refers to food_type = 'indian'; Castro St. refers to street_name = 'castro st'; Mountainview refers to city = 'mountainview'; have the word "Indian" in label refers to label = 'indian' | no African food restaurants refers to food_type <> 'african' | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type | more than 4 star review refers to review > 4 | unknown county refers to county = 'unknown' |
What is the full address of the restaurant named "Sanuki Restaurant"? | full address refers to city, street_num, street_name; restaurant named "Sanuki Restaurant" refers to label = 'sanuki restaurant' | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' | no African food restaurants refers to food_type <> 'african' | Greek restaurant refers to food_type = 'greek' | street number refers to street_num; bar refers to food_type = 'bar'; Oakland refers to city = 'oakland'; 2.7 review refers to review = 2.7 | winery refers to food_type = 'winery'; street number refers to street_num; "Tulocay Winery" refers to label = 'Tulocay winery' | more than 4 star review refers to review > 4 | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 |
Which chicken restaurant has the highest review? | chicken restaurant refers to food_type = 'chicken'; the highest review refers to max(review) | no pizza restaurants refers to food_type = 'pizza' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' | top-reviewed refers to review = 4; type of food refers to food_type
| Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | Northern California refers to region = 'northern california' | full address = street_num, street_name, city; Albert's Café refers to label = 'Albert's Café' | the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | street refers to street_name; review of 1.7 refers to review = 1.7 | street refers to street_name; the most restaurants refers to max(count(street_name)) | Mexican food refers to food_type = 'mexican'; percentage = divide(count(id_restaurant where food_type = 'mexican'), count(id_restaurant)) where county = 'monterey county' * 100% |
Give the review of the restaurant at 430, Broadway. | 430 Broadway refers to street_num = 430 and street_name = 'Broadway' | Broadway refers to street_name = 'broadway'; Oakland refers to city = 'oakland'; a review of no more than 3 refers to review < 3 | Adeline Street refers to street_name = 'adeline st'; type of food refers to food_type
| the most popular refers to max(review); restaurant refers to label; San Francisco refers to city = 'San Francisco' | the most popular refers to max(review); Asian food refers to food_type = 'asian'; San Francisco refers to city = 'san francisco' | Ocean St. refers to street_name = 'ocean st'; Santa Cruz refers to city = 'santa cruz' | Italian food refers to food_type = 'Italian' | a street called Appian Way refers to street_name = 'appian way' | asian restaurant refers to food_type = 'asian'; N. Milpitas Blvd. refers to street_name = 'n milpitas blvd'; Milpitas refers to city = 'milpitas'; restaurant ID greater than 385 refers to id_restaurant > 385 | the top 4 most popular restaurant refers to top 4 max(review) | 9th Avenue refers to street_name = '9th avenue'; San Francisco refers to City = 'san francisco' |
List the full address of all the American restaurants with a review of 4 or more? | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | no African food restaurants refers to food_type <> 'african' | the highest number refers to max(count(id_restaurant)) | Bay Area refers to region = 'bay area'; percentage = divide(count(id_restaurant where region = 'bay area'), count(id_restaurant)) * 100% | street number below 1000 refers to street_num < 1000; Railroad St. refers to street_name = 'railroad' | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | 1149 El Camino Real refers to street_num = 1149 and street_name = 'el camino real' | street refers to street_name; more than 10 restaurants refers to count(id_restaurant) > 10 | Irving Street refers to street_name = 'irving' | not in the Bay Area region refers to region ! = 'bay area' | street refers to street_name; Good Heavens restaurant refers to label = 'good heavens' |
List down the cities with unknown country. | unknown county refers to county = 'unknown' | street refers to street_name; the most restaurants refers to max(count(street_name)) | street number ranges from 1000 to 2000 refers to 1000 < = street_num < = 2000; Afghani restaurant refers to food_type = 'afghani'; percentage = divide(count(id_restaurant where food_type = 'afghani'), count(id_restaurant)) * 100% | Italian food refers to food_type = 'Italian' | type refers to food_type; most common refers to max(count(food_type)) | restaurant refers to label; "19th St. Oakland" refers to street_name = '19th St' AND city = 'Oakland' | full address refers to street_num, street_name, city; American restaurant refers to food_type = 'american'; a review of 4 or more refers to review > 4 | Bay Area refers to region = 'bay area'; Santa Clara refers to county = 'santa clara county' | restaurant refers to label; Park St refers to street_name = 'park st' | El Cerrito refers to city = 'el cerrito' | 3140 Alpine Road at San Mateo County refers to street_num = 3140 AND street_name = 'alpine rd' AND County = 'san mateo county'; type of food refers to food_type |
In 2012, how many complaints about Credit card product came from clients in Omaha? | in 2012 refers to Date received LIKE'2012%'; in Omaha refers to city = 'Omaha' | not in process with an agent refers to outcome ! = 'AGENT'; | male refers to sex = 'Male'; | elder refers to age < = 65; last name refers to last | oldest age refers to max(age); male refers to sex = 'Male' | first name refers to first; highest priority refers to priority = 2 | billing dispute refers to issue = 'Billing disputes'; | average age = avg(age where type = 'TT') | on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%' | serve time refers to ser_time; longer ser_time means more verbose or longer complaint; on 2017/2/22 refers to "Date received" = '2017-02-22'; | address refers to address_1, address_2; via postal mail refers to Submitted via = 'Postal mail'; March 14 2012 refers to Date received = '2012-03-14' |
Among the female clients that age between 20 to 40, list the date when their complaints were received. | female refers to sex = 'Female' | full names = first, middle, last; male refers to sex = 'Male'; | average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017; | in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland' | New York City refers to city = 'New York City' | full names = first, middle, last; male refers to sex = 'Male'; year > 1990; | percentage = MULTIPLY(DIVIDE(SUM("Consumer consent provided?" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to "Consumer consent provided?" = 'Consent provided'; | percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card'; | most five stars refers to MAX(COUNT(stars = 5)); | complaint call refers to Complaint ID; birthday = year, month, day; | gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28'; |
What was the phone of number of the client who made the complaint call "CR0100432" ? | complaint call refers to Complaint ID; | average age = AVG(age); Norwalk refers to city = 'Norwalk'; | first name start with alphabet "B" refers to first like 'B%' | first name refers to first; highest priority refers to priority = 2 | percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year("Date received") = 2017), SUM(year("Date received") = 2016)), SUM(year("Date received") = 2016)), 1.0); New York refers to city = 'New York'; year("Date received") BETWEEN 2016 AND 2017; | in year 2015 refers to Date received LIKE '2015%'; timely response refers to Timely response?" = 'Yes'; closed with an explanation refers to Company response to consumer = 'Closed with explanation' | full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65; | average age = avg(age where type = 'TT') | 5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17' | sent via Fax refers to Submitted via = 'Fax' | social number refers to social; most complaints refers to max(count(event.Client_ID)) |
Please list the full names of all the male clients in the Pacific division. | full names = first, middle, last; male refers to sex = 'Male'; | elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100% | full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65; | phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No' | percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year("Date received") = 2017), SUM(year("Date received") = 2016)), SUM(year("Date received") = 2016)), 1.0); New York refers to city = 'New York'; year("Date received") BETWEEN 2016 AND 2017; | credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee' | full name of the state refers to state_name; | average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017; | Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20'; | elder refers to age < = 65; last name refers to last | first name start with alphabet "B" refers to first like 'B%' |
What is the average age of clients in South Atlantic? | in South Atlantic refers to division = 'South Atlantic'; average age refers to avg(age) | Ms refers to sex = 'Female'; "Consumer consent provided?" in (null, 'N/A', 'Empty') means that the company didn't get the permission of consent; "Consumer consent provided?" not in (null, 'N/A', 'Empty') means the customers provide the consent; on 2016/5/20 refers to Date received = '2016-05-20'; | male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100% | elder refers to age < = 65; last name refers to last | average age = AVG(age); Norwalk refers to city = 'Norwalk'; | Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100% | gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28'; | average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017; | in progress refers to Company response to consumer = 'In progress' | average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation'; | full name refers to first middle last |
What was the detailed issue did Mr Gunner Omer Fuller complain about? | detailed issue refers to Sub-issue; Mr refers to sex = 'Male'; | how it was submitted refers to "Submitted via"; | day received refers to "Date received"; most verbose complaint refers to MAX(ser_time); | full name of the state refers to state_name; | female refers to sex = 'Female' | gmail.com email refers to email like '%gmail.com'; in February 2017 refers to "Date received" BETWEEN '2017-01-02' AND '2017-02-28'; | state refers to state_abbrev; most cities refers to max(count(city)) | Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100% | first name start with alphabet "B" refers to first like 'B%' | percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card'; | on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%' |
Which complaint is more urgent, complaint ID CR2400594 or ID CR2405641? | more urgent refers to MAX(priority); | full names = first, middle, last; male refers to sex = 'Male'; year > 1990; | day received refers to "Date received"; most verbose complaint refers to MAX(ser_time); | Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100% | age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage'; | average age = AVG(age); | on 2016/10/28 refers to "Date received" = '2016-10-28'; delayed = SUBTRACT("Date sent to company', 'Date received"); | in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100% | social number refers to social; most complaints refers to max(count(event.Client_ID)) | detailed issue refers to Sub-issue; Mr refers to sex = 'Male'; | full names = first, middle, last; male refers to sex = 'Male'; |
What is the social number of the person who made the most complaints? | social number refers to social; most complaints refers to max(count(event.Client_ID)) | day received refers to "Date received"; most verbose complaint refers to MAX(ser_time); | male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100% | in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18 | teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com' | full names = first, middle, last; male refers to sex = 'Male'; | average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017; | in 2014 refers to Date received LIKE'2014%'; Houston refers to city = 'Houston'; delay over 5 days refers to subtract(Date sent to company, Date received) > 5; percentage = divide(count(Complaint ID where subtract(Date sent to company , Date received) > 5) , count(Complaint ID)) * 100% | Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100% | 5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17' | more urgent refers to MAX(priority); |
Which state does the owner of "wyatt.collins@gmail.com" live in? Give the full name of the state. | full name of the state refers to state_name; | New York City refers to city = 'New York City' | not in process with an agent refers to outcome ! = 'AGENT'; | billing dispute refers to issue = 'Billing disputes'; | in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18 | birth date refers to year, month, day; youngest client refers to max(year, month, day) | 5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17' | on 2017/3/27 refers to "Date received" = '2017-03-27'; percentage = MULTIPLY(DIVIDE(SUM(sex = 'Female' ), COUNT(client_id)), 1.0); females refers to sex = 'Female'; | in 2015 refers to Date received LIKE'2015%'; about Billing disputes refers to Issue = 'Billing disputes'; Portland refers to city = 'Portland' | social number refers to social | full name refers to first middle last |
What is the full name of client whose email address is emily.garcia43@outlook.com? | full name refers to first middle last | first name refers to first; highest priority refers to priority = 2 | male refers to sex = 'Male'; Indianapolis City refers to city = 'Indianapolis'; percentage = divide(count(client_id where sex = 'Male' and city = 'Indianapolis') , count(client_id where city = 'Indianapolis')) * 100% | from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female' | average = AVG(Complaint ID); credit cards refers to Product = 'Credit card'; New York refers to city = 'New York'; 3 consecutive years starting from 2015 refers to "Date received" BETWEEN 2015 AND 2017; | credit cards refers to Product = 'Credit card'; 2016 refers to year(Date received) = 2016; male refers to sex = 'Male'; | between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time) | teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com' | New York City refers to city = 'New York City' | how long did the complaint filed last refers to ser_time; on 2017/3/27 refers to "Date received" = '2017-03-27'; | percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card'; |
Identify by their ID all clients who did not give their consent permission. | did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty; | 5 stars refers to Stars = 5; on December 17 2017 refers to Date = '2017-12-17' | age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage'; | full name refers to first, last | on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%' | complaint call refers to Complaint ID; | average = AVG("Complaint ID"); New Bedford refers to city = 'New Bedford'; closed with explanation refers to Company response to consumer = 'Closed with explanation'; | email id refers to email; calls were hung refers to outcome = 'Hang'; | service members refers to client.client_id; Syracuse refers to city = 'Syracuse'; | teenager refers to 13 < age < = 19; Google account refers to email like '%@gmail.com'; Microsoft account refers to email like '%@outlook.com' | on 2018/9/11 refers to Date = '2017-07-22'; |
From 2012 to 2015, how many complaints were submitted via email from female clients? | from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female' | first name refers to first; highest priority refers to priority = 2 | oldest age refers to max(age); male refers to sex = 'Male' | social number refers to social; most complaints refers to max(count(event.Client_ID)) | full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL'; | social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer' | on 2016/10/28 refers to "Date received" = '2016-10-28'; delayed = SUBTRACT("Date sent to company', 'Date received"); | average age = AVG(age); Norwalk refers to city = 'Norwalk'; | 5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100% | New York City refers to city = 'New York City' | percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year("Date received") = 2017), SUM(year("Date received") = 2016)), SUM(year("Date received") = 2016)), 1.0); New York refers to city = 'New York'; year("Date received") BETWEEN 2016 AND 2017; |
How many female clients are there older than 30? | female refers to sex = 'Female'; older than 30 refers to age > 30 | full name = first, middle, last; date of birth = year, month, day; elderly clients refers to age > 65; | male refers to sex = 'Male'; | social number refers to social; longest delay = max(subtract(Date sent to company, Date received)); days of delay = subtract(Date sent to company, Date received); company's response refers to 'Company response to consumer' | percentage of increase = MULTIPLY(DIVIDE(SUBTRACT(SUM(year("Date received") = 2017), SUM(year("Date received") = 2016)), SUM(year("Date received") = 2016)), 1.0); New York refers to city = 'New York'; year("Date received") BETWEEN 2016 AND 2017; | full names = first, middle, last; male refers to sex = 'Male'; | age < 35; Eagle National Mortgage refers to Product = 'Eagle National Mortgage'; | 5 stars refers to Stars = 5; percentage = divide(count(division = 'East North Central', count(division)) * 100% | submitted complaints via fax refers to "Submitted via" = 'Fax'; | most five stars refers to MAX(COUNT(stars = 5)); | first name refers to first; highest priority refers to priority = 2 |
Which product got the most five stars, and how many? | most five stars refers to MAX(COUNT(stars = 5)); | below average = AVG(stars) < Stars; Eagle Capital refers to Product = 'Eagle Capital'; | on March 2017 refers to Date received LIKE '%03%' AND Date received LIKE '2017%' | full birthdate = year, month, day; youngest refers to max(year, month, day); in Indianapolis refers to city = 'Indianapolis' | between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time) | from 2012 to 2015 refers to Date received BETWEEN 2012 AND 2015; submitted via email refers to Submitted via = 'Email'; female refers to sex = 'Female' | full name refers to first, last | in progress refers to Company response to consumer = 'In progress' | New York City refers to city = 'New York City' | average age = AVG(age); Norwalk refers to city = 'Norwalk'; | in Middle Atlantic refers to division = 'Middle Atlantic'; female refers to sex = 'Female'; no more than 18 refers to age < 18 |
What is the percentage of the complaint calls from Mr Mason Javen Lopez has got the consent provided by the customer? | percentage = MULTIPLY(DIVIDE(SUM("Consumer consent provided?" = 'Consent provided'), COUNT(client_id)), 1.0); Mr refers to sex = 'Male'; consent provided by the customer refers to "Consumer consent provided?" = 'Consent provided'; | percentage = MULTIPLY(DIVIDE(SUM("Consumer disputed?" = 'Yes' AND city = 'Houston'), COUNT(client_id)), 1.0); Houston refers to city = 'Houston'; | elder refers to age < = 65; last name refers to last | between 1/1/2017 and 4/1/2017 refers to Date received between '2017-01-01' and '2017-04-01'; average server time refers to avg(ser_time) | complaint call refers to Complaint ID; | oldest age refers to max(age); male refers to sex = 'Male' | state refers to state_abbrev; most cities refers to max(count(city)) | first name refers to first; highest priority refers to priority = 2 | social number refers to social | percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card'; | female refers to sex = 'Female' |
Calculate the percentage of complaints made by Google account client in server ZOHARI. | Google account refers to email like '%@gmail.com'; percentage = divide(count(Complaint ID where email like '%@gmail.com') , count(Complaint ID)) * 100% | first name refers to first; highest priority refers to priority = 2 | New York City refers to city = 'New York City' | percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017 | percentage = MULTIPLY(DIVIDE(SUM(sex = 'Male'), COUNT(client_id)), 1.0); male refers to sex = 'Male'; credit cards refers to Product = 'Credit card'; | detailed issue refers to Sub-issue; Mr refers to sex = 'Male'; | in 2014 refers to Date received LIKE '2014%'; submitted via call refers to Submitted via = 'Phone' | no dispute refers to Consumer disputed? = 'No'; non-timely response refers to Timely response? = 'No' | full names = first, middle, last; without seeking their permission refers to "Consumer consent provided?" in (null, 'N/A' or 'empty'); | not in process with an agent refers to outcome ! = 'AGENT'; | in progress refers to Company response to consumer = 'In progress' |
How many times per year does a credit card customer complain about overlimit fees? | credit card customer refers to product = 'Credit card'; about overlimit fees refers to issue = 'Overlimit fee' | percentage = divide(count(Complaint ID where priority = 2) , count(Complaint ID)) * 100%; in 2017 refers to year(Date received) = 2017 | the Northeast refers to Region = 'Northeast'; Microsoft email refers to email like '%@outlook.com' | elder refers to age < = 65; percentage refers to divide(sum(age < = 65) , count(client_id)) * 100% | April 16, 2014 refers to Date received = '2014-04-16'; submitted through fax refers to Submitted via = 'Fax' | full name refers to first, middle, last; disputed the response refers to Consumer disputed? = 'Yes' | birth date refers to year, month, day; youngest client refers to max(year, month, day) | phone complaint refers to Submitted via = 'Phone'; late response refers to Timely response? = 'No' | did not give their consent permission refers to Consumer consent provided is null, 'N/A', or empty; | day received refers to "Date received"; most verbose complaint refers to MAX(ser_time); | full names = first, middle, last; on 2017/3/27 refers to "Date received" = '2017-03-27'; MICHAL refers to server = 'MICHAL'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.