instruction
stringlengths
0
1.06k
input
stringlengths
11
5.3k
response
stringlengths
2
4.44k
What was the change in financial capability score for each country from 2020 to 2021?
CREATE TABLE financial_capability (id INT,year INT,country VARCHAR(50),score INT); INSERT INTO financial_capability (id,year,country,score) VALUES (1,2020,'Brazil',65),(2,2021,'Brazil',70),(3,2020,'India',70),(4,2021,'India',75),(5,2020,'China',80),(6,2021,'China',85);
SELECT country, score - LAG(score, 1, 0) OVER (PARTITION BY country ORDER BY year) as change FROM financial_capability WHERE year IN (2020, 2021);
How many fans in the "Phoenix Suns" fan club are under the age of 25?
CREATE TABLE fans(id INT,name VARCHAR(50),team VARCHAR(50),age INT);INSERT INTO fans(id,name,team,age) VALUES (1,'John Smith','Phoenix Suns',22),(2,'Jane Doe','Phoenix Suns',28),(3,'Bob Johnson','Phoenix Suns',20);
SELECT COUNT(*) FROM fans WHERE team = 'Phoenix Suns' AND age < 25;
What was the total sales of 'DrugK' in 'CountryM' for 2021?
CREATE TABLE sales(drug varchar(20),country varchar(20),year int,sales int); INSERT INTO sales VALUES ('DrugK','CountryM',2021,1200000);
SELECT SUM(sales) FROM sales WHERE drug = 'DrugK' AND country = 'CountryM' AND year = 2021;
What is the minimum budget for AI projects?
CREATE TABLE ai_projects (sector VARCHAR(20),budget INT); INSERT INTO ai_projects (sector,budget) VALUES ('Education',200000),('Healthcare',500000),('Finance',1000000),('Technology',300000);
SELECT MIN(budget) FROM ai_projects;
Show the rural infrastructure projects that have a budget over $1 million and were completed in the last 5 years, including the project name, country, and start date.
CREATE TABLE rural_infrastructure (project_name VARCHAR(50),country VARCHAR(50),project_start_date DATE,project_end_date DATE,budget DECIMAL(10,2));
SELECT project_name, country, project_start_date FROM rural_infrastructure WHERE budget > 1000000 AND project_end_date >= DATEADD(year, -5, GETDATE());
What is the total revenue generated by Latin music streams in the United States?
CREATE TABLE streams (id INT,track_id INT,user_id INT,region VARCHAR(255),genre VARCHAR(255),revenue DECIMAL(10,2),timestamp TIMESTAMP);
SELECT SUM(revenue) FROM streams WHERE genre = 'Latin' AND region = 'United States';
Update the clinical trial outcome for a specific drug
CREATE TABLE clinical_trial (drug_code CHAR(5),trial_outcome VARCHAR(100)); INSERT INTO clinical_trial (drug_code,trial_outcome) VALUES ('DR001','Success'),('DR002','Failure');
UPDATE clinical_trial SET trial_outcome = 'Approved' WHERE drug_code = 'DR001';
Calculate the average number of total artworks per museum in each category (paintings, sculptures, mixed media).
CREATE TABLE MuseumArtworks (MuseumID INT,Category VARCHAR(50),TotalArtworks INT); INSERT INTO MuseumArtworks (MuseumID,Category,TotalArtworks) VALUES (1,'Paintings',50000),(1,'Sculptures',10000),(1,'Mixed Media',15000),(2,'Paintings',200000),(2,'Sculptures',30000),(2,'Mixed Media',40000),(3,'Paintings',100000),(3,'Scu...
SELECT Category, AVG(TotalArtworks) AS AverageArtworksPerMuseum FROM MuseumArtworks GROUP BY Category;
How many ethical AI projects were completed in total from 2018 to 2020?
CREATE TABLE ethical_ai_projects_2 (project_id INT,country VARCHAR(20),completion_year INT); INSERT INTO ethical_ai_projects_2 (project_id,country,completion_year) VALUES (1,'USA',2018),(2,'Canada',2019),(3,'Mexico',2020),(4,'USA',2021),(5,'Canada',2018),(6,'USA',2019),(7,'Mexico',2018);
SELECT COUNT(*) FROM ethical_ai_projects_2 WHERE completion_year BETWEEN 2018 AND 2020;
What is the maximum number of followers for users in Japan?
CREATE TABLE users (id INT,name VARCHAR(50),followers INT,country VARCHAR(50)); INSERT INTO users (id,name,followers,country) VALUES (1,'Hiroshi Tanaka',1000,'Japan'),(2,'Yumi Nakamura',2000,'Japan'),(3,'Taro Suzuki',3000,'Japan');
SELECT MAX(followers) FROM users WHERE country = 'Japan';
What is the average rating of destinations in the Asia-Pacific region, ranked from highest to lowest?
CREATE TABLE sustainable_practices (practice_id INT,practice_name VARCHAR(50),destination_id INT,PRIMARY KEY (practice_id),FOREIGN KEY (destination_id) REFERENCES destinations(destination_id));CREATE TABLE destinations (destination_id INT,destination_name VARCHAR(50),region_id INT,PRIMARY KEY (destination_id));CREATE T...
SELECT d.destination_name, AVG(r.rating) as avg_rating, RANK() OVER (ORDER BY AVG(r.rating) DESC) as rating_rank FROM destinations d JOIN ratings r ON d.destination_id = r.destination_id JOIN regions re ON d.region_id = re.region_id WHERE re.region_name = 'Asia-Pacific' GROUP BY d.destination_name ORDER BY rating_rank;
What is the maximum price of any menu item?
CREATE TABLE Menu (id INT,item_name VARCHAR(255),price DECIMAL(5,2));
SELECT MAX(price) FROM Menu;
What are the most common algorithmic fairness issues in Southeast Asian countries?
CREATE TABLE fairness_issues (country VARCHAR(255),issue VARCHAR(255)); INSERT INTO fairness_issues (country,issue) VALUES ('Country1','Issue1'); INSERT INTO fairness_issues (country,issue) VALUES ('Country2','Issue2'); INSERT INTO fairness_issues (country,issue) VALUES ('Country3','Issue3');
SELECT issue, COUNT(*) as num_countries FROM fairness_issues WHERE country LIKE '%Southeast Asia%' GROUP BY issue ORDER BY num_countries DESC;
What is the percentage of workers who experienced workplace safety incidents in each region in the year 2021?
CREATE TABLE Regions (RegionID INT,RegionName VARCHAR(50)); CREATE TABLE WorkersData (WorkerID INT,RegionID INT,Date DATE,Incident VARCHAR(50));
SELECT r.RegionName, AVG(CASE WHEN YEAR(w.Date) = 2021 AND w.Incident IS NOT NULL THEN 100.0 ELSE 0.0 END) AS Percentage FROM Regions r JOIN WorkersData w ON r.RegionID = w.RegionID GROUP BY r.RegionName;
What is the total number of candidates interviewed for each position in the sales department?
CREATE TABLE PositionInterviews(PositionID INT,Department VARCHAR(255),CandidateID INT,InterviewDate DATE);
SELECT PositionID, Department, COUNT(DISTINCT CandidateID) FROM PositionInterviews WHERE Department = 'Sales' GROUP BY PositionID, Department;
What is the change in the number of active users for the game 'Game2' between the two most recent days?
CREATE TABLE game_activity (game VARCHAR(50),activity_date DATE,active_users INT); INSERT INTO game_activity (game,activity_date,active_users) VALUES ('Game2','2022-01-01',1000),('Game2','2022-01-02',1200),('Game1','2022-01-01',800),('Game1','2022-01-02',850);
SELECT LAG(active_users, 1) OVER (PARTITION BY game ORDER BY activity_date DESC) - active_users as user_change FROM game_activity WHERE game = 'Game2' ORDER BY activity_date DESC LIMIT 1;
What is the total number of restorative justice programs and legal technology initiatives in the US and Canada?
CREATE TABLE restorative_justice (id INT,country VARCHAR(255),program VARCHAR(255)); INSERT INTO restorative_justice (id,country,program) VALUES (1,'US','Victim Offender Mediation'),(2,'Canada','Restorative Circles'); CREATE TABLE legal_tech (id INT,country VARCHAR(255),initiative VARCHAR(255)); INSERT INTO legal_tech ...
SELECT COUNT(*) FROM (SELECT * FROM restorative_justice UNION SELECT * FROM legal_tech) AS total_programs;
What are the names and local economic impacts of cultural heritage tours in Egypt?
CREATE TABLE CulturalHeritageTours (tour_id INT,tour_name TEXT,country TEXT,local_economic_impact FLOAT); INSERT INTO CulturalHeritageTours (tour_id,tour_name,country,local_economic_impact) VALUES (1,'Pyramids Exploration','Egypt',20000.0),(2,'Nile River Cruise','Egypt',18000.0);
SELECT tour_name, local_economic_impact FROM CulturalHeritageTours WHERE country = 'Egypt';
What is the total water usage for all mining operations in South America, ordered by the year in descending order?
CREATE TABLE water_usage (id INT,mine_name TEXT,location TEXT,year INT,water_usage FLOAT); INSERT INTO water_usage (id,mine_name,location,year,water_usage) VALUES (1,'Iron Mine','South America',2018,500000),(2,'Coal Mine','South America',2019,700000),(3,'Gold Mine','South America',2020,900000);
SELECT year, SUM(water_usage) as total_water_usage FROM water_usage WHERE location = 'South America' GROUP BY year ORDER BY year DESC;
What is the average depth of all oil wells in the 'NorthSea' schema?
CREATE TABLE NorthSea.wells (well_id INT,depth FLOAT); INSERT INTO NorthSea.wells (well_id,depth) VALUES (1,1200.5),(2,1500.3),(3,1750.2);
SELECT AVG(depth) FROM NorthSea.wells;
What is the total number of permits issued for residential and commercial buildings in the City of Angels?
CREATE TABLE building_permit (permit_id INT,building_type VARCHAR(10),location VARCHAR(20));INSERT INTO building_permit (permit_id,building_type,location) VALUES (1,'Residential','City of Angels');INSERT INTO building_permit (permit_id,building_type,location) VALUES (2,'Commercial','City of Angels');
SELECT SUM(permit_id) FROM building_permit WHERE location = 'City of Angels';
What is the minimum salary of workers in the 'electronics' department?
CREATE TABLE department (id INT,name TEXT); INSERT INTO department (id,name) VALUES (1,'textile'),(2,'metalworking'),(3,'electronics'); CREATE TABLE worker (id INT,salary REAL,department_id INT); INSERT INTO worker (id,salary,department_id) VALUES (1,3000,1),(2,3500,1),(3,4000,2),(4,4500,2),(5,5000,3),(6,5200,3),(7,550...
SELECT MIN(worker.salary) FROM worker INNER JOIN department ON worker.department_id = department.id WHERE department.name = 'electronics';
What is the average heart rate for users in each country, ranked by the highest average heart rate?
CREATE TABLE Users (UserID INT,Name VARCHAR(50),Age INT,Gender VARCHAR(10),Country VARCHAR(50),HeartRate INT); INSERT INTO Users (UserID,Name,Age,Gender,Country,HeartRate) VALUES (1,'John Doe',30,'Male','USA',80),(2,'Jane Smith',25,'Female','Canada',75),(3,'Jean Dupont',35,'Male','France',90);
SELECT Country, AVG(HeartRate) as AvgHeartRate FROM Users GROUP BY Country ORDER BY AvgHeartRate DESC;
What is the average number of therapy sessions attended by patients with depression?
CREATE TABLE patients (id INT,name TEXT,age INT,condition TEXT,therapy_sessions INT);
SELECT AVG(therapy_sessions) FROM patients WHERE condition = 'depression';
What is the total revenue generated by sustainable hotels in Berlin?
CREATE TABLE revenues (revenue_id INT,hotel_name TEXT,city TEXT,sustainable BOOLEAN,revenue DECIMAL(10,2)); INSERT INTO revenues (revenue_id,hotel_name,city,sustainable,revenue) VALUES (1,'EcoHotel Berlin','Berlin',TRUE,15000.00),(2,'GreenLodge Berlin','Berlin',TRUE,12000.00),(3,'Hotel Berlin','Berlin',FALSE,20000.00);
SELECT SUM(revenue) FROM revenues WHERE city = 'Berlin' AND sustainable = TRUE;
Identify the number of unique digital assets created per day in the XYZ blockchain.
CREATE TABLE XYZ_contract (contract_address VARCHAR(255),contract_name VARCHAR(255),creator_address VARCHAR(255),creation_timestamp TIMESTAMP);
SELECT DATE_TRUNC('day', creation_timestamp) AS creation_day, COUNT(DISTINCT contract_address) AS unique_assets_created FROM XYZ_contract GROUP BY creation_day;
What is the average socially responsible investment portfolio value?
CREATE TABLE portfolio (id INT,client_id INT,value DECIMAL(10,2)); INSERT INTO portfolio (id,client_id,value) VALUES (1,1,25000.00),(2,2,15000.00),(3,3,35000.00),(4,4,20000.00);
SELECT AVG(value) FROM portfolio;
What is the average number of cybersecurity incidents reported in the Americas in the last 2 years?
CREATE TABLE cybersecurity_incidents_americas (region VARCHAR(255),year INT,success BOOLEAN); INSERT INTO cybersecurity_incidents_americas (region,year,success) VALUES ('North America',2021,TRUE),('North America',2020,TRUE),('South America',2021,FALSE),('South America',2020,TRUE);
SELECT AVG(COUNT(*)) FROM cybersecurity_incidents_americas WHERE region IN ('North America', 'South America') GROUP BY year;
How many cases were handled by attorneys who graduated from 'Harvard Law School'?
CREATE TABLE attorneys (attorney_id INT,school TEXT); CREATE TABLE cases (case_id INT,attorney_id INT,billing_amount INT);
SELECT COUNT(DISTINCT cases.case_id) FROM cases INNER JOIN attorneys ON cases.attorney_id = attorneys.attorney_id WHERE attorneys.school = 'Harvard Law School';
What is the total number of marine mammals in the Arctic ocean?
CREATE TABLE marine_mammal (mammal_id INT,name TEXT,ocean TEXT); INSERT INTO marine_mammal (mammal_id,name,ocean) VALUES (1,'Bear','Arctic'),(2,'Walrus','Arctic');
SELECT COUNT(*) FROM marine_mammal WHERE ocean = 'Arctic'
What is the average production of the current and the two preceding records for each species in the fisheries table?
CREATE TABLE fisheries (id INT,name VARCHAR(255),species VARCHAR(255),production INT,year INT); INSERT INTO fisheries (id,name,species,production,year) VALUES (1,'Norwegian Fisheries','Herring',250000,2018),(2,'Japanese Fisheries','Tuna',300000,2019),(3,'Canadian Fisheries','Salmon',150000,2017);
SELECT *, AVG(production) OVER (PARTITION BY species ORDER BY year ROWS BETWEEN 2 PRECEDING AND CURRENT ROW) as avg_3_years FROM fisheries;
Add a new record to the 'national_security_strategies' table with 'strategy_name' as 'National Cybersecurity Strategy 2023', 'region' as 'North America', and 'classification_level' as 'Top Secret'
CREATE TABLE national_security_strategies (strategy_id SERIAL PRIMARY KEY,strategy_name TEXT,region TEXT,classification_level TEXT);
INSERT INTO national_security_strategies (strategy_name, region, classification_level) VALUES ('National Cybersecurity Strategy 2023', 'North America', 'Top Secret');
What is the highest number of goals scored by a player in the 'nhl_players' table?
CREATE TABLE nhl_players (player_id INT,player_name VARCHAR(50),team_name VARCHAR(50),goals INT,assists INT);
SELECT MAX(goals) FROM nhl_players;
What is the average age of volunteers in the table?
CREATE TABLE volunteers(id INT PRIMARY KEY NOT NULL,name VARCHAR(50),age INT,city VARCHAR(30),country VARCHAR(30));
SELECT AVG(age) FROM volunteers;
Insert a new record into the "warehouses" table with the following data: "name" = "Tokyo Warehouse", "capacity" = 8000, "country" = "Japan"
CREATE TABLE warehouses (name VARCHAR(50),capacity INT,country VARCHAR(50));
INSERT INTO warehouses (name, capacity, country) VALUES ('Tokyo Warehouse', 8000, 'Japan');
List the top 5 restaurants with the highest total revenue for the year 2020, along with the total number of menus they offer.
CREATE TABLE restaurants (restaurant_id INT,total_revenue DECIMAL(10,2)); CREATE TABLE menus (menu_id INT,restaurant_id INT,total_revenue DECIMAL(10,2)); INSERT INTO restaurants VALUES (1,50000); INSERT INTO restaurants VALUES (2,60000); INSERT INTO restaurants VALUES (3,40000); INSERT INTO menus VALUES (1,1,10000); IN...
SELECT r.restaurant_id, SUM(m.total_revenue) as total_revenue, COUNT(m.menu_id) as total_menus FROM restaurants r INNER JOIN menus m ON r.restaurant_id = m.restaurant_id WHERE YEAR(m.order_date) = 2020 GROUP BY r.restaurant_id ORDER BY total_revenue DESC LIMIT 5;
Which ocean floor mapping project sites in the 'MarineResearch' schema have an average depth greater than 4000 meters?
CREATE SCHEMA MarineResearch; CREATE TABLE OceanFloorMapping (site_id INT,location VARCHAR(255),avg_depth DECIMAL(5,2)); INSERT INTO OceanFloorMapping (site_id,location,avg_depth) VALUES (1,'SiteA',3500.50),(2,'SiteB',4600.25),(3,'SiteC',2100.00);
SELECT * FROM MarineResearch.OceanFloorMapping WHERE avg_depth > 4000;
What is the average carbon emission per employee by department in the 'mining_operations', 'carbon_emissions', and 'departments' tables?
CREATE TABLE mining_operations (employee_id INT,name VARCHAR(50),age INT,position VARCHAR(50),country VARCHAR(50)); INSERT INTO mining_operations (employee_id,name,age,position,country) VALUES (1,'John Doe',35,'Engineer','USA'); INSERT INTO mining_operations (employee_id,name,age,position,country) VALUES (2,'Jane Smith...
SELECT departments.department, AVG(carbon_emissions) FROM mining_operations INNER JOIN carbon_emissions ON mining_operations.employee_id = carbon_emissions.employee_id INNER JOIN departments ON mining_operations.employee_id = departments.employee_id GROUP BY departments.department;
Identify the top 3 volunteer-providing countries in Asia for H1 2017?
CREATE TABLE volunteers (volunteer_id INT,volunteer_name TEXT,volunteer_country TEXT,volunteer_region TEXT,volunteer_join_date DATE); INSERT INTO volunteers (volunteer_id,volunteer_name,volunteer_country,volunteer_region,volunteer_join_date) VALUES (1,'Ravi Patel','India','Asia','2017-03-15');
SELECT volunteer_country, COUNT(*) AS volunteers_count FROM volunteers WHERE volunteer_region = 'Asia' AND EXTRACT(QUARTER FROM volunteer_join_date) IN (1, 2) GROUP BY volunteer_country ORDER BY volunteers_count DESC LIMIT 3;
List the names of customers who have taken out socially responsible loans.
CREATE TABLE customers (id INT,name TEXT); CREATE TABLE loans (id INT,customer_id INT,amount REAL,socially_responsible BOOLEAN);
SELECT customers.name FROM customers JOIN loans ON customers.id = loans.customer_id WHERE loans.socially_responsible = TRUE;
How many public awareness campaigns were launched per year in the awareness_campaigns table?
CREATE TABLE awareness_campaigns (campaign_id INT,campaign_name VARCHAR(50),launch_date DATE); INSERT INTO awareness_campaigns (campaign_id,campaign_name,launch_date) VALUES (1,'Mental Health Matters','2018-05-01'); INSERT INTO awareness_campaigns (campaign_id,campaign_name,launch_date) VALUES (2,'End the Stigma','2019...
SELECT EXTRACT(YEAR FROM launch_date) AS year, COUNT(*) AS campaigns_per_year FROM awareness_campaigns GROUP BY year;
What is the average budget allocated for language preservation programs in the Americas?
CREATE TABLE LANGUAGE_PRESERVATION (id INT PRIMARY KEY,program_name VARCHAR(255),region VARCHAR(255),budget FLOAT); INSERT INTO LANGUAGE_PRESERVATION (id,program_name,region,budget) VALUES (1,'Quechua Program','Americas',50000);
SELECT AVG(budget) FROM LANGUAGE_PRESERVATION WHERE region = 'Americas';
Find the species with the highest carbon sequestration rate in the national_forests schema.
CREATE TABLE national_forests.carbon_sequestration (species VARCHAR(255),sequestration_rate DECIMAL(5,2));
SELECT species FROM national_forests.carbon_sequestration WHERE sequestration_rate = (SELECT MAX(sequestration_rate) FROM national_forests.carbon_sequestration);
What is the average distance from the Sun of exoplanets with a mass greater than 10 Jupiter masses?
CREATE TABLE exoplanets (id INT,exoplanet_name VARCHAR(50),mass FLOAT,distance_from_sun FLOAT);
SELECT AVG(distance_from_sun) FROM exoplanets WHERE mass > 10 * (SELECT AVG(mass) FROM exoplanets);
What is the average tourism impact of the local businesses in 'North America'?
CREATE TABLE LocalBusinesses (BusinessID INTEGER,BusinessName TEXT,Location TEXT,TourismImpact INTEGER); INSERT INTO LocalBusinesses (BusinessID,BusinessName,Location,TourismImpact) VALUES (1,'Family-Owned Restaurant','USA',2000),(2,'Artisanal Bakery','Canada',1500),(3,'Handmade Jewelry Shop','Mexico',1000),(4,'Local W...
SELECT AVG(TourismImpact) FROM LocalBusinesses WHERE Location = 'North America';
Identify the number of species in the fish_stock_7 table with a salinity level above 35.0.
CREATE TABLE fish_stock_7 (species VARCHAR(255),salinity FLOAT); INSERT INTO fish_stock_7 (species,salinity) VALUES ('Tilapia',33.2),('Catfish',37.6),('Salmon',31.9);
SELECT COUNT(*) FROM fish_stock_7 WHERE salinity > 35.0;
What is the total attendance at events in the 'events' table by year, if the year is available?
CREATE TABLE events (event_id INT,name VARCHAR(50),type VARCHAR(50),attendance INT,year INT); INSERT INTO events (event_id,name,type,attendance,year) VALUES (1,'Art Exhibit','Cubism',1500,2019); INSERT INTO events (event_id,name,type,attendance,year) VALUES (2,'Theater Performance','Surrealism',850,2020); INSERT INTO e...
SELECT year, SUM(attendance) as total_attendance FROM events GROUP BY year;
Add a new player 'Sara Connor' to the Players table
CREATE TABLE Players (PlayerID int,Name varchar(50),Age int,Gender varchar(10)); INSERT INTO Players (PlayerID,Name,Age,Gender) VALUES (1,'John Doe',25,'Male'),(2,'Jane Smith',30,'Female'),(3,'Alex Johnson',22,'Non-binary');
INSERT INTO Players (PlayerID, Name, Age, Gender) VALUES (4, 'Sara Connor', 28, 'Female');
How many donations were made in Q3 2020 by first-time donors?
CREATE TABLE Donors (DonorID int,FirstDonation date); INSERT INTO Donors (DonorID,FirstDonation) VALUES (1,'2020-07-12'),(2,'2019-05-23'),(3,'2020-09-01'),(4,'2018-03-15');
SELECT COUNT(*) FROM Donations INNER JOIN Donors ON Donations.DonorID = Donors.DonorID WHERE EXTRACT(YEAR FROM DonationDate) = 2020 AND EXTRACT(MONTH FROM DonationDate) BETWEEN 7 AND 9 AND FirstDonation = DonationDate;
What is the total number of offshore drilling platforms in the Gulf of Mexico that were installed before 2010?
CREATE TABLE OffshorePlatforms (PlatformID INT,InstallationYear INT,Location VARCHAR(20)); INSERT INTO OffshorePlatforms (PlatformID,InstallationYear,Location) VALUES (1,2005,'Gulf of Mexico'),(2,2012,'North Sea'),(3,2008,'Gulf of Mexico');
SELECT COUNT(*) FROM OffshorePlatforms WHERE InstallationYear < 2010 AND Location = 'Gulf of Mexico';
What are the medical conditions and dates for the bottom 10% of medical conditions by date?
CREATE TABLE medical (id INT,astronaut_id INT,medical_condition VARCHAR(50),medical_date DATE); INSERT INTO medical (id,astronaut_id,medical_condition,medical_date) VALUES (1,1,'Ear Infection','1969-03-14'); INSERT INTO medical (id,astronaut_id,medical_condition,medical_date) VALUES (2,2,'Space Adaptation Syndrome','19...
SELECT medical_condition, medical_date FROM (SELECT medical_condition, medical_date, NTILE(10) OVER (ORDER BY medical_date) as medical_group FROM medical) AS subquery WHERE medical_group = 1;
What is the average length of the ships at each port?
CREATE TABLE port (id INT PRIMARY KEY,name VARCHAR(50),location VARCHAR(50),capacity INT); INSERT INTO port VALUES (1,'New York','USA',5000); INSERT INTO port VALUES (2,'Los Angeles','USA',4000); CREATE TABLE ship (id INT PRIMARY KEY,name VARCHAR(50),type VARCHAR(50),length INT,port_id INT,FOREIGN KEY (port_id) REFEREN...
SELECT p.name as port_name, AVG(s.length) as avg_length FROM ship s JOIN port p ON s.port_id = p.id GROUP BY p.name;
Insert a new record for a 'reforestation' project with a budget of 120000 in the 'agricultural_innovation' table.
CREATE TABLE agricultural_innovation (id INT,project_name VARCHAR(255),budget INT);
INSERT INTO agricultural_innovation (project_name, budget) VALUES ('reforestation', 120000);
What is the total quantity of parts manufactured by Airbus and Boeing?
CREATE TABLE Manufacturing_Parts (id INT PRIMARY KEY,part_name VARCHAR(100),quantity INT,manufacturer VARCHAR(100)); INSERT INTO Manufacturing_Parts (id,part_name,quantity,manufacturer) VALUES (1,'Wing',3,'Boeing'); INSERT INTO Manufacturing_Parts (id,part_name,quantity,manufacturer) VALUES (2,'Engine',2,'Rolls-Royce')...
SELECT SUM(quantity) FROM Manufacturing_Parts WHERE manufacturer IN ('Airbus', 'Boeing');
List the ad IDs and the number of impressions they received in the past week for ads related to sports.
CREATE TABLE ads (ad_id INT,ad_type VARCHAR(50),ad_content TEXT,ad_date DATE,impressions INT);CREATE TABLE impressions (impression_id INT,ad_id INT,user_id INT,impression_date DATE);INSERT INTO ads (ad_id,ad_type,ad_content,ad_date,impressions) VALUES (1,'sports','new shoes','2021-06-01',1000),(2,'technology','smartpho...
SELECT i.ad_id, COUNT(i.impression_id) as impression_count FROM impressions i JOIN ads a ON i.ad_id = a.ad_id WHERE a.ad_type = 'sports' AND i.impression_date >= DATEADD(week, -1, GETDATE()) GROUP BY i.ad_id;
Find the percentage of "cruelty-free" products in each category.
CREATE TABLE products_info (id INT,product VARCHAR(100),category VARCHAR(100),cruelty_free BOOLEAN);
SELECT category, ((COUNT(*) FILTER (WHERE cruelty_free = TRUE))::FLOAT / COUNT(*)) * 100 as pct_cruelty_free FROM products_info GROUP BY category;
Insert a new language preservation record for 'Indonesia', 'Bahasa Indonesia', 'Stable'.
CREATE TABLE LanguagePreservation (id INT,country VARCHAR(50),language VARCHAR(50),status VARCHAR(50));
INSERT INTO LanguagePreservation (id, country, language, status) VALUES (3, 'Indonesia', 'Bahasa Indonesia', 'Stable');
Delete all records in the financial_wellbeing table where the financial_score is less than 60 and the date is before 2020-01-01.
CREATE TABLE financial_wellbeing (id INT,name VARCHAR(50),financial_score INT,date DATE); INSERT INTO financial_wellbeing (id,name,financial_score,date) VALUES (1,'John',75,'2020-01-05'),(2,'Jane',85,'2019-12-31'),(3,'Mike',55,'2019-11-15'),(4,'Lucy',90,'2020-03-01');
DELETE FROM financial_wellbeing WHERE financial_score < 60 AND date < '2020-01-01';
Which union has the highest number of reported work-related injuries in 2021?
CREATE TABLE unions (union_id INT,union_name VARCHAR(255)); CREATE TABLE work_safety_reports (report_id INT,injury_date DATE,union_id INT,reported_by VARCHAR(255)); INSERT INTO unions (union_id,union_name) VALUES (123,'United Workers Union'); INSERT INTO unions (union_id,union_name) VALUES (456,'Labor Rights Union'); I...
SELECT u.union_name, COUNT(*) as injury_count FROM unions u JOIN work_safety_reports w ON u.union_id = w.union_id WHERE YEAR(w.injury_date) = 2021 GROUP BY u.union_name ORDER BY injury_count DESC LIMIT 1;
What is the total warehouse space (square footage) for each warehouse location?
CREATE TABLE warehouse (id VARCHAR(5),name VARCHAR(10),location VARCHAR(15),space_sqft INT); INSERT INTO warehouse (id,name,location,space_sqft) VALUES ('W01','BOS','Boston',5000),('W02','NYC','New York',7000),('W03','SEA','Seattle',6000);
SELECT w.location, SUM(w.space_sqft) FROM warehouse w GROUP BY w.location;
Which countries are the top sources of ingredients for a specific cosmetic product category?
CREATE TABLE ingredient_sourcing (product_category VARCHAR(255),country VARCHAR(255)); CREATE TABLE product_category_catalog (product_category VARCHAR(255),product_name VARCHAR(255));
SELECT country, COUNT(*) AS product_count FROM ingredient_sourcing JOIN product_category_catalog ON ingredient_sourcing.product_category = product_category_catalog.product_category WHERE product_category_catalog.product_name = 'Example Product Category' GROUP BY country ORDER BY product_count DESC LIMIT 5;
What is the total construction labor cost for Indigenous workers in Alberta in Q1 2022?
CREATE TABLE labor_cost (cost_id INT,province VARCHAR(50),cost_date DATE,gender VARCHAR(50),race VARCHAR(50),labor_cost FLOAT); INSERT INTO labor_cost (cost_id,province,cost_date,gender,race,labor_cost) VALUES (3,'Alberta','2022-01-01','Female','Indigenous',6000.00); INSERT INTO labor_cost (cost_id,province,cost_date,g...
SELECT SUM(labor_cost) FROM labor_cost WHERE province = 'Alberta' AND cost_date BETWEEN '2022-01-01' AND '2022-03-31' AND race = 'Indigenous';
Delete records of food safety inspections for a specific restaurant
CREATE TABLE inspections (inspection_id INT,restaurant_id INT,inspection_date DATE,violation_count INT);
DELETE FROM inspections WHERE restaurant_id = 345;
How many smart city projects are there in the Northern region?
CREATE TABLE projects (id INT,region VARCHAR(20),category VARCHAR(20),count INT); INSERT INTO projects (id,region,category,count) VALUES (1,'Northern','Smart City',150); INSERT INTO projects (id,region,category,count) VALUES (2,'Southern','Green Building',120);
SELECT COUNT(*) FROM projects WHERE region = 'Northern' AND category = 'Smart City';
What is the maximum water flow rate of all reservoirs in the province of British Columbia that were constructed before the year 2000?
CREATE TABLE reservoir (id INT,name TEXT,province TEXT,construction_year INT,water_flow_rate FLOAT); INSERT INTO reservoir (id,name,province,construction_year,water_flow_rate) VALUES (1,'Reservoir A','British Columbia',1990,5000); INSERT INTO reservoir (id,name,province,construction_year,water_flow_rate) VALUES (2,'Res...
SELECT MAX(water_flow_rate) FROM reservoir WHERE province = 'British Columbia' AND construction_year < 2000;
Find the drought-impacted counties in New Mexico and their average water usage.
CREATE TABLE nm_drought_impact (county TEXT,state TEXT,avg_usage FLOAT); INSERT INTO nm_drought_impact (county,state,avg_usage) VALUES ('Bernalillo County','New Mexico',123.5),('Dona Ana County','New Mexico',234.6);
SELECT county, avg_usage FROM nm_drought_impact
What is the minimum contract length for collective bargaining agreements in the 'Manufacturing' industry?
CREATE TABLE CollectiveBargaining (agreement_id INT,union_id INT,terms TEXT,contract_length INT); CREATE TABLE Unions (union_id INT,industry TEXT);
SELECT MIN(CollectiveBargaining.contract_length) FROM CollectiveBargaining INNER JOIN Unions ON CollectiveBargaining.union_id = Unions.union_id WHERE Unions.industry = 'Manufacturing';
Create a view that shows the average distance to healthcare facilities for patients
CREATE TABLE healthcare_access (id INT PRIMARY KEY,patient_id INT,distance DECIMAL(5,2),mode_of_transport VARCHAR(50));CREATE VIEW avg_distance AS SELECT AVG(distance) as avg_distance FROM healthcare_access;
SELECT * FROM avg_distance;
What is the number of students who received each type of assistive technology?
CREATE TABLE Assistive_Tech_Types (Student_ID INT,Student_Name TEXT,Assistive_Tech_Type TEXT); INSERT INTO Assistive_Tech_Types (Student_ID,Student_Name,Assistive_Tech_Type) VALUES (1,'John Doe','Screen Reader'),(2,'Jane Smith','Hearing Aid'),(3,'Michael Brown','None');
SELECT Assistive_Tech_Type, COUNT(*) FROM Assistive_Tech_Types GROUP BY Assistive_Tech_Type;
How many hospitals are there in New York City as of 2021?
CREATE TABLE Hospitals (ID INT,Name VARCHAR(50),City VARCHAR(50),State VARCHAR(20),Year INT); INSERT INTO Hospitals (ID,Name,City,State,Year) VALUES (1,'NY Hospital','New York City','New York',2021); INSERT INTO Hospitals (ID,Name,City,State,Year) VALUES (2,'Metro Hospital','New York City','New York',2021);
SELECT COUNT(*) FROM Hospitals WHERE City = 'New York City' AND Year = 2021;
Which freight forwarders have handled more than 1000 shipments in total?
CREATE TABLE freight_forwarder (id INT,name VARCHAR(25)); INSERT INTO freight_forwarder (id,name) VALUES (1,'ABC Freight'),(2,'XYZ Logistics'),(3,'Global Shipping'); CREATE TABLE shipment (id INT,forwarder_id INT,weight INT); INSERT INTO shipment (id,forwarder_id,weight) VALUES (1,1,500),(2,1,800),(3,2,300),(4,3,1200),...
SELECT f.name, COUNT(s.id) FROM freight_forwarder f JOIN shipment s ON f.id = s.forwarder_id GROUP BY f.name HAVING COUNT(s.id) > 1000;
Identify the number of times a drone malfunction occurred in 'Canada' and 'Mexico' for the past year.
CREATE TABLE DroneFlight (date DATE,country VARCHAR(20),malfunction BOOLEAN);
SELECT country, COUNT(*) FROM DroneFlight WHERE date >= DATE_SUB(CURRENT_DATE, INTERVAL 1 YEAR) AND (country = 'Canada' OR country = 'Mexico') AND malfunction = TRUE GROUP BY country;
What is the maximum biomass of any whale species in the Atlantic Ocean?
CREATE TABLE whale_biomass (species TEXT,location TEXT,biomass INTEGER); INSERT INTO whale_biomass (species,location,biomass) VALUES ('Blue Whale','Atlantic',300000),('Humpback Whale','Atlantic',80000),('Fin Whale','Atlantic',400000),('Sperm Whale','Atlantic',250000);
SELECT MAX(biomass) FROM whale_biomass WHERE location = 'Atlantic';
What is the total number of Decentralized Applications in the 'Gaming' category that have more than 50 transactions?
CREATE TABLE Decentralized_Applications (app_name TEXT,category TEXT,num_transactions INTEGER); INSERT INTO Decentralized_Applications (app_name,category,num_transactions) VALUES ('App A','Finance',50),('App B','Finance',75),('App C','Finance',100),('App D','Gaming',25),('App E','Gaming',150),('App F','Gaming',55),('Ap...
SELECT COUNT(*) FROM Decentralized_Applications WHERE category = 'Gaming' AND num_transactions > 50;
What is the total revenue of organic restaurants?
CREATE TABLE restaurants (id INT,name VARCHAR(255),type VARCHAR(255),revenue FLOAT,is_organic BOOLEAN); INSERT INTO restaurants (id,name,type,revenue,is_organic) VALUES (1,'Restaurant A','Italian',5000.00,true),(2,'Restaurant B','Asian',8000.00,false);
SELECT SUM(revenue) FROM restaurants WHERE is_organic = true;
Compare the energy efficiency ratings of France and the United Kingdom
CREATE TABLE country_energy_efficiency (country VARCHAR(50),rating FLOAT); INSERT INTO country_energy_efficiency (country,rating) VALUES ('Germany',85.3),('Sweden',91.5),('Norway',94.1),('France',80.7),('United Kingdom',87.8);
SELECT country, rating FROM country_energy_efficiency WHERE country IN ('France', 'United Kingdom');
Display the total number of Shariah-compliant financial products offered in Southeast Asia
CREATE TABLE southeast_asian_shariah_products (id INT PRIMARY KEY,product_name VARCHAR(100),region VARCHAR(50)); INSERT INTO southeast_asian_shariah_products (id,product_name,region) VALUES (1,'Product A','Southeast Asia'),(2,'Product B','Middle East'),(3,'Product C','Southeast Asia');
SELECT COUNT(*) FROM southeast_asian_shariah_products WHERE region = 'Southeast Asia';
What is the total energy consumption per quarter for the past two years?
CREATE TABLE energy_consumption (year INT,quarter INT,energy_consumption FLOAT); INSERT INTO energy_consumption VALUES (2021,1,5000.00),(2021,1,4500.00),(2021,2,5500.00),(2021,2,5000.00),(2022,1,6000.00),(2022,1,5500.00),(2022,2,6500.00),(2022,2,6000.00);
SELECT quarter, YEAR(DATE_ADD(MAKEDATE(year, 1), INTERVAL (quarter - 1) QUARTER)) AS year, SUM(energy_consumption) AS total_energy_consumption FROM energy_consumption GROUP BY quarter, year ORDER BY year, quarter;
Show the number of mental health parity regulations implemented in each state by year since 2010.
CREATE TABLE mental_health_parity (id INT,regulation VARCHAR(100),state VARCHAR(20),implementation_date DATE); INSERT INTO mental_health_parity (id,regulation,state,implementation_date) VALUES (1,'Regulation 1','New York','2011-01-01'),(2,'Regulation 2','Florida','2012-01-01'),(3,'Regulation 3','New York','2013-01-01')...
SELECT EXTRACT(YEAR FROM m.implementation_date) AS year, s.state_name, COUNT(m.id) AS num_regulations FROM mental_health_parity m INNER JOIN state_names s ON m.state = s.state WHERE m.implementation_date >= '2010-01-01' GROUP BY EXTRACT(YEAR FROM m.implementation_date), s.state_name;
Find the minimum cost of community development initiatives in the 'Community' table, grouped by country, implemented in 2016?
CREATE TABLE Community (id INT,initiative VARCHAR(255),year INT,budget INT); INSERT INTO Community (id,initiative,year,budget) VALUES (1,'Youth Training Center',2016,800000),(2,'Cultural Festival',2018,1200000),(3,'Elderly Care Facility',2019,1500000),(4,'Sports Club',2017,900000);
SELECT country, MIN(budget) as min_budget FROM Community WHERE year = 2016 GROUP BY country;
What is the average energy consumption per month for each mining site?
CREATE TABLE mining_site (id INT,name TEXT,location TEXT); INSERT INTO mining_site (id,name,location) VALUES (1,'Lithium Mine','Bolivia'),(2,'Cobalt Mine','Democratic Republic of Congo'); CREATE TABLE energy_usage (id INT,mine_id INT,date DATE,usage REAL); INSERT INTO energy_usage (id,mine_id,date,usage) VALUES (1,1,'2...
SELECT mine_id, AVG(usage) as avg_energy_consumption FROM energy_usage GROUP BY mine_id;
What is the number of protected areas by country and size?
CREATE TABLE ProtectedAreas (country VARCHAR(255),size INT); INSERT INTO ProtectedAreas (country,size) VALUES ('Canada',100000),('Canada',200000),('US',80000),('US',120000);
SELECT country, size, COUNT(*) as num_protected_areas FROM ProtectedAreas GROUP BY country, size;
What is the average defense contract value in Q1 2021?
CREATE TABLE defense_contracts (contract_id INT,value FLOAT,sign_date DATE); INSERT INTO defense_contracts (contract_id,value,sign_date) VALUES (1,300000,'2021-04-01'),(2,400000,'2021-01-01');
SELECT AVG(value) FROM defense_contracts WHERE sign_date BETWEEN '2021-01-01' AND '2021-03-31';
What is the minimum weight of packages shipped to Africa from the USA in the last year?
CREATE TABLE package_routes (id INT,package_weight FLOAT,shipped_from VARCHAR(20),shipped_to VARCHAR(20),shipped_date DATE); INSERT INTO package_routes (id,package_weight,shipped_from,shipped_to,shipped_date) VALUES (1,0.7,'USA','Nigeria','2021-12-28');
SELECT MIN(package_weight) FROM package_routes WHERE shipped_from = 'USA' AND shipped_to LIKE 'Africa%' AND shipped_date >= DATE_SUB(CURRENT_DATE, INTERVAL 1 YEAR);
Identify the top 5 most common types of disability accommodations made for students in the STEM departments.
CREATE TABLE student_disability_accommodations (student_id INT,accommodation_type VARCHAR(255),department VARCHAR(255)); INSERT INTO student_disability_accommodations (student_id,accommodation_type,department) VALUES (1,'Extended Testing Time','Computer Science'); INSERT INTO student_disability_accommodations (student_...
SELECT department, accommodation_type, COUNT(*) as count FROM student_disability_accommodations WHERE department LIKE 'STEM%' GROUP BY department, accommodation_type ORDER BY count DESC LIMIT 5;
What is the total assets value for customers with age over 40?
CREATE TABLE customers (id INT,name TEXT,age INT,country TEXT,assets FLOAT); INSERT INTO customers (id,name,age,country,assets) VALUES (1,'John Doe',45,'USA',250000.00); INSERT INTO customers (id,name,age,country,assets) VALUES (2,'Jane Smith',34,'Canada',320000.00); INSERT INTO customers (id,name,age,country,assets) V...
SELECT SUM(assets) FROM customers WHERE age > 40;
find the total number of libraries in 'CityA' and 'CityB'
CREATE TABLE Cities (CityName VARCHAR(20),NumLibraries INT); INSERT INTO Cities (CityName,NumLibraries) VALUES ('CityA',12),('CityB',18);
SELECT SUM(NumLibraries) FROM Cities WHERE CityName IN ('CityA', 'CityB');
What is the total number of sustainable tourism awards?
CREATE TABLE Destinations (destination_id INT,destination_name TEXT,country TEXT,awards INT); INSERT INTO Destinations (destination_id,destination_name,country,awards) VALUES (1,'City A','Germany',3),(2,'City B','Switzerland',5),(3,'City C','Norway',2);
SELECT SUM(awards) AS total_awards FROM Destinations;
What are the details of the intelligence operations that were conducted in a specific region, say 'Middle East', from the 'intel_ops' table?
CREATE TABLE intel_ops (id INT,op_name VARCHAR(255),region VARCHAR(255),start_date DATE,end_date DATE);
SELECT * FROM intel_ops WHERE region = 'Middle East';
Who provides the most virtual tours in the United Kingdom?
CREATE TABLE providers (provider_id INT,name TEXT,country TEXT); CREATE TABLE virtual_tours (tour_id INT,name TEXT,provider TEXT,country TEXT); INSERT INTO providers (provider_id,name,country) VALUES (1,'Virtual Voyages','United Kingdom'),(2,'Virtually There','United Kingdom'); INSERT INTO virtual_tours (tour_id,name,p...
SELECT providers.name, COUNT(virtual_tours.provider) AS tour_count FROM providers INNER JOIN virtual_tours ON providers.name = virtual_tours.provider GROUP BY providers.name ORDER BY tour_count DESC;
What is the minimum depth of all marine protected areas?
CREATE TABLE marine_protected_areas (name VARCHAR(255),depth FLOAT); INSERT INTO marine_protected_areas (name,depth) VALUES ('Galapagos Marine Reserve',264);
SELECT MIN(depth) FROM marine_protected_areas;
What is the total number of speakers of indigenous languages in each region with more than 3 languages?
CREATE TABLE regions (id INT,name TEXT,num_languages INT); INSERT INTO regions (id,name,num_languages) VALUES (1,'Amazonia',4),(2,'Andes',3),(3,'Mesoamerica',5); CREATE TABLE countries (id INT,region_id INT,name TEXT,num_indigenous_speakers INT); INSERT INTO countries (id,region_id,name,num_indigenous_speakers) VALUES ...
SELECT r.name, SUM(c.num_indigenous_speakers) FROM regions r JOIN countries c ON r.id = c.region_id WHERE r.num_languages > 3 GROUP BY r.id;
How many security incidents were resolved by each team in the last month?
CREATE TABLE security_incidents (id INT,resolution_team VARCHAR(50),incident_date DATE); INSERT INTO security_incidents (id,resolution_team,incident_date) VALUES (1,'Team A','2022-01-01'),(2,'Team B','2022-01-15');
SELECT resolution_team, COUNT(*) as num_incidents FROM security_incidents WHERE incident_date >= DATE_SUB(CURRENT_DATE, INTERVAL 1 MONTH) GROUP BY resolution_team;
Which smart city technologies are adopted in 'RegionD' in the 'SmartCityTechnologyAdoption' table?
CREATE TABLE SmartCityTechnologyAdoption (id INT,region VARCHAR(50),technology VARCHAR(50));
SELECT technology FROM SmartCityTechnologyAdoption WHERE region = 'RegionD';
Which attorneys have worked on cases with a specific outcome?
CREATE TABLE CaseAttorney (CaseID INT,AttorneyID INT,Outcome VARCHAR(10)); INSERT INTO CaseAttorney (CaseID,AttorneyID,Outcome) VALUES (1,1,'Favorable'),(2,2,'Unfavorable');
SELECT DISTINCT CaseAttorney.AttorneyID FROM CaseAttorney WHERE CaseAttorney.Outcome = 'Favorable';
Show the total number of male and female employees in the "employees" table.
CREATE TABLE employees (id INT,name VARCHAR(50),gender VARCHAR(10)); INSERT INTO employees (id,name,gender) VALUES (1,'Anna Smith','Female'),(2,'John Doe','Male'),(3,'Sara Connor','Female'),(4,'Mike Johnson','Male'),(5,'Emma White','Female'),(6,'Alex Brown','Male');
SELECT gender, COUNT(*) FROM employees GROUP BY gender;
What is the total amount of waste generated by factories located in the USA?
CREATE TABLE factories (id INT,name VARCHAR(255),country VARCHAR(255),waste_generated INT); INSERT INTO factories (id,name,country,waste_generated) VALUES (1,'Eco-friendly Goods Inc','USA',100); INSERT INTO factories (id,name,country,waste_generated) VALUES (2,'Green Energy Inc','USA',150);
SELECT country, SUM(waste_generated) as total_waste_generated FROM factories WHERE country = 'USA' GROUP BY country;
List the unique court locations where legal aid was provided in Ontario and British Columbia in the last 5 years.
CREATE TABLE legal_aid_ontario (court_location VARCHAR(50),date DATE); INSERT INTO legal_aid_ontario VALUES ('Toronto','2022-02-01'),('Ottawa','2021-06-15'),('Kingston','2020-09-03'); CREATE TABLE legal_aid_bc (court_location VARCHAR(50),date DATE); INSERT INTO legal_aid_bc VALUES ('Vancouver','2022-03-10'),('Victoria'...
SELECT DISTINCT court_location FROM legal_aid_ontario WHERE date >= DATE_SUB(CURRENT_DATE, INTERVAL 5 YEAR) UNION ALL SELECT DISTINCT court_location FROM legal_aid_bc WHERE date >= DATE_SUB(CURRENT_DATE, INTERVAL 5 YEAR);
List the names and ages of all developers who have created a smart contract in descending age order
CREATE TABLE Developers (name VARCHAR(255),country VARCHAR(255),age INT); INSERT INTO Developers (name,country,age) VALUES ('Dev1','USA',30),('Dev2','USA',35),('Dev3','China',25); CREATE TABLE SmartContracts (developer VARCHAR(255),contract_address VARCHAR(255)); INSERT INTO SmartContracts (developer,contract_address) ...
SELECT Developers.name, Developers.age FROM Developers INNER JOIN SmartContracts ON Developers.name = SmartContracts.developer ORDER BY age DESC;
What is the maximum weight lifted in the bench press exercise by members who are over 35 years old?
CREATE TABLE members(id INT,age INT); INSERT INTO members (id,age) VALUES (1,37),(2,28); CREATE TABLE weights(id INT,member_id INT,exercise VARCHAR(15),weight INT); INSERT INTO weights (id,member_id,exercise,weight) VALUES (1,1,'bench press',120),(2,2,'squat',150);
SELECT MAX(weight) FROM weights w JOIN members m ON w.member_id = m.id WHERE m.age > 35 AND w.exercise = 'bench press';