Question: What are the names and headquarters of all companies ordered by descending market value?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , headquarters (text) , market_value (number) , company_id (number)


Question: Show minimum, maximum, and average market value for all companies.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : market_value (number) , company (text) , company_id (number)


Question: What is the minimum, maximum, and average market value for every company?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : market_value (number) , company (text) , company_id (number)


Question: Show all main industry for all companies.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , company_id (number)


Question: What are the different main industries for all companies?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , company_id (number)


Question: List all headquarters and the number of companies in each headquarter.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , company_id (number)


Question: For each headquarter, what are the headquarter and how many companies are centered there?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , company_id (number)


Question: Show all main industry and total market value in each industry.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , market_value (number) , company (text) , company_id (number)


Question: What are the main indstries and total market value for each industry?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , market_value (number) , company (text) , company_id (number)


Question: List the main industry with highest total market value and its number of companies.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , market_value (number) , company_id (number)


Question: For each main industry, what is the total number of companies for the industry with the highest total market value?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , market_value (number) , company_id (number)


Question: Show headquarters with at least two companies in the banking industry.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: What are the headquarters with at least two companies in the banking industry?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: Show gas station id, location, and manager_name for all gas stations ordered by open year.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : station_id (number) , location (text) , manager_name (text) , open_year (number) , station_id (number) | station_company : station_id (number) , station_id (number)


Question: What are the gas station ids, locations, and manager names for the gas stations ordered by opening year?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : station_id (number) , location (text) , manager_name (text) , open_year (number) , station_id (number) | station_company : station_id (number) , station_id (number)


Question: How many gas station are opened between 2000 and 2005?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : open_year (number) , station_id (number)


Question: What is the total number of gas stations that opened between 2000 and 2005?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : open_year (number) , station_id (number)


Question: Show all locations and the number of gas stations in each location ordered by the count.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number)


Question: For each location, how many gas stations are there in order?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number)


Question: Show all headquarters with both a company in banking industry and a company in Oil and gas.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: What are the headquarters that have both a company in the banking and 'oil and gas' industries?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: Show all headquarters without a company in banking industry.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: What are the headquarters without companies that are in the banking industry?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: Show the company name with the number of gas station.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: For each company id, what are the companies and how many gas stations does each one operate?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: Show company name and main industry without a gas station.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , company_id (number) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: What are the main industries of the companies without gas stations and what are the companies?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , company_id (number) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: Show the manager name for gas stations belonging to the ExxonMobil company.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , station_id (number) , station_id (number) | company : company (text) , company_id (number) , company_id (number) | station_company : company_id (number) , station_id (number) , station_id (number)


Question: What are the names of the managers for gas stations that are operated by the ExxonMobil company?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , station_id (number) , station_id (number) | company : company (text) , company_id (number) , company_id (number) | station_company : company_id (number) , station_id (number) , station_id (number)


Question: Show all locations where a gas station for company with market value greater than 100 is located.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number) , station_id (number) | company : company (text) , company_id (number) , market_value (number) , company_id (number) | station_company : company_id (number) , station_id (number) , station_id (number)


Question: What are the locations that have gas stations owned by a company with a market value greater than 100?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number) , station_id (number) | company : company (text) , company_id (number) , market_value (number) , company_id (number) | station_company : company_id (number) , station_id (number) , station_id (number)


Question: Show the manager name with most number of gas stations opened after 2000.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , open_year (number) , station_id (number)


Question: What is the name of the manager with the most gas stations that opened after 2000?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , open_year (number) , station_id (number)


Question: order all gas station locations by the opening year.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , open_year (number) , station_id (number)


Question: What are the locations of all the gas stations ordered by opening year?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , open_year (number) , station_id (number)


Question: find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : rank (number) , company (text) , market_value (number) , main_industry (text) , sales_billion (number) , profits_billion (number) , company_id (number)


Question: What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : rank (number) , company (text) , market_value (number) , main_industry (text) , sales_billion (number) , profits_billion (number) , company_id (number)


Question: find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , representative_name (text) , station_id (number) , station_id (number) | company : company (text) , company_id (number) , assets_billion (number) , company_id (number) | station_company : company_id (number) , station_id (number) , station_id (number)


Question: What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , representative_name (text) , station_id (number) , station_id (number) | company : company (text) , company_id (number) , assets_billion (number) , company_id (number) | station_company : company_id (number) , station_id (number) , station_id (number)


Question: How many regions do we have?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Count the number of regions.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Show all distinct region names ordered by their labels.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_name (text) , label (text) , region_id (number)


Question: What are the different region names, ordered by labels?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_name (text) , label (text) , region_id (number)


Question: How many parties do we have?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number)


Question: Count the number of different parties.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number)


Question: Show the ministers and the time they took and left office, listed by the time they left office.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text) , left_office (text) , party_id (number)


Question: Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text) , left_office (text) , party_id (number)


Question: Show the minister who took office after 1961 or before 1959.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text) , party_id (number)


Question: Who are the ministers who took office after 1961 or before 1959?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text) , party_id (number)


