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
|
---|---|---|---|---|---|---|---|---|---|---|---|
Provide the destination city of the shipment shipped by January 16, 2017.
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
"North Las Vegas" is the city_name
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
"Peterbilt" is the make
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
shipment no. 1346 refers to ship_id = 1346
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
"7052 Carroll Road" is the address of customer; 'San Diego' is the city; 'California' is the state
|
Among the shipments for Downey, how many shipments were shipped to California in 2016?
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
"retailer" is the cust_type; live in California refers to state = 'CA'
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
"Klett & Sons Repair" is the cust_name
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
"New York" is the city_name; maximum weight refers to Max(weight)
|
Provide the ship date of the first shipment to customers in South Carolina.
|
"South Carolina" refers to state = 'SC'; first shipment refers to Min(ship_date)
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
"S K L Enterprises Inc" is the cust_name; total number of pounds refers to Sum(weight)
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
manufactured in year 2009 refers to model_year = 2009
|
"Florida" is the state; "Jacksonville" is city_name;
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
State the headquarter of the truck which completed shipment no.1045.
|
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
|
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
|
"Cicero" is the city; 'Illinois' is the state
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name
|
"New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name
|
"Connecticut" is the state
|
"New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
Among all the shipments to Florida, what is the percentage of the shipment to Jacksonville?
|
"Florida" is the state; "Jacksonville" is city_name;
|
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
"S K L Enterprises Inc" is the cust_name
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
"Klett & Sons Repair" is the cust_name
|
"North Las Vegas" is the city_name
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
Please list the IDs of all the shipments made by a retailer customer.
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
shipment id 1028 refers to ship_id = 1028
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
"Klett & Sons Repair" is the cust_name
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
"7052 Carroll Road" is the address of customer; 'San Diego' is the city; 'California' is the state
|
How many pounds did Sue Newell transport during her first shipment?
|
first shipment refers to Min(ship_date); pounds refers to weight
|
brand of truck refers to make
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
"North Las Vegas" is the city_name
|
"New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
What is the address of the driver that delivers the shipment for the customer lives at 7052 Carroll Road, San Diego, California?
|
"7052 Carroll Road" is the address of customer; 'San Diego' is the city; 'California' is the state
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year
|
"retailer" is the cust_type; live in California refers to state = 'CA'
|
"North Las Vegas" is the city_name
|
Among the shipments shipped to Cicero, Illinois, how many shipments weighed between 9,000 to 15,000?
|
"Cicero" is the city; 'Illinois' is the state
|
living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016
|
"California" is the state; least populated city refers to Min(population)
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
shipment id 1028 refers to ship_id = 1028
|
"New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name
|
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
|
city refers to city_name
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
What is the maximum weight being transported to New York during a single shipment?
|
"New York" is the city_name; maximum weight refers to Max(weight)
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
|
"S K L Enterprises Inc" is the cust_name; total number of pounds refers to Sum(weight)
|
shipment id 1055 refers to ship_id = 1055
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
city refers to city_name
|
"manufacturer" is the cust_type
|
How many shipments were shipped to customers living in California in year 2016?
|
living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016
|
shipment no. 1346 refers to ship_id = 1346
|
"Klett & Sons Repair" is the cust_name
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
shipment id 1003 refers to ship_id = 1003
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
"North Las Vegas" is the city_name
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
Which headquarter's truck has the highest shipments in year 2016?
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
"California" is the state; least populated city refers to Min(population)
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
first shipment refers to Min(ship_date); pounds refers to weight
|
"Olympic Camper Sales Inc" is the cust_name
|
oldest truck model refers to Min(model_year)
|
"Peterbilt" is the make
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
State the weight of shipments transported by Peterbilt.
|
"Peterbilt" is the make
|
city refers to city_name
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
"Connecticut" is the state
|
brand of truck refers to make
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
"Olympic Camper Sales Inc" is the cust_name
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
"California" is the state; least populated city refers to Min(population)
|
live refers to address
|
How many trucks were manufactured in year 2009?
|
manufactured in year 2009 refers to model_year = 2009
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
"Florida" is the state; "Jacksonville" is city_name;
|
"North Las Vegas" is the city_name
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
"New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name
|
"Connecticut" is the state
|
shipment id 1028 refers to ship_id = 1028
|
first shipment refers to Min(ship_date); pounds refers to weight
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
What is the weight of the shipment delivered by Andrea Simons on March 7, 2016?
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
shipment id 1028 refers to ship_id = 1028
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
"North Las Vegas" is the city_name
|
"manufacturer" is the cust_type
|
"Klett & Sons Repair" is the cust_name
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
"Florida" is the state; "Jacksonville" is city_name;
|
Give the name of the driver of shipment no.1021.
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
"wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
"North Las Vegas" is the city_name
|
first shipment refers to Min(ship_date); pounds refers to weight
|
customer in Florida refers to state = 'FL'
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
|
"Connecticut" is the state
|
"Peterbilt" is the make
|
List all the name of the customers that received a shipment in February 2017.
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year
|
"Olympic Camper Sales Inc" is the cust_name
|
customer in Florida refers to state = 'FL'
|
oldest truck model refers to Min(model_year)
|
live refers to address
|
shipment id 1003 refers to ship_id = 1003
|
"S K L Enterprises Inc" is the cust_name; total number of pounds refers to Sum(weight)
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
How many shipments did Holger Nohr transport to North Las Vegas overall?
|
"North Las Vegas" is the city_name
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'
|
shipment id 1003 refers to ship_id = 1003
|
manufactured in year 2009 refers to model_year = 2009
|
shipment no. 1346 refers to ship_id = 1346
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
List all the cities where Zachery Hicks transported goods.
|
city refers to city_name
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
oldest truck model refers to Min(model_year)
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
"manufacturer" is the cust_type
|
shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
"Cicero" is the city; 'Illinois' is the state
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
What is the annual revenue of Klett & Sons Repair?
|
"Klett & Sons Repair" is the cust_name
|
first shipment refers to Min(ship_date); pounds refers to weight
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
"New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name
|
on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name
|
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
|
"manufacturer" is the cust_type
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
"wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
What is the most populated city in California?
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
"New York" is the city_name; maximum weight refers to Max(weight)
|
"Florida" is the state; "Jacksonville" is city_name;
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
shipment id 1028 refers to ship_id = 1028
|
"S K L Enterprises Inc" is the cust_name
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
"Cicero" is the city; 'Illinois' is the state
|
Please list the destination cities of all the shipments ordered by S K L Enterprises Inc.
|
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
brand of truck refers to make
|
"Peterbilt" is the make
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
"wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100
|
"S K L Enterprises Inc" is the cust_name; total number of pounds refers to Sum(weight)
|
live refers to address
|
"Olympic Camper Sales Inc" is the cust_name
|
What is the brand of the truck that is used to ship by Zachery Hicks?
|
brand of truck refers to make
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
"Florida" is the state; "Jacksonville" is city_name;
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
"7052 Carroll Road" is the address of customer; 'San Diego' is the city; 'California' is the state
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
city refers to city_name
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
oldest truck model refers to Min(model_year)
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
What is the average annual revenue of customers who have shipment weight of less than 65000 pounds?
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
brand of truck refers to make
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
"Olympic Camper Sales Inc" is the cust_name
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
"S K L Enterprises Inc" is the cust_name
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
"California" is the state; least populated city refers to Min(population)
|
most populated city refers to Max(population)
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
shipment id 1055 refers to ship_id = 1055
|
What is the brand and model of truck used in shipment id 1055?
|
shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
customer in Florida refers to state = 'FL'
|
"7052 Carroll Road" is the address of customer; 'San Diego' is the city; 'California' is the state
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016
|
manufactured in year 2009 refers to model_year = 2009
|
"S K L Enterprises Inc" is the cust_name
|
shipment id 1028 refers to ship_id = 1028
|
"Peterbilt" is the make
|
State the address of drivers who transported the shipment with weight greater than 50000 pounds.
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
manufactured in year 2009 refers to model_year = 2009
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
|
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
"wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100
|
shipment no. 1346 refers to ship_id = 1346
|
"S K L Enterprises Inc" is the cust_name; total number of pounds refers to Sum(weight)
|
How many customers who live in California that are retailers?
|
"retailer" is the cust_type; live in California refers to state = 'CA'
|
brand of truck refers to make
|
"New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
|
heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
live refers to address
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
What is the model year of the truck used in shipment id 1003?
|
shipment id 1003 refers to ship_id = 1003
|
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
first shipment refers to Min(ship_date); pounds refers to weight
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
"Olympic Camper Sales Inc" is the cust_name
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
most populated city refers to Max(population)
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
"South Carolina" refers to state = 'SC'; first shipment refers to Min(ship_date)
|
Calculate the difference between the number of shipments shipped by the truck with the model year 2005 and model year 2006.
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
manufactured in year 2009 refers to model_year = 2009
|
shipment id 1055 refers to ship_id = 1055
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
shipment id 1028 refers to ship_id = 1028
|
"Connecticut" is the state
|
"S K L Enterprises Inc" is the cust_name
|
"California" is the state; least populated city refers to Min(population)
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
How many shipments were ordered by S K L Enterprises Inc in 2017?
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
"S K L Enterprises Inc" is the cust_name
|
on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
shipment no. 1346 refers to ship_id = 1346
|
"Peterbilt" is the make
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
"New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
|
most populated city refers to Max(population)
|
What is the average weight of the goods being transported on a single shipment ordered by S K L Enterprises Inc?
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
"New York" is the city_name; maximum weight refers to Max(weight)
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
"Olympic Camper Sales Inc" is the cust_name
|
most populated city refers to Max(population)
|
Among all shipments delivered by Sue Newel, identify the percentage of shipments that were placed by Autoware Inc.
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
"South Carolina" refers to state = 'SC'; first shipment refers to Min(ship_date)
|
brand of truck refers to make
|
"retailer" is the cust_type; live in California refers to state = 'CA'
|
"Cicero" is the city; 'Illinois' is the state
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
"New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name
|
"S K L Enterprises Inc" is the cust_name
|
"Olympic Camper Sales Inc" is the cust_name
|
List out the state of driver who transported the shipment id 1055.
|
shipment id 1055 refers to ship_id = 1055
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
"wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016
|
"North Las Vegas" is the city_name
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
"Olympic Camper Sales Inc" is the cust_name
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
"New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name
|
What is the shipment ID of the heaviest shipment that Zachery Hicks transported?
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
"South Carolina" refers to state = 'SC'; first shipment refers to Min(ship_date)
|
"retailer" is the cust_type; live in California refers to state = 'CA'
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
first shipment refers to Min(ship_date); pounds refers to weight
|
most populated city refers to Max(population)
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
"Olympic Camper Sales Inc" is the cust_name
|
What is the area of the destination city of shipment No.1346?
|
shipment no. 1346 refers to ship_id = 1346
|
shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year
|
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
"New York" is the city_name; maximum weight refers to Max(weight)
|
"Klett & Sons Repair" is the cust_name
|
"wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100
|
"Florida" is the state; "Jacksonville" is city_name;
|
city refers to city_name
|
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
|
"South Carolina" refers to state = 'SC'; first shipment refers to Min(ship_date)
|
Who was the customer of shipment no.1275? Give the customer's name.
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
|
"Olympic Camper Sales Inc" is the cust_name
|
first shipment refers to Min(ship_date); pounds refers to weight
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
oldest truck model refers to Min(model_year)
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
manufactured in year 2009 refers to model_year = 2009
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
"Klett & Sons Repair" is the cust_name
|
How many cities are in Connecticut?
|
"Connecticut" is the state
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
shipment no. 1346 refers to ship_id = 1346
|
"manufacturer" is the cust_type
|
shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year
|
customer in Florida refers to state = 'FL'
|
live refers to address
|
"Olympic Camper Sales Inc" is the cust_name
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
What is the full name of the driver that has done the most shipments in 2017?
|
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
|
"Connecticut" is the state
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
"7052 Carroll Road" is the address of customer; 'San Diego' is the city; 'California' is the state
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
shipment id 1003 refers to ship_id = 1003
|
Where does the driver of ship ID 1127 live?
|
live refers to address
|
"Cicero" is the city; 'Illinois' is the state
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
"7052 Carroll Road" is the address of customer; 'San Diego' is the city; 'California' is the state
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
"California" is the state; least populated city refers to Min(population)
|
"retailer" is the cust_type; live in California refers to state = 'CA'
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
city refers to city_name
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
Calculate the population density of the city as the destination of shipment no.1369.
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
"Peterbilt" is the make
|
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
|
"7052 Carroll Road" is the address of customer; 'San Diego' is the city; 'California' is the state
|
"Florida" is the state; "Jacksonville" is city_name;
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
"S K L Enterprises Inc" is the cust_name; total number of pounds refers to Sum(weight)
|
"California" is the state; least populated city refers to Min(population)
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
shipment no. 1346 refers to ship_id = 1346
|
shipment id 1055 refers to ship_id = 1055
|
What is the full name of the driver who delivered the most shipments to the least populated city?
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
"Florida" is the state; "Jacksonville" is city_name;
|
shipment no. 1346 refers to ship_id = 1346
|
"Klett & Sons Repair" is the cust_name
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
oldest truck model refers to Min(model_year)
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
"S K L Enterprises Inc" is the cust_name; total number of pounds refers to Sum(weight)
|
on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
"manufacturer" is the cust_type
|
What is the first name of the driver who transported shipment id 1028?
|
shipment id 1028 refers to ship_id = 1028
|
"S K L Enterprises Inc" is the cust_name; average = Divide (Sum(weight), Count(ship_id))
|
"manufacturer" is the cust_type
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
manufactured in year 2009 refers to model_year = 2009
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
|
"Olympic Camper Sales Inc" is the cust_name
|
"Connecticut" is the state
|
"New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name
|
What is the average shipment weight carried by the oldest Mack?
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
"Connecticut" is the state
|
first shipment refers to Min(ship_date); pounds refers to weight
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
"Florida" is the state; "Jacksonville" is city_name;
|
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
|
shipment id 1003 refers to ship_id = 1003
|
"Olympic Camper Sales Inc" is the cust_name
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
In total, how many shipments were transported to Olympic Camper Sales Inc?
|
"Olympic Camper Sales Inc" is the cust_name
|
"Connecticut" is the state
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
"S K L Enterprises Inc" is the cust_name
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
"South Carolina" refers to state = 'SC'; first shipment refers to Min(ship_date)
|
city refers to city_name
|
"wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100
|
"Downey" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,
|
Who is the driver that transported the lightest weight of shipment? Provide the full name of the driver.
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
"Florida" is the state; "Jacksonville" is city_name;
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
"New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
|
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
|
most populated city refers to Max(population)
|
"retailer" is the cust_type; live in California refers to state = 'CA'
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
"Cicero" is the city; 'Illinois' is the state
|
brand of truck refers to make
|
How many shipments with weight of no more than 1,000 pounds were shipped by the oldest truck?
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
"manufacturer" is the cust_type
|
shipment no. 1346 refers to ship_id = 1346
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
"California" is the state; least populated city refers to Min(population)
|
"New York" is the city_name; maximum weight refers to Max(weight)
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
List the ship ID of shipments shipped to the most populated city.
|
most populated city refers to Max(population)
|
shipment id 1003 refers to ship_id = 1003
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016
|
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
|
"S K L Enterprises Inc" is the cust_name; destination cities refers to city_name
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
manufactured in year 2009 refers to model_year = 2009
|
"Connecticut" is the state
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
How many shipments were shipped to the least populated city in California?
|
"California" is the state; least populated city refers to Min(population)
|
"manufacturer" is the cust_type
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
shipment id 1003 refers to ship_id = 1003
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
"New York" is the city_name; maximum weight refers to Max(weight)
|
customer in Florida refers to state = 'FL'
|
heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
|
live refers to address
|
How many of the shipments bound for New York City were shipped to Harry's Hot Rod Auto and Truck Accessories?
|
"New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name
|
live refers to address
|
shipment id 1028 refers to ship_id = 1028
|
shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)
|
"Cicero" is the city; 'Illinois' is the state
|
"Klett & Sons Repair" is the cust_name
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
"North Las Vegas" is the city_name
|
most populated city refers to Max(population)
|
weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)
|
What is the percentage of wholesaler customers who have shipment weight of not greater than 70000 pounds?
|
"wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100
|
customer in Florida refers to state = 'FL'
|
heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'
|
"S K L Enterprises Inc" is the cust_name
|
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
|
shipment id 1055 refers to ship_id = 1055
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
"Florida" is the state; "Jacksonville" is city_name;
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
"Olympic Camper Sales Inc" is the cust_name
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
How many shipments were delivered by the oldest truck model?
|
oldest truck model refers to Min(model_year)
|
manufactured in year 2009 refers to model_year = 2009
|
living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016
|
"New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
|
brand of truck refers to make
|
"manufacturer" is the cust_type
|
"North Las Vegas" is the city_name
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
on March 7, 2016 refers to ship_date = '2016-03-07'
|
How much more pounds in total were transported to New York than to Chicago?
|
"New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
|
brand of truck refers to make
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
customer in Florida refers to state = 'FL'
|
"Cicero" is the city; 'Illinois' is the state
|
"Peterbilt" is the make
|
heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
How many shipments were ordered by a customer in Florida?
|
customer in Florida refers to state = 'FL'
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
"Klett & Sons Repair" is the cust_name
|
"New York" and "Chicago" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))
|
"Connecticut" is the state
|
"Florida" is the state; "Jacksonville" is city_name;
|
"retailer" is the cust_type; IDs of shipments refers to ship_id
|
shipment id 1028 refers to ship_id = 1028
|
live refers to address
|
"Cicero" is the city; 'Illinois' is the state
|
How many customers are manufacturer?
|
"manufacturer" is the cust_type
|
"wholesaler" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100
|
in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))
|
manufactured in year 2009 refers to model_year = 2009
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
in California refers to state = 'CA'; most populated city refers to Max(population)
|
on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name
|
city refers to city_name
|
oldest truck model refers to Min(model_year)
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
Give the full name of driver who transported the items on 3/2/2016.
|
on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name
|
"Florida" is the state; "Jacksonville" is city_name;
|
"Autoware Inc" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
"Connecticut" is the state
|
shipment no. 1346 refers to ship_id = 1346
|
January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name
|
shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year
|
"New York" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name
|
"Mack" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)
|
"Cicero" is the city; 'Illinois' is the state
|
Among the top 5 heaviest shipments, how many shipments were transported via Mack?
|
heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'
|
"S K L Enterprises Inc" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017
|
"California" is the state; least populated city refers to Min(population)
|
shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000
|
"2005" and "2006" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))
|
first shipment refers to Min(ship_date); pounds refers to weight
|
"Cicero" is the city; 'Illinois' is the state
|
"retailer" is the cust_type; live in California refers to state = 'CA'
|
shipment id 1028 refers to ship_id = 1028
|
shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'
|
shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name
|
List the driver's name of the shipment shipped on February 22, 2016.
|
on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name
|
shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name
|
shipment id 1055 refers to ship_id = 1055
|
weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)
|
shipment ID refers to ship_id; heaviest shipment refers to Max(weight)
|
"manufacturer" is the cust_type
|
driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))
|
heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'
|
"Texas" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100
|
lightest weight refers to Min(weight); full name refers to first_name, last_name
|
"S K L Enterprises Inc" is the cust_name
|
In which year has the greatest number of cases where Handgun was used as weapon?
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
subject were deceased refers to subject_statuses = 'Deceased'
|
the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
List all cases from the year 2012 in which the subject was deceased
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
What is the percentage of the cases involved more than 3 officers from year 2010 to 2015?
|
more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
How many instances were found in June 2015?
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
subject were deceased refers to subject_statuses = 'Deceased'
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
Did the number of cases with Vehicle as subject weapon increase or decrease from year 2007 to 2008. State the difference.
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
subject were deceased refers to subject_statuses = 'Deceased'
|
more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
From the 'Injured' statuses of the subject, what is the ratio of weapons used are knife against handgun?
|
the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
What is the proportion of white males and females in the police force?
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%
|
voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'
|
subject were deceased refers to subject_statuses = 'Deceased'
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
From the cases where the subject were deceased, list the subject's last name, gender, race and case number.
|
subject were deceased refers to subject_statuses = 'Deceased'
|
more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
In how many cases where the subject was a female was the subject's status listed as Deceased?
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
How many incidents in which the subject's weapon was a vehicle were investigated by a female officer?
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
subject were deceased refers to subject_statuses = 'Deceased'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'
|
How many more black female victims than white female victims were discovered?
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
subject were deceased refers to subject_statuses = 'Deceased'
|
voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
Which near-death incident did a policeman by the name of Ruben Fredirick look into? What is the victim in this incident's race and gender?
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
subject were deceased refers to subject_statuses = 'Deceased'
|
more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%
|
Among the 'Handgun' weapon used by subject, how many percent were 'Shoot and Miss'?
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
subject were deceased refers to subject_statuses = 'Deceased'
|
What is the percentage of subject who are female used the Vehicle as weapon?
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
subject were deceased refers to subject_statuses = 'Deceased'
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
Who are the officers involved in cases that are voted as 'No Bill'. List their last name and gender.
|
voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'
|
white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%
|
subject were deceased refers to subject_statuses = 'Deceased'
|
black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%
|
female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%
|
Among all the male officers, what is the percentage of them are White?
|
male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%
|
in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number
|
case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'
|
subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'
|
'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%
|
voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'
|
subject were deceased refers to subject_statuses = 'Deceased'
|
more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%
|
year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'
|
near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'
|
number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'
|
What is the birth place of the cast or crew member who won the Best Voice-Over Performance in Online Film & Television Association in 2009?
|
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
|
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
|
voice over for and was awarded refers to award like '%Voice-Over%';
|
Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'
|
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
|
credited cast refers to category = 'Cast' and credited = 'true'; episode "In the Name of the Grandfather" refers to title = 'In the Name of the Grandfather'
|
born before 1970 refers to birthdate < '1970-01-01'
|
lowest rating refers to Min(rating)
|
nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%
|
from countries other than the USA refers to birth_country ! = 'USA'
|
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
|
Which episode of The simpson 20s: Season 20 has received the most nominations? Indicate the title.
|
received the most nomination refers to MAX(COUNT(episode_id))
|
in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
|
won refers to result = 'Winner'; first award refers to Min(year)
|
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
|
in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
|
website address refers to episode_image
|
star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'
|
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
|
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
|
director refers to role = 'director'
|
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
|
Which episode did the composer win for Outstanding Music Composition for a Series (Original Dramatic Score) with more than 200 votes?
|
more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'
|
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
|
episode 426 refers to number_in_series = 426
|
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
|
largest number of votes refers to MAX(votes)
|
2 stars refers to stars = 2; 9 votes refers to votes = 9
|
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
|
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
|
name refers to person; the role Smithers refers to character = 'Smithers'
|
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
|
"riot" and "cake" are both keyword
|
How many WGA Award (TV) award recipients were born in the USA from 2009 to 2010?
|
WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'
|
voice over for and was awarded refers to award like '%Voice-Over%';
|
from countries other than the USA refers to birth_country ! = 'USA'
|
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
|
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
|
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
|
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
|
largest number of votes refers to MAX(votes)
|
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
|
director refers to role = 'director'
|
won refers to result = 'Winner'; first award refers to Min(year)
|
State the birth name of crews who are director and have birth country in South Korea.
|
director refers to role = 'director'
|
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
|
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
|
star score of 10 refers to stars = 10
|
rating below 7 refers to rating < 7
|
"Dell Hake" is the person; not included in the credit list refers to credited = ''
|
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
|
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
|
aired between October to November refers to strftime('%m', air_date) between '10' and '11';
|
"riot" and "cake" are both keyword
|
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
|
What is the average height of people from USA?
|
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
|
winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'
|
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
|
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
|
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
|
is credited refers to credited = 'true';
|
"Primetime Emmy' is the award_category; rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
|
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
|
more than 1000 votes refers to votes > 1000
|
"Dan Castellaneta" is the person; 2009 is year; won refers result = 'Winner'
|
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
|
Name the title of the episode where Pamela Hayden voiced the character 'Ruthie.'
|
"Pamela Hayden" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'
|
"Dan Castellaneta" is the person; 2009 is year; won refers result = 'Winner'
|
website address refers to episode_image
|
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
|
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
|
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
|
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
|
director refers to role = 'director'
|
in November 2008 refers to air_date LIKE '2008-11%'
|
episode "Take My Life, Please" refers to title = 'Take My Life, Please'
|
worst rated episode refers to MIN(rating)
|
What is the name of the person that has the highest number of nominated award but didn't win?
|
nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))
|
"Take My Life,Please" is the title of episode
|
being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%
|
"Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
|
in 2009 refers to year = 2009
|
"New York" is the birth_place; 'USA' is the birth_region
|
scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5
|
won refers to result = 'Winner'; in 2017 refers to year = 2017
|
are not included in the credit list refers to credited = ''
|
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
|
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
|
What is the title of episode with 5 stars and nominated for Prism Award which is aired on April 19, 2009?
|
5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'
|
winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'
|
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
|
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
|
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
|
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
|
produced by Jason Bikowski refers to person = 'Jason Bikowski'
|
Primetime Emmy Award refers to award_category = 'Primetime Emmy'
|
award winner refers to result = 'Winner'; 'USA' is the birth_country
|
"The Tiny Canadian" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role
|
rating below 7 refers to rating < 7
|
Among episodes from 10 to 20, which episode has more than 200 votes?
|
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
|
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
|
aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950
|
director refers to role = 'director'
|
between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'
|
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
|
in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'
|
award won refers to result = 'Winner'
|
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
|
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
|
"Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
|
Among the crew members of the simpson 20s born in the New York city, how many of them were born after the year 1970?
|
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
|
crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL
|
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
|
more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'
|
In 2010 refers to year = 2010
|
rating below 7 refers to rating < 7
|
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
|
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
|
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
|
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
|
star score greater than 8 refers to stars > 8
|
What award did the character Homer simpson 20 achieve in 2009?
|
in 2009 refers to year = 2009
|
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
|
from countries other than the USA refers to birth_country ! = 'USA'
|
oldest refers to Min(birthdate)
|
best rating scale refers to stars = 10
|
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
|
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
|
"Primetime Emmy' is the award_category; rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100
|
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
|
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
|
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
|
What is the awarded category that the awarded character Lenny won?
|
awarded category refers to award_category
|
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
|
nominated for Primetime Emmy Award but did not win refers to award_category = 'Primetime Emmy' and result = 'Nominee'; from 2009 to 2010 refers to year > = '2009' and year < = '2010'
|
highest number of vote of the star score refers to max(votes)
|
2 stars refers to stars = 2; 9 votes refers to votes = 9
|
episode S20-E1, S20-E2 & S20-E3 refers to episode_id = 'S20-E1' and episode_id = 'S20-E2' and episode_id = 'S20-E3'
|
highest votes refers to max(votes); to Carlton Batten refers to person = 'Carlton Batten'
|
"riot" and "cake" are both keyword
|
born in the USA refers to birth_country = 'USA'
|
voiced refers to role; role = 'Helen Lovejoy"
|
aired in 2008 refers to air_date LIKE '2008%'; 5 stars and below refers to stars < 5
|
How many episodes have the star score greater than 8?
|
star score greater than 8 refers to stars > 8
|
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
|
produced by Jason Bikowski refers to person = 'Jason Bikowski'
|
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
|
average high = Divide(Sum(height_meters), Count(name))
|
in 2009 refers to year = 2009; name of awarded character refers to character
|
2 stars refers to stars = 2; 9 votes refers to votes = 9
|
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
|
won refers to result = 'Winner'; first award refers to Min(year)
|
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
|
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
|
What character did Dan Castellaneta play that won him an award for Outstanding Voice-Over Performance in 2009 in the Primetime Emmy Awards?
|
"Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
|
award winner refers to result = 'Winner'; 'USA' is the birth_country
|
"Dan Castellaneta" is the person; 2009 is year; won refers result = 'Winner'
|
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
|
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
|
largest number of votes refers to MAX(votes)
|
average high = Divide(Sum(height_meters), Count(name))
|
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
|
more than 100 votes refers to votes > 100
|
is credited refers to credited = 'true';
|
star score of 10 refers to stars = 10
|
Please indicate which writer has an episode star score greater than 5 in 2009.
|
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
|
in 2009 refers to year = 2009
|
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
|
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
|
episode 'Take My Life, Please' refers to title = 'Take My Life, Please'
|
aired on 11/30/2008 refers to air_date = '11/30/2008'; win refers to result = 'Winner'
|
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
|
received the most nomination refers to MAX(COUNT(episode_id))
|
episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200
|
height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'
|
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
|
How many episodes have more than 1000 votes?
|
more than 1000 votes refers to votes > 1000
|
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
|
won the award refers to result = 'Winner'; in 2009 refers to year = 2009
|
between October and November 2008 refers to air_date BETWEEN '2008-10-01' and '2008-11-30'
|
name refers to person; the role Smithers refers to character = 'Smithers'
|
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
|
are not included in the credit list refers to credited = ''
|
prospective recipients refers to result = 'Nominee'
|
"Dan Castellaneta" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009
|
in 2009 refers to year = 2009; name of awarded character refers to character
|
voiced refers to role; role = 'Helen Lovejoy"
|
Among the episodes aired in 2008 with votes ranges from 920 to 950, list their percent.
|
aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950
|
have air date in 2008 refers to air_date LIKE '2008%'
|
highest votes refers to max(votes); nominated refers to result = 'Nominee'
|
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
|
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
|
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
|
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
|
star score of 10 refers to stars = 10
|
episode 426 refers to number_in_series = 426
|
5th episode refers to episode = 5
|
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
|
Write down the summary of episode whereby it has crew members that are not included in the credit list.
|
are not included in the credit list refers to credited = ''
|
have air date in 2008 refers to air_date LIKE '2008%'
|
award winner refers to result = 'Winner'; 'USA' is the birth_country
|
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
|
"Dan Castellaneta" is the person; 2009 is year; won refers result = 'Winner'
|
in 2010 refers to year = 2010; nominations refers to result = 'Nominee'
|
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
|
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
|
additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'
|
rating below 7 refers to rating < 7
|
more than 100 votes refers to votes > 100
|
Which episode id did award Outstanding Animated Program (For Programming Less Than One Hour) with an episode star score of 10?
|
star score of 10 refers to stars = 10
|
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
|
more than 100 votes refers to votes > 100
|
co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60
|
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
|
episode 'Take My Life, Please' refers to title = 'Take My Life, Please'
|
in 2009 refers to year = 2009; name of awarded character refers to character
|
won refers to result = 'Winner'; first award refers to Min(year)
|
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
|
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
|
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
|
What is the percentage of star score 5 that was collected by title "Sex, Pies and Idiot Scrapes"?
|
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
|
nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6
|
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
|
average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));
|
writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10
|
"Dan Castellaneta" is the person; 2009 is year; won refers result = 'Winner'
|
"New York" is the birth_place; 'USA' is the birth_region
|
award winner refers to result = 'Winner'; 'USA' is the birth_country
|
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
|
voice over for and was awarded refers to award like '%Voice-Over%';
|
website address refers to episode_image
|
How old was the awardee when he/she won the first-ever award for Outstanding Voice-Over Performance in Primetime Emmy Awards?
|
"Outstanding Voice-Over Performance" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))
|
star score of 10 refers to stars = 10
|
information about the music department refers to category = 'Music Department'
|
in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));
|
born before 1970 refers to birthdate < '1970-01-01'
|
prospective recipients refers to result = 'Nominee'
|
director refers to role = 'director'
|
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
|
produced by Jason Bikowski refers to person = 'Jason Bikowski'
|
highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))
|
more than 100 votes refers to votes > 100
|
How many crew members who were born in the USA were nominated for the Outstanding Animated Program (For Programming Less Than One Hour) award in 2009?
|
born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009
|
In 2010 refers to year = 2010
|
in 2009 refers to year = 2009
|
"Billy Kimball" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa
|
5 stars votes refers to stars = 5 ; 'No Loan Again, Naturally' and 'Coming to Homerica' are both the title of episode; ratio = Divide (votes where title = 'No Loan Again, Naturally', votes where title = 'Coming to Homerica')
|
aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10
|
won refers to result = 'Winner'; in 2017 refers to year = 2017
|
percentage = DIVIDE(SUM(stars = 5), COUNT(stars)) as percentage
|
writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009
|
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
|
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
|
List the name of persons who were not included in the credit for the 'How the Test Was Won' episode.
|
"How the Test Was Won" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person
|
star score greater than 8 refers to stars > 8
|
awarded category refers to award_category
|
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
|
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
|
co-executive producer refers to role = 'co-executive producer'; nominee of "Outstanding Animated Program (For Programming Less Than One Hour)" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'
|
award winner refers to result = 'Winner'; 'USA' is the birth_country
|
are not included in the credit list refers to credited = ''
|
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
|
winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%
|
"Dell Hake" is the person; not included in the credit list refers to credited = ''
|
How many episodes was Dell Hake not included in the credit list?
|
"Dell Hake" is the person; not included in the credit list refers to credited = ''
|
in 2009 refers to year = 2009; name of awarded character refers to character
|
best rating scale refers to stars = 10
|
most recent refers to MAX(year); received refers to result = 'Winner'; name of award refers to award; category refers to award_category
|
"Marc Wilmore" is the name of person
|
"riot" and "cake" are both keyword
|
episode 426 refers to number_in_series = 426
|
born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970
|
2 stars refers to stars = 2; 9 votes refers to votes = 9
|
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
|
episode "Lisa the Drama Queen" refers to title = 'Lisa the Drama Queen';
|
What is the title of the episode that received the lowest rating?
|
lowest rating refers to Min(rating)
|
"New York" is the birth_place; 'USA' is the birth_region
|
more than 100 votes refers to votes > 100
|
held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'
|
stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)
|
in 2009 refers to year = 2009
|
"Los Angeles" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8
|
nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))
|
people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)
|
highest votes refers to max(votes); nominated refers to result = 'Nominee'
|
"Favorite Animated Comedy" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)
|
How many of the crew members who are taller than 1.70m were born in Canada?
|
taller than 1.70m refers to height_meters > 1.70; born in Canada refers to birth_country = 'Canada'
|
won refers to result = 'Winner'; in 2017 refers to year = 2017
|
from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'
|
largest number of votes refers to MAX(votes)
|
stars score of 10 at 30% and above refers to stars = 10 and percent > 29
|
voiced refers to role; role = 'Helen Lovejoy"
|
highest votes refers to max(votes); nominated refers to result = 'Nominee'
|
won refers to result = 'Winner'; in Primetime Emmy Awards refers to organization = 'Primetime Emmy Awards'; 2009 refers to year = 2009
|
"Matt Groening" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series
|
nominated episodes refers to result = 'Nominee'; percentage of votes = DIVIDE(SUM(result = 'Nominee), SUM(Votes)) as percentage
|
won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.