| db_id,question,query,simple_question,simple_query | |
| concert_singer,"What is the average, minimum, and maximum age of all singers from France?","SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'",What is the average age of all singers from France?,SELECT avg(age) FROM singer WHERE country = 'France' | |
| concert_singer,"What is the average, minimum, and maximum age of singers from France?","SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'",What is the minimum age of singers from France?,SELECT min(age) FROM singer WHERE country = 'France' | |
| concert_singer,"What are the average, minimum, and maximum age of all singers from France?","SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'",What is the maximum age of all singers from France?,SELECT max(age) FROM singer WHERE country = 'France' | |
| concert_singer,"What is the average, minimum, and maximum age for all French singers?","SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'",What is the average age for all French singers?,SELECT avg(age) FROM singer WHERE country = 'France' | |
| concert_singer,"What is the average, minimum, and maximum age for French singers?","SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'",What is the minimum age for all French singers?,SELECT min(age) FROM singer WHERE country = 'France' | |
| concert_singer,"What are the average, minimum, and maximum age for all French singers?","SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'",What is the maximum age for all French singers?,SELECT max(age) FROM singer WHERE country = 'France' | |
| concert_singer,What is the average and maximum capacities for all stadiums ?,"select avg(capacity) , max(capacity) from stadium",What is the average capacities for all stadiums ?,select avg(capacity) from stadium | |
| concert_singer,What are the average and maximum capacities for all stadiums ?,"select avg(capacity) , max(capacity) from stadium",What is the maximum capacities for all stadiums ?,select max(capacity) from stadium | |
| pets_1,Find the average and maximum age for each type of pet.,"SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype",Find the average age for each type of pet.,"SELECT avg(pet_age), pettype FROM pets GROUP BY pettype" | |
| pets_1,Find the average and maximum age for each type of the pet.,"SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype",Find the maximum age for each type of pet.,"SELECT max(pet_age), pettype FROM pets GROUP BY pettype" | |
| pets_1,What is the average and maximum age for each pet type?,"SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype",What is the average age for each pet type?,"SELECT avg(pet_age), pettype FROM pets GROUP BY pettype" | |
| pets_1,What are the average and maximum age for each pet type?,"SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype",What is the maximum age for each pet type?,"SELECT max(pet_age) , pettype FROM pets GROUP BY pettype" | |
| employee_hire_evaluation,find the minimum and maximum number of products of all stores.,"SELECT min(Number_products) , max(Number_products) FROM shop",find the minimum number of products of all stores.,SELECT min(Number_products) FROM shop | |
| employee_hire_evaluation,find the minimum and maximum number of products of all the stores.,"SELECT min(Number_products) , max(Number_products) FROM shop",find the maximum number of products of all stores.,SELECT max(Number_products) FROM shop | |
| employee_hire_evaluation,What are the minimum and maximum number of products across all the shops?,"SELECT min(Number_products) , max(Number_products) FROM shop",What is the minimum number of products across all the shops?,SELECT min(Number_products) FROM shop | |
| employee_hire_evaluation,What is the minimum and maximum number of products across all the shops?,"SELECT min(Number_products) , max(Number_products) FROM shop",What is the maximum number of products across all the shops?,SELECT max(Number_products) FROM shop | |
| museum_visit,What is the average and maximum number of tickets bought in all visits?,"SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit",What is the average number of tickets bought in all visits?,SELECT avg(num_of_ticket) FROM visit | |
| museum_visit,What are the average and maximum number of tickets bought in all visits?,"SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit",What is the maximum number of tickets bought in all visits?,SELECT max(num_of_ticket) FROM visit | |
| battle_death,What are maximum and minimum death toll caused each time?,"SELECT max(killed) , min(killed) FROM death",What is maximum death toll caused each time?,SELECT max(killed) FROM death | |
| battle_death,What is maximum and minimum death toll caused each time?,"SELECT max(killed) , min(killed) FROM death",What is minimum death toll caused each time?,SELECT min(killed) FROM death | |
| tvshow,What are the minimum and maximum share of TV series?,"SELECT max(SHARE) , min(SHARE) FROM TV_series;",What is the minimum share of TV series?,SELECT min(SHARE) FROM TV_series; | |
| tvshow,What is minimum and maximum share of TV series?,"SELECT max(SHARE) , min(SHARE) FROM TV_series;",What is the maximum share of TV series?,SELECT max(SHARE) FROM TV_series; | |
| tvshow,What is the maximum and minimum share for the TV series?,"SELECT max(SHARE) , min(SHARE) FROM TV_series;",What is the maximum share for the TV series?,SELECT max(SHARE) FROM TV_series; | |
| tvshow,What are the maximum and minimum share for the TV series?,"SELECT max(SHARE) , min(SHARE) FROM TV_series;",What is the minimum share for the TV series?,SELECT min(SHARE) FROM TV_series; | |
| voter_1,What are the maximum and minimum values of area codes?,"SELECT max(area_code) , min(area_code) FROM area_code_state",What is the maximum values of area codes?,SELECT max(area_code) FROM area_code_state | |
| voter_1,What is the maximum and minimum values of area codes?,"SELECT max(area_code) , min(area_code) FROM area_code_state",What is the minimum values of area codes?,SELECT min(area_code) FROM area_code_state | |
| orchestra,"What are the maximum and minimum share of performances whose type is not ""Live final"".","SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != ""Live final""","What is the maximum share of performances whose type is not ""Live final"".","SELECT max(SHARE) FROM performance WHERE TYPE != ""Live final""" | |
| orchestra,"What are the maximum and the minimum share of performances whose type is not ""Live final"".","SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != ""Live final""","What is the minimum share of performances whose type is not ""Live final"".","SELECT min(SHARE) FROM performance WHERE TYPE != ""Live final""" | |
| orchestra,"Return the maximum and minimum shares for performances that do not have the type ""Live final"".","SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != ""Live final""","Return the maximum share for performances that do not have the type ""Live final"".","SELECT max(SHARE) FROM performance WHERE TYPE != ""Live final""" | |
| orchestra,"Return the maximum and the minimum shares for performances that do not have the type ""Live final"".","SELECT max(SHARE) , min(SHARE) FROM performance WHERE TYPE != ""Live final""","Return the minimum share for performances that do not have the type ""Live final"".","SELECT min(SHARE) FROM performance WHERE TYPE != ""Live final""" | |
| department_management,What are the maximum and minimum budget of the departments?,"SELECT max(budget_in_billions) , min(budget_in_billions) FROM department",What is the maximum budget of the departments?,SELECT max(budget_in_billions) FROM department | |
| department_management,What are the maximum and the minimum budget of the departments?,"SELECT max(budget_in_billions) , min(budget_in_billions) FROM department",What is the minimum budget of the departments?,SELECT min(budget_in_billions) FROM department | |
| farm,What are the maximum and minimum number of cows across all farms.,"SELECT max(Cows) , min(Cows) FROM farm",What is the maximum number of cows across all farms.,SELECT max(Cows) FROM farm | |
| farm,What are the maximum and the minimum number of cows across all farms.,"SELECT max(Cows) , min(Cows) FROM farm",What is the minimum number of cows across all farms.,SELECT min(Cows) FROM farm | |
| farm,Return the maximum and minimum number of cows across all farms.,"SELECT max(Cows) , min(Cows) FROM farm",Return the maximum number of cows across all farms.,SELECT max(Cows) FROM farm | |
| farm,Return the maximum and the minimum number of cows across all farms.,"SELECT max(Cows) , min(Cows) FROM farm",Return the minimum number of cows across all farms.,SELECT min(Cows) FROM farm | |
| bike_1,What is the total and maximum duration of trips with bike id 636?,"SELECT sum(duration) , max(duration) FROM trip WHERE bike_id = 636",What is the total duration of trips with bike id 636?,SELECT sum(duration) FROM trip WHERE bike_id = 636 | |
| bike_1,What is the total and the maximum duration of trips with bike id 636?,"SELECT sum(duration) , max(duration) FROM trip WHERE bike_id = 636",What is the maximum duration of trips with bike id 636?,SELECT max(duration) FROM trip WHERE bike_id = 636 | |
| bike_1,What is the total and maximum duration for all trips with the bike id 636?,"SELECT sum(duration) , max(duration) FROM trip WHERE bike_id = 636",What is the total duration for all trips with the bike id 636?,SELECT sum(duration) FROM trip WHERE bike_id = 636 | |
| bike_1,What is the total and the maximum duration for all trips with the bike id 636?,"SELECT sum(duration) , max(duration) FROM trip WHERE bike_id = 636",What is the maximum duration for all trips with the bike id 636?,SELECT max(duration) FROM trip WHERE bike_id = 636 | |
| twitter_1,Find the maximum and total number of followers of all users.,"SELECT max(followers) , sum(followers) FROM user_profiles",Find the maximum number of followers of all users.,SELECT max(followers) FROM user_profiles | |
| twitter_1,Find the maximum and the total number of followers of all users.,"SELECT max(followers) , sum(followers) FROM user_profiles",Find the total number of followers of all users.,SELECT sum(followers) FROM user_profiles | |
| product_catalog,What are the average and minimum price (in Euro) of all products?,"SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents",What is the average price (in Euro) of all products?,SELECT avg(price_in_euros) FROM catalog_contents | |
| product_catalog,What are the average and the minimum price (in Euro) of all products?,"SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents",What is the minimum price (in Euro) of all products?,SELECT min(price_in_euros) FROM catalog_contents | |
| product_catalog,Give me the average and minimum price (in Euro) of the products.,"SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents",Give me the average price (in Euro) of the products.,SELECT avg(price_in_euros) FROM catalog_contents | |
| product_catalog,Give me the average and the minimum price (in Euro) of the products.,"SELECT avg(price_in_euros) , min(price_in_euros) FROM catalog_contents",Give me the minimum price (in Euro) of the products.,SELECT min(price_in_euros) FROM catalog_contents | |
| flight_1,"What is the minimum, average, and maximum distance of all aircrafts.","SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft",What is the minimum distance of all aircrafts.,SELECT min(distance) FROM Aircraft | |
| flight_1,"Return the minimum, average and maximum distances traveled across all aircrafts.","SELECT min(distance) , avg(distance) , max(distance) FROM Aircraft",Return the average distances traveled across all aircrafts.,SELECT avg(distance) FROM Aircraft | |
| flight_1,What is average and maximum salary of all employees.,"SELECT avg(salary) , max(salary) FROM Employee",What is maximum salary of all employees.,SELECT max(salary) FROM Employee | |
| flight_1,What is the average and largest salary of all employees?,"SELECT avg(salary) , max(salary) FROM Employee",What is the largest salary of all employees?,SELECT max(salary) FROM Employee | |
| flight_1,What is the average and the largest salary of all employees?,"SELECT avg(salary) , max(salary) FROM Employee",What is the average salary of all employees?,SELECT avg(salary) FROM Employee | |
| allergy_1,"Show the minimum, average, and maximum age of all students.","SELECT min(age) , avg(age) , max(age) FROM Student",Show the maximum age of all students.,SELECT max(age) FROM Student | |
| allergy_1,"What is the minimum, mean, and maximum age across all students?","SELECT min(age) , avg(age) , max(age) FROM Student",What is the mean age across all students?,SELECT avg(age) FROM Student | |
| customers_card_transactions,"Return the average transaction amount, as well as the total amount of all transactions.","SELECT avg(transaction_amount) , sum(transaction_amount) FROM Financial_transactions",Return the total amount of all transactions.,SELECT sum(transaction_amount) FROM Financial_transactions | |
| customers_card_transactions,"Return the mean transaction amount, as well as the total amount of all transactions.","SELECT avg(transaction_amount) , sum(transaction_amount) FROM Financial_transactions",Return the mean transaction amount.,SELECT avg(transaction_amount) FROM Financial_transactions | |
| race_track,"What is the minimum, maximum, and average seating for all tracks.","SELECT min(seating) , max(seating) , avg(seating) FROM track",What is the average seating for all tracks.,SELECT avg(seating) FROM track | |
| race_track,"Return the minimum, maximum, and average seating across all tracks.","SELECT min(seating) , max(seating) , avg(seating) FROM track",Return the maximum seating across all tracks.,SELECT max(seating) FROM track | |
| chinook_1,What are the durations of the longest and the shortest tracks in milliseconds?,"SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK",What are the durations of the longest track in milliseconds?,SELECT max(Milliseconds) FROM TRACK | |
| chinook_1,What are the durations of the longest and the shortest tracks (milliseconds)?,"SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK",What are the durations of the shortest tracks in milliseconds?,SELECT min(Milliseconds) FROM TRACK | |
| chinook_1,Find the maximum and minimum durations of tracks in milliseconds.,"SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK",Find the maximum durations of tracks in milliseconds.,SELECT max(Milliseconds) FROM TRACK | |
| chinook_1,Find the maximum and minimum millisecond lengths of pop tracks.,"SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Pop""",Find the minimum millisecond lengths of pop tracks.,"SELECT min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = ""Pop""" | |
| insurance_fnol,Find the total and average amount of settlements.,"SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements",Find the total amount of settlements.,SELECT sum(settlement_amount) FROM settlements | |
| insurance_fnol,Find the total and the average amount of settlements.,"SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements",Find the average amount of settlements.,SELECT avg(settlement_amount) FROM settlements | |
| insurance_fnol,Return the sum and average of all settlement amounts.,"SELECT sum(settlement_amount) , avg(settlement_amount) FROM settlements",Return the sum of all settlement amounts.,SELECT sum(settlement_amount) FROM settlements | |
| insurance_fnol,What are the maximum and minimum settlement amount on record?,"SELECT max(settlement_amount) , min(settlement_amount) FROM settlements",What are the maximum settlement amount on record?,SELECT max(settlement_amount) FROM settlements | |
| insurance_fnol,Find the maximum and minimum settlement amount.,"SELECT max(settlement_amount) , min(settlement_amount) FROM settlements",Find the minimum settlement amount.,SELECT min(settlement_amount) FROM settlements | |
| university_basketball,What is the total and minimum enrollment of all schools?,"SELECT sum(enrollment) , min(enrollment) FROM university",What is the total enrollment of all schools?,SELECT sum(enrollment) FROM university | |
| university_basketball,Return the total and minimum enrollments across all schools.,"SELECT sum(enrollment) , min(enrollment) FROM university",Return the minimum enrollments across all schools.,SELECT min(enrollment) FROM university | |
| phone_1,"What is maximum and minimum RAM size of phone produced by company named ""Nokia Corporation""?","SELECT max(T1.RAM_MiB) , min(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation"";","What is maximum RAM size of phone produced by company named ""Nokia Corporation""?","SELECT max(T1.RAM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = ""Nokia Corporation"";" | |
| phone_1,"List the maximum, minimum and average number of used kb in screen mode.","SELECT max(used_kb) , min(used_kb) , avg(used_kb) FROM screen_mode;",List the minimum and average number of used kb in screen mode.,"SELECT min(used_kb) , avg(used_kb) FROM screen_mode;" | |
| election_representative,What are the minimum and maximum vote percents of elections?,"SELECT min(Vote_Percent) , max(Vote_Percent) FROM election",What are the minimum vote percents of elections?,SELECT min(Vote_Percent) FROM election | |
| apartment_rentals,What is the minimum and maximum number of bathrooms of all the apartments?,"SELECT min(bathroom_count) , max(bathroom_count) FROM Apartments",What is the maximum number of bathrooms of all the apartments?,SELECT max(bathroom_count) FROM Apartments | |
| apartment_rentals,Give me the minimum and maximum bathroom count among all the apartments.,"SELECT min(bathroom_count) , max(bathroom_count) FROM Apartments",Give me the minimum bathroom count among all the apartments.,SELECT min(bathroom_count) FROM Apartments | |
| apartment_rentals,"Show each apartment type code, and the maximum and minimum number of rooms for each type.","SELECT apt_type_code , max(room_count) , min(room_count) FROM Apartments GROUP BY apt_type_code","Show each apartment type code, and the maximum number of rooms for each type.","SELECT apt_type_code , max(room_count) FROM Apartments GROUP BY apt_type_code" | |
| apartment_rentals,Return each apartment type code along with the maximum and minimum number of rooms among each type.,"SELECT apt_type_code , max(room_count) , min(room_count) FROM Apartments GROUP BY apt_type_code",Return each apartment type code along with the minimum number of rooms among each type.,"SELECT apt_type_code , min(room_count) FROM Apartments GROUP BY apt_type_code" | |
| game_injury,"What are the maximum, minimum and average home games each stadium held?","SELECT max(home_games) , min(home_games) , avg(home_games) FROM stadium",What are the average home games each stadium held?,SELECT avg(home_games) FROM stadium | |
| soccer_1,What is the maximum and minimum height of all players?,"SELECT max(weight) , min(weight) FROM Player",What is the minimum height of all players?,SELECT min(weight) FROM Player | |
| college_2,Find the maximum and average capacity among rooms in each building.,"SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building",Find the average capacity among rooms in each building.,"SELECT avg(capacity) , building FROM classroom GROUP BY building" | |
| college_2,Find the maximum and the average capacity among rooms in each building.,"SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building",Find the maximum capacity among rooms in each building.,SELECT max(capacity) building FROM classroom GROUP BY building | |
| college_2,What are the greatest and average capacity for rooms in each building?,"SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building",What is the greatest capacity for rooms in each building?,"SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building" | |
| college_2,What are the greatest and the average capacity for rooms in each building?,"SELECT max(capacity) , avg(capacity) , building FROM classroom GROUP BY building",What is the average capacity for rooms in each building?,"SELECT avg(capacity) , building FROM classroom GROUP BY building" | |
| insurance_and_eClaims,Find the total and average amount paid in claim headers.,"SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers",Find the total amount paid in claim headers.,SELECT sum(amount_piad) FROM claim_headers | |
| insurance_and_eClaims,What are the total amount and average amount paid in claim headers?,"SELECT sum(amount_piad) , avg(amount_piad) FROM claim_headers",What are the average amount paid in claim headers?,SELECT avg(amount_piad) FROM claim_headers | |
| customers_and_invoices,"What is the average, minimum, maximum, and total transaction amount?","SELECT avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) FROM Financial_transactions",What is the total transaction amount?,SELECT sum(transaction_amount) FROM Financial_transactions | |
| customers_and_invoices,"What are the average, minimum, maximum, and total transaction amount?","SELECT avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) FROM Financial_transactions",What is the average transaction amount?,SELECT avg(transaction_amount) FROM Financial_transactions | |
| customers_and_invoices,Compute the average active time span of contact channels.,"SELECT avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) FROM Financial_transactions",Return the minimum transaction amounts.,SELECT min(transaction_amount) FROM Financial_transactions | |
| wedding,"Show the minimum, maximum, and average age for all people.","SELECT min(age) , max(age) , avg(age) FROM people",Show the maximum age for all people.,SELECT max(age) FROM people | |
| theme_gallery,What is the average and minimum age of all artists from United States.,"SELECT avg(age) , min(age) FROM artist WHERE country = 'United States'",What is the average age of all artists from United States.,SELECT avg(age) FROM artist WHERE country = 'United States' | |
| theme_gallery,Return the average and minimum ages across artists from the United States.,"SELECT avg(age) , min(age) FROM artist WHERE country = 'United States'",Return the minimum ages across artists from the United States.,SELECT min(age) FROM artist WHERE country = 'United States' | |
| theme_gallery,"Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.","SELECT avg(ticket_price) , min(ticket_price) , max(ticket_price) FROM exhibition WHERE YEAR < 2009",Show the maximum ticket prices for exhibitions for all years before 2009.,SELECT max(ticket_price) FROM exhibition WHERE YEAR < 2009 | |
| theme_gallery,"What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?","SELECT avg(ticket_price) , min(ticket_price) , max(ticket_price) FROM exhibition WHERE YEAR < 2009",What are the average ticket prices for exhibitions that happened prior to 2009?,SELECT avg(ticket_price) FROM exhibition WHERE YEAR < 2009 | |
| epinions_1,Find the average and maximum rating of all reviews.,"SELECT avg(rating) , max(rating) FROM review",Find the maximum rating of all reviews.,SELECT max(rating) FROM review | |
| browser_web,"What is the maximum, minimum and average market share of the listed browsers?","SELECT max(market_share) , min(market_share) , avg(market_share) FROM browser",What is the minimum market share of the listed browsers?,SELECT min(market_share) FROM browser | |
| school_finance,What are the total and average enrollment of all schools?,"SELECT sum(enrollment) , avg(enrollment) FROM school",What is the total enrollment of all schools?,SELECT sum(enrollment) FROM school | |
| school_finance,What is the total and average enrollment of all schools?,"SELECT sum(enrollment) , avg(enrollment) FROM school",What is the average enrollment of all schools?,SELECT avg(enrollment) FROM school | |
| school_finance,"Show the average, maximum, minimum enrollment of all schools.","SELECT avg(enrollment) , max(enrollment) , min(enrollment) FROM school",Show the minimum enrollment of all schools.,SELECT min(enrollment) FROM school | |
| protein_institute,"What are the average, maximum, and minimum number of floors for all buildings?","SELECT avg(floors) , max(floors) , min(floors) FROM building",What is the average number of floors for all buildings?,SELECT avg(floors) FROM building | |
| cinema,"Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.","SELECT avg(capacity) , min(capacity) , max(capacity) FROM cinema WHERE openning_year >= 2011",Show the minimum capacity for all the cinemas opened in year 2011 or later.,SELECT min(capacity) FROM cinema WHERE openning_year >= 2011 | |
| products_for_hire,"What are the maximum, minimum, and average booked count for the products booked?","SELECT max(booked_count) , min(booked_count) , avg(booked_count) FROM products_booked",What are the maximum booked count for the products booked?,SELECT max(booked_count) FROM products_booked | |
| gas_company,"Show minimum, maximum, and average market value for all companies.","SELECT min(market_value) , max(market_value) , avg(market_value) FROM company",Show average market value for all companies.,SELECT avg(market_value) FROM company | |
| gas_company,"What is the minimum, maximum, and average market value for every company?","SELECT min(market_value) , max(market_value) , avg(market_value) FROM company",What is the minimum market value for every company?,SELECT min(market_value) FROM company | |
| candidate_poll,Find the average and minimum weight for each gender.,"SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex",Find the average weight for each gender.,"SELECT avg(weight), sex FROM people GROUP BY sex" | |
| candidate_poll,What are the average and minimum weights for people of each sex?,"SELECT avg(weight) , min(weight) , sex FROM people GROUP BY sex",What is the minimum weights for people of each sex?,"SELECT min(weight) , sex FROM people GROUP BY sex" | |
| movie_1,What is the lowest and highest rating star?,"SELECT max(stars) , min(stars) FROM Rating",What is the lowest rating star?,SELECT min(stars) FROM Rating | |
| movie_1,What are the lowest and highest rating star?,"SELECT max(stars) , min(stars) FROM Rating",What is the highest rating star?,SELECT max(stars) FROM Rating | |
| movie_1,What is the maximum and mininum number of stars a rating can receive?,"SELECT max(stars) , min(stars) FROM Rating",What is the maximum number of stars a rating can receive?,SELECT max(stars) FROM Rating | |
| county_public_safety,What are the minimum and maximum crime rate of counties?,"SELECT min(Crime_rate) , max(Crime_rate) FROM county_public_safety",What is the minimum crime rate of counties?,SELECT min(Crime_rate) FROM county_public_safety | |
| county_public_safety,Return the minimum and maximum crime rates across all counties.,"SELECT min(Crime_rate) , max(Crime_rate) FROM county_public_safety",Return the maximum crime rates across all counties.,SELECT max(Crime_rate) FROM county_public_safety | |
| inn_1,Find the average and minimum price of the rooms in different decor.,"SELECT decor , avg(basePrice) , min(basePrice) FROM Rooms GROUP BY decor;",Find the average price of the rooms in different decor.,"SELECT decor , avg(basePrice) FROM Rooms GROUP BY decor;" | |
| inn_1,What is the average and minimum price of the rooms for each different decor.,"SELECT decor , avg(basePrice) , min(basePrice) FROM Rooms GROUP BY decor;",What is the minimum price of the rooms for each different decor.,"SELECT decor , min(basePrice) FROM Rooms GROUP BY decor;" | |
| storm_record,Show the average and maximum damage for all storms with max speed higher than 1000.,"SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000",Show the average damage for all storms with max speed higher than 1000.,SELECT avg(damage_millions_USD) FROM storm WHERE max_speed > 1000 | |
| storm_record,What is the average and maximum damage in millions for storms that had a max speed over 1000?,"SELECT avg(damage_millions_USD) , max(damage_millions_USD) FROM storm WHERE max_speed > 1000",What is the maximum damage in millions for storms that had a max speed over 1000?,SELECT max(damage_millions_USD) FROM storm WHERE max_speed > 1000 | |
| election,Return the maximum and minimum population among all counties.,"SELECT max(Population) , min(Population) FROM county",Return the minimum population among all counties.,SELECT min(Population) FROM county | |
| election,What are the maximum and minimum population of the counties?,"SELECT max(Population) , min(Population) FROM county",What is the maximum population of the counties?,SELECT max(Population) FROM county | |
| news_report,what are the average and maximum attendances of all events?,"SELECT avg(Event_Attendance) , max(Event_Attendance) FROM event",what is the average attendance of all events?,SELECT avg(Event_Attendance) FROM event | |
| behavior_monitoring,Find the maximum and minimum monthly rental for all student addresses.,"SELECT max(monthly_rental) , min(monthly_rental) FROM Student_Addresses",Find the maximum monthly rental for all student addresses.,SELECT max(monthly_rental) FROM Student_Addresses | |
| college_1,"Find the max, average, and minimum gpa of all students in each department.","SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code",Find the minimum gpa of all students in each department.,"SELECT min(stu_gpa), dept_code FROM student GROUP BY dept_code" | |
| college_1,"What is the highest, lowest, and average student GPA for every department?","SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code",What is the highest student GPA for every department?,"SELECT max(stu_gpa), dept_code FROM student GROUP BY dept_code" | |
| college_1,"What are the highest, lowest, and average student GPA for every department?","SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code",What is the lowest student GPA for every department?,"SELECT min(stu_gpa), dept_code FROM student GROUP BY dept_code" | |
| college_1,"What are the lowest, highest and average student GPA for every department?","SELECT max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code FROM student GROUP BY dept_code",What is the average student GPA for every department?,"SELECT avg(stu_gpa), dept_code FROM student GROUP BY dept_code" | |
| sports_competition,What are the maximum and minimum number of silver medals for clubs.,"SELECT max(Silver) , min(Silver) FROM club_rank",What is the maximum number of silver medals for clubs.,SELECT max(Silver) FROM club_rank | |
| sports_competition,What are the maximum and minimum number of silver medals for all the clubs?,"SELECT max(Silver) , min(Silver) FROM club_rank",What is the minimum number of silver medals for all the clubs?,SELECT min(Silver) FROM club_rank | |
| music_1,What are the maximum and minimum resolution of songs whose duration is 3 minutes?,"SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%""",What is the maximum resolution of songs whose duration is 3 minutes?,"SELECT max(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%""" | |
| music_1,What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?,"SELECT max(T2.resolution) , min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%""",What is the minimum resolution of all songs that are approximately 3 minutes long?,"SELECT min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE ""3:%""" | |
| mountain_photos,What are the maximum and average height of the mountains?,"SELECT max(height) , avg(height) FROM mountain",What is the average height of the mountains?,SELECT avg(height) FROM mountain | |
| hospital_1,"What are the highest cost, lowest cost and average cost of procedures?","SELECT MAX(cost) , MIN(cost) , AVG(cost) FROM procedures",What is the highest cost of procedures?,SELECT MAX(cost) FROM procedures | |
| hospital_1,"What is the highest cost, lowest cost and average cost of procedures?","SELECT MAX(cost) , MIN(cost) , AVG(cost) FROM procedures",What is the lowest cost of procedures?,SELECT MIN(cost) FROM procedures | |
| hospital_1,"What are the highest cost, the lowest cost and the average cost of procedures?","SELECT MAX(cost) , MIN(cost) , AVG(cost) FROM procedures",What is the average cost of procedures?,SELECT AVG(cost) FROM procedures | |
| hospital_1,"Tell me the highest, lowest, and average cost of procedures.","SELECT MAX(cost) , MIN(cost) , AVG(cost) FROM procedures",Tell me the highest cost of procedures.,SELECT MAX(cost) FROM procedures | |
| company_employee,What is the maximum and minimum market value of companies?,"SELECT max(Market_Value_in_Billion) , min(Market_Value_in_Billion) FROM company",What is the maximum market value of companies?,SELECT max(Market_Value_in_Billion) FROM company | |
| film_rank,What are the maximum and minimum number of cities in all markets.,"SELECT max(Number_cities) , min(Number_cities) FROM market",What is the minimum number of cities in all markets.,SELECT min(Number_cities) FROM market | |
| film_rank,Return the maximum and minimum number of cities across all markets.,"SELECT max(Number_cities) , min(Number_cities) FROM market",Return the maximum number of cities across all markets.,SELECT max(Number_cities) FROM market | |
| company_office,"What are the maximum and minimum sales of the companies whose industries are not ""Banking"".","SELECT max(Sales_billion) , min(Sales_billion) FROM Companies WHERE Industry != ""Banking""","What is the minimum sales of the companies whose industries are not ""Banking"".","SELECT min(Sales_billion) FROM Companies WHERE Industry != ""Banking""" | |
| company_office,"Find the maximum and minimum sales of the companies that are not in the ""Banking"" industry.","SELECT max(Sales_billion) , min(Sales_billion) FROM Companies WHERE Industry != ""Banking""","Find the maximum sales of the companies that are not in the ""Banking"" industry.","SELECT max(Sales_billion) FROM Companies WHERE Industry != ""Banking""" | |
| college_3,Find the max and min grade point for all letter grade.,"SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION",Find the min grade point for all letter grade.,SELECT min(gradepoint) FROM GRADECONVERSION | |
| college_3,Find the max and min grades point for all letter grade.,"SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION",Find the max grade point for all letter grade.,SELECT max(gradepoint) FROM GRADECONVERSION | |
| college_3,What are the maximum and minumum grade points?,"SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION",What is the maximum grade points?,SELECT max(gradepoint) FROM GRADECONVERSION | |
| college_3,What is the maximum and minimum grade point of students who live in NYC?,"SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""NYC""",What is the minimum grade point of students who live in NYC?,"SELECT min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""NYC""" | |
| college_3,Give the maximum and minimum gradepoints for students living in NYC?,"SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""NYC""",Give the maximum gradepoints for students living in NYC?,"SELECT max(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = ""NYC""" | |
| department_store,What is the largest and smallest customer codes?,"SELECT max(customer_code) , min(customer_code) FROM Customers",What is the largest customer codes?,SELECT max(customer_code) FROM Customers | |
| department_store,What are the largest and smallest customer codes?,"SELECT max(customer_code) , min(customer_code) FROM Customers",What is the smallest customer codes?,SELECT min(customer_code) FROM Customers | |
| department_store,Return the maximum and minimum customer codes.,"SELECT max(customer_code) , min(customer_code) FROM Customers",Return the maximum customer codes.,SELECT max(customer_code) FROM Customers | |
| department_store,"What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?","SELECT max(product_price) , min(product_price) , product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code","What is the highest price of products, grouped by and alphabetically ordered by product type?",SELECT max(product_price) product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code | |
| department_store,"What are the highest and the lowest prices of products, grouped by and alphabetically ordered by product type?","SELECT max(product_price) , min(product_price) , product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code","What is the lowest price of products, grouped by and alphabetically ordered by product type?","SELECT min(product_price) , product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code" | |
| department_store,"Give the maximum and minimum product prices for each product type, grouped and ordered by product type.","SELECT max(product_price) , min(product_price) , product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code","Give the maximum product price for each product type, grouped and ordered by product type.","SELECT max(product_price), product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code" | |
| aircraft,What are the maximum and minimum number of transit passengers of all aiports.,"SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport",What is the minimum number of transit passengers of all aiports.,SELECT min(Transit_Passengers) FROM airport | |
| aircraft,What is the maximum and mininum number of transit passengers for all airports?,"SELECT max(Transit_Passengers) , min(Transit_Passengers) FROM airport",What is the mininum number of transit passengers for all airports?,SELECT min(Transit_Passengers) FROM airport | |
| soccer_2,"Find the max, average and min training hours of all players.","SELECT avg(HS) , max(HS) , min(HS) FROM Player",Find the min training hours of all players.,SELECT min(HS) FROM Player | |
| soccer_2,"What is the average, maximum, and minimum for the number of hours spent training?","SELECT avg(HS) , max(HS) , min(HS) FROM Player",What is the average for the number of hours spent training?,SELECT avg(HS) FROM Player | |
| soccer_2,Find the average and maximum hours for the students whose tryout decision is yes.,"SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'",Find the average hours for the students whose tryout decision is yes.,SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' | |
| soccer_2,What is the average and maximum number of hours students who made the team practiced?,"SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'",What is the maximum number of hours students who made the team practiced?,SELECT max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' | |
| cre_Drama_Workshop_Groups,"Show the minimum, average, maximum order quantity of all invoices.","SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES",Show the average order quantity of all invoices.,SELECT avg(Order_Quantity) FROM INVOICES | |
| cre_Drama_Workshop_Groups,"What are the minimum, average, and maximum quantities ordered? Check all the invoices.","SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES",What is the minimum quantity ordered? Check all the invoices.,SELECT min(Order_Quantity) FROM INVOICES | |
| manufactory_1,"What are the average, maximum and total revenues of all companies?","SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers",What is the total revenue of all companies?,SELECT sum(revenue) FROM manufacturers | |
| manufactory_1,"Return the average, maximum, and total revenues across all manufacturers.","SELECT avg(revenue) , max(revenue) , sum(revenue) FROM manufacturers",Return the average revenue across all manufacturers.,SELECT avg(revenue) FROM manufacturers | |
| shop_membership,Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.,"SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'",Show minimum amount of memberships for all branches opened in 2011 or located at city London.,SELECT min(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London' | |
| shop_membership,What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?,"SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'",What is the maximum membership amount for all branches that either opened in 2011 or are located in London?,SELECT max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London' | |
| voter_2,What are the maximum and minimum age of students with major 600?,"SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600",What is the minimum age of students with major 600?,SELECT min(Age) FROM STUDENT WHERE Major = 600 | |
| voter_2,Tell me the ages of the oldest and youngest students studying major 600.,"SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600",Tell me the ages of the oldest students studying major 600.,SELECT max(Age) FROM STUDENT WHERE Major = 600 | |
| voter_2,Tell me the ages of the oldest and the youngest students studying major 600.,"SELECT max(Age) , min(Age) FROM STUDENT WHERE Major = 600",Tell me the ages of the youngest students studying major 600.,SELECT min(Age) FROM STUDENT WHERE Major = 600 | |
| customers_and_products_contacts,"Show the minimum, maximum, average price for all products.","SELECT min(product_price) , max(product_price) , avg(product_price) FROM products",Show the average price for all products.,SELECT avg(product_price) FROM products | |
| dorm_1,Find the average and total capacity of dorms for the students with gender X.,"SELECT avg(student_capacity) , sum(student_capacity) FROM dorm WHERE gender = 'X'",Find the total capacity of dorms for the students with gender X.,SELECT sum(student_capacity) FROM dorm WHERE gender = 'X' | |
| dorm_1,What is the average and total capacity for all dorms who are of gender X?,"SELECT avg(student_capacity) , sum(student_capacity) FROM dorm WHERE gender = 'X'",What is the average capacity for all dorms who are of gender X?,SELECT avg(student_capacity) FROM dorm WHERE gender = 'X' | |
| dorm_1,Find the average and oldest age for students with different sex.,"SELECT avg(age) , max(age) , sex FROM student GROUP BY sex",Find the oldest age for students with different sex.,"SELECT max(age) , sex FROM student GROUP BY sex" | |
| dorm_1,What is the average and oldest age for each gender of student?,"SELECT avg(age) , max(age) , sex FROM student GROUP BY sex",What is the average age for each gender of student?,"SELECT avg(age), sex FROM student GROUP BY sex" | |
| music_4,What are the maximum and minimum week on top of all volumes?,"SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume",What is the maximum week on top of all volumes?,SELECT max(Weeks_on_Top) FROM volume | |
| music_4,Give the maximum and minimum weeks on top across all volumes.,"SELECT max(Weeks_on_Top) , min(Weeks_on_Top) FROM volume",Give the minimum weeks on top across all volumes.,SELECT min(Weeks_on_Top) FROM volume | |
| ship_1,What are the average and minimum age of captains in different class?,"SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS",What is the average age of captains in different class?,"SELECT avg(age), CLASS FROM captain GROUP BY CLASS" | |
| ship_1,Return the average and minimum age of captains in each class.,"SELECT avg(age) , min(age) , CLASS FROM captain GROUP BY CLASS",Return the minimum age of captains in each class.,"SELECT min(age), CLASS FROM captain GROUP BY CLASS" | |
| school_bus,"What is the maximum, minimum and average years spent working on a school bus?","SELECT max(years_working) , min(years_working) , avg(years_working) FROM school_bus",What is the maximum year spent working on a school bus?,SELECT max(years_working) FROM school_bus | |
| driving_school,"What is maximum, minimum and average amount of outstanding of customer?","SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;",What is average amount of outstanding of customer?,SELECT avg(amount_outstanding) FROM Customers; | |
| driving_school,"What is the maximum, minimum, and average amount of money outsanding for all customers?","SELECT max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) FROM Customers;",What is the maximum amount of money outsanding for all customers?,SELECT max(amount_outstanding) FROM Customers; | |
| culture_company,"What is the average, maximum, and minimum budget for all movies before 2000.","SELECT avg(budget_million) , max(budget_million) , min(budget_million) FROM movie WHERE YEAR < 2000",What is the average budget for all movies before 2000.,SELECT avg(budget_million) FROM movie WHERE YEAR < 2000 | |
| culture_company,"Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.","SELECT avg(budget_million) , max(budget_million) , min(budget_million) FROM movie WHERE YEAR < 2000",Return the minimum budgets in millions for movies made before the year 2000.,SELECT min(budget_million) FROM movie WHERE YEAR < 2000 |