Question: Show all ministers who do not belong to Progress Party.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , party_name (text) , party_id (number)


Question: Which ministers are not a part of the Progress Party?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , party_name (text) , party_id (number)


Question: Show all ministers and parties they belong to in descending order of the time they took office.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , party_name (text) , took_office (text) , party_id (number)


Question: Who are the ministers and what parties do they belong to, listed descending by the times they took office?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , party_name (text) , took_office (text) , party_id (number)


Question: Return the minister who left office at the latest time.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , left_office (text) , party_id (number)


Question: Which minister left office the latest?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , left_office (text) , party_id (number)


Question: List member names and their party names.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) , member_id (number) | party : party_name (text) , party_id (number) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: What are the names of members and their corresponding parties?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) , member_id (number) | party : party_name (text) , party_id (number) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: Show all party names and the number of members in each party.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: How many members are in each party?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: What is the name of party with most number of members?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: Return the name of the party with the most members.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: Show all party names and their region names.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , region_id (number) , party_id (number) | region : region_name (text) , region_id (number) , region_id (number)


Question: What are the names of parties and their respective regions?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , region_id (number) , party_id (number) | region : region_name (text) , region_id (number) , region_id (number)


Question: Show names of parties that does not have any members.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: What are the names of parties that have no members?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: Show the member names which are in both the party with id 3 and the party with id 1.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) , member_id (number) | party : party_id (number) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: Which member names are shared among members in the party with the id 3 and the party with the id 1?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) , member_id (number) | party : party_id (number) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: Show member names that are not in the Progress Party.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) , member_id (number) | party : party_id (number) , party_name (text) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: Which member names corresponding to members who are not in the Progress Party?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) , member_id (number) | party : party_id (number) , party_name (text) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: How many party events do we have?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Count the number of party events.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Show party names and the number of events for each party.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: How many events are there for each party?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: Show all member names who are not in charge of any event.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , member_id (number) , member_id (number) | party_events : member_in_charge_id (number) , event_id (number)


Question: What are the names of members who are not in charge of any events?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , member_id (number) , member_id (number) | party_events : member_in_charge_id (number) , event_id (number)


Question: What are the names of parties with at least 2 events?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: Return the names of parties that have two or more events.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_id (number)


Question: What is the name of member in charge of greatest number of events?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , member_id (number) , member_id (number) | party_events : member_in_charge_id (number) , event_id (number)


Question: Return the name of the member who is in charge of the most events.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , member_id (number) , member_id (number) | party_events : member_in_charge_id (number) , event_id (number)


Question: find the event names that have more than 2 records.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party_events : event_name (text) , event_id (number)


Question: Which event names were used more than twice for party events?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party_events : event_name (text) , event_id (number)


Question: How many Annual Meeting events happened in the United Kingdom region?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_id (number) , region_name (text) , region_id (number) | party : region_id (number) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_name (text) , event_id (number)


Question: Count the number of Annual Meeting events that took place in the region of the United Kingdom.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_id (number) , region_name (text) , region_id (number) | party : region_id (number) , party_id (number) , party_id (number) | member : party_id (text) , member_id (number) | party_events : party_id (number) , event_name (text) , event_id (number)


Question: How many pilots are there?

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)


Question: List the names of pilots in ascending order of rank.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , rank (number) , pilot_id (number)


Question: What are the positions and teams of pilots?

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : position (text) , team (text) , pilot_id (number)


Question: List the distinct positions of pilots older than 30.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : position (text) , age (number) , pilot_id (number)


Question: Show the names of pilots from team "Bradley" or "Fordham".

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , team (text) , pilot_id (number)


Question: What is the joined year of the pilot of the highest rank?

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : join_year (number) , rank (number) , pilot_id (number)


Question: What are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : nationality (text) , pilot_id (number)


Question: Show the most common nationality of pilots.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : nationality (text) , pilot_id (number)


Question: Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : position (text) , join_year (number) , pilot_id (number)


Question: Show the names of pilots and models of aircrafts they have flied with.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) , pilot_id (number) | aircraft : model (text) , aircraft_id (number) , aircraft_id (number) | pilot_record : aircraft_id (number) , pilot_id (number) , pilot_id (number)


Question: Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) , rank (number) , pilot_id (number) | aircraft : fleet_series (text) , aircraft_id (number) , aircraft_id (number) | pilot_record : aircraft_id (number) , pilot_id (number) , pilot_id (number)


Question: Show the fleet series of the aircrafts flied by pilots younger than 34

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

aircraft : fleet_series (text) , aircraft_id (number) , aircraft_id (number) | pilot_record : aircraft_id (number) , pilot_id (number) , pilot_id (number) | pilot : pilot_id (number) , age (number) , pilot_id (number)


Question: Show the names of pilots and the number of records they have.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) , pilot_id (number) | pilot_record : pilot_id (number) , pilot_id (number)


Question: Show names of pilots that have more than one record.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) , pilot_id (number) | pilot_record : pilot_id (number) , pilot_id (number)


Question: List the names of pilots that do not have any record.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , pilot_id (number) , pilot_id (number) | pilot_record : pilot_id (number) , pilot_id (number)


Question: What document status codes do we have?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_document_status : document_status_code (text) , document_status_code (number) | documents : document_status_code (text) , document_id (number)


Question: What is the description of document status code 'working'?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_document_status : document_status_description (text) , document_status_code (text) , document_status_code (number) | documents : document_status_code (text) , document_id (number)


Question: What document type codes do we have?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_document_types : document_type_code (text) , document_type_code (number) | documents : document_type_code (text) , document_id (number)


Question: What is the description of document type 'Paper'?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_document_types : document_type_description (text) , document_type_code (text) , document_type_code (number) | documents : document_type_code (text) , document_id (number)


Question: What are the shipping agent names?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_shipping_agents : shipping_agent_name (text) , shipping_agent_code (number)


Question: What is the shipping agent code of shipping agent UPS?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_code (number) | documents : shipping_agent_code (text) , document_id (number)


Question: What are all role codes?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

roles : role_code (text) , role_code (number) | employees : role_code (text) , employee_id (number)


Question: What is the description of role code ED?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

roles : role_description (text) , role_code (text) , role_code (number) | employees : role_code (text) , employee_id (number)


Question: How many employees do we have?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)


Question: What is the role of the employee named Koby?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

roles : role_description (text) , role_code (text) , role_code (number) | employees : role_code (text) , employee_name (text) , employee_id (number)


Question: List all document ids and receipt dates of documents.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : document_id (number) , receipt_date (time) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number)


Question: How many employees does each role have? List role description, id and number of employees.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

roles : role_description (text) , role_code (text) , role_code (number) | employees : role_code (text) , employee_id (number)


Question: List roles that have more than one employee. List the role description and number of employees.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

roles : role_code (number) | employees : employee_id (number)


Question: What is the document status description of the document with id 1?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_document_status : document_status_code (number) | documents : document_id (number)


Question: How many documents have the status code done?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_document_status : document_status_code (text) , document_status_code (number) | documents : document_status_code (text) , document_id (number)


Question: List the document type code for the document with the id 2.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_document_types : document_type_code (text) , document_type_code (number) | documents : document_type_code (text) , document_id (number) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number)


Question: List the document ids for any documents with the status code done and the type code paper.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : document_id (number) , document_status_code (text) , document_type_code (text) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number) | ref_document_status : document_status_code (text) , document_status_code (number) | ref_document_types : document_type_code (text) , document_type_code (number)


Question: What is the name of the shipping agent of the document with id 2?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_shipping_agents : shipping_agent_code (number) | documents : document_id (number)


Question: How many documents were shipped by USPS?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_shipping_agents : shipping_agent_code (number) | documents : document_id (number)


Question: Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

ref_shipping_agents : shipping_agent_code (number) | documents : document_id (number)


Question: What is the receipt date of the document with id 3?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : receipt_date (time) , document_id (number) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number)


Question: What address was the document with id 4 mailed to?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : document_id (number) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number) | addresses : address_id (number)


Question: What is the mail date of the document with id 7?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents_mailed : mailing_date (time) , document_id (number) , document_id (number) | documents : document_id (number) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number)


Question: List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : document_id (number) , document_status_code (text) , document_type_code (text) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number) | ref_document_status : document_status_code (text) , document_status_code (number) | ref_document_types : document_type_code (text) , document_type_code (number) | ref_shipping_agents : shipping_agent_code (number)


Question: List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : document_id (number) , document_status_code (text) , document_type_code (text) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number) | ref_document_status : document_status_code (text) , document_status_code (number) | ref_document_types : document_type_code (text) , document_type_code (number) | ref_shipping_agents : shipping_agent_code (number)


Question: What is draft detail of the document with id 7?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

document_drafts : draft_details (text) , document_id (number) , document_id (number) | documents : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number)


Question: How many draft copies does the document with id 2 have?

ref_document_types : document_type_code (text) , document_type_description (text) | roles : role_code (text) , role_description (text) | addresses : address_id (number) , address_details (text) | ref_document_status : document_status_code (text) , document_status_description (text) | ref_shipping_agents : shipping_agent_code (text) , shipping_agent_name (text) , shipping_agent_description (text) | documents : document_id (number) , document_status_code (text) , document_type_code (text) , shipping_agent_code (text) , receipt_date (time) , receipt_number (text) , other_details (text) | employees : employee_id (number) , role_code (text) , employee_name (text) , other_details (text) | document_drafts : document_id (number) , draft_number (number) , draft_details (text) | draft_copies : document_id (number) , draft_number (number) , copy_number (number) | circulation_history : document_id (number) , draft_number (number) , copy_number (number) , employee_id (number) | documents_mailed : document_id (number) , mailed_to_address_id (number) , mailing_date (time)

documents : document_id (number) , document_id (number) | document_drafts : document_id (number) , document_id (number) | draft_copies : document_id (number) , document_id (number) | circulation_history : document_id (number) , document_id (number) | documents_mailed : document_id (number) , document_id (number